:root {
    --teal-950: #0f3f3f;
    --teal-900: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-300: #5eead4;
    --amber-500: #f59e0b;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--slate-50), #ffffff 48%, var(--slate-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-950), var(--slate-800));
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
}

.nav-inner {
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--slate-900);
    background: var(--amber-500);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.32);
}

.brand-name {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    display: block;
    margin-top: -2px;
    color: var(--teal-300);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
}

.nav-links > a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover {
    color: var(--teal-300);
    transform: translateY(-1px);
}

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

.nav-search input,
.toolbar input,
.search-panel input {
    min-width: 220px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search input:focus,
.toolbar input:focus,
.search-panel input:focus {
    border-color: var(--teal-300);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
    background: rgba(255, 255, 255, 0.18);
}

.nav-search button,
.search-panel button,
.hero-button,
.section-more,
.toolbar a {
    border: 0;
    color: #ffffff;
    background: var(--teal-600);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.24);
}

.nav-search button:hover,
.search-panel button:hover,
.hero-button:hover,
.section-more:hover,
.toolbar a:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.85s ease, visibility 0.85s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(9px);
    transform: scale(1.08);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #ffffff;
}

.hero-pill,
.region-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    background: var(--amber-500);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 15px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 14px 28px;
    font-size: 18px;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 36px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 32px;
    background: var(--teal-300);
}

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

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

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--teal-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-head h1 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 24px;
}

.cards-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
    min-width: 0;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--teal-950));
}

.movie-card.featured {
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.22);
}

.movie-card.featured .movie-poster {
    height: 380px;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.55));
    opacity: 0.7;
}

.region-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--slate-900);
    background: var(--amber-500);
    border-radius: 12px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 20px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.movie-card.featured h3,
.movie-card.featured p,
.movie-card.featured .movie-meta {
    color: #ffffff;
}

.movie-card:hover h3 {
    color: var(--teal-700);
}

.movie-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    color: var(--teal-900);
    background: #ccfbf1;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.ranking-panel,
.detail-sidebar {
    position: sticky;
    top: 92px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 22px;
}

.panel-title {
    margin-bottom: 18px;
    color: var(--slate-900);
    font-size: 22px;
    font-weight: 900;
}

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

.compact-card a {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-list .compact-card a {
    grid-template-columns: auto 64px minmax(0, 1fr);
    box-shadow: none;
    background: var(--slate-50);
}

.compact-card a:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.compact-card img {
    width: 72px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-list .compact-card img {
    width: 64px;
    height: 78px;
}

.compact-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--slate-900);
    background: var(--amber-500);
    border-radius: 10px;
    font-weight: 900;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: var(--slate-900);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-950), var(--slate-800));
    padding: 76px 20px;
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
    color: #ffffff;
}

.page-hero p {
    color: #ccfbf1;
    font-size: 18px;
}

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

.category-card a {
    display: block;
    min-height: 250px;
    padding: 26px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-count {
    display: inline-block;
    margin-bottom: 16px;
    color: #ffffff;
    background: var(--teal-600);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
}

.category-card h2 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 28px;
}

.category-card p {
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    min-height: auto;
    padding: 5px 9px;
    color: var(--teal-900);
    background: #ccfbf1;
    border-radius: 999px;
    box-shadow: none;
    font-size: 12px;
}

.toolbar {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 18px;
}

.toolbar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.toolbar input,
.search-panel input {
    min-width: min(520px, 70vw);
    color: var(--slate-900);
    border-color: #cbd5e1;
    background: #ffffff;
}

.search-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.result-status {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
}

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

.detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: var(--slate-900);
    background: var(--amber-500);
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 42px);
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    margin-top: 34px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-head,
.text-block {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 24px;
}

.detail-head {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
}

.detail-head img {
    width: 220px;
    height: 310px;
    border-radius: 18px;
    object-fit: cover;
}

.detail-head h1 {
    margin: 16px 0 12px;
}

.detail-head p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 14px;
}

.detail-meta a {
    color: var(--teal-700);
    font-weight: 800;
}

.text-block {
    margin-top: 24px;
}

.text-block h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: #334155;
    white-space: pre-line;
}

.review-block {
    background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.related-grid {
    margin-top: 18px;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .cards-four,
    .featured-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 10px;
    }

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

    .nav-search {
        align-items: stretch;
    }

    .nav-search input {
        min-width: 0;
        width: 100%;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 88px;
    }

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

    .hero-arrow {
        top: auto;
        bottom: 28px;
        transform: none;
    }

    .hero-arrow:hover {
        transform: scale(1.05);
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: auto;
        left: 78px;
    }

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

    .section-heading,
    .toolbar,
    .footer-inner,
    .search-panel {
        flex-direction: column;
        align-items: stretch;
    }

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

    .detail-head img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

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

    .hero {
        height: 520px;
    }

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

    .cards-four,
    .featured-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card.featured .movie-poster {
        height: 360px;
    }

    .compact-card a,
    .compact-list .compact-card a {
        grid-template-columns: auto 58px minmax(0, 1fr);
    }

    .compact-card img,
    .compact-list .compact-card img {
        width: 58px;
        height: 72px;
    }

    .content-section {
        padding: 38px 16px;
    }

    .detail-page {
        padding: 18px 16px 44px;
    }
}
