@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap");

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 12px 24px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 35%, var(--white));
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    backdrop-filter: blur(18px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.34);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 20px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-700);
}

.search-open,
.search-mobile {
    border: 0;
    border-radius: 10px;
    background: var(--amber-600);
    color: var(--white);
    padding: 10px 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-open:hover,
.search-mobile:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-800);
    font-size: 28px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--amber-200);
}

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

.mobile-link {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--gray-700);
    background: transparent;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--amber-700);
    background: var(--amber-100);
}

.hero-carousel {
    position: relative;
    height: 600px;
    margin-bottom: 48px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.10));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.hero-meta,
.pill-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.pill-row span,
.detail-meta span {
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.95);
    color: var(--white);
    padding: 6px 14px;
    font-size: 14px;
}

.hero-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 7vw, 58px);
    line-height: 1.08;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    padding: 5px 10px;
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.page-actions a,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    padding: 0 22px;
    font-weight: 600;
}

.primary-btn {
    background: var(--amber-600);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--amber-700);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.50);
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-600);
}

.main-stack {
    display: grid;
    gap: 64px;
    padding-bottom: 72px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    color: var(--amber-600);
    font-size: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
}

.section-more {
    min-height: 36px;
    margin-left: auto;
    color: var(--amber-700);
    background: var(--amber-100);
}

.card-grid {
    display: grid;
    gap: 24px;
}

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

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
    display: grid;
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

.poster-shade,
.feature-shade,
.channel-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-type {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--amber-600);
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-content strong {
    min-height: 48px;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.45;
}

.card-content em,
.feature-content em,
.compact-body em {
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.55;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 14px;
}

.tag-row span {
    color: var(--amber-700);
    background: var(--amber-50);
}

.feature-card {
    position: relative;
    display: block;
    height: 420px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

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

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card .feature-shade {
    opacity: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), transparent);
}

.feature-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    display: grid;
    gap: 12px;
    color: var(--white);
}

.feature-content strong {
    font-size: clamp(28px, 5vw, 40px);
}

.category-preview-stack {
    display: grid;
    gap: 42px;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.preview-title h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 25px;
}

.preview-title h3 span {
    width: 5px;
    height: 30px;
    border-radius: 999px;
    background: var(--amber-600);
}

.preview-title a {
    margin-left: auto;
    color: var(--amber-700);
    font-weight: 600;
}

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

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

.compact-card {
    display: flex;
    gap: 14px;
    align-items: stretch;
    border-radius: 14px;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    background: var(--amber-50);
    box-shadow: var(--shadow-md);
}

.compact-poster {
    width: 132px;
    height: 84px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--gray-900);
}

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

.compact-body {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.compact-body strong {
    color: var(--gray-800);
    line-height: 1.35;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 8px;
    background: var(--amber-600);
    color: var(--white);
    font-size: 14px;
}

.compact-body span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.compact-body b {
    color: var(--amber-700);
}

.compact-body i {
    font-style: normal;
}

.page-main {
    background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.55), transparent 30%), linear-gradient(135deg, var(--gray-900), #3d2102 70%);
    padding: 72px 0;
}

.page-hero p {
    margin: 0 0 8px;
    color: var(--amber-200);
    font-weight: 700;
}

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

.page-hero span {
    display: block;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.page-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.page-actions a {
    color: var(--white);
    background: var(--amber-600);
}

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

.channel-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.channel-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.channel-card:hover img {
    transform: scale(1.06);
}

.channel-shade {
    opacity: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35), transparent);
}

.channel-body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    color: var(--white);
}

.channel-body strong {
    font-size: 26px;
}

.channel-body em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.55;
}

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

.channel-samples a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 10px;
    font-size: 12px;
}

.filter-bar {
    margin-top: -28px;
}

.filter-bar input {
    width: 100%;
    border: 2px solid var(--amber-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 18px 20px;
    outline: 0;
}

.filter-bar input:focus {
    border-color: var(--amber-600);
}

.detail-main {
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 22px 0;
    color: var(--gray-600);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 32px;
}

.detail-primary,
.detail-side {
    display: grid;
    align-content: start;
    gap: 24px;
}

.player-card,
.detail-card,
.side-card,
.detail-neighbor {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.32);
}

.player-overlay.is-hidden {
    display: none;
}

.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-600);
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .player-button {
    background: var(--amber-700);
    transform: scale(1.05);
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.2;
}

.one-line {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.75;
}

.detail-tags span {
    color: var(--amber-700);
    background: var(--amber-100);
}

.prose h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.prose p {
    margin: 0 0 14px;
    color: var(--gray-700);
    line-height: 1.95;
}

.side-cover {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

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

.side-card {
    padding: 20px;
}

.side-related {
    display: grid;
    gap: 12px;
}

.detail-neighbor {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
}

.detail-neighbor a {
    flex: 1 1 260px;
    border-radius: 12px;
    background: var(--amber-50);
    color: var(--amber-700);
    padding: 14px 16px;
    font-weight: 600;
}

.related-section {
    margin-top: 56px;
}

.search-modal[hidden] {
    display: none;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.search-dialog {
    position: relative;
    width: min(780px, calc(100% - 28px));
    max-height: calc(100vh - 64px);
    margin: 32px auto;
    overflow: auto;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.search-dialog h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 24px;
}

.search-input {
    width: 100%;
    border: 2px solid var(--amber-200);
    border-radius: 14px;
    padding: 16px 18px;
    outline: 0;
}

.search-input:focus {
    border-color: var(--amber-600);
}

.search-count {
    margin: 12px 0 18px;
    color: var(--gray-600);
}

.search-results {
    display: grid;
    gap: 12px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    border-radius: 14px;
    background: var(--gray-50);
    padding: 10px;
}

.search-result-card img {
    width: 96px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-card strong {
    display: block;
    margin-bottom: 5px;
}

.search-result-card em {
    display: block;
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.45;
}

.search-result-card span {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    color: var(--amber-700);
    font-size: 13px;
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.line-clamp,
.card-content em,
.compact-body em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        height: 560px;
    }

    .card-grid.four,
    .card-grid.three,
    .channel-grid,
    .ranking-grid,
    .compact-grid,
    .ranking-list,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .brand-copy strong {
        font-size: 18px;
    }

    .hero-carousel {
        height: 520px;
        margin-bottom: 32px;
    }

    .hero-content {
        padding-bottom: 66px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .main-stack {
        gap: 44px;
    }

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

    .section-more {
        margin-left: 0;
    }

    .card-grid.four,
    .card-grid.three,
    .channel-grid,
    .ranking-grid,
    .compact-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        height: 360px;
    }

    .compact-poster {
        width: 112px;
        height: 74px;
    }

    .page-hero {
        padding: 54px 0;
    }

    .detail-card {
        padding: 20px;
    }

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .search-dialog {
        padding: 22px;
        margin-top: 20px;
    }
}
