:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.10);
    --shadow-card: 0 14px 35px rgba(41, 37, 36, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--stone-50) 34%, #ffffff 100%);
    color: var(--stone-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

img {
    background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(253, 230, 138, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(120, 53, 15, 0.08);
}

.nav-bar {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.24);
}

.brand-text {
    font-size: 1.25rem;
}

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

.nav-link {
    color: var(--amber-900);
    font-weight: 650;
    font-size: 0.96rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--amber-200);
    background: rgba(255, 255, 255, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--amber-900);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--amber-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--amber-50);
}

main {
    min-height: 70vh;
}

.hero {
    width: min(1240px, calc(100% - 32px));
    margin: 26px auto 0;
}

.hero-viewport {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(41, 37, 36, 0.22);
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.75s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.48) 52%, rgba(28, 25, 23, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.40), transparent 48%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(32px, 8vw, 88px);
    max-width: 660px;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-200);
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-hero h1 {
    font-size: clamp(2.3rem, 6vw, 5.4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-hero p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.6vw, 1.24rem);
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
    border: 1px solid rgba(253, 230, 138, 0.38);
    background: rgba(255, 251, 235, 0.14);
    color: var(--amber-100);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    backdrop-filter: blur(8px);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.ghost-btn {
    color: var(--amber-100);
    border: 1px solid rgba(253, 230, 138, 0.5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.intro-band,
.content-section,
.filter-panel,
.detail-layout,
.watch-section {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--amber-200);
    box-shadow: var(--shadow-soft);
}

.intro-band h2,
.section-heading h2,
.detail-main-card h2,
.footer-col h2 {
    color: var(--stone-800);
    font-weight: 880;
    line-height: 1.15;
}

.intro-band h2,
.section-heading h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.intro-band p,
.section-heading p,
.movie-brief,
.category-overview-card p,
.detail-main-card p,
.footer-brand p {
    color: var(--stone-600);
    line-height: 1.76;
}

.quick-search {
    display: flex;
    overflow: hidden;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid var(--amber-200);
    background: var(--white);
}

.quick-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    outline: none;
    color: var(--stone-800);
}

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

.quick-search button {
    min-width: 112px;
    background: var(--amber-600);
    color: var(--white);
    font-weight: 800;
}

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

.section-link,
.text-link {
    color: var(--amber-700);
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
}

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

.category-card {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--white);
    box-shadow: var(--shadow-card);
}

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

.category-card:hover img,
.movie-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.06);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(28, 25, 23, 0.82));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 1;
}

.category-card strong {
    bottom: 70px;
    font-size: 1.35rem;
    font-weight: 880;
}

.category-card em {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.5;
    font-style: normal;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 229, 228, 0.95);
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--stone-200);
}

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.92);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-play {
    transform: scale(1);
    opacity: 1;
}

.movie-info {
    padding: 14px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--stone-500);
    font-size: 0.78rem;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: var(--amber-500);
}

.movie-title {
    margin: 0;
    color: var(--stone-800);
    font-size: 1rem;
    font-weight: 840;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title a:hover {
    color: var(--amber-700);
}

.movie-brief {
    min-height: 48px;
    margin-top: 8px;
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--amber-50);
    color: var(--amber-700);
    border: 1px solid var(--amber-200);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 26px auto 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.page-hero {
    padding: clamp(44px, 8vw, 96px);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(217, 119, 6, 0.82)), radial-gradient(circle at 78% 20%, rgba(252, 211, 77, 0.28), transparent 34%);
    color: var(--white);
}

.small-hero h1,
.ranking-hero h1 {
    max-width: 780px;
}

.filter-panel {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--amber-200);
    box-shadow: var(--shadow-soft);
}

.filter-title {
    margin-bottom: 16px;
    color: var(--stone-800);
    font-weight: 850;
    font-size: 1.1rem;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 14px;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: var(--stone-600);
    font-size: 0.86rem;
    font-weight: 700;
}

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

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

.filter-empty {
    margin-top: 18px;
    color: var(--amber-700);
    font-weight: 800;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-soft);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--stone-200);
}

.category-cover-stack img {
    aspect-ratio: 3 / 4;
}

.category-overview-card h2 {
    font-size: 1.35rem;
    font-weight: 880;
}

.category-overview-card p {
    margin: 10px 0 14px;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.detail-hero {
    min-height: 460px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.detail-hero-inner {
    width: min(760px, 100%);
    padding: clamp(34px, 7vw, 78px);
}

.detail-meta {
    margin-top: 22px;
}

.watch-section {
    scroll-margin-top: 90px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.video-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.20), rgba(0, 0, 0, 0.64));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), #ea580c);
    box-shadow: 0 22px 45px rgba(217, 119, 6, 0.45);
    font-size: 2.1rem;
}

.video-cover strong {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.detail-main-card,
.detail-side-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-soft);
}

.detail-main-card {
    padding: clamp(22px, 4vw, 38px);
}

.detail-main-card p {
    margin-top: 14px;
    font-size: 1.02rem;
}

.detail-main-card h2 {
    margin-top: 28px;
    font-size: 1.45rem;
}

.inline-heading h2 {
    margin-top: 0;
}

.detail-side-card {
    overflow: hidden;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-side-card dl {
    padding: 18px;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--stone-200);
}

.detail-side-card div:last-child {
    border-bottom: 0;
}

.detail-side-card dt {
    color: var(--stone-500);
    font-weight: 750;
}

.detail-side-card dd {
    color: var(--stone-800);
    font-weight: 760;
}

.tag-cloud {
    margin-top: 14px;
}

.tag-cloud span {
    color: var(--amber-700);
    background: var(--amber-50);
    border-color: var(--amber-200);
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap {
    aspect-ratio: 3 / 4;
}

.movie-card-compact .movie-brief {
    min-height: auto;
}

.site-footer {
    margin-top: 70px;
    background: var(--stone-800);
    color: var(--stone-300);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.1fr;
    gap: 36px;
}

.footer-logo {
    color: var(--amber-100);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--stone-400);
}

.footer-col h2 {
    color: var(--amber-100);
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-col ul {
    display: grid;
    gap: 9px;
}

.footer-col a {
    color: var(--stone-300);
}

.footer-col a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    border-top: 1px solid rgba(231, 229, 228, 0.12);
    padding: 18px;
    text-align: center;
    color: var(--stone-500);
    font-size: 0.9rem;
}

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

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

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

    .detail-side-card {
        max-width: 360px;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-viewport,
    .hero-image {
        min-height: 500px;
    }

    .intro-band,
    .filter-controls,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .hero,
    .intro-band,
    .content-section,
    .filter-panel,
    .detail-layout,
    .watch-section,
    .page-hero,
    .detail-hero {
        width: min(100% - 22px, 1240px);
    }

    .hero-viewport,
    .page-hero,
    .detail-hero,
    .video-shell {
        border-radius: 22px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 54px;
    }

    .hero h1,
    .hero h2,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 2.25rem;
    }

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

    .movie-info {
        padding: 11px;
    }

    .movie-brief {
        display: none;
    }

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

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

    .play-ring {
        width: 68px;
        height: 68px;
        font-size: 1.6rem;
    }
}
