:root {
    --page-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --red: #ef4444;
    --rose: #fb7185;
    --dark: #0f172a;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.36);
}

.brand-name {
    font-size: 21px;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-dark);
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 42px 0 56px;
    background:
        radial-gradient(circle at 15% 18%, rgba(245, 158, 11, 0.24), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(239, 68, 68, 0.18), transparent 32%),
        linear-gradient(180deg, #fff7ed 0%, #f9fafb 100%);
}

.hero-carousel {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    min-height: 540px;
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    gap: 48px;
    padding: 38px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(22px);
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-text,
.page-hero p,
.detail-one-line,
.section-head p,
.ranking-copy p,
.split-section p,
.footer-grid p,
.category-overview-card p {
    color: var(--text-soft);
}

.hero-text {
    max-width: 680px;
    font-size: 18px;
}

.hero-tags,
.tag-row,
.pill-row,
.chip-row,
.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.pill-link,
.mini-link-row a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.search-line,
.select-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-button,
.ghost-button,
.text-link,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.ghost-button {
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid var(--line);
}

.text-link {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 8px;
    max-width: 560px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.hero-search input,
.search-line input,
.select-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--text-main);
}

.hero-search input {
    border: 0;
    background: transparent;
}

.hero-poster {
    position: relative;
    min-height: 460px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
    background: linear-gradient(135deg, #1f2937, #f59e0b 52%, #ef4444);
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.2s ease;
}

.hero-poster:hover .hero-image {
    transform: scale(1.04);
}

.hero-poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.55));
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.2);
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--amber), var(--red));
}

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

.section-head {
    margin-bottom: 28px;
    text-align: center;
}

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

.section-head h2,
.split-section h2,
.ranking-copy h2,
.content-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.25), transparent 24%),
        linear-gradient(135deg, #111827, #f59e0b 58%, #ef4444);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card-link:hover .poster-image {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.62));
}

.score-badge,
.type-badge {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.score-badge {
    left: 10px;
    background: rgba(245, 158, 11, 0.92);
}

.type-badge {
    right: 10px;
    background: rgba(15, 23, 42, 0.62);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 7px;
    padding: 15px;
}

.movie-title {
    font-size: 17px;
    line-height: 1.3;
}

.movie-meta,
.movie-genre,
.movie-desc {
    color: var(--text-muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.soft-panel {
    background:
        radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.13), transparent 30%),
        #ffffff;
}

.split-section,
.ranking-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: start;
}

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

.category-tile,
.category-overview-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-overview-title {
    color: var(--amber-dark);
    font-weight: 900;
    font-size: 20px;
}

.category-tile strong {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.ranking-band {
    background: var(--dark);
    color: #ffffff;
}

.ranking-band .section-kicker {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.ranking-copy p,
.ranking-band .rank-meta {
    color: #cbd5e1;
}

.ranking-list,
.wide-rank-list {
    display: grid;
    gap: 10px;
}

.rank-item,
.wide-rank-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover,
.wide-rank-item:hover {
    transform: translateX(4px);
    background: rgba(245, 158, 11, 0.16);
}

.rank-number {
    color: #fbbf24;
    font-weight: 900;
    font-size: 20px;
}

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

.rank-meta,
.rank-hot {
    color: var(--text-muted);
    font-size: 13px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 58px 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.2), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff 56%, #fee2e2);
}

.compact-hero h1 {
    max-width: 760px;
}

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

.filter-panel {
    margin-top: -24px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.86);
}

.search-line input {
    flex: 1 1 280px;
}

.select-row {
    margin-top: 14px;
}

.select-row select {
    flex: 1 1 180px;
}

.chip-row {
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--text-soft);
    background: #f3f4f6;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.14);
}

.empty-state {
    display: none;
    width: min(520px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    background: #ffffff;
    color: var(--text-muted);
    box-shadow: var(--soft-shadow);
}

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

.movie-card.is-hidden {
    display: none;
}

.list-section {
    padding-top: 36px;
}

.detail-hero {
    padding: 50px 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.22), transparent 32%),
        radial-gradient(circle at 92% 0%, rgba(239, 68, 68, 0.14), transparent 30%),
        #ffffff;
}

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

.large-poster {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin-top: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-dark);
    font-weight: 700;
}

.detail-one-line {
    font-size: 19px;
    max-width: 780px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text-soft);
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.player-section {
    padding: 42px 0 20px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.34), transparent 26%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.3);
}

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

.content-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

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

.content-card p {
    color: var(--text-soft);
    font-size: 17px;
}

.category-overview-card {
    min-height: 190px;
}

.mini-link-row a {
    color: var(--text-soft);
    background: #f3f4f6;
}

.pill-row {
    margin-top: 20px;
}

.wide-rank-list {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.wide-rank-item {
    grid-template-columns: 70px minmax(0, 1fr) minmax(220px, auto) 60px;
    color: var(--text-main);
    background: #f8fafc;
    border-color: var(--line);
}

.wide-rank-item:hover {
    background: #fff7ed;
}

.site-footer {
    padding: 44px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .nav-toggle {
        display: inline-flex;
    }

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

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

    .hero-slide {
        padding: 24px;
    }

    .hero-poster {
        min-height: 360px;
    }

    .hero-image {
        min-height: 360px;
    }

    .section-head.between,
    .footer-grid {
        display: block;
    }

    .text-link {
        margin-top: 14px;
    }

    .detail-layout {
        align-items: start;
    }

    .large-poster {
        width: min(280px, 100%);
    }

    .wide-rank-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .wide-rank-item .rank-meta,
    .wide-rank-item .rank-hot {
        grid-column: 2;
    }
}

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

    .header-inner {
        height: 62px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero-slide {
        min-height: auto;
        gap: 24px;
        border-radius: 22px;
    }

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

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

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search input {
        min-height: 44px;
    }

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

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

    .movie-desc,
    .tag-row {
        display: none;
    }

    .section-block {
        padding: 42px 0;
    }

    .filter-panel {
        padding: 16px;
    }

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
