:root {
    color-scheme: light;
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --rose-700: #be123c;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 28px rgba(120, 53, 15, 0.13);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--amber-50), #ffffff 34%, #f8fafc 100%);
    color: var(--slate-800);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), var(--amber-700), var(--amber-950));
    color: var(--white);
    box-shadow: 0 10px 32px rgba(69, 26, 3, 0.32);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, var(--amber-500));
    color: var(--amber-950);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 20px rgba(0, 0, 0, 0.16);
}

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

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ed;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--amber-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 70px max(24px, calc((100vw - 1240px) / 2)) 88px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 1.1s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.24), transparent 34%), radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 28%);
    pointer-events: none;
}

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

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-600);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero .eyebrow,
.page-hero .eyebrow,
.player-section .eyebrow {
    color: #fed7aa;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 26px;
    color: #ffedd5;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff7ed;
    font-size: 0.85rem;
    font-weight: 700;
}

.tag-row span,
.detail-meta span {
    background: #fff7ed;
    color: var(--amber-800);
}

.tag-row.large span {
    padding: 7px 12px;
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 22px;
    background: var(--white);
    color: var(--amber-900);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 16px;
}

.ghost-btn {
    min-height: 46px;
    padding: 0 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    background: rgba(120, 53, 15, 0.28);
}

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

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

.home-search,
.section-wrap,
.split-section,
.page-main,
.detail-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 28px;
    padding: 34px;
    margin-top: -52px;
    position: relative;
    z-index: 6;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-search h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
    margin: 0;
    color: var(--slate-800);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-search h2,
.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.quick-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
}

.quick-search input,
.filter-field input,
.filter-field select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: var(--white);
    color: var(--slate-800);
    outline: none;
}

.quick-search input {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    background: transparent;
}

.quick-search button {
    min-width: 96px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.section-wrap {
    padding: 72px 0;
}

.no-pad-top {
    padding-top: 24px;
}

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

.section-head.slim {
    margin-bottom: 20px;
}

.section-head.dark h2 {
    color: var(--white);
}

.text-link {
    color: var(--amber-700);
    font-weight: 800;
}

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

.category-chips a {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #fed7aa;
    color: var(--amber-900);
    font-weight: 900;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.cover-type,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.cover-type {
    right: 12px;
    padding: 6px 10px;
    background: rgba(2, 6, 23, 0.62);
}

.rank-badge {
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    background: var(--rose-700);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--amber-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-info h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.movie-info p {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 0.92rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    padding: 0 0 78px;
}

.latest-panel,
.rank-panel,
.category-overview-card,
.filter-panel,
.content-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.latest-panel,
.rank-panel {
    padding: 28px;
}

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

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

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

.mini-card {
    position: relative;
    min-height: 104px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 6px 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #ffedd5;
    overflow: hidden;
}

.mini-card img {
    grid-row: 1 / span 2;
    width: 74px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card span:not(.mini-rank) {
    align-self: end;
    font-weight: 850;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card em {
    align-self: start;
    color: var(--slate-600);
    font-style: normal;
    font-size: 0.84rem;
}

.mini-rank {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--rose-700);
    color: var(--white);
    font-weight: 900;
    font-size: 0.82rem;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    margin: 34px 0 28px;
    padding: 54px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--amber-900), var(--amber-700), var(--slate-900));
    color: var(--white);
    box-shadow: var(--shadow);
}

.page-hero.compact h1 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p:last-child {
    max-width: 840px;
    margin: 0;
    color: #ffedd5;
    font-size: 1.08rem;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

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

.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 2rem;
}

.category-overview-head p:last-child {
    margin: 0;
    color: var(--slate-600);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 0.7fr));
    gap: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--slate-700);
    font-weight: 800;
    font-size: 0.9rem;
}

.filter-field input,
.filter-field select {
    height: 44px;
    padding: 0 12px;
}

.no-result {
    margin: 28px 0 0;
    padding: 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: #fff7ed;
    color: var(--amber-900);
    font-weight: 800;
}

.detail-main {
    padding: 28px 0 72px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 60px rgba(69, 26, 3, 0.22);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4.6vw, 4.5rem);
}

.lead {
    margin: 0 0 20px;
    color: var(--slate-700);
    font-size: 1.18rem;
}

.detail-copy .primary-btn {
    margin-top: 26px;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
    color: var(--white);
}

.player-section {
    margin: 32px 0;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--slate-950), var(--amber-950));
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--amber-800);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid var(--amber-800);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 28px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 1.7rem;
}

.content-card p {
    margin: 0;
    color: var(--slate-700);
    white-space: pre-line;
}

.content-card.amber {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
}

.related-wrap {
    width: 100%;
}

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

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand p,
.footer-column p {
    color: #cbd5e1;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1.05rem;
}

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

.footer-column a:hover {
    color: #fbbf24;
}

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

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 44px 22px 90px;
    }

    .hero-poster {
        width: min(260px, 80vw);
        transform: rotate(0deg);
    }

    .home-search,
    .split-section,
    .detail-content,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .home-search {
        margin-top: 18px;
        padding: 22px;
    }

    .quick-search {
        flex-direction: column;
    }

    .quick-search button {
        min-height: 44px;
    }

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

    .mini-grid,
    .mini-grid.four,
    .category-chips,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 34px 22px;
    }

    .detail-hero {
        padding: 22px;
    }

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

@media (max-width: 520px) {
    .header-inner,
    .home-search,
    .section-wrap,
    .split-section,
    .page-main,
    .detail-main,
    .footer-inner {
        width: min(100% - 24px, 1240px);
    }

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

    .hero h1 {
        font-size: 2.55rem;
    }

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

    .movie-cover img {
        aspect-ratio: 16 / 10;
    }

    .detail-copy h1 {
        font-size: 2.25rem;
    }

    .player-section,
    .content-card,
    .latest-panel,
    .rank-panel {
        padding: 18px;
    }
}
