:root {
    --bg: #fffaf3;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #eadfce;
    --amber: #b45309;
    --amber-dark: #92400e;
    --amber-soft: #fff3df;
    --gold: #f59e0b;
    --shadow: 0 22px 70px rgba(99, 61, 19, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #fffaf3 0%, #fff 34rem);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 243, 0.9);
    border-bottom: 1px solid rgba(180, 83, 9, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #2a1806;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #f59e0b);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.34);
}

.desktop-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.search-entry {
    border-radius: 999px;
    padding: 10px 14px;
    color: #544638;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.search-entry:hover {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.14);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--amber-soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(99, 61, 19, 0.12);
}

.mobile-nav a {
    display: block;
    padding: 11px 10px;
    border-radius: 12px;
    color: #3f3429;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: var(--amber-soft);
    color: var(--amber-dark);
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 650px;
    margin: 30px auto 36px;
    border-radius: 36px;
    overflow: hidden;
    background: #1b130d;
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 34%, rgba(245, 158, 11, 0.38), transparent 22rem),
        linear-gradient(90deg, rgba(17, 11, 7, 0.92) 0%, rgba(17, 11, 7, 0.74) 45%, rgba(17, 11, 7, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 54px;
    padding: 70px;
    color: #ffffff;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 10px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fbbf24;
}

.hero-line {
    max-width: 690px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

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

.hero-tags span,
.detail-tags span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    color: #7c3b04;
    background: #fff7ed;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-actions,
.section-head,
.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    background: #ffffff;
    color: #4b2a07;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    transition: 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

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

.btn.small {
    min-height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--amber);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #2a1806;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.94);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 70px;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fbbf24;
}

.home-search-panel,
.section-block,
.page-main,
.detail-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 45px rgba(99, 61, 19, 0.08);
}

.home-search-panel h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.06em;
}

.home-search-panel p,
.page-hero p,
.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.quick-search,
.inline-filter {
    display: flex;
    gap: 10px;
}

.quick-search input,
.quick-search button,
.inline-filter input,
.inline-filter select {
    min-height: 48px;
    border: 1px solid #ead6b8;
    border-radius: 15px;
    padding: 0 16px;
    font: inherit;
}

.quick-search input,
.inline-filter input {
    flex: 1;
    min-width: 0;
    background: #ffffff;
}

.quick-search button {
    border: 0;
    color: #ffffff;
    background: var(--amber);
    font-weight: 900;
    cursor: pointer;
}

.section-block {
    margin-top: 54px;
}

.section-block.no-top {
    margin-top: 26px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head a {
    color: var(--amber);
    font-weight: 900;
}

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

.category-tile {
    min-height: 158px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 24px;
    padding: 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 8rem),
        linear-gradient(135deg, #7c2d12, #d97706);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.22);
    transition: 0.24s ease;
}

.category-tile:nth-child(2n) {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 8rem),
        linear-gradient(135deg, #78350f, #f59e0b);
}

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

.category-tile span {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(99, 61, 19, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(99, 61, 19, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #2a1806;
}

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

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

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 5px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    min-height: 42px;
    margin-top: 8px;
}

.mini-tags {
    margin-top: 12px;
}

.mini-tags span {
    padding: 4px 8px;
    font-size: 12px;
}

.amber-soft,
.category-band {
    border-radius: 30px;
    padding: 32px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px;
    background: #ffffff;
}

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

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.page-main,
.detail-main {
    padding: 36px 0 70px;
}

.page-hero {
    border-radius: 32px;
    padding: 48px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.4), transparent 20rem),
        linear-gradient(135deg, #2a1806, #7c2d12 58%, #b45309);
    box-shadow: var(--shadow);
}

.page-hero.slim {
    max-width: none;
}

.page-hero .eyebrow {
    color: #fbbf24;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-hero .inline-filter,
.global-filter {
    margin-top: 26px;
    max-width: 800px;
}

.category-overview-list {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(99, 61, 19, 0.08);
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.compact-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff7ed;
}

.compact-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.compact-card span {
    display: block;
    padding: 10px;
}

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

.compact-card em {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.channel-links {
    margin-top: 42px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.channel-links h2 {
    margin: 0 0 12px;
}

.channel-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-links a {
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--amber-dark);
    background: var(--amber-soft);
    font-weight: 900;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(99, 61, 19, 0.08);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

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

.ranking-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--amber);
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    border-radius: 34px;
    padding: 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.42), transparent 22rem),
        linear-gradient(135deg, #251304, #78350f 64%, #b45309);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-info .eyebrow {
    color: #fbbf24;
}

.detail-info h1 {
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
}

.detail-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 11px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.13);
}

.detail-info .btn {
    margin-top: 26px;
}

.player-section,
.detail-content,
.related-block {
    margin-top: 36px;
}

.player-section h2,
.detail-content h2 {
    margin-top: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #0c0703;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

.player-overlay[hidden] {
    display: none;
}

.player-play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.detail-content article {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(99, 61, 19, 0.08);
}

.detail-content p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #1f1307;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
}

.footer-inner p {
    max-width: 520px;
    margin: 12px 0 0;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.08);
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 46px;
    }

    .hero-poster {
        display: none;
    }

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

    .home-search-panel,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: 560px;
        border-radius: 24px;
        margin-top: 18px;
    }

    .hero-content {
        min-height: 560px;
        padding: 30px 24px 76px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

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

    .hero-controls {
        left: 24px;
        bottom: 26px;
    }

    .home-search-panel,
    .page-hero,
    .detail-hero,
    .category-overview-card,
    .amber-soft,
    .category-band {
        padding: 22px;
        border-radius: 22px;
    }

    .quick-search,
    .inline-filter {
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .compact-grid,
    .ranking-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rank-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 2;
    }

    .ranking-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .detail-poster {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }
}
