:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --amber-950: #451a03;
    --text: #2f1a05;
    --muted: #7c5b28;
    --panel: rgba(255, 255, 255, 0.9);
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(252, 211, 77, 0.35), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf0 32%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.96));
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
    font-weight: 900;
}

.logo-text strong {
    display: block;
    color: var(--amber-900);
    font-size: 1.25rem;
    line-height: 1;
}

.logo-text span {
    color: var(--amber-700);
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--amber-900);
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--amber-600);
    transition: transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.14);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.98);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: var(--amber-900);
    font-weight: 700;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-950), var(--amber-800) 48%, var(--amber-600));
}

.hero-slide {
    display: none;
    min-height: 680px;
    isolation: isolate;
}

.hero-slide.active {
    display: block;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.05) contrast(1.08);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 72% 20%, rgba(252, 211, 77, 0.34), transparent 28rem),
        linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.72), rgba(69, 26, 3, 0.36));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 420px;
    align-items: center;
    gap: 46px;
    padding: 72px 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(252, 211, 77, 0.45);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

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

.hero h1 span {
    color: #fde68a;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 251, 235, 0.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--amber-900);
    background: rgba(254, 243, 199, 0.92);
    font-size: 0.88rem;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
}

.btn-light {
    color: var(--amber-900);
    background: rgba(255, 251, 235, 0.92);
}

.btn-outline {
    color: var(--amber-900);
    border: 1px solid rgba(217, 119, 6, 0.3);
    background: rgba(255, 255, 255, 0.72);
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}

.hero-card h2 {
    margin: 0 0 8px;
    color: #fff7ed;
    font-size: 1.45rem;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 251, 235, 0.8);
    line-height: 1.7;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #fcd34d;
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.35), rgba(255, 255, 255, 0.6));
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--amber-700);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2,
.page-title h1 {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    margin-top: -56px;
    position: relative;
    z-index: 5;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 16px;
    color: var(--amber-900);
    background: rgba(255, 251, 235, 0.72);
    padding: 0 15px;
    outline: none;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 28px;
    color: var(--amber-950);
    background:
        radial-gradient(circle at 88% 10%, rgba(252, 211, 77, 0.85), transparent 90px),
        linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.78));
    box-shadow: 0 18px 42px rgba(146, 64, 14, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.2);
}

.category-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.category-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.75;
}

.category-card span {
    color: var(--amber-700);
    font-weight: 900;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 40px rgba(146, 64, 14, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(69, 26, 3, 0.72);
    backdrop-filter: blur(10px);
    font-size: 0.76rem;
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.32);
}

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

.movie-card h3 {
    margin: 0;
    color: var(--amber-950);
    font-size: 1.06rem;
    line-height: 1.45;
}

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

.movie-card p {
    min-height: 54px;
    margin: 10px 0 14px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

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

.meta-row span,
.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--amber-800);
    background: rgba(254, 243, 199, 0.8);
    font-size: 0.76rem;
    font-weight: 800;
}

.page-hero {
    padding: 62px 0 52px;
    background:
        radial-gradient(circle at 82% 6%, rgba(252, 211, 77, 0.42), transparent 260px),
        linear-gradient(135deg, var(--amber-950), var(--amber-800));
    color: #fff7ed;
}

.page-title {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-title h1 {
    color: #fff7ed;
}

.page-title p {
    color: rgba(255, 251, 235, 0.82);
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.player-card,
.detail-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    background: #080501;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
}

.player-overlay.hidden {
    display: none;
}

.play-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.46);
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.07);
}

.player-body,
.detail-body {
    padding: 24px;
}

.detail-body h2,
.player-body h2 {
    margin: 0 0 14px;
    color: var(--amber-950);
    font-size: 1.55rem;
}

.detail-body p,
.player-body p {
    color: var(--muted);
    line-height: 1.9;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-200));
}

.info-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.14);
    color: var(--muted);
}

.info-list strong {
    color: var(--amber-900);
}

.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
}

.pagination-links a {
    flex: 1;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--amber-900);
    background: rgba(254, 243, 199, 0.72);
    font-weight: 900;
}

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

.footer-inner {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #fde68a;
}

.footer-inner p,
.footer-inner a {
    color: rgba(255, 251, 235, 0.78);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.copyright {
    border-top: 1px solid rgba(253, 230, 138, 0.2);
    padding: 18px 0 22px;
    text-align: center;
    color: rgba(255, 251, 235, 0.72);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    color: var(--muted);
    background: rgba(254, 243, 199, 0.45);
    text-align: center;
}

.empty-state.show {
    display: block;
}

@media (max-width: 1040px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 420px;
    }

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

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 52px 0 86px;
    }

    .hero-card {
        width: 100%;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 520px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .page-title,
    .hero-content {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-actions,
    .pagination-links {
        flex-direction: column;
    }

    .play-button {
        width: 76px;
        height: 76px;
        font-size: 1.8rem;
    }
}
