:root {
    --cyan-700: #0e7490;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --teal-600: #0d9488;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--gray-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-inner,
.page-hero-inner,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan-700);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--emerald-500));
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.28);
    font-size: 15px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: var(--gray-700);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--cyan-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--gray-100);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--gray-800);
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600) 52%, var(--emerald-600));
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    top: -240px;
    left: -160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.hero::after {
    width: 640px;
    height: 640px;
    right: -260px;
    bottom: -340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.42), transparent 66%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 640px;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 54px;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #dffcff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    margin-top: 8px;
    color: #bff8ff;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 640px;
    margin: 24px 0 0;
    color: #e7ffff;
    font-size: 20px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.secondary-button,
.outline-button,
.text-link,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 0 22px;
    color: var(--cyan-700);
    background: var(--white);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.hero-search button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.secondary-button {
    padding: 0 22px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.hero-search button {
    padding: 0 20px;
    color: var(--white);
    background: var(--cyan-700);
}

.hero-stats {
    display: grid;
    max-width: 620px;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: #d5ffff;
    font-size: 14px;
}

.hero-showcase {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.28);
    transition: opacity 0.42s ease, transform 0.42s ease;
    pointer-events: none;
    backdrop-filter: blur(16px);
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.hero-slide-body {
    position: relative;
    padding: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.92));
}

.hero-slide-body h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.hero-slide-body p {
    margin: 10px 0 18px;
    color: #d8f6ff;
}

.hero-pills,
.tag-row,
.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pills span,
.tag-row span,
.meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-pills span {
    color: #e8ffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.42);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600), var(--emerald-600));
}

.page-hero-inner {
    padding: 58px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #e7ffff;
    font-size: 18px;
}

.section-shell {
    padding: 58px 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--cyan-700);
    font-weight: 900;
}

.section-head h2,
.section-title {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

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

.category-card {
    min-height: 160px;
    padding: 22px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    display: block;
    color: var(--cyan-700);
    font-size: 22px;
}

.category-card p {
    margin: 10px 0 16px;
    color: var(--gray-600);
    font-size: 14px;
}

.category-card span {
    color: var(--emerald-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 145, 178, 0.28);
    box-shadow: var(--shadow);
}

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

.movie-cover {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(16, 185, 129, 0.18));
}

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

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

.year-badge,
.rank-badge,
.play-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.year-badge {
    top: 12px;
    right: 12px;
    background: var(--cyan-600);
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(10px);
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--cyan-700);
    font-size: 14px;
    font-weight: 900;
}

.movie-card h2,
.movie-card h3 {
    margin: 0 0 8px;
    color: var(--gray-950);
    font-size: 18px;
    line-height: 1.35;
}

.movie-one-line {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-bottom: 14px;
}

.tag-row span,
.meta-pills span {
    color: var(--cyan-700);
    background: rgba(8, 145, 178, 0.1);
}

.text-link {
    min-height: 36px;
    color: var(--cyan-700);
    font-size: 14px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--gray-100);
    transform: translateX(3px);
}

.rank-row span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: var(--cyan-600);
    font-weight: 900;
}

.rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: var(--gray-600);
    font-size: 13px;
    font-style: normal;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 0.7fr)) auto;
    gap: 14px;
    align-items: end;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: var(--gray-900);
    background: var(--gray-50);
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.outline-button {
    min-height: 46px;
    padding: 0 18px;
    color: var(--cyan-700);
    border: 1px solid rgba(8, 145, 178, 0.24);
    background: rgba(8, 145, 178, 0.08);
}

.filter-count {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--gray-600);
    font-weight: 700;
}

.detail-page {
    background: var(--gray-50);
}

.detail-shell {
    padding: 34px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--gray-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--cyan-700);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 30px;
    padding: 28px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-950), var(--cyan-700) 52%, var(--emerald-600));
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}

.detail-cover img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-lead {
    margin: 20px 0 0;
    color: #e7ffff;
    font-size: 19px;
}

.detail-actions .primary-button {
    color: var(--cyan-700);
}

.player-section,
.content-section,
.related-section {
    margin-top: 34px;
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player-section h2,
.content-section h2,
.related-section h2 {
    margin: 0 0 18px;
    color: var(--gray-950);
    font-size: 28px;
    line-height: 1.2;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.72));
}

.player-mask.is-hidden {
    display: none;
}

.play-round {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: var(--cyan-600);
    box-shadow: 0 20px 45px rgba(8, 145, 178, 0.35);
    font-size: 30px;
}

.player-mask strong {
    max-width: min(620px, calc(100% - 40px));
    text-align: center;
    font-size: 22px;
}

.content-section p {
    margin: 0 0 16px;
    color: var(--gray-700);
    font-size: 17px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--gray-50);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 145, 178, 0.28);
}

.related-card img {
    width: 96px;
    height: 128px;
    border-radius: 14px;
    object-fit: cover;
}

.related-card h3 {
    margin: 4px 0 8px;
    color: var(--gray-950);
    font-size: 16px;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-950);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
}

.site-footer p {
    max-width: 460px;
    margin: 16px 0 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #67e8f9;
}

.copyright {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero-inner,
    .rank-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 560px;
    }

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

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

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

@media (max-width: 760px) {
    .brand-name {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--gray-200);
        border-radius: 20px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero-inner {
        min-height: auto;
        padding: 52px 0;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-search,
    .hero-actions,
    .section-actions {
        flex-direction: column;
    }

    .hero-search button,
    .primary-button,
    .secondary-button,
    .outline-button {
        width: 100%;
    }

    .hero-stats,
    .category-grid,
    .movie-grid,
    .related-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 500px;
    }

    .hero-slide img {
        height: 300px;
    }

    .section-head {
        display: block;
    }

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

    .rank-row em {
        grid-column: 2;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        width: min(100% - 22px, 1180px);
    }

    .detail-hero,
    .player-section,
    .content-section,
    .related-section {
        padding: 18px;
        border-radius: 22px;
    }

    .detail-cover img {
        height: 420px;
    }

    .related-card {
        grid-template-columns: 86px 1fr;
    }

    .related-card img {
        width: 86px;
        height: 116px;
    }
}
