:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #111827;
    --muted: #6b7280;
    --line: #f3e8d2;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #ea580c;
    --white: #ffffff;
    --black: #0f172a;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: transparent;
    background: linear-gradient(90deg, var(--amber-dark), var(--orange));
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.28);
    font-size: 15px;
}

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

.desktop-nav > a,
.nav-drop > button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    padding: 22px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-drop:hover > button {
    color: var(--amber-dark);
}

.nav-drop {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 170px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
}

.nav-drop-menu a:hover {
    color: var(--amber-dark);
    background: #fff7ed;
}

.nav-search,
.mobile-search,
.big-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.search-page-form input,
.category-filter,
.filter-panel select {
    width: 100%;
    border: 1px solid #f3d7ad;
    outline: none;
    border-radius: 999px;
    background: #ffffff;
    padding: 12px 16px;
    color: #111827;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.nav-search input {
    width: 240px;
    padding: 10px 15px;
}

.nav-search button,
.mobile-search button,
.big-search button,
.search-page-form button,
.btn-primary {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 12px 22px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.nav-search button {
    padding: 10px 16px;
}

.btn-primary:hover,
.nav-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #ffffff;
    padding: 12px 22px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--amber-dark);
    font-size: 28px;
}

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

.mobile-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #374151;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100% - 1180px) / 2));
    width: min(680px, calc(100% - 64px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

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

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 24px;
    color: #f3f4f6;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 30px;
    color: #e5e7eb;
}

.hero-meta span,
.detail-meta span,
.detail-meta a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-dots button {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.home-search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 28px;
    border: 1px solid #fde7bd;
    border-radius: 26px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.home-search-band h2,
.section-head h2,
.rank-copy h2,
.page-title-card h1,
.detail-content h1 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.home-search-band h2 {
    font-size: clamp(24px, 4vw, 38px);
}

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

.main-shell {
    padding: 70px 0;
}

.content-section {
    margin-bottom: 72px;
}

.soft-panel {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.94));
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

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

.section-head h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.section-more {
    color: var(--amber-dark);
    font-weight: 800;
    white-space: nowrap;
}

.grid-cards,
.featured-grid,
.category-grid,
.top-three {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.15);
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.movie-card:hover .card-media img {
    transform: scale(1.06);
}

.card-badge {
    display: inline-flex;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.card-media .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: 0.2s ease;
}

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

.card-info {
    padding: 18px;
}

.card-info h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-info p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #6b7280;
    font-size: 14px;
}

.movie-card-featured {
    position: relative;
}

.movie-card-featured .card-media {
    aspect-ratio: 16 / 10;
}

.rank-strip {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    margin-bottom: 72px;
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(135deg, #7c2d12, #ea580c 58%, #f59e0b);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-copy h2 {
    margin-bottom: 22px;
    color: #ffffff;
    font-size: clamp(28px, 3.4vw, 46px);
}

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

.rank-list a,
.ranking-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.14);
    transition: 0.2s ease;
}

.rank-list a:hover,
.ranking-row:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(4px);
}

.rank-list strong,
.ranking-row strong {
    color: #fde68a;
    font-size: 22px;
}

.rank-list em,
.ranking-row em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.page-hero-shell {
    padding: 46px 0 80px;
}

.page-title-card {
    margin-bottom: 32px;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 54px);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.page-title-card h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-title-card p {
    max-width: 850px;
    margin: 0;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    border: 1px solid #fde7bd;
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    margin-bottom: 18px;
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.75;
}

.category-card em {
    color: var(--amber-dark);
    font-style: normal;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-movie-grid {
    align-items: start;
}

.top-three {
    margin-bottom: 30px;
}

.ranking-table {
    display: grid;
    gap: 12px;
}

.ranking-row {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ranking-row strong {
    color: var(--amber-dark);
}

.ranking-row em {
    color: #6b7280;
}

.search-page-form {
    margin-top: 26px;
    max-width: 700px;
}

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

.search-empty {
    grid-column: 1 / -1;
    border-radius: 24px;
    padding: 36px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-main {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 60%, #fff7ed 100%);
}

.detail-shell {
    padding: 34px 0 80px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--amber-dark);
    font-weight: 800;
}

.player-card {
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: 0.22s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    font-size: 38px;
    padding-left: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.movie-player.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: 0.2s ease;
}

.movie-player:hover .player-controls,
.movie-player:focus-within .player-controls {
    opacity: 1;
}

.player-controls button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    margin-bottom: 60px;
}

.detail-content,
.related-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.detail-content {
    padding: clamp(24px, 4vw, 42px);
}

.detail-content h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 48px);
}

.detail-meta {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1e2c8;
}

.detail-meta span,
.detail-meta a {
    color: #6b7280;
    background: #fff7ed;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-list span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 700;
}

.detail-content section {
    margin-top: 30px;
}

.detail-content h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-content p {
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.lead-text {
    color: #111827 !important;
    font-size: 19px !important;
    font-weight: 700;
}

.review-box {
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.related-panel {
    align-self: start;
    position: sticky;
    top: 94px;
    padding: 22px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.list-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.list-card img {
    width: 118px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.list-card strong {
    display: block;
    color: #111827;
    line-height: 1.4;
}

.list-card em {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

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

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 40px;
    padding: 48px 0;
}

.brand-footer {
    margin-bottom: 18px;
}

.footer-brand p,
.site-footer li a,
.footer-bottom {
    color: #d1d5db;
}

.footer-brand p {
    max-width: 620px;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 16px;
    text-align: center;
}

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

    .menu-toggle {
        display: block;
    }

    .home-search-band,
    .rank-strip,
    .detail-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .featured-grid,
    .top-three,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 560px;
        height: 78vh;
    }

    .hero-content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .home-search-band,
    .page-title-card,
    .soft-panel,
    .rank-strip {
        padding: 22px;
        border-radius: 22px;
    }

    .grid-cards,
    .featured-grid,
    .top-three,
    .category-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

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

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

    .rank-list a,
    .ranking-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-list em,
    .ranking-row em {
        grid-column: 2;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .player-controls {
        opacity: 1;
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-wrap: wrap;
    }
}
