:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8d4;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--amber-dark));
    box-shadow: 0 12px 35px rgba(146, 64, 14, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fffbeb;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.header-search input, .mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
}

.header-search button, .mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(124, 45, 18, 0.42);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 16px 18px;
    background: rgba(180, 83, 9, 0.95);
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-link {
    padding: 10px 0;
    color: #ffffff;
    font-weight: 700;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    width: 100%;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 1180px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--amber-dark);
}

.hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    font-weight: 900;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 800;
}

.hero-desc {
    max-width: 670px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-btn, .ghost-btn, .card-action, .section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 13px 24px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange-dark));
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.35);
}

.primary-btn:hover, .card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(217, 119, 6, 0.42);
}

.primary-btn.wide {
    width: fit-content;
    min-width: 150px;
}

.ghost-btn {
    padding: 12px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(5px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

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

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

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

.hero-search-box {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    width: min(980px, calc(100% - 32px));
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

.hero-search-box form {
    display: flex;
    gap: 10px;
}

.hero-search-box input {
    flex: 1;
    border: 1px solid #fde68a;
    outline: 0;
    border-radius: 16px;
    padding: 14px 16px;
    color: #374151;
    background: #ffffff;
}

.hero-search-box button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    cursor: pointer;
}

.hero-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-chips a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 13px;
    font-weight: 700;
}

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

.section-light {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #fffbeb 100%);
}

.section-warm {
    background: linear-gradient(90deg, #fef3c7 0%, #ffedd5 100%);
}

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

.section-head.tight {
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.section-more {
    color: var(--amber-dark);
    font-size: 15px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(124, 45, 18, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #111827);
}

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

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

.poster-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta, .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span, .detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--amber-dark);
}

.movie-card p {
    min-height: 70px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 16px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 700;
}

.card-action {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange-dark));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 52px rgba(194, 65, 12, 0.26);
}

.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-card strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    line-height: 1.7;
}

.category-card em {
    font-style: normal;
    font-weight: 800;
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-panel.big {
    position: static;
}

.ranking-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

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

.rank-list.slim {
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 58px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ffedd5;
    transform: translateX(3px);
}

.rank-num {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-dark);
    font-size: 13px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.rank-copy {
    min-width: 0;
}

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

.rank-copy strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.rank-copy em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-score {
    color: var(--amber-dark);
    font-weight: 900;
}

.page-hero {
    padding: 84px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange-dark));
}

.page-hero.compact-hero {
    padding: 64px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 900;
}

.page-hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.filter-bar, .search-tools {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    margin-bottom: 28px;
}

.search-tools {
    grid-template-columns: 1fr 180px 180px 160px;
}

.filter-bar input, .filter-bar select, .search-tools input, .search-tools select {
    width: 100%;
    border: 1px solid #fde68a;
    border-radius: 16px;
    outline: 0;
    padding: 13px 15px;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(124, 45, 18, 0.06);
}

.ranking-wide {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

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

.detail-hero {
    padding: 42px 0;
    background: radial-gradient(circle at top left, #f97316, #111827 46%, #0f172a 100%);
}

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

.player-card, .detail-info, .detail-box {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.player-card {
    padding: 12px;
}

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

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

.player-shade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    z-index: 3;
}

.player-shade.is-hidden {
    display: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    text-indent: 5px;
}

.detail-info {
    padding: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.18;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.detail-tags {
    margin-top: 14px;
}

.detail-content {
    display: grid;
    gap: 24px;
}

.detail-box {
    padding: 28px;
}

.detail-box h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-box p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

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

.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #f59e0b;
}

.hidden-item {
    display: none !important;
}

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

    .two-column, .ranking-wide, .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        justify-content: flex-start;
        padding-top: 88px;
    }

    .hero-search-box form, .mobile-search {
        flex-direction: column;
    }

    .hero-search-box button {
        min-height: 46px;
    }

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

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

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

    .movie-grid, .compact-grid, .ranking-grid, .category-grid, .overview-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 44px 0;
    }

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

    .rank-score {
        display: none;
    }

    .detail-info, .detail-box {
        padding: 20px;
    }
}
