:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fff1e6;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.24);
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --dark: #111827;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(124, 45, 18, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(12deg) scale(1.06);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 9px 2px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
    color: #ffedd5;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    padding: 12px;
    display: grid;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.94);
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.nav-dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(280px, 28vw);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 82px 10px 16px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    right: 4px;
    border: 0;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--red);
    font-weight: 800;
    background: #ffffff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-bg {
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(249, 115, 22, 0.44), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.34), transparent 30%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.92));
}

.hero-content,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero h1,
.hero h2,
.sub-hero h1,
.detail-info h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 78px);
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.hero h2 + p,
.hero h1 + h2 + p,
.hero-content p {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

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

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.34);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.hero-cover {
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-cover img,
.poster-large img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.hero-prev {
    left: max(18px, calc((100vw - 1180px) / 2 - 74px));
}

.hero-next {
    right: max(18px, calc((100vw - 1180px) / 2 - 74px));
}

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

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

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    width: min(720px, calc(100% - 32px));
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 18px 45px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 850;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.section-heading a {
    color: var(--red);
    font-weight: 850;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(124, 45, 18, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #1f2937;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.32);
}

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

.movie-card strong {
    font-size: 17px;
    line-height: 1.3;
}

.movie-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.movie-brief {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span,
.detail-tags span,
.genre-strip span {
    color: #9a3412;
    background: #ffedd5;
}

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

.movie-card-compact {
    min-height: 138px;
    flex-direction: row;
}

.movie-card-compact .poster-wrap {
    width: 104px;
    flex: 0 0 104px;
}

.movie-card-compact .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-body {
    justify-content: center;
}

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

.category-card,
.channel-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.1);
    overflow: hidden;
}

.category-card-main,
.channel-card > a {
    display: grid;
    gap: 10px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.category-card-main strong,
.channel-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-card-main span,
.channel-card strong {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 550;
    line-height: 1.65;
}

.category-mini-list,
.channel-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px 24px 24px;
}

.channel-card li {
    list-style: none;
}

.category-mini-list a,
.channel-card li a {
    color: #7c2d12;
    font-weight: 700;
}

.sub-hero {
    padding: 76px 0 36px;
}

.sub-hero h1 {
    color: var(--dark);
    font-size: clamp(36px, 6vw, 64px);
}

.sub-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 160px 160px 160px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(124, 45, 18, 0.1);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: #111827;
    background: #fff7ed;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.38), transparent 32%), linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.92));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    min-height: 560px;
    padding: 70px 0;
}

.poster-large {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 780;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.detail-tags {
    margin: 18px 0 28px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.26);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #000000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
    object-fit: cover;
    filter: brightness(0.62) saturate(1.08);
}

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

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 22px 45px rgba(239, 68, 68, 0.42);
    transform: translate(-50%, -50%);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(124, 45, 18, 0.1);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
}

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

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

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 620px;
}

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

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

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

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

    .hero-slide {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 84px 0 150px;
    }

    .hero-cover {
        width: min(240px, 58vw);
        justify-self: center;
        order: -1;
    }

    .hero-arrow {
        display: none;
    }

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

    .rank-grid,
    .full-rank,
    .category-grid,
    .channel-grid,
    .detail-layout,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .poster-large {
        width: min(260px, 68vw);
        justify-self: center;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }

    .footer-inner {
        display: grid;
    }

    .footer-inner nav {
        justify-content: flex-start;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero h1,
    .hero h2,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        min-height: 44px;
    }

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

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

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

    .movie-card-compact {
        min-height: 126px;
    }

    .movie-card-compact .poster-wrap {
        width: 88px;
        flex-basis: 88px;
    }

    .section {
        padding: 44px 0;
    }

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