:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --orange: #f97316;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --panel: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 45%, #ffffff 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    max-width: 1180px;
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.25);
    font-size: 13px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 16px;
    color: #374151;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    background: #fff1f2;
}

.menu-button {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    color: #111827;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 10px 20px 18px;
}

.mobile-menu.open {
    display: block;
}

.mobile-link,
.mobile-category {
    display: block;
    padding: 12px 10px;
    color: #374151;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-category:hover {
    background: #f9fafb;
    color: var(--rose);
}

.mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 8px;
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1180px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 14px;
    font-size: clamp(18px, 2vw, 23px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-labels,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.94);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-meta,
.card-meta {
    color: var(--muted);
}

.hero-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after,
.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: currentColor;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.home-search button,
.filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button,
.filter-bar button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 35px rgba(244, 63, 94, 0.3);
}

.primary-button:hover,
.home-search button:hover,
.filter-bar button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--rose-dark), var(--pink));
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 36px;
    background: #ffffff;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

.section-white {
    background: transparent;
}

.section-soft,
.section-rose {
    max-width: none;
    padding-left: max(20px, calc((100% - 1180px) / 2));
    padding-right: max(20px, calc((100% - 1180px) / 2));
}

.section-soft {
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.section-rose {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.intro-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    color: var(--rose);
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-tile {
    min-height: 170px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -42px;
    bottom: -42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.18);
}

.category-icon {
    font-size: 38px;
}

.category-tile strong {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.category-tile em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.tile-1,
.tile-6 {
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.tile-2,
.tile-7 {
    background: linear-gradient(135deg, #38bdf8, #06b6d4);
}

.tile-3,
.tile-8 {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.tile-4,
.tile-9 {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.tile-5,
.tile-10 {
    background: linear-gradient(135deg, #f43f5e, #f97316);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.22);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    height: 250px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.compact-grid .card-cover {
    height: 210px;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-badge,
.rank-no {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    right: 12px;
    padding: 6px 10px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.rank-no {
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--rose);
}

.card-body p {
    min-height: 44px;
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 13px;
}

.split-layout,
.detail-layout,
.content-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.intro-panel,
.rank-panel,
.article-card,
.category-overview-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.intro-panel h2,
.rank-panel h2,
.article-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.home-search,
.filter-bar {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-bar input {
    flex: 1;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: #ffffff;
}

.home-search input:focus,
.filter-bar input:focus {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rank-panel-head a {
    color: var(--rose);
    font-weight: 700;
}

.rank-row {
    display: grid;
    grid-template-columns: 36px 54px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
}

.rank-index {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--rose);
    font-weight: 800;
}

.rank-row img {
    width: 54px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: #fee2e2;
}

.rank-title {
    font-weight: 700;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    background: radial-gradient(circle at top left, #ffe4e6, transparent 36%), linear-gradient(135deg, #fff1f2, #ffffff 58%, #fff7ed);
    padding: 78px 20px 54px;
}

.small-hero {
    text-align: center;
}

.small-hero > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.crumbs {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.crumbs a:hover {
    color: var(--rose);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-buttons button {
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose);
    background: #ffffff;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-overview-head span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 18px;
    background: #fff1f2;
    font-size: 28px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-sample-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.category-sample-links a {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f9fafb;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-sample-links a:hover {
    background: #fff1f2;
    color: var(--rose);
}

.detail-hero {
    padding-top: 42px;
}

.detail-hero .crumbs,
.detail-layout {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    z-index: 3;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.4);
    font-size: 30px;
}

.detail-info {
    padding: 18px 0;
}

.detail-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    font-weight: 800;
    margin-bottom: 16px;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 16px 0;
}

.detail-info .tag-list span {
    color: var(--rose);
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.16);
}

.detail-info .primary-button {
    margin-top: 24px;
}

.detail-section {
    padding-top: 56px;
}

.article-card p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

.pager-links {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.pager-links a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #374151;
    font-weight: 700;
}

.pager-links a:hover {
    color: var(--rose);
    border-color: rgba(244, 63, 94, 0.25);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 50px 20px 26px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
}

.footer-grid h3 {
    margin-top: 0;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-grid a:hover {
    color: var(--rose);
}

.footer-bottom {
    max-width: 1180px;
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

.hide-card {
    display: none;
}

@media (max-width: 1100px) {
    .category-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

    .section-head,
    .split-layout,
    .detail-layout,
    .content-grid,
    .footer-grid,
    .overview-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .section-head {
        align-items: start;
    }

    .category-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-bar,
    .home-search,
    .pager-links {
        flex-direction: column;
    }

    .card-cover,
    .compact-grid .card-cover {
        height: 230px;
    }
}

@media (max-width: 540px) {
    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        height: 520px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section,
    .section-soft,
    .section-rose {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-sample-links {
        grid-template-columns: 1fr;
    }

    .card-cover,
    .compact-grid .card-cover {
        height: 300px;
    }

    .rank-row {
        grid-template-columns: 30px 46px 1fr;
    }

    .rank-year {
        display: none;
    }
}
