:root {
    color-scheme: light;
    --brand: #f97316;
    --accent: #ec4899;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --card: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.72), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(236, 72, 153, 0.66), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 48%, #4c1d95);
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.38;
    pointer-events: none;
}

.hero-orb.one {
    left: -120px;
    bottom: 40px;
    background: var(--brand);
}

.hero-orb.two {
    right: -90px;
    top: 120px;
    background: var(--accent);
}

.hero-slider {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 52px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

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

.hero-backdrop {
    position: absolute;
    inset: 52px 0 42px 28%;
    opacity: 0.18;
    background-size: cover;
    background-position: center;
    border-radius: 46px;
    filter: blur(1px) saturate(1.2);
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.ghost.light {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

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

.hero-dot.active {
    background: #ffffff;
}

.quick-search,
.content-section,
.category-section,
.hot-board-entry,
.detail-content,
.player-section,
.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: -42px;
    position: relative;
    z-index: 5;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.search-box,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    outline: none;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-box button {
    min-width: 108px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    cursor: pointer;
}

.stat-strip {
    display: flex;
    gap: 16px;
    color: var(--muted);
    white-space: nowrap;
}

.stat-strip strong {
    color: var(--brand);
    font-size: 24px;
}

.content-section,
.category-section,
.hot-board-entry,
.player-section,
.detail-content {
    margin-top: 72px;
}

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.04em;
}

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

.section-more {
    color: var(--brand);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.04);
}

.rating-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--brand));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta,
.rank-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span,
.detail-meta span,
.rank-stats span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
}

.movie-card .tag-row span,
.detail-tags span {
    color: #9a3412;
    background: #fff7ed;
}

.card-weight {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.25s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    font-style: normal;
    opacity: 0.86;
}

.hot-board-entry {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    padding: 36px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.45), transparent 30%),
        linear-gradient(135deg, #111827, #4c1d95);
    box-shadow: var(--shadow);
}

.hot-board-entry h2 {
    margin: 16px 0 10px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
}

.hot-board-entry p {
    color: rgba(255, 255, 255, 0.78);
}

.rank-list.small {
    display: grid;
    gap: 10px;
}

.rank-entry {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.rank-entry strong {
    color: #fed7aa;
}

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

.rank-entry em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 84px max(16px, calc((100% - 1280px) / 2)) 74px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.55), transparent 34%),
        radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.48), transparent 32%),
        linear-gradient(135deg, #111827, #1f2937);
}

.page-hero.mini {
    padding-top: 62px;
    padding-bottom: 58px;
}

.page-hero h1 {
    max-width: 1000px;
}

.filter-bar {
    margin-bottom: 24px;
}

.filter-bar select {
    max-width: 190px;
}

.rank-grid {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 70px 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.rank-no {
    font-size: 26px;
    color: var(--brand);
}

.rank-poster img {
    width: 112px;
    height: 154px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-card h2 {
    margin: 10px 0;
    font-size: 24px;
}

.rank-card p {
    margin: 0 0 12px;
    color: #4b5563;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.24;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.46), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.72));
}

.detail-grid {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    width: 320px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 72px);
}

.detail-meta {
    margin-top: 24px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050816;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
    cursor: pointer;
}

.video-shell.is-playing .play-overlay {
    display: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 22px 50px rgba(236, 72, 153, 0.35);
    font-size: 34px;
}

.player-note {
    position: absolute;
    left: 18px;
    bottom: 12px;
    color: rgba(255, 255, 255, 0.76);
    margin: 0;
    font-size: 13px;
}

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

.detail-content article {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    color: #374151;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.compact-card span,
.compact-card em {
    display: block;
    padding: 0 12px;
}

.compact-card span {
    padding-top: 10px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.search-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.search-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.search-item img {
    width: 54px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.search-item p {
    margin: 6px 0 0 66px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

[hidden],
.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    .top-nav {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 0;
    }

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

    .nav-links a {
        padding: 11px 12px;
        border-radius: 12px;
        background: #fff7ed;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 40px 0 84px;
    }

    .hero-poster {
        width: min(260px, 68vw);
        margin: 0 auto;
    }

    .quick-search,
    .hot-board-entry,
    .detail-grid,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        white-space: normal;
        flex-wrap: wrap;
    }

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

    .rank-card {
        grid-template-columns: 42px 88px minmax(0, 1fr);
    }

    .rank-poster img {
        width: 88px;
        height: 126px;
    }

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

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 560px) {
    .movie-grid,
    .category-grid,
    .compact-grid,
    .search-list {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .search-box,
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rank-entry {
        grid-template-columns: 38px 1fr;
    }

    .rank-entry em {
        grid-column: 2;
    }

    .rank-card {
        grid-template-columns: 1fr;
    }

    .rank-no {
        font-size: 22px;
    }
}
