:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf3;
    --text: #2f2419;
    --muted: #7c6a5a;
    --line: rgba(146, 99, 49, 0.18);
    --amber: #f59e0b;
    --orange: #ea580c;
    --deep: #7c2d12;
    --shadow: 0 24px 60px rgba(124, 45, 18, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff8ef 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    color: #514133;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    transition: width 0.25s ease;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff0db;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--deep);
    border-radius: 99px;
}

.mobile-nav {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-nav a {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    color: #4f3f32;
    font-weight: 800;
}

.mobile-nav a:hover {
    background: #fff3df;
    color: var(--orange);
}

.hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: #1f1308;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 4s ease;
}

.hero-slide.is-active .hero-image {
    transform: scale(1.01);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(23, 13, 5, 0.88), rgba(23, 13, 5, 0.58) 48%, rgba(23, 13, 5, 0.14)),
        linear-gradient(0deg, rgba(23, 13, 5, 0.72), transparent 42%);
}

.hero-content {
    position: absolute;
    left: clamp(26px, 5vw, 70px);
    right: clamp(26px, 5vw, 70px);
    bottom: 86px;
    max-width: 680px;
    color: #ffffff;
}

.eyebrow,
.panel-label,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-content .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.chips span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fff3df;
    font-size: 12px;
    font-weight: 800;
}

.hero-chips span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

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

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 45, 18, 0.18);
}

.primary-button.full {
    width: 100%;
}

.hero-controls {
    position: absolute;
    left: clamp(22px, 5vw, 64px);
    right: clamp(22px, 5vw, 64px);
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.hero-panel {
    padding: 28px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel h2 {
    margin: 18px 0 10px;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.hero-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(234, 88, 12, 0.65);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.hero-search button {
    min-width: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
    cursor: pointer;
}

.mini-rank {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.section {
    width: min(1220px, calc(100% - 32px));
    margin: 54px auto;
}

.soft-section {
    padding: 36px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.055em;
}

.section-heading a {
    color: var(--orange);
    font-weight: 900;
}

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

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(124, 45, 18, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
}

.category-visual {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
}

.category-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover .category-visual img {
    transform: scale(1.08);
}

.category-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 11, 7, 0.72));
}

.category-visual span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card > div {
    padding: 20px;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff3df;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(146, 99, 49, 0.14);
    box-shadow: 0 18px 46px rgba(124, 45, 18, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 88, 12, 0.28);
    box-shadow: 0 26px 62px rgba(124, 45, 18, 0.16);
}

.movie-card.is-hidden {
    display: none;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(17, 11, 7, 0.62));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #b45309);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

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

.card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-card.is-small {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    border-radius: 20px;
}

.movie-card.is-small .poster {
    aspect-ratio: auto;
    min-height: 126px;
}

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

.movie-card.is-small .card-body h3 {
    margin: 6px 0;
    font-size: 16px;
}

.movie-card.is-small .card-body p,
.movie-card.is-small .chips {
    display: none;
}

.movie-card.is-small .play-mark {
    display: none;
}

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(34px, 6vw, 72px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at right, rgba(249, 115, 22, 0.26), transparent 28rem);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 760px;
    margin: 16px 0 12px;
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -0.075em;
    line-height: 1;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.page-hero.slim {
    padding: clamp(34px, 5vw, 60px);
}

.ranking-hero,
.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 28px;
}

.ranking-hero img,
.category-hero img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 24px 54px rgba(124, 45, 18, 0.18);
}

.filter-bar {
    margin-bottom: 24px;
    align-items: center;
}

.filter-bar select {
    max-width: 180px;
    cursor: pointer;
}

.filter-bar.wide input {
    min-height: 56px;
}

.breadcrumb {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-layout {
    width: min(1220px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-info {
    padding: clamp(28px, 5vw, 56px);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 66px);
    letter-spacing: -0.075em;
    line-height: 1.02;
}

.lead-text {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-chips {
    margin-bottom: 28px;
}

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

.meta-list div {
    padding: 18px;
    border-radius: 20px;
    background: #fff8ef;
    border: 1px solid var(--line);
}

.meta-list dt {
    margin-bottom: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.meta-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 42px auto 0;
}

.stream-player {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #140c07;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-el {
    width: 100%;
    height: 100%;
    display: block;
    background: #140c07;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(20, 12, 7, 0.14), rgba(20, 12, 7, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 42px);
    letter-spacing: -0.04em;
}

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

.detail-text {
    padding: clamp(28px, 5vw, 52px);
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-text h2 {
    margin: 0 0 16px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.detail-text h2 + p {
    margin-top: 0;
}

.detail-text p {
    color: #5f4b3c;
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0;
    background: #2a1a10;
    color: #fff7ed;
}

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

.footer-inner strong {
    font-size: 22px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: rgba(255, 247, 237, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 800;
}

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

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

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

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

    .ranking-hero img,
    .category-hero img {
        max-height: 340px;
    }
}

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

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .hero,
    .section,
    .page-hero,
    .breadcrumb,
    .detail-layout,
    .player-section {
        width: min(100% - 24px, 1220px);
    }

    .hero-slider {
        min-height: 520px;
        border-radius: 26px;
    }

    .hero-content {
        bottom: 92px;
    }

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

    .hero-content p {
        font-size: 15px;
    }

    .hero-panel,
    .soft-section,
    .page-hero,
    .detail-info,
    .detail-text,
    .stream-player {
        border-radius: 26px;
    }

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

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

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

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

    .detail-poster {
        position: static;
        max-width: 360px;
    }

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

    .footer-inner {
        align-items: start;
        flex-direction: column;
    }
}

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

    .movie-card.is-small {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
