* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 26px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f9fafb;
    color: var(--text);
    min-width: 320px;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 20px;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.3);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-links a,
.footer-links a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-links a:hover,
.footer-links a:hover {
    color: var(--rose);
}

.nav-search,
.mobile-search,
.hero-search,
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.toolbar input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    min-width: 220px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.toolbar input:focus {
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.hero-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.24);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #111827;
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.hero {
    position: relative;
    padding: 28px 24px 64px;
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.2), transparent 30%),
        #111827;
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    height: min(68vw, 660px);
    min-height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    background: #111827;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-overlay,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: clamp(28px, 5vw, 70px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 44px;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.hero-tags,
.card-tags,
.detail-stats,
.rank-meta,
.movie-meta,
.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-stats span,
.rank-meta span,
.movie-meta span,
.filter-row button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: currentColor;
    font-size: 12px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
    padding: 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
}

.hero-controls button,
.hero-dot {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
}

.hero-controls > button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.hero-search {
    position: relative;
    z-index: 4;
    max-width: 760px;
    margin: -32px auto 0;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    border-color: transparent;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.soft-panel {
    max-width: 1232px;
    margin: 28px auto;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-panel h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--rose);
    background: #fff;
    box-shadow: 0 10px 26px rgba(244, 63, 94, 0.12);
}

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

.category-tile,
.category-wide {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: #111827;
}

.category-tile img,
.category-wide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-tile span,
.category-wide::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.1));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
    color: #fff;
}

.category-tile strong {
    bottom: 58px;
    font-size: 22px;
    font-style: normal;
}

.category-tile em {
    bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.category-tile:hover img,
.category-wide:hover img,
.movie-card:hover img,
.rank-card:hover img {
    transform: scale(1.07);
    opacity: 0.92;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.score-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

.movie-card-body {
    padding: 17px;
}

.card-tags span,
.movie-meta span,
.rank-meta span {
    background: #fff1f2;
    color: var(--rose-dark);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p,
.rank-info p,
.story-panel p,
.side-panel,
.page-hero p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-card p {
    min-height: 78px;
    margin: 0 0 14px;
    font-size: 14px;
}

.movie-meta {
    justify-content: space-between;
}

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

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.rank-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    font-weight: 900;
}

.rank-title {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 10px;
    font-size: 14px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 28px auto 0;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.page-hero {
    min-height: 360px;
    padding: 56px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 34%),
        linear-gradient(135deg, #fff, #fff1f2);
}

.slim-hero {
    min-height: 280px;
}

.ranking-hero,
.category-hero {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    background: #111827;
    color: #fff;
}

.ranking-hero img,
.category-hero img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.ranking-hero p,
.category-hero p {
    color: rgba(255, 255, 255, 0.78);
}

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

.category-wide {
    min-height: 240px;
}

.category-wide div {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.category-wide span {
    color: #fecdd3;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.category-wide h2 {
    margin: 10px 0 8px;
    font-size: 30px;
}

.category-wide p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.toolbar {
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.toolbar input {
    flex: 1;
    min-width: 260px;
    background: #f9fafb;
}

.filter-row button {
    border: 0;
    cursor: pointer;
    background: #f3f4f6;
    color: #374151;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.searchable-card.is-hidden {
    display: none;
}

.detail-hero {
    min-height: 560px;
    background: #111827;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: end;
    gap: 38px;
    padding: 56px;
    color: #fff;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 70px);
    color: #fff;
}

.detail-info p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.detail-stats {
    margin-top: 22px;
    color: #fff;
}

.player-section,
.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 16px;
    align-content: center;
    color: #fff;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.38));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.36);
    font-size: 34px;
}

.play-cover strong {
    font-size: clamp(22px, 4vw, 38px);
    text-align: center;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
}

.story-panel,
.side-panel {
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.story-panel p {
    font-size: 16px;
}

.side-panel h2 {
    margin: 0 0 18px;
}

.side-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.side-panel dl div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.side-panel dt {
    color: #9ca3af;
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.site-footer {
    margin-top: 56px;
    padding: 46px 24px 26px;
    background: #111827;
    color: #fff;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: #fff;
}

.footer-grid p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    max-width: 520px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .desktop-nav,
    .nav-search {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content,
    .detail-wrap,
    .detail-content,
    .ranking-hero,
    .category-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-cover {
        display: none;
    }

    .category-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        padding: 12px 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        padding: 14px 14px 48px;
    }

    .hero-shell {
        min-height: 560px;
        height: 560px;
        border-radius: 26px;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        margin-top: 18px;
    }

    .content-section,
    .player-section,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-wide-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .page-hero,
    .detail-hero {
        margin: 16px 16px 0;
        border-radius: 26px;
    }

    .page-hero {
        padding: 30px;
    }

    .ranking-hero img,
    .category-hero img {
        max-width: 220px;
    }

    .detail-wrap {
        min-height: 520px;
        padding: 30px;
    }

    .detail-info h1 {
        font-size: 40px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
