:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --amber-950: #451a03;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 16px 40px rgba(120, 53, 15, 0.14);
    --shadow-lg: 0 28px 70px rgba(120, 53, 15, 0.22);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, var(--gray-50) 42%, #ffffff 100%);
}

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: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: 0 8px 30px rgba(120, 53, 15, 0.10);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1280px;
    height: 70px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.logo {
    font-size: 24px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.34);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.nav-drop-button {
    border: 0;
    background: transparent;
    padding: 9px 12px;
    color: var(--gray-700);
    border-radius: 999px;
    font-weight: 650;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
    color: var(--amber-700);
    background: var(--amber-100);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    top: 44px;
    right: 0;
    width: 190px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--amber-100);
    display: none;
}

.nav-dropdown:hover .nav-drop-panel {
    display: grid;
    gap: 4px;
}

.nav-drop-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--gray-700);
}

.nav-drop-panel a:hover {
    color: var(--amber-700);
    background: var(--amber-50);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 2px solid var(--amber-200);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.top-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: none;
    padding: 10px 12px 10px 16px;
    background: transparent;
}

.top-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--amber-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--amber-900);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    padding: 16px 22px 22px;
    border-top: 1px solid var(--amber-100);
    background: #ffffff;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--amber-50);
    color: var(--gray-700);
    font-weight: 650;
}

.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
}

.section-head h1,
.section-head h2 {
    margin: 10px 0 6px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 740px;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.75;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #1f1306;
}

.hero-slider {
    position: relative;
    min-height: 650px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(21, 13, 5, 0.96) 0%, rgba(41, 26, 10, 0.82) 44%, rgba(21, 13, 5, 0.34) 100%),
        linear-gradient(0deg, rgba(31, 19, 6, 0.92), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 86px 22px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.58fr);
    gap: 44px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.hero-label {
    display: inline-flex;
    padding: 7px 14px;
    border: 1px solid rgba(252, 211, 77, 0.44);
    border-radius: 999px;
    color: var(--amber-200);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.text-button {
    color: var(--amber-700);
    background: var(--amber-100);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-panel {
    border-radius: 30px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
}

.hero-panel-caption {
    color: #ffffff;
    padding: 16px 8px 4px;
}

.hero-panel-caption strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.hero-panel-caption span {
    color: rgba(255, 255, 255, 0.72);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    right: calc((100% - min(1280px, 100%)) / 2 + 22px);
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 24px;
}

.quick-search-card {
    margin-top: -70px;
    position: relative;
    z-index: 8;
}

.search-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--amber-100);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.search-shell input {
    width: 100%;
    border: 2px solid var(--amber-100);
    border-radius: 18px;
    padding: 16px 18px;
    outline: none;
    background: #ffffff;
}

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

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

.category-tile {
    position: relative;
    min-height: 158px;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-sm);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.category-tile span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--amber-700);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(253, 230, 138, 0.70);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    display: block;
    position: relative;
    overflow: hidden;
    background: #1f1306;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 4 / 5.4;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

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

.movie-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
    margin: 10px 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--gray-100);
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-50);
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 700;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-sm);
}

.rank-item img {
    width: 76px;
    height: 92px;
    object-fit: cover;
    border-radius: 13px;
}

.rank-title {
    font-weight: 800;
    line-height: 1.45;
}

.rank-meta {
    color: var(--amber-700);
    font-weight: 800;
    white-space: nowrap;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 22px 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 22px 42px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--amber-100);
    background: #ffffff;
}

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

.detail-info {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-info .lead {
    margin: 0 0 20px;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 44px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.22));
    cursor: pointer;
}

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

.play-overlay span {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.40);
}

.content-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.article-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-sm);
    padding: 26px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 16px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid var(--amber-100);
    border-radius: 16px;
    padding: 13px 14px;
    background: #ffffff;
    outline: none;
}

.no-result {
    display: none;
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    color: var(--gray-600);
    border: 1px solid var(--amber-100);
}

.no-result.is-visible {
    display: block;
}

.pagination-note {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    color: var(--gray-600);
    background: #ffffff;
    border: 1px solid var(--amber-100);
    line-height: 1.7;
}

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 440px;
    color: var(--amber-200);
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--amber-300);
}

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

.footer-links a {
    color: var(--amber-200);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 22px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: var(--amber-300);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 88;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-panel {
        max-width: 360px;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 54px 18px 86px;
        align-content: center;
        gap: 26px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .hero-controls {
        left: 18px;
        right: auto;
        bottom: 26px;
    }

    .quick-search-card {
        margin-top: -44px;
        padding: 0 16px;
    }

    .search-shell {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .search-shell button {
        min-height: 48px;
    }

    .section-head {
        display: block;
    }

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

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

    .movie-title {
        font-size: 16px;
    }

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

    .rank-meta {
        grid-column: 2;
        white-space: normal;
    }

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

    .detail-info,
    .article-card,
    .side-card {
        padding: 20px;
        border-radius: 22px;
    }

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

@media (max-width: 480px) {
    .page-section {
        padding: 32px 16px;
    }

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

    .hero h1 {
        font-size: 36px;
    }

    .detail-hero,
    .player-section,
    .content-layout,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }
}
