:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 40%, #eff6ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

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

.brand-name {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #475569;
}

.main-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: var(--red);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    color: #fff;
}

.hero-content h1,
.hero-content h2 {
    max-width: 880px;
    margin: 8px 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
    max-width: 720px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #facc15;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
}

.hero-meta,
.detail-meta,
.card-meta,
.wide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.wide-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span,
.wide-tags span,
.detail-meta span {
    background: #fee2e2;
    color: #b91c1c;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    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(--red), var(--orange));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 24px 44px rgba(220, 38, 38, 0.34);
}

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

.btn-ghost.dark {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.86);
}

.btn.small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 64px 0 0;
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.text-link {
    color: var(--red);
    font-weight: 900;
}

.search-section {
    margin-top: -34px;
    padding: 0;
    position: relative;
    z-index: 5;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

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

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 54%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.wide-card:hover img,
.ranking-cover:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

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

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 12px 2px 0;
}

.card-body h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover,
.wide-body h3 a:hover,
.ranking-row-body h2 a:hover {
    color: var(--red);
}

.card-body p,
.wide-body p,
.ranking-row-body p,
.overview-card p,
.category-card p,
.page-hero p,
.detail-one-line,
.detail-text p {
    color: var(--muted);
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-list span {
    padding: 3px 9px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

.category-section {
    margin-top: 64px;
    padding: 48px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

.category-card,
.overview-card a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card span,
.overview-card h2 {
    display: block;
    margin: 18px 18px 6px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.overview-card p {
    margin: 0 18px 20px;
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 34px;
    align-items: start;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.wide-card,
.ranking-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.wide-cover,
.ranking-cover {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    background: #111827;
}

.wide-cover img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rank-number {
    position: absolute;
    left: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-weight: 900;
}

.wide-body {
    padding: 22px 22px 22px 0;
}

.wide-body h3 {
    margin: 10px 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.ranking-box {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(160deg, #0f172a, #7f1d1d);
    color: #fff;
    box-shadow: var(--shadow);
}

.ranking-box .section-heading h2,
.ranking-box .text-link {
    color: #fff;
}

.ranking-box ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-box a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.ranking-box a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
}

.ranking-title,
.ranking-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-title {
    font-weight: 900;
}

.ranking-meta {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    color: #fff;
    background: var(--hero-cover, linear-gradient(135deg, #111827, #7f1d1d)) center / cover;
}

.page-hero.small-hero {
    min-height: 310px;
    background: linear-gradient(135deg, #0f172a, #991b1b 60%, #f97316);
}

.page-hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28));
}

.page-hero-content,
.small-hero .container {
    position: relative;
    z-index: 1;
    padding: 72px 0;
}

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

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

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

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

.category-movie-grid {
    margin-top: 26px;
}

.overview-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
}

.overview-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-card span {
    display: inline-flex;
    margin: 0 18px 20px;
    color: var(--red);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.ranking-row {
    grid-template-columns: 130px 70px minmax(0, 1fr) auto;
    align-items: center;
    padding-right: 20px;
}

.ranking-cover {
    height: 150px;
}

.ranking-big-index {
    color: #ef4444;
    font-size: 40px;
    line-height: 1;
    font-weight: 1000;
    text-align: center;
}

.ranking-row-body h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.ranking-row-body p {
    margin: 0 0 12px;
}

.detail-hero {
    min-height: 560px;
    background: var(--detail-cover) center / cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 54px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.detail-info h1 {
    color: #fff;
    font-size: clamp(36px, 6vw, 68px);
}

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

.large-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
    margin-top: -58px;
    position: relative;
    z-index: 2;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.player-overlay.is-hidden {
    display: none;
}

.play-ring {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

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

.detail-text article {
    padding: 32px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.detail-text h2 {
    font-size: 28px;
}

.detail-text p {
    margin-bottom: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 90px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #7f1d1d 64%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 34px;
    padding: 54px 0;
}

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

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

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

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

.footer-brand {
    margin-bottom: 16px;
    font-size: 22px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.is-filtered-out {
    display: none !important;
}

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

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

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

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

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

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

    .hero-carousel {
        height: 540px;
    }

    .hero-content {
        bottom: 62px;
    }

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

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

    .category-section {
        padding: 28px 18px;
    }

    .wide-card,
    .ranking-row {
        grid-template-columns: 120px minmax(0, 1fr);
        padding-right: 0;
    }

    .ranking-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
    }

    .ranking-big-index,
    .ranking-row .btn {
        display: none;
    }

    .wide-body,
    .ranking-row-body {
        padding: 16px 16px 16px 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        width: min(260px, 80%);
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .movie-grid,
    .spotlight-grid,
    .category-grid,
    .overview-grid {
        gap: 16px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p,
    .tag-list,
    .card-meta {
        display: none;
    }

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

    .wide-body {
        padding: 16px;
    }

    .wide-cover {
        aspect-ratio: 16 / 9;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .detail-poster {
        width: min(220px, 78%);
    }

    .player-frame {
        border-radius: 18px;
    }

    .play-ring {
        width: 68px;
        height: 68px;
    }

    .detail-text article {
        padding: 22px;
    }

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