:root {
    --brand-start: #f97316;
    --brand-mid: #ef4444;
    --brand-end: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --panel: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid), var(--brand-end));
    box-shadow: 0 18px 45px rgba(239, 68, 68, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
}

.main-nav a,
.mobile-nav a {
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    font: inherit;
}

.nav-search input {
    width: 210px;
    padding: 10px 14px;
    color: #fff;
    background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.22);
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

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

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

.mobile-nav nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-search input {
    width: 100%;
    color: #fff;
    background: transparent;
    padding: 11px 14px;
}

.hero-slider {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    background:
        radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb923c;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-kicker span,
.kicker {
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.hero-kicker strong {
    color: #fed7aa;
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.section-more,
.category-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
    padding: 14px 26px;
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover,
.section-more:hover,
.category-entry:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #fff;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-dark-btn {
    color: #ef4444;
    padding: 12px 24px;
    border: 2px solid rgba(239, 68, 68, 0.4);
    background: #fff;
}

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

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

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

.content-section {
    padding: 76px 0;
}

.soft-section {
    padding: 76px 0;
}

.soft-section.warm {
    background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.soft-section.cool {
    background: linear-gradient(135deg, #eff6ff, #f8fafc, #f0fdfa);
}

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

.section-head h2 {
    margin: 13px 0 4px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.section-more {
    color: #ef4444;
    white-space: nowrap;
}

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

.movie-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-card img,
.compact-card img,
.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.meta-line,
.tag-row,
.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-line span,
.tag-row span,
.mini-meta span {
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #fff1f2;
    padding: 4px 9px;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover {
    color: #ef4444;
}

.movie-card p,
.compact-card p {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.wide .poster-link {
    aspect-ratio: 16 / 9;
}

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

.rank-panel,
.side-card,
.article-card,
.player-card,
.filter-bar {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
}

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

.rank-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 900;
}

.rank-head a {
    color: #ef4444;
    font-size: 14px;
}

.rank-list,
.ranking-list,
.side-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.86);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #fff7ed;
    transform: translateX(2px);
}

.compact-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.compact-card h3 {
    margin: 0 0 6px;
    line-height: 1.28;
    font-size: 16px;
}

.compact-card p {
    font-size: 13px;
    -webkit-line-clamp: 1;
}

.rank-num {
    position: absolute;
    top: -7px;
    left: -7px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.28);
}

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

.category-tile,
.category-overview-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 220px;
    border-radius: var(--radius-xl);
    color: #fff;
    background-size: cover;
    background-position: center;
    padding: 26px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
}

.category-tile::before,
.category-overview-card::before,
.detail-hero::before,
.inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.82));
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

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

.category-samples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.category-entry {
    padding: 10px 18px;
    background: #fff;
    color: #ef4444;
}

.cta-section {
    margin: 76px auto;
    padding: 58px 28px;
    color: #fff;
    text-align: center;
    border-radius: 32px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid), var(--brand-end));
    box-shadow: var(--shadow);
}

.cta-section h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-section p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
}

.cta-actions {
    justify-content: center;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 74px 0;
    background: linear-gradient(110deg, #2563eb, #06b6d4, #14b8a6);
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

.inner-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.08;
}

.inner-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.category-hero {
    background: linear-gradient(110deg, #f97316, #ef4444, #ec4899);
}

.ranking-hero {
    background: linear-gradient(110deg, #7c3aed, #ef4444, #f59e0b);
}

.search-hero {
    background: linear-gradient(110deg, #0f172a, #1d4ed8, #0891b2);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
}

.filter-bar input,
.hero-search input {
    width: 100%;
    border-radius: 999px;
    padding: 14px 18px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px var(--line);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin-top: 28px;
}

.hero-search button {
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
}

.detail-hero {
    position: relative;
    min-height: 520px;
    color: #fff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 82px 0;
}

.detail-hero h1 {
    max-width: 820px;
    margin: 18px 0 14px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-hero p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 48px 0 80px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #020617;
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player video,
.player-poster,
.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player video {
    z-index: 1;
    background: #020617;
}

.player-poster {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-poster img {
    object-fit: cover;
    filter: brightness(0.58);
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.42);
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.movie-player.is-playing .player-poster {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-card,
.side-card {
    padding: 26px;
}

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

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.info-list div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span {
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    padding: 7px 12px;
    font-weight: 800;
}

.detail-side {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 88px;
}

.poster-card {
    overflow: hidden;
    padding: 0;
}

.poster-card img {
    aspect-ratio: 16 / 11;
}

.poster-card .primary-btn {
    margin: 18px;
}

.primary-btn.full {
    width: calc(100% - 36px);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding: 56px 0;
}

.footer-logo {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    padding: 18px;
    color: #94a3b8;
}

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

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

    .nav-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-side {
        position: static;
    }

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

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

    .nav-wrap {
        min-height: 62px;
        gap: 10px;
    }

    .site-logo span:last-child {
        font-size: 18px;
    }

    .nav-search {
        display: none;
    }

    .hero-slider,
    .hero-content {
        min-height: 560px;
        height: 560px;
    }

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

    .hero-actions,
    .cta-actions,
    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        padding: 13px 20px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

    .movie-grid.two-col,
    .movie-grid.three-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .soft-section {
        padding: 48px 0;
    }

    .detail-hero {
        min-height: 520px;
    }

    .detail-hero-content {
        padding: 56px 0;
    }

    .detail-hero p {
        font-size: 17px;
    }

    .detail-grid {
        padding: 28px 0 54px;
    }

    .info-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }
}
