:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #f97316;
    --brand-dark: #dc2626;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 22px;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-copy small {
    color: #94a3b8;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 15px;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fb923c;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    padding: 12px 24px 20px;
    background: #1e293b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-link {
    padding: 10px 0;
    color: #e2e8f0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.45), transparent 28%), linear-gradient(135deg, #0f172a, #7c2d12 48%, #991b1b);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.22;
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 88px 24px 72px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
    align-items: center;
    gap: 56px;
    animation: fadeUp 0.55s ease both;
}

.hero-slide.active {
    display: grid;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-line {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
    color: #fff7ed;
    max-width: 760px;
}

.hero-review {
    color: #cbd5e1;
    line-height: 1.85;
    max-width: 720px;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 237, 213, 0.16);
    color: #fed7aa;
    border: 1px solid rgba(254, 215, 170, 0.3);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
}

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

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

.hero-art {
    position: relative;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: -18px;
    border-radius: 34px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    opacity: 0.28;
    filter: blur(26px);
    transition: opacity 0.25s ease;
}

.hero-art:hover .hero-glow {
    opacity: 0.42;
}

.hero-art img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transition: transform 0.35s ease;
}

.hero-art:hover img {
    transform: scale(1.025);
}

.hero-corner {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 24px;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 32px;
    background: #fb923c;
}

.search-entry,
.content-section,
.split-section,
.detail-head,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.search-entry {
    padding-bottom: 18px;
}

.search-entry h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

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

.section-head h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-head p,
.page-hero p,
.detail-text p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    min-height: 40px;
    color: #ea580c;
    background: #ffedd5;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
    opacity: 0.76;
}

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.play-float {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.9);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
}

.card-tags {
    margin-top: 12px;
}

.compact-card .card-body p {
    display: none;
}

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

.category-tile,
.category-card {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
}

.category-tile strong,
.category-card h2 {
    display: block;
    margin: 0 0 12px;
    color: #9a3412;
    font-size: 22px;
}

.category-tile span,
.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-card {
    display: grid;
    gap: 18px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-preview img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

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

.embedded-section {
    padding: 0;
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    border-radius: 26px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow);
}

.ranking-panel p,
.ranking-panel small {
    color: #cbd5e1;
}

.mini-head {
    align-items: center;
    margin-bottom: 18px;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.13);
}

.ranking-no {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 900;
}

.ranking-row img {
    width: 58px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ranking-copy strong,
.ranking-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-hot {
    color: #fed7aa;
    font-weight: 800;
    font-size: 13px;
}

.page-hero,
.detail-head {
    max-width: none;
    padding: 86px 24px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 15%, rgba(249, 115, 22, 0.42), transparent 24%), linear-gradient(135deg, #0f172a, #7c2d12, #991b1b);
}

.page-hero > div,
.detail-head > nav,
.detail-grid {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero p {
    max-width: 780px;
    color: #e2e8f0;
    font-size: 18px;
}

.slim-hero {
    padding-bottom: 64px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    min-height: 52px;
    border-radius: 18px;
    background: #f1f5f9;
    color: #64748b;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

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

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #9a3412;
    background: #ffedd5;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.detail-head {
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #fed7aa;
}

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

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

.detail-line {
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta span {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta b {
    color: #fed7aa;
}

.player-section {
    padding-top: 48px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.26);
}

.movie-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.35));
    cursor: pointer;
}

.player-play span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 38px rgba(220, 38, 38, 0.4);
    font-size: 28px;
}

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

.detail-text {
    padding-top: 16px;
}

.detail-text p {
    font-size: 18px;
    color: #334155;
}

.site-footer {
    margin-top: 50px;
    padding: 54px 24px 24px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 440px;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

    .ranking-panel {
        position: static;
    }
}

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

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

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

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

    .hero-controls {
        position: static;
        margin-top: 28px;
    }

    .movie-grid,
    .wide-grid,
    .ranking-grid,
    .related-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 640px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-inner,
    .search-entry,
    .content-section,
    .split-section,
    .detail-head,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .section-head {
        display: grid;
    }

    .movie-grid,
    .wide-grid,
    .ranking-grid,
    .related-grid,
    .category-grid,
    .category-card-grid,
    .embedded-section .movie-grid {
        grid-template-columns: 1fr;
    }

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

    .player-play span {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }
}
