:root {
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-soft: #fff7ed;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-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);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    position: relative;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 11px;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.brand-text {
    font-size: 24px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 16px;
    background: #fff;
}

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

.mobile-nav .nav-link {
    display: block;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.25), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 45%, rgba(249, 115, 22, 0.28)),
        linear-gradient(180deg, rgba(249, 115, 22, 0.4), rgba(127, 29, 29, 0.88));
}

.hero-content {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding-top: 44px;
    padding-bottom: 112px;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.eyebrow {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 24px);
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 18px 32px rgba(239, 68, 68, 0.3);
}

.btn-soft {
    color: var(--accent-dark);
    background: #fff;
}

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

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

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

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

.hero-rail {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.64);
    color: #fff;
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    background: rgba(17, 24, 39, 0.82);
}

.mini-card img {
    width: 78px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

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

.mini-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.mini-card em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-style: normal;
}

.site-section {
    padding: 64px 0;
}

.soft-section {
    background: #fff;
}

.rank-section {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: center;
    margin-top: -36px;
    position: relative;
    z-index: 8;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 10px 0 0;
    letter-spacing: -0.04em;
}

.intro-panel h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p,
.section-heading p,
.page-hero p,
.detail-one-line {
    color: var(--muted);
}

.quick-search,
.page-search {
    display: grid;
    gap: 10px;
}

.quick-search label,
.page-search label {
    font-weight: 900;
}

.quick-search input,
.page-search input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    font-size: 16px;
    background: #fff;
}

.quick-search input:focus,
.page-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
}

.section-more,
.text-link {
    color: var(--accent-dark);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.poster-link {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #111827;
}

.movie-card-featured .poster-link {
    height: 410px;
}

.movie-card-compact .poster-link {
    height: 172px;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-dark);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: all 0.22s ease;
}

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

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

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

.movie-meta-row span,
.rank-meta span,
.detail-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.movie-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--accent-dark);
}

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

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-tile {
    padding: 20px;
}

.category-tile > a span,
.category-overview-copy span {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.category-tile h3 {
    margin: 8px 0;
    font-size: 22px;
}

.category-tile p,
.category-overview-card p {
    color: var(--muted);
    font-size: 14px;
}

.category-tile ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.category-tile li a {
    color: #374151;
    font-weight: 700;
}

.category-tile li a:hover {
    color: var(--accent-dark);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    color: var(--dark);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    color: #fff;
}

.rank-cover img {
    width: 92px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 76px 0 66px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 35%),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero-orange {
    background: linear-gradient(135deg, #fb923c, #ef4444);
    color: #fff;
}

.page-hero-dark {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
}

.page-hero-orange .eyebrow,
.page-hero-dark .eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.page-hero-orange p,
.page-hero-dark p {
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 700;
}

.page-hero-orange .breadcrumb,
.page-hero-dark .breadcrumb {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
    color: var(--accent-dark);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    padding: 24px;
}

.category-overview-copy h2 {
    margin: 8px 0 10px;
}

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

.detail-top {
    padding: 62px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.24), transparent 32%),
        linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

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

.detail-copy .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

.detail-copy .eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
}

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

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

.player-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
    gap: 24px;
    align-items: stretch;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 22px;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.62));
    color: #fff;
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 20px 48px rgba(239, 68, 68, 0.34);
    font-size: 28px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.player-side {
    padding: 12px;
}

.player-side h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.player-side p {
    color: var(--muted);
}

.detail-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.detail-article article {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.detail-article p {
    color: #374151;
    font-size: 17px;
}

.detail-pager {
    display: flex;
    justify-content: space-between;
    padding-bottom: 64px;
}

.detail-pager a {
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 56px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

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

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

[data-filter-item].is-hidden {
    display: none;
}

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

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

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

    .detail-layout,
    .player-card,
    .detail-article,
    .footer-grid,
    .intro-panel {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: inline-flex;
    }

    .brand-text {
        font-size: 19px;
    }

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

    .hero-content {
        min-height: 520px;
        padding-bottom: 210px;
    }

    .hero-rail {
        bottom: 22px;
        grid-template-columns: 1fr;
    }

    .hero-dots {
        bottom: 230px;
    }

    .four-grid,
    .featured-grid,
    .compact-grid,
    .category-grid,
    .compact-rank,
    .category-preview-list,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .movie-card-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .movie-card-featured .poster-link,
    .poster-link {
        height: 240px;
    }

    .rank-item {
        grid-template-columns: 44px 78px 1fr;
    }

    .rank-cover img {
        width: 78px;
        height: 62px;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        max-width: 280px;
    }

    .player-shell,
    .player-shell video {
        min-height: 260px;
    }

    .section-heading {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}
