:root {
    --bg: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --card: #ffffff;
    --orange: #f97316;
    --orange-dark: #c2410c;
    --amber: #f59e0b;
    --yellow: #facc15;
    --shadow: 0 20px 50px rgba(124, 45, 18, 0.16);
    --soft-shadow: 0 10px 28px rgba(124, 45, 18, 0.10);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.96), rgba(245, 158, 11, 0.96));
    color: #fff;
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.22);
    backdrop-filter: blur(10px);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--orange);
    box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.10);
}

.brand-text {
    font-size: 1.35rem;
    white-space: nowrap;
}

.header-search {
    flex: 1;
    max-width: 430px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 16px;
    background: transparent;
    color: var(--text);
}

.header-search button {
    border: 0;
    padding: 10px 18px;
    color: #fff;
    background: var(--orange);
    cursor: pointer;
}

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

.nav-link {
    font-weight: 700;
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.46), rgba(249, 115, 22, 0.20));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
    color: #fff;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 680px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.btn.primary,
.btn.full {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn.full {
    width: 100%;
    margin-top: 16px;
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.quick-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -42px;
}

.quick-panel a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.quick-panel strong {
    display: block;
    color: #9a3412;
    font-size: 1.12rem;
}

.quick-panel span {
    color: var(--muted);
}

.page-section {
    padding: 62px 0;
}

.subpage {
    min-height: 70vh;
}

.page-hero {
    margin-top: 36px;
    padding: 46px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 55%, #ffedd5 100%);
    box-shadow: var(--soft-shadow);
}

.compact-hero h1,
.category-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: -0.04em;
}

.compact-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.04em;
}

.section-more,
.text-link {
    color: var(--orange-dark);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(124, 45, 18, 0.08);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.movie-card:hover {
    border-color: #fb923c;
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.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-badge,
.poster-year {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 0.76rem;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
}

.poster-year {
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.35;
}

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

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

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

.category-tile,
.category-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
}

.tile-thumbs,
.category-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tile-thumbs img,
.category-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.category-tile h3,
.category-card h2 {
    margin: 0 0 8px;
    color: #9a3412;
}

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

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

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.inline-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 0.82rem;
    font-weight: 700;
}

.rank-box {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 28px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}

.rank-box h2 {
    margin: 0 0 18px;
}

.rank-list {
    display: grid;
    gap: 8px;
}

.rank-line {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.rank-line span {
    color: #fb923c;
    font-weight: 900;
}

.rank-line strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-line em {
    color: rgba(255, 255, 255, 0.62);
    font-style: normal;
    text-align: right;
}

.toolbar {
    margin-bottom: 24px;
}

.toolbar input {
    width: min(100%, 520px);
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wide-toolbar input {
    width: 100%;
}

.toolbar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.empty-state.show {
    display: block;
}

.mini-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mini-item {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.mini-item img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

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

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #fff;
    font-weight: 900;
}

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

.ranking-info h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 70px;
    color: #fff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.48;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72), rgba(154, 52, 18, 0.52));
}

.detail-top {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #fed7aa;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.large-tags {
    margin-bottom: 26px;
}

.player-card,
.content-card {
    padding: 20px;
    border: 1px solid #fed7aa;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-cover.hide {
    display: none;
}

.play-circle {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
    font-size: 2rem;
}

.player-error {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

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

.content-card h2 {
    margin: 0 0 16px;
    color: #9a3412;
}

.content-card p {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.35rem;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

@media (max-width: 980px) {
    .header-search {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 720px;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-content,
    .detail-layout,
    .category-hero,
    .split-section,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 92px 0 120px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

    .quick-panel,
    .movie-grid,
    .category-grid,
    .category-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 64px;
    }

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

    .brand-text {
        font-size: 1.1rem;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 2.25rem;
    }

    .hero-content {
        padding: 76px 0 100px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-panel,
    .movie-grid,
    .category-grid,
    .category-page-grid,
    .mini-strip {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 28px;
        border-radius: 24px;
    }

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

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

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