:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --soft: #f1f5f9;
    --line: #e2e8f0;
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #06b6d4;
    --white: #ffffff;
    --black: #020617;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.26);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--teal-dark), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #475569;
    font-weight: 700;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--teal-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search .search-input {
    width: 230px;
}

.search-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.search-button,
.primary-button,
.secondary-button,
.hero-button,
.play-action {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-button,
.primary-button,
.hero-button,
.play-action {
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 32px rgba(20, 184, 166, 0.25);
}

.search-button {
    min-height: 42px;
    padding: 0 18px;
}

.primary-button,
.secondary-button,
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
}

.secondary-button {
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.24);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.search-button:hover,
.primary-button:hover,
.hero-button:hover,
.play-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(20, 184, 166, 0.34);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: #f0fdfa;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e2e8f0;
    padding: 14px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 4px;
    color: #475569;
    font-weight: 800;
}

.mobile-nav-link.is-active {
    color: var(--teal-dark);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 4s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.18) 100%),
        radial-gradient(circle at 15% 80%, rgba(20, 184, 166, 0.42), transparent 22rem);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 72px 0;
}

.hero-copy {
    max-width: 720px;
    color: white;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    background: rgba(20, 184, 166, 0.92);
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.26);
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #e2e8f0;
    font-size: 19px;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 30px;
    color: #cbd5e1;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 26px;
    background: rgba(2, 6, 23, 0.52);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(2, 6, 23, 0.78);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.main-content {
    padding: 56px 0 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 54px;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.18), transparent 26rem),
        linear-gradient(135deg, #f0fdfa 0%, #ecfeff 54%, #ffffff 100%);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.section-block {
    margin-bottom: 64px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-heading h3 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.34);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, filter 0.36s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.play-pill {
    right: 10px;
    bottom: 10px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--teal-dark);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    background: #ccfbf1;
}

.highlight-band {
    margin: 8px 0 64px;
    padding: 36px;
    border-radius: 34px;
    background: linear-gradient(135deg, #f1f5f9 0%, #ecfeff 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.78);
}

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

.category-card {
    position: relative;
    min-height: 160px;
    padding: 24px;
    overflow: hidden;
    border-radius: 26px;
    color: #0f172a;
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.24), transparent 10rem),
        linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid rgba(20, 184, 166, 0.16);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    font-weight: 800;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 26px rgba(20, 184, 166, 0.24);
}

.empty-state {
    display: none;
    padding: 46px;
    border-radius: 26px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.empty-state.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--teal-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
    align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-soft);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.26);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.16)),
        radial-gradient(circle at center, rgba(20, 184, 166, 0.26), transparent 18rem);
}

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

.play-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    font-size: 18px;
}

.play-action span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--teal-dark);
    background: white;
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
    color: #475569;
    font-weight: 800;
}

.detail-meta span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.detail-section {
    margin-top: 26px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.detail-section p {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.86;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

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

.side-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 72px;
    height: 98px;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.side-title {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 900;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.related-section {
    margin-top: 54px;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 72px 120px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-number {
    color: var(--teal-dark);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-align: center;
}

.rank-row img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    padding: 42px 0;
    color: #cbd5e1;
    background: #020617;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    color: white;
    font-size: 22px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-inner p {
    width: 100%;
    margin: 6px 0 0;
    color: #94a3b8;
}

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero {
        height: 76vh;
        min-height: 520px;
    }

    .hero-content {
        padding: 56px 0 74px;
    }

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

    .hero-nav {
        top: auto;
        bottom: 78px;
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }

    .movie-grid,
    .movie-grid.feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .highlight-band {
        padding: 22px;
        border-radius: 26px;
    }

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

    .rank-row img {
        width: 84px;
        height: 116px;
    }

    .rank-row .primary-button {
        grid-column: 2 / -1;
        width: fit-content;
    }
}

@media (max-width: 540px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 66px;
    }

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

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

    .page-hero {
        padding: 52px 0 42px;
    }

    .main-content {
        padding: 38px 0 58px;
    }

    .movie-grid,
    .movie-grid.feature-grid,
    .category-list {
        grid-template-columns: 1fr;
    }

    .card-title {
        min-height: auto;
    }

    .detail-card {
        padding: 22px;
    }

    .detail-card h1 {
        font-size: 34px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
