:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --black: #020617;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
    --radius: 1.35rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--amber-50), var(--white) 30%, var(--slate-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.brand-text {
    color: #713f12;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 20px;
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 430px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    background: var(--white);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.08);
}

.top-search input,
.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-800);
    background: var(--white);
}

.top-search input {
    padding: 11px 14px 11px 18px;
}

.top-search button,
.quick-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    padding: 11px 18px;
    white-space: nowrap;
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    gap: 22px;
    color: #78350f;
    font-weight: 700;
    font-size: 15px;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber-600);
}

.menu-button {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    color: #78350f;
    background: var(--amber-100);
    border-radius: 12px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 10px;
    color: #78350f;
    font-weight: 700;
}

.mobile-nav.is-open {
    display: grid;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.35), transparent 34%), linear-gradient(135deg, #111827, #451a03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 88px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(252, 211, 77, 0.35);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    font-size: 13px;
}

.eyebrow.dark {
    color: #92400e;
    background: var(--amber-100);
    border-color: rgba(217, 119, 6, 0.18);
}

.hero-content h1 {
    max-width: 780px;
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
    color: #92400e;
    background: var(--amber-100);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    padding: 0 24px;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    padding: 0 22px;
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--amber-400);
}

.quick-panel,
.page-section,
.sub-page,
.detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding: 30px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-copy h2,
.section-heading h2,
.sub-hero h1,
.category-hero h1,
.detail-info h1 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.quick-copy h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.quick-copy p,
.section-heading p,
.sub-hero p,
.category-hero p,
.detail-line,
.movie-line,
.ranking-body p,
.site-footer p {
    color: var(--slate-600);
}

.quick-search {
    align-self: center;
    display: flex;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.quick-search input {
    padding: 15px 18px;
}

.page-section {
    padding: 64px 0 0;
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-heading.small h2 {
    font-size: 28px;
}

.section-more,
.text-button {
    color: var(--amber-600);
    background: var(--amber-100);
    padding: 10px 16px;
    font-weight: 900;
    border-radius: 999px;
}

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

.category-tile,
.category-card-large {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.ranking-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-card-head span {
    color: var(--slate-900);
    font-size: 20px;
    font-weight: 950;
}

.category-tile span,
.category-card-head strong {
    color: var(--slate-600);
    font-size: 14px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.38), transparent 36%), linear-gradient(135deg, #111827, #78350f);
}

.poster-link img,
.ranking-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    color: #78350f;
    background: var(--amber-100);
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 900;
    font-size: 12px;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.movie-title {
    color: var(--slate-900);
    font-weight: 950;
    font-size: 18px;
    line-height: 1.3;
}

.movie-title:hover,
.ranking-title:hover,
.category-samples a:hover {
    color: var(--amber-600);
}

.movie-meta {
    color: #92400e;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.movie-line {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 16px;
    background: var(--slate-50);
}

.rank-item span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 50%;
    font-weight: 950;
}

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

.rank-item strong {
    color: var(--slate-900);
}

.rank-item em {
    color: var(--slate-600);
    font-size: 12px;
    font-style: normal;
}

.sub-page,
.detail-page {
    padding: 32px 0 72px;
}

.sub-hero,
.category-hero,
.detail-hero {
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    box-shadow: var(--soft-shadow);
}

.sub-hero {
    padding: clamp(30px, 6vw, 68px);
}

.sub-hero h1,
.category-hero h1,
.detail-info h1 {
    font-size: clamp(36px, 5vw, 60px);
}

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

.category-card-large {
    min-height: 220px;
}

.category-card-head {
    display: grid;
    gap: 8px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: end;
}

.category-samples a {
    color: #92400e;
    background: var(--amber-100);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--slate-600);
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-600);
    font-weight: 800;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    padding: clamp(28px, 5vw, 54px);
}

.category-hot-list {
    display: grid;
    gap: 9px;
}

.category-hot-list a {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--white);
}

.category-hot-list span {
    color: var(--amber-600);
    font-weight: 900;
}

.category-hot-list strong {
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list {
    display: grid;
    gap: 18px;
    padding-top: 32px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 90px 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #78350f);
}

.ranking-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 50%;
    font-weight: 950;
}

.ranking-title {
    color: var(--slate-900);
    font-weight: 950;
    font-size: 22px;
}

.ranking-body p {
    margin: 6px 0 12px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px;
    gap: 12px;
    padding: 18px;
    margin-top: 24px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 32px;
    padding: clamp(22px, 4vw, 42px);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    background: linear-gradient(135deg, #111827, #78350f);
    box-shadow: var(--shadow);
}

.detail-line {
    max-width: 790px;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    color: var(--slate-700);
    background: var(--slate-100);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
}

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

.player-section {
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: var(--black);
    box-shadow: var(--shadow);
}

.video-node {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.42);
    font-size: 34px;
    text-indent: 5px;
}

.player-shell.is-active .play-layer {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 34px;
}

.detail-content article {
    padding: 28px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
}

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--slate-900);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.site-footer strong {
    display: block;
    color: var(--amber-400);
    margin-bottom: 12px;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 7px 0;
}

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

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-carousel {
        min-height: 540px;
    }

    .quick-panel,
    .two-column,
    .category-hero,
    .detail-hero,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 640px) {
    .nav-shell {
        height: 66px;
    }

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

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

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

    .quick-panel {
        padding: 20px;
    }

    .quick-search,
    .section-heading,
    .ranking-row {
        align-items: stretch;
        flex-direction: column;
    }

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .compact-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 74px 1fr;
    }

    .ranking-cover {
        grid-row: span 2;
    }

    .ranking-num,
    .ranking-row .text-button {
        display: none;
    }

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