:root {
    --amber: #d97706;
    --amber-light: #f59e0b;
    --rose: #e11d48;
    --rose-soft: #fff1f2;
    --sky: #0284c7;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.08);
    --surface: rgba(255, 255, 255, 0.86);
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.13);
    --radius: 24px;
}

* {
    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", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 48%, #f0f9ff 100%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, #fde68a, #fecdd3, #bae6fd);
}

main {
    padding-top: 64px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), rgba(255, 241, 242, 0.92), rgba(240, 249, 255, 0.92));
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

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

.brand span,
.footer-brand span {
    font-size: 24px;
    background: linear-gradient(90deg, var(--amber), var(--rose), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    width: 34px;
    height: 34px;
    fill: url(#logoGradient);
}

.logo-icon path:first-child {
    fill: #f59e0b;
}

.logo-icon path:last-child {
    fill: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: #374151;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.84), rgba(12, 74, 110, 0.86));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #9a3412;
    background: linear-gradient(90deg, #fef3c7, #ffe4e6);
}

.hero-content h1 {
    margin: 18px 0 12px;
    font-size: clamp(48px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.hero-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
}

.hero-desc {
    max-width: 760px;
    margin: 18px auto 22px;
    color: #ffedd5;
    font-size: clamp(17px, 2.3vw, 24px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

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

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-light), var(--rose));
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.28);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.ghost-btn.light {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(217, 119, 6, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

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

.section {
    padding: 56px 0;
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 8px;
}

.intro-strip h2,
.section-heading h2,
.search-copy h2,
.page-hero h1,
.detail-copy h1,
.article-card h2 {
    margin: 12px 0 0;
    letter-spacing: -0.04em;
}

.intro-strip h2 {
    max-width: 760px;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.08;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    background: linear-gradient(90deg, var(--rose), var(--amber), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.compact-heading h2 {
    font-size: 26px;
}

.section-more {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid rgba(217, 119, 6, 0.14);
}

.search-panel {
    margin-top: 42px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-copy p,
.page-hero p,
.card-desc,
.article-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.search-box {
    display: grid;
    gap: 10px;
    font-weight: 800;
    color: #7c2d12;
}

.search-box input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 18px;
    padding: 0 18px;
    font: inherit;
    color: var(--ink);
    outline: 0;
    background: #fff;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.04);
}

.search-box input:focus {
    border-color: rgba(225, 29, 72, 0.42);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.search-results {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.search-result-card img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.search-result-card strong,
.search-result-card span {
    display: block;
}

.search-result-card strong {
    font-size: 14px;
}

.search-result-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.movie-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

.full-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.movie-card,
.category-card,
.article-card,
.rank-panel {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 29, 72, 0.18);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.15);
}

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

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

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

.play-mark {
    position: absolute;
    inset: auto 14px 14px auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-light), var(--rose));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.32);
}

.rank-badge,
.hot-rank {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-light), var(--rose));
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.card-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff7ed;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--rose);
}

.card-desc {
    min-height: 70px;
    margin: 0;
    font-size: 14px;
}

.card-desc.compact {
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    color: #831843;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.hero-tags {
    justify-content: center;
}

.category-card {
    padding: 20px;
    display: block;
}

.category-card.large {
    min-height: 260px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

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

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

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

.rank-panel {
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 88px;
}

.hot-list {
    display: grid;
    gap: 12px;
}

.hot-item {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hot-item:hover {
    transform: translateX(4px);
    background: linear-gradient(90deg, #fffbeb, #fff1f2);
}

.hot-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.hot-item img {
    width: 58px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.hot-title,
.hot-meta {
    display: block;
}

.hot-title {
    font-weight: 900;
    line-height: 1.35;
}

.hot-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.soft-hero {
    background: radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.28), transparent 36%), radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.25), transparent 34%), linear-gradient(135deg, #fff7ed, #fff1f2 50%, #f0f9ff);
}

.rank-hero {
    color: #fff;
    background: linear-gradient(135deg, #78350f, #881337 54%, #075985);
}

.rank-hero .section-kicker {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.rank-hero p {
    color: #ffedd5;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.detail-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fed7aa;
    font-size: 14px;
    margin-bottom: 24px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.detail-copy h1 {
    max-width: 800px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.98;
}

.detail-line {
    max-width: 820px;
    margin: 18px 0 20px;
    color: #ffedd5;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    padding-bottom: 24px;
}

.player-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber-light), var(--rose));
    box-shadow: 0 22px 44px rgba(225, 29, 72, 0.36);
}

.play-layer strong {
    font-size: 18px;
}

.player-frame.playing .play-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 24px;
}

.article-card {
    padding: 26px;
}

.article-card h2 {
    font-size: 26px;
}

.neighbor-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding-top: 0;
    padding-bottom: 18px;
}

.neighbor-links a {
    padding: 18px 20px;
    border-radius: 20px;
    color: #7c2d12;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.neighbor-links a:hover {
    color: var(--rose);
    transform: translateY(-2px);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 34px;
}

.footer-brand span {
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

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

.site-footer a:hover {
    color: #fbbf24;
}

@media (max-width: 980px) {
    .split-section,
    .rank-page-layout,
    .detail-grid,
    .detail-content,
    .footer-inner,
    .search-panel,
    .neighbor-links {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    main {
        padding-top: 60px;
    }

    .navbar {
        height: 60px;
    }

    .brand span {
        font-size: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #fff7ed;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .hero-tags,
    .hero-actions {
        justify-content: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn,
    .section-more {
        width: 100%;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-desc {
        min-height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }

    .page-hero {
        padding: 64px 0 44px;
    }

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

    .detail-container {
        padding: 34px 0;
    }

    .detail-copy h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .detail-line {
        font-size: 17px;
    }

    .play-layer span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

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

    .hot-item {
        grid-template-columns: auto 50px 1fr;
    }

    .hot-item img {
        width: 50px;
        height: 64px;
    }
}
