:root {
    --amber: #d97706;
    --amber-strong: #f59e0b;
    --orange: #ea580c;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --panel: #ffffff;
    --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--amber);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--dark);
    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.10);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav > a,
.nav-dropdown > a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover,
.main-nav .active {
    color: var(--amber);
}

.nav-dropdown {
    position: relative;
}

.nav-panel {
    position: absolute;
    top: 34px;
    left: 0;
    width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #4b5563;
}

.nav-panel a:hover {
    color: var(--amber);
    background: #fffbeb;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.nav-search input {
    width: 220px;
    border: 0;
    outline: none;
    padding: 8px 10px 8px 14px;
    background: transparent;
}

.nav-search button,
.primary-btn,
.ghost-btn,
.large-search button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.primary-btn,
.large-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-strong), var(--orange));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.nav-search button:hover,
.primary-btn:hover,
.large-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

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

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

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

.hero-image,
.hero-image img {
    width: 100%;
    height: 100%;
}

.hero-image img {
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 44%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.hero-content > * {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-content .eyebrow {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.32);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    margin: 0 0 24px;
    color: #f3f4f6;
    font-size: 19px;
    line-height: 1.8;
}

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

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

.hero-meta span,
.detail-meta span,
.card-meta span,
.line-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.32);
}

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

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

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

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

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

.panel-section {
    margin-top: 72px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    box-shadow: 0 24px 60px rgba(217, 119, 6, 0.12);
}

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

.section-title h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-title a,
.filter-bar a,
.category-tile span,
.category-overview-card strong {
    color: var(--amber);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
}

.card-link {
    display: block;
    height: 100%;
}

.poster {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #fbbf24, #fb923c 45%, #111827 100%);
}

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

.movie-card-featured .poster {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img,
.category-tile:hover .poster img,
.line-card:hover .poster img {
    transform: scale(1.08);
}

.poster-caption {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: 900;
    opacity: 0;
}

.poster-empty .poster-caption {
    opacity: 1;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 10px 0 8px;
    min-height: 52px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body p {
    margin: 0;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta span {
    color: #92400e;
    background: #fef3c7;
}

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

.tag-row span,
.genre-row span,
.sample-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 26px;
    padding: 72px 0;
}

.rank-panel,
.category-panel,
.story-card,
.category-overview-card,
.player-section,
.detail-hero {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.compact-title {
    margin-bottom: 20px;
}

.compact-title h2 {
    font-size: 28px;
}

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

.line-card a {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

.line-card a:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.line-cover {
    height: 92px;
    border-radius: 14px;
}

.line-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.line-info p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-meta span {
    color: #6b7280;
    background: #ffffff;
}

.category-grid,
.overview-grid {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #fff7ed;
    transition: transform 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.tile-cover {
    height: 84px;
    border-radius: 14px;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

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

.page-hero {
    margin-top: 34px;
    padding: 52px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.45), transparent 36%), linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
}

.small-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
}

.small-hero p {
    max-width: 780px;
    margin: 0;
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card a {
    display: block;
    height: 100%;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-overview-card a:hover {
    transform: translateY(-5px);
}

.sample-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.filter-bar,
.search-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.filter-bar input,
.search-tools select,
.large-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.filter-bar input {
    max-width: 520px;
    padding: 13px 18px;
}

.search-tools select {
    padding: 12px 16px;
}

.search-summary {
    margin: 0 0 18px;
    color: #92400e;
    font-weight: 800;
}

.large-search {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin-top: 24px;
}

.large-search input {
    padding: 16px 20px;
}

.large-search button {
    min-width: 118px;
    padding: 0 24px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: stretch;
    padding: 28px;
}

.detail-cover {
    min-height: 430px;
    border-radius: 24px;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-one-line {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #92400e;
    background: #fef3c7;
}

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

.player-section {
    margin-top: 34px;
    padding: 20px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.78));
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-strong), var(--orange));
    box-shadow: 0 20px 48px rgba(217, 119, 6, 0.42);
}

.player-status {
    padding: 14px 4px 0;
    color: #6b7280;
    font-weight: 700;
}

.detail-content {
    width: 100%;
    padding: 34px 0 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px 18px;
    margin: 0 0 20px;
}

.meta-card dt {
    color: #6b7280;
    font-weight: 800;
}

.meta-card dd {
    margin: 0;
    color: #111827;
}

.meta-card a {
    color: var(--amber);
    font-weight: 800;
}

.genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-section {
    padding-top: 46px;
}

.site-footer {
    margin-top: 70px;
    color: #f9fafb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 26px;
    font-weight: 900;
}

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

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

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

.footer-links a {
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    text-align: center;
}

.is-filter-hidden {
    display: none !important;
}

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

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

    .detail-cover {
        min-height: 360px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        padding: 18px;
        background: #ffffff;
        box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        gap: 16px;
    }

    .nav-panel {
        position: static;
        width: auto;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        background: #fff7ed;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-slider {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        padding: 0 14px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .hero-control {
        display: none;
    }

    .section-title,
    .filter-bar,
    .large-search,
    .search-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .featured-grid,
    .overview-grid,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

    .movie-grid,
    .featured-grid,
    .overview-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .panel-section,
    .page-hero,
    .detail-hero,
    .rank-panel,
    .category-panel,
    .story-card {
        padding: 22px;
        border-radius: 22px;
    }

    .line-card a,
    .category-tile {
        grid-template-columns: 1fr;
    }

    .line-cover,
    .tile-cover {
        height: 180px;
    }

    .hero-actions {
        display: grid;
    }

    .meta-card dl {
        grid-template-columns: 1fr;
    }
}
