:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --line: #e2e8f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--slate-900);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

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

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

.nav-links a:hover {
    color: var(--amber-400);
    transform: translateY(-1px);
}

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

.content-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1180px, 100%);
    padding: 0 20px 96px;
    transform: translateX(-50%);
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.28);
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.65;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 13px;
    padding: 11px 22px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.btn-glass {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.btn-soft {
    color: var(--amber-600);
    background: #fff7ed;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber-500);
}

.search-band {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.search-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-band h2,
.search-band p {
    margin: 0;
}

.search-band h2 {
    font-size: 28px;
}

.search-band p {
    margin-top: 8px;
    color: var(--muted);
}

.home-search {
    display: flex;
    width: min(520px, 100%);
    padding: 6px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.home-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
}

.home-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
}

.block-section {
    padding-top: 54px;
    padding-bottom: 32px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.02em;
}

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

.section-link,
.panel-title a {
    color: var(--amber-600);
    font-weight: 800;
}

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

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

.wide-list {
    display: grid;
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.94);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

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

.card-body {
    padding: 17px;
}

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

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

.card-summary {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}

.card-meta span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 9px;
}

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

.tag-row span {
    color: var(--amber-600);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
}

.movie-card-wide .card-cover {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
}

.movie-card-wide .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.category-card,
.category-overview-card,
.rank-panel,
.player-card,
.detail-copy article {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.category-card {
    padding: 22px;
}

.category-card > a span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 9px;
    font-size: 22px;
    font-weight: 900;
}

.category-card > a strong,
.category-overview-card p {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.category-mini-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-mini-links a,
.category-overview-card div a {
    color: #334155;
    font-size: 14px;
}

.category-mini-links a:hover,
.category-overview-card div a:hover {
    color: var(--amber-600);
}

.rank-panel {
    position: sticky;
    top: 86px;
    align-self: start;
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-title h2 {
    margin: 0;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.rank-no {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 10px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--slate-800);
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    font-size: 14px;
}

.rank-info em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-score {
    color: var(--amber-600);
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero-slim {
    padding: 76px 0;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    outline: 0;
    padding: 0 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.no-results {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
}

.category-overview-card {
    padding: 26px;
}

.category-overview-card h2 a:hover {
    color: var(--amber-600);
}

.category-overview-card div {
    display: grid;
    gap: 7px;
    margin: 18px 0 22px;
}

.rank-page-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
}

.rank-list-large {
    align-self: start;
}

.breadcrumb-wrap {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 14px;
    padding-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-600);
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.25), transparent 26%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 62px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--slate-900);
}

.detail-info h1 {
    max-width: 880px;
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-meta span {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
}

.detail-tags {
    margin-bottom: 22px;
}

.player-card {
    overflow: hidden;
    padding: 18px;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.player-title-row h2 {
    margin: 0;
    font-size: 24px;
}

.player-title-row span {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 999px;
    padding: 6px 13px;
    font-weight: 900;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
    border: 0;
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 50%;
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
    font-size: 34px;
    transform: translateX(3px);
}

.play-overlay.is-hidden {
    display: none;
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-copy article {
    padding: 26px;
}

.detail-copy h2 {
    margin: 0 0 12px;
}

.detail-copy p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
}

.site-footer {
    margin-top: 54px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 20px 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
}

.site-footer p {
    margin: 14px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
}

.is-hidden {
    display: none !important;
}

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

    .split-section,
    .rank-page-layout,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .detail-poster {
        max-width: 360px;
    }
}

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

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 18px;
        background: var(--slate-900);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links a {
        padding: 12px 0;
    }

    .hero-slider {
        height: 72vh;
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 80px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band {
        margin-top: 0;
    }

    .search-band-inner,
    .section-heading,
    .home-search,
    .player-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .overview-grid,
    .detail-copy {
        grid-template-columns: 1fr 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .nav-inner {
        padding: 0 14px;
    }

    .logo,
    .footer-logo {
        font-size: 18px;
    }

    .content-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .movie-grid,
    .feature-grid,
    .category-grid,
    .overview-grid,
    .detail-copy,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-cover {
        aspect-ratio: 16 / 9;
    }

    .page-hero-slim {
        padding: 54px 0;
    }

    .rank-item {
        grid-template-columns: 30px 52px 1fr;
    }

    .rank-score {
        display: none;
    }
}
