:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --primary: #f97316;
    --primary-deep: #ea580c;
    --secondary: #ec4899;
    --gold: #f59e0b;
    --shadow: 0 20px 55px rgba(249, 115, 22, 0.16);
    --shadow-card: 0 16px 38px rgba(17, 24, 39, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.17), transparent 34rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fffbeb 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(253, 242, 248, 0.95));
    border-bottom: 1px solid rgba(251, 146, 60, 0.20);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.10);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
    padding: 6px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--primary);
    transition: right 0.24s ease;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a:hover::after {
    right: 0;
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search input {
    width: 240px;
    padding: 11px 16px;
}

.header-search button,
.mobile-nav button,
.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.primary-button {
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
}

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

.mobile-nav nav {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 800;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
}

.mobile-nav button {
    padding: 10px 16px;
    color: #ffffff;
    background: var(--primary);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 0 0 38px 38px;
    box-shadow: var(--shadow);
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 44%, rgba(17, 24, 39, 0.15) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.60), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    padding: 110px 0 0 max(28px, calc((100% - 1200px) / 2));
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

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

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

.hero-tags {
    margin: 26px 0;
}

.hero-tags span,
.info-pills span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 13px;
    font-weight: 700;
}

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

.ghost-button {
    padding: 11px 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: max(28px, calc((100% - 1200px) / 2));
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 62px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero-side-panel {
    position: absolute;
    z-index: 4;
    right: max(28px, calc((100% - 1200px) / 2));
    bottom: 44px;
    width: min(360px, calc(100% - 56px));
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(18px);
    color: #ffffff;
}

.hero-side-panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.22);
}

.compact-card img {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.section {
    padding: 56px 0;
}

.page-main {
    padding: 38px 0 66px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.05em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 46px);
}

.section-more,
.text-button {
    color: var(--primary-deep);
    background: rgba(249, 115, 22, 0.12);
    padding: 10px 16px;
}

.soft-card {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 34px;
    border-radius: 32px;
    background: var(--surface-soft);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: var(--shadow-card);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.20);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(236, 72, 153, 0.12));
}

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

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

.card-badge,
.play-chip {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 16px;
}

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

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: var(--primary-deep);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-body p {
    margin: 11px 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body .tag-row span,
.detail-copy .tag-row span {
    color: var(--primary-deep);
    background: rgba(249, 115, 22, 0.10);
    border-color: rgba(249, 115, 22, 0.16);
}

.card-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 900;
}

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

.category-tile {
    min-height: 142px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 237, 213, 0.95));
    border: 1px solid rgba(249, 115, 22, 0.17);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.17);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.page-hero p,
.category-overview-card p {
    margin: 0;
    color: #5b6473;
    line-height: 1.75;
}

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

.ranking-list.wide {
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
}

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

.rank-poster strong {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--secondary));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 12px 0;
    color: #4b5563;
    line-height: 1.7;
}

.page-hero {
    margin-bottom: 28px;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 237, 213, 0.80)),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 24rem);
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 6vw, 68px);
}

.compact-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel {
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.filter-empty {
    display: none;
    margin: 16px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.filter-empty.is-visible {
    display: block;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 22px;
    padding: 24px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.mini-list {
    align-content: start;
}

.mini-list .compact-card {
    background: rgba(249, 115, 22, 0.08);
}

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

.player-card,
.detail-copy,
.aside-panel {
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
    background: #050505;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #050505;
    cursor: pointer;
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72) saturate(1.08);
}

.video-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10), rgba(0, 0, 0, 0.58));
}

.big-play {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.32);
    font-size: 36px;
    text-indent: 5px;
}

.video-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.detail-copy {
    margin-top: 22px;
    padding: clamp(24px, 4vw, 36px);
}

.detail-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 5vw, 54px);
}

.detail-copy .lead {
    margin: 0 0 20px;
    color: #374151;
    font-size: 19px;
    line-height: 1.8;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    font-size: 26px;
}

.detail-copy p {
    color: #374151;
    line-height: 1.9;
}

.info-pills span {
    color: var(--primary-deep);
    background: rgba(249, 115, 22, 0.10);
    border-color: rgba(249, 115, 22, 0.16);
}

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

.detail-aside {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.aside-panel {
    padding: 22px;
}

.aside-panel h2 {
    margin: 0 0 14px;
}

.aside-panel dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.aside-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.aside-panel dd {
    margin: 0;
    font-weight: 800;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    margin-top: 42px;
    padding: 54px max(18px, calc((100% - 1200px) / 2)) 24px;
    color: #f9fafb;
    background: linear-gradient(135deg, #111827, #1f2937 46%, #431407);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 16px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #fdba74;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: #d1d5db;
}

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

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

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

    .hero {
        min-height: 740px;
    }

    .hero-content {
        padding: 88px 22px 0;
        width: 100%;
    }

    .hero-side-panel {
        left: 22px;
        right: 22px;
        bottom: 76px;
        width: auto;
    }

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

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

    .category-overview-card,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
        grid-template-columns: minmax(180px, 280px) 1fr;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .hero {
        min-height: 690px;
        border-radius: 0 0 26px 26px;
    }

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

    .hero-side-panel {
        padding: 16px;
    }

    .section {
        padding: 40px 0;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body p {
        -webkit-line-clamp: 2;
    }

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

    .rank-item {
        grid-template-columns: 86px 1fr;
    }

    .rank-info h3 {
        font-size: 18px;
    }

    .rank-info p {
        display: none;
    }

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

    .big-play {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }

    .compact-links {
        grid-template-columns: 1fr;
    }
}
