:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --blue: #1e3a8a;
    --teal: #0f766e;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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 var(--line);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 14px 35px rgba(234, 88, 12, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand);
    background: #fff7ed;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.top-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 8px 8px 12px;
    color: var(--ink);
}

.top-search button,
.primary-btn {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
}

.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.section-more {
    color: var(--brand);
    background: #fff7ed;
    border-color: #fed7aa;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--ink);
    background: #f1f5f9;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 32%), linear-gradient(135deg, #020617 0%, #0f172a 38%, #1e3a8a 100%);
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.42;
    pointer-events: none;
}

.hero-glow-one {
    left: -120px;
    top: 40px;
    background: #f97316;
}

.hero-glow-two {
    right: -120px;
    bottom: -160px;
    background: #38bdf8;
}

.hero-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 680px;
    padding: 74px 20px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slides {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
    align-items: center;
    gap: 48px;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h1,
.hero-copy h2 {
    margin: 12px 0 16px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.eyebrow {
    margin: 0;
    color: #fed7aa;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.26);
}

.tag-list span {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

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

.hero-poster {
    position: relative;
    min-height: 500px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.04));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.hero-control button {
    cursor: pointer;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.13);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    padding: 0;
    font-size: 0;
}

.hero-dots button.is-active {
    background: var(--brand);
    border-color: var(--brand);
}

.quick-panel {
    max-width: var(--container);
    margin: -32px auto 30px;
    position: relative;
    z-index: 3;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-panel a {
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #334155);
    font-weight: 900;
    box-shadow: var(--shadow);
}

.content-section,
.page-main,
.detail-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 38px 20px;
}

.page-main,
.detail-main {
    padding-top: 28px;
}

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

.section-head.compact {
    align-items: center;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.62), transparent 45%);
    opacity: 0.74;
}

.poster-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 5px 8px;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    left: 10px;
    background: rgba(15, 23, 42, 0.72);
}

.score-badge {
    right: 10px;
    background: var(--brand);
}

.card-body {
    display: block;
    padding: 14px;
}

.card-body strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    min-height: 43px;
    overflow: hidden;
}

.card-meta,
.card-line {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.card-line {
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.card-body .tag-list {
    margin-top: 10px;
}

.card-body .tag-list span:nth-child(n+3) {
    display: none;
}

.gradient-section {
    max-width: none;
    margin-top: 30px;
    padding-left: max(20px, calc((100vw - var(--container)) / 2 + 20px));
    padding-right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
    background: linear-gradient(135deg, #ecfeff, #fff7ed);
}

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

.category-tile {
    min-height: 178px;
    padding: 20px;
    border-radius: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    box-shadow: var(--shadow);
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #134e4a, #0f766e);
}

.category-tile span {
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 10px;
}

.category-tile strong,
.category-tile small {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.rank-section {
    border-radius: var(--radius-lg);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 64px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--surface);
    border-radius: 18px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.rank-item img {
    width: 64px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.rank-info strong,
.rank-info small {
    display: block;
}

.rank-info small {
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.45;
}

.rank-score {
    font-weight: 950;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    padding: 7px 10px;
}

.page-hero {
    color: #fff;
    border-radius: 34px;
    padding: 58px;
    min-height: 260px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.38), transparent 34%), linear-gradient(135deg, #020617, #1e3a8a);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.category-preview {
    margin-top: 36px;
}

.toolbar-section {
    padding: 28px 20px 0;
    max-width: var(--container);
    margin: 0 auto;
}

.inline-filter {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.inline-filter input,
.inline-filter select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    background: #fff;
}

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

.filter-chips button {
    border: 1px solid #fed7aa;
    color: #9a3412;
    background: #fff7ed;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 800;
}

.filter-chips button.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.flush-section {
    padding-top: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin: 12px 0 20px;
}

.breadcrumb a {
    color: var(--brand);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    color: #fff;
    background: radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.38), transparent 30%), linear-gradient(135deg, #020617, #172554 64%, #0f766e);
    box-shadow: var(--shadow);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 12px 0 18px;
    font-size: clamp(34px, 5.4vw, 66px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-line {
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
    margin: 0 0 22px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.meta-grid span {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.meta-grid strong {
    display: block;
    color: #fed7aa;
    font-size: 13px;
    margin-bottom: 4px;
}

.player-panel {
    margin-top: 34px;
    padding: 24px;
    border-radius: 34px;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.36), rgba(2, 6, 23, 0.72));
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.4);
    font-size: 34px;
    padding-left: 6px;
}

.play-cover strong {
    font-size: 22px;
}

.article-section {
    margin-top: 34px;
    padding: 32px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.article-section h2:not(:first-child) {
    margin-top: 26px;
}

.article-section p {
    margin: 0;
    color: #334155;
    line-height: 1.95;
    font-size: 17px;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    margin-top: 46px;
    color: rgba(255, 255, 255, 0.78);
    background: #020617;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 44px 20px;
}

.footer-brand {
    display: inline-block;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 10px;
}

.footer-inner p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0;
}

.footer-links a {
    color: #fed7aa;
    font-weight: 800;
}

.copyright {
    color: rgba(255, 255, 255, 0.52);
}

[hidden] {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links,
    .top-search {
        display: none;
        width: 100%;
        margin: 0;
    }

    .nav-links.is-open,
    .top-search.is-open {
        display: flex;
    }

    .nav-links.is-open {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        border-radius: 14px;
        background: #f8fafc;
    }

    .top-search input {
        width: 100%;
        flex: 1;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 50px;
    }

    .hero-slides {
        min-height: 860px;
    }

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

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

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

    .movie-grid,
    .large-grid,
    .preview-grid,
    .wide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

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

    .rank-list,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero {
        padding: 30px;
    }

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

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

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

    .inline-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-name {
        font-size: 17px;
    }

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

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

    .hero-copy p,
    .detail-line {
        font-size: 16px;
    }

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

    .quick-panel,
    .movie-grid,
    .large-grid,
    .preview-grid,
    .wide-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-body {
        padding: 11px;
    }

    .card-body strong {
        font-size: 14px;
    }

    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .page-hero,
    .detail-hero,
    .article-section,
    .player-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .rank-item {
        grid-template-columns: 40px 54px 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }
}
