:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.28);
    --orange: #ea580c;
    --amber: #f59e0b;
    --amber-dark: #b45309;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(124, 45, 18, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-brand {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--orange), var(--amber-dark));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 146, 60, 0.14);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #7c2d12;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #7c2d12;
}

.hero-viewport {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 22%), radial-gradient(circle at 82% 44%, rgba(255, 255, 255, 0.14), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.64fr);
    align-items: center;
    gap: 52px;
    min-height: 680px;
    padding: 86px 0 76px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    color: #7c2d12;
    background: rgba(255, 247, 237, 0.9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.hero p,
.page-hero p,
.detail-info-card p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: var(--orange);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.ghost-button {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button:hover {
    color: var(--orange);
    background: var(--white);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 5;
    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.is-active {
    width: 34px;
    background: var(--white);
}

main {
    overflow: hidden;
}

.category-strip,
.library-section,
.ranking-section,
.article-section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: none;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.22);
}

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

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

.category-card,
.movie-card,
.content-article,
.player-card,
.detail-info-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-art {
    display: flex;
    align-items: flex-end;
    min-height: 152px;
    padding: 22px;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.category-art span {
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.category-body {
    padding: 20px;
}

.category-body h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.category-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.72;
}

.category-samples {
    display: grid;
    gap: 8px;
}

.category-samples a {
    color: var(--amber-dark);
    font-size: 14px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(120, 53, 15, 0.08);
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box span {
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 16px;
    color: #7c2d12;
    background: #ffedd5;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.2);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.movie-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.cover-label,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rank-badge {
    right: auto;
    left: 10px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 60px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.page-hero,
.detail-hero {
    color: var(--white);
    background: linear-gradient(120deg, #c2410c, #f59e0b);
}

.small-hero .site-shell {
    padding: 78px 0;
}

.small-hero h1 {
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 64px 0;
}

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

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.26);
    border: 0;
    cursor: pointer;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.36);
}

.play-circle {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding-left: 6px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 999px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
    font-size: 36px;
    transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
    transform: scale(1.08);
}

.detail-info-card {
    color: var(--text);
}

.detail-info-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.detail-info-body {
    padding: 22px;
}

.detail-info-body .eyebrow {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.detail-info-card h1 {
    color: #111827;
    font-size: 34px;
    letter-spacing: -0.04em;
    text-shadow: none;
}

.detail-info-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
}

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

.content-article h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
}

.content-article h2:not(:first-child) {
    margin-top: 34px;
}

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

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

.site-footer {
    color: #d1d5db;
    background: #111827;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    padding: 46px 0 24px;
}

.footer-grid p {
    max-width: 620px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 12px;
}

.footer-links a {
    padding: 10px 14px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.footer-bottom {
    padding: 20px 0 34px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-card].is-hidden {
    display: none;
}

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

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

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

    .detail-info-card {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 247, 237, 0.98);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero-viewport,
    .hero-content {
        min-height: 780px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 56px;
    }

    .hero-poster {
        max-width: 290px;
        margin: 0 auto;
    }

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

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

    .section-heading,
    .footer-grid {
        display: grid;
    }
}

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text em {
        display: none;
    }

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

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

    .hero-actions {
        display: grid;
    }

    .category-strip,
    .library-section,
    .ranking-section,
    .article-section {
        padding: 46px 0;
    }

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

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .detail-layout {
        padding: 34px 0;
    }

    .detail-info-card {
        grid-template-columns: 1fr;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
