:root {
    --page-bg: #fff7ed;
    --panel-bg: rgba(255, 255, 255, 0.88);
    --text-main: #2a1a0a;
    --text-muted: #7c5f45;
    --amber: #d97706;
    --orange: #ea580c;
    --gold: #f59e0b;
    --line: rgba(146, 64, 14, 0.16);
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf4 48%, #ffffff 100%);
    min-height: 100vh;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 251, 235, 0.86);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.26rem;
    background: linear-gradient(90deg, #b45309, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.footer-links a,
.footer-cats a,
.quick-links a {
    color: #7c2d12;
    border-radius: 999px;
    transition: 0.2s ease;
}

.site-nav a {
    padding: 10px 15px;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active,
.quick-links a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.22);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.8);
}

.hero {
    max-width: 1260px;
    margin: 24px auto 0;
    padding: 0 22px;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 36px;
    background: #2a1608;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
    background:
        linear-gradient(90deg, rgba(33, 18, 5, 0.92), rgba(86, 41, 8, 0.54), rgba(255, 160, 64, 0.12)),
        var(--hero-image) center / cover no-repeat;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 28rem),
        linear-gradient(0deg, rgba(17, 10, 4, 0.52), rgba(17, 10, 4, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 88px 72px;
    color: #fffaf0;
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero .eyebrow {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-content h1,
.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p {
    margin: 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: 1.14rem;
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-list span {
    color: #9a3412;
    background: rgba(255, 237, 213, 0.8);
}

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

.primary-button,
.ghost-button,
.small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 13px 22px;
    box-shadow: 0 14px 32px rgba(234, 88, 12, 0.28);
}

.ghost-button,
.small-link {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 12px 20px;
}

.hero .ghost-button {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.small-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(234, 88, 12, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    font-size: 2rem;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 48px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    transition: 0.2s ease;
}

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

.hero-panel {
    position: relative;
    z-index: 8;
    max-width: 1120px;
    margin: -48px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.hero-search,
.quick-links,
.filter-bar,
.article-card,
.standalone-card {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 45px rgba(120, 53, 15, 0.12);
    backdrop-filter: blur(16px);
}

.hero-search {
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.hero-search span {
    font-weight: 900;
    color: #7c2d12;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 999px;
    outline: none;
    color: #431407;
    background: rgba(255, 255, 255, 0.78);
    padding: 13px 16px;
}

.quick-links {
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
}

.quick-links a {
    padding: 10px 14px;
    background: rgba(255, 237, 213, 0.8);
    font-weight: 800;
}

.section-shell {
    max-width: 1260px;
    margin: 54px auto;
    padding: 0 22px;
}

.section-warm {
    padding-top: 38px;
    padding-bottom: 38px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.8), rgba(254, 215, 170, 0.34));
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(120, 53, 15, 0.1);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 54px rgba(120, 53, 15, 0.18);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.72), rgba(234, 88, 12, 0.28)),
        var(--poster-image) center / cover no-repeat;
}

.poster-frame::after,
.ranking-poster::after,
.category-card::after,
.video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(31, 14, 4, 0.72));
    pointer-events: none;
}

.card-type,
.card-score,
.rank-mark {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.card-type {
    left: 10px;
    top: 10px;
    color: #7c2d12;
    background: rgba(255, 251, 235, 0.9);
    padding: 5px 9px;
}

.card-score {
    right: 10px;
    top: 10px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.9);
    padding: 5px 9px;
}

.rank-mark {
    left: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

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

.movie-meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 1.03rem;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(67, 20, 7, 0.88), rgba(234, 88, 12, 0.5)),
        var(--poster-image) center / cover no-repeat;
    box-shadow: var(--shadow);
    transition: 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.01);
}

.category-card strong,
.category-card em,
.category-preview {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card strong {
    font-size: 1.6rem;
    font-weight: 950;
}

.category-card em {
    max-width: 330px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.7;
}

.category-preview {
    margin-top: 18px;
}

.category-preview span {
    display: block;
    width: fit-content;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    transition: 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(120, 53, 15, 0.12);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 950;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    width: 54px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.72), rgba(234, 88, 12, 0.28)),
        var(--poster-image) center / cover no-repeat;
}

.ranking-copy strong,
.ranking-copy em {
    display: block;
}

.ranking-copy strong {
    font-weight: 950;
}

.ranking-copy em,
.ranking-heat {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.86rem;
}

.ranking-heat {
    font-weight: 900;
    color: #c2410c;
}

.section-more {
    margin-top: 26px;
    text-align: center;
}

.page-hero {
    max-width: 1260px;
    margin: 24px auto 0;
    padding: 72px;
    border-radius: 36px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(67, 20, 7, 0.9), rgba(234, 88, 12, 0.55)),
        var(--poster-image, linear-gradient(135deg, #7c2d12, #f59e0b)) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.small-hero p,
.category-hero p {
    max-width: 820px;
}

.category-hero {
    position: relative;
    overflow: hidden;
}

.filter-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 0.5fr));
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
}

.sticky-filter {
    position: sticky;
    top: 80px;
}

.empty-state {
    margin: 26px 0 0;
    padding: 26px;
    border: 1px dashed rgba(217, 119, 6, 0.35);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 247, 237, 0.72);
}

.detail-wrap {
    max-width: 1260px;
    margin: 24px auto 0;
    padding: 0 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 18px 0;
    color: #9a3412;
    font-weight: 800;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.player-card,
.detail-info {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(135deg, rgba(33, 18, 5, 0.88), rgba(234, 88, 12, 0.18)),
        var(--poster-image) center / cover no-repeat;
}

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

.video-frame:not(.is-ready) video {
    opacity: 0;
}

.player-card.is-playing .video-frame video {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 48px rgba(234, 88, 12, 0.36);
    transform: translate(-50%, -50%);
    transition: 0.2s ease;
}

.play-overlay span {
    margin-left: 5px;
    font-size: 2.1rem;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-info {
    padding: 34px;
}

.detail-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.02rem;
}

.detail-meta {
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.8);
}

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

.article-card {
    padding: 28px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 950;
}

.article-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 2;
}

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

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

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.72);
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 36px 22px;
    display: grid;
    gap: 22px;
}

.footer-brand {
    color: #b45309;
    font-size: 1.25rem;
}

.footer-inner p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.footer-links a,
.footer-cats a {
    padding: 8px 12px;
    background: rgba(255, 237, 213, 0.76);
    font-weight: 800;
}

.copyright {
    font-size: 0.9rem;
}

[hidden] {
    display: none !important;
}

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        text-align: center;
        background: rgba(255, 237, 213, 0.7);
    }

    .hero-stage {
        min-height: 560px;
        border-radius: 28px;
    }

    .hero-content {
        padding: 68px 34px;
    }

    .hero-dots {
        left: 34px;
        bottom: 28px;
    }

    .hero-panel,
    .detail-grid,
    .article-section,
    .ranking-board,
    .ranking-board-wide {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        margin-left: 22px;
        margin-right: 22px;
        padding: 44px 28px;
    }

    .video-frame {
        min-height: 360px;
    }

    .sticky-filter {
        position: relative;
        top: auto;
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 1.08rem;
    }

    .hero,
    .section-shell,
    .detail-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 2.25rem;
    }

    .hero-arrow {
        display: none;
    }

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

    .ranking-item {
        grid-template-columns: 42px 52px minmax(0, 1fr);
    }

    .ranking-heat {
        display: none;
    }

    .detail-info {
        padding: 24px;
    }

    .play-overlay {
        width: 78px;
        height: 78px;
    }
}
