* {
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(249, 115, 22, 0.18);
    --soft: #fff7ed;
    --soft-pink: #fdf2f8;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

html {
    scroll-behavior: smooth;
}

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

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

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

body.menu-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.86);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.brand-name {
    font-size: 1.18rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--orange-dark), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    max-width: 1240px;
    min-height: 620px;
    margin: 28px auto 0;
    padding: 0 22px 54px;
}

.hero-stage {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(28px, 6vw, 70px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(124, 45, 18, 0.34), rgba(236, 72, 153, 0.18)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-content {
    max-width: 680px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange-dark);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
    color: #fed7aa;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content h2 + p,
.hero-content p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.detail-meta-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-actions,
.section-heading,
.card-meta-line,
.filter-panel,
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-actions {
    margin-top: 28px;
}

.btn,
.hero-search button,
.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary,
.hero-search button,
.rank-play {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.2);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn:hover,
.hero-search button:hover,
.rank-play:hover {
    transform: translateY(-2px);
}

.wide {
    width: 100%;
}

.hero-side-panel {
    align-self: stretch;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

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

.compact-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    transition: 0.25s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.compact-thumb,
.poster-art,
.detail-cover,
.ranking-cover {
    background-image: linear-gradient(135deg, rgba(249, 115, 22, 0.36), rgba(236, 72, 153, 0.28)), var(--poster-image);
    background-size: cover;
    background-position: center;
}

.compact-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    overflow: hidden;
    color: #111827;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 22px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.hero-search input {
    padding: 0 18px;
}

.hero-dots {
    position: absolute;
    bottom: 74px;
    left: 54px;
    display: flex;
    gap: 10px;
}

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

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

.section-block {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 22px;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 26px;
}

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

.section-heading h2,
.ranking-panel h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: var(--orange-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(17, 24, 39, 0.64));
}

.card-badge,
.play-mini {
    position: absolute;
    z-index: 2;
}

.card-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.play-mini {
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.2);
}

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

.card-meta-line {
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.card-meta-line a {
    color: var(--orange-dark);
    font-weight: 900;
}

.movie-card h3 {
    margin: 8px 0;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.ranking-copy h2 a:hover {
    color: var(--orange-dark);
}

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

.tag-row span {
    color: var(--orange-dark);
    background: #ffedd5;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.filter-panel {
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.category-card,
.category-overview-card {
    display: block;
    padding: 24px;
    transition: 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card span,
.category-title {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 26px;
}

.rank-list,
.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-index {
    color: var(--orange-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 28px auto 0;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    box-shadow: var(--shadow);
}

.page-hero {
    max-width: 1240px;
    padding: clamp(42px, 8vw, 86px) 32px;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.soft-hero::after,
.category-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% 35%;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(2px);
    transform: rotate(-8deg);
}

.library-section {
    padding-top: 28px;
}

.filter-panel {
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    min-width: 180px;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.filter-panel .search-label {
    flex: 1 1 280px;
}

.filter-panel input,
.filter-panel select {
    padding: 0 16px;
    color: #111827;
    font-weight: 600;
}

.library-grid .movie-card[hidden],
.ranking-list .ranking-item[hidden] {
    display: none;
}

.ranking-section {
    padding-top: 28px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.07);
}

.ranking-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-weight: 900;
}

.ranking-copy h2 {
    margin: 8px 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.ranking-copy p {
    margin: 0 0 12px;
    color: var(--muted);
}

.detail-hero {
    max-width: 1240px;
    padding: 24px;
}

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

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

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

.player-wrap,
.detail-info-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
}

.video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(236, 72, 153, 0.24)), var(--poster-image);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    transition: 0.25s ease;
}

.player-button:hover {
    transform: scale(1.06);
}

.detail-info-card {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.detail-cover {
    min-height: 220px;
    border-radius: 22px;
}

.detail-meta-list span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-content {
    padding-top: 42px;
}

.article-content {
    max-width: 980px;
    padding: 34px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.lead-text {
    color: #374151;
    font-size: 1.18rem;
    font-weight: 700;
}

.article-content h2 {
    margin: 30px 0 10px;
    font-size: 1.42rem;
}

.article-content p {
    color: #4b5563;
}

.detail-tags {
    margin: 22px 0;
}

.detail-tags span {
    color: var(--orange-dark);
    background: #ffedd5;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 22px 34px;
}

.site-footer {
    margin-top: 28px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-inner {
    display: grid;
    gap: 34px;
}

.footer-brand p {
    max-width: 560px;
    color: #9ca3af;
}

.footer-logo .brand-name {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

.footer-links h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-links a {
    display: inline-flex;
    margin: 0 16px 10px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.92rem;
}

@media (max-width: 1060px) {
    .hero-section,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-side-panel,
    .ranking-panel {
        position: static;
    }

    .hero-dots {
        bottom: 32px;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 62px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
    }

    .hero-section {
        min-height: auto;
        margin-top: 16px;
        padding: 0 14px 38px;
    }

    .hero-stage {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        align-items: flex-end;
        padding: 28px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .hero-actions,
    .filter-panel,
    .section-heading,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-side-panel,
    .section-block,
    .page-hero,
    .detail-hero {
        margin-top: 16px;
        padding-right: 16px;
        padding-left: 16px;
        border-radius: 24px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

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

    .ranking-item {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
    }

    .rank-play {
        grid-column: 1 / -1;
    }

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