* {
    box-sizing: border-box;
}

:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-100: #fee2e2;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(127, 29, 29, 0.18);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7f7 0%, #f9fafb 26%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--red-900), var(--red-700));
    box-shadow: 0 14px 32px rgba(127, 29, 29, 0.22);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--red-800);
    background: var(--white);
    font-weight: 900;
    font-size: 22px;
    box-shadow: inset 0 -2px 0 rgba(127, 29, 29, 0.08);
}

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

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    color: #fee2e2;
    font-size: 12px;
    margin-top: 2px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #fee2e2;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-link {
    display: block;
    width: min(1180px, calc(100% - 32px));
    margin: 6px auto;
    padding: 13px 16px;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    padding: 58px 0 70px;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.6), transparent 32%), linear-gradient(135deg, #450a0a 0%, #7f1d1d 45%, #111827 100%);
}

.hero-track {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(270px, 440px) 1fr;
    gap: 48px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-image {
    position: relative;
    min-height: 500px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(69, 10, 10, 0.62), transparent 54%);
}

.hero-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--red-700);
    background: var(--red-100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.hero-copy h1 {
    margin: 22px 0 10px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    color: #fecaca;
    font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
    max-width: 680px;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fee2e2;
    font-size: 13px;
    font-weight: 650;
}

.tag-row span {
    color: var(--red-700);
    background: #fef2f2;
}

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

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

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--red-700), var(--red-600));
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.3);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.inline-search button:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
}

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

.hero-dot.active {
    background: var(--white);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.45;
}

.hero-glow.one {
    width: 240px;
    height: 240px;
    left: 6%;
    bottom: 10%;
    background: #ef4444;
}

.hero-glow.two {
    width: 190px;
    height: 190px;
    right: 10%;
    top: 12%;
    background: #f97316;
}

.section-block {
    padding: 62px 0;
}

.soft-panel {
    background: linear-gradient(180deg, #fff7f7, #ffffff);
}

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

.split-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 0;
    color: var(--gray-950);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

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

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

.category-tile {
    position: relative;
    min-height: 186px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    box-shadow: var(--shadow);
    background: linear-gradient(145deg, var(--red-900), var(--gray-900));
}

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

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

.category-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(127, 29, 29, 0.2));
}

.category-tile strong,
.category-tile span:last-child {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-tile span:last-child {
    color: #fee2e2;
    line-height: 1.5;
    font-size: 13px;
}

.inline-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-search input,
.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
}

.inline-search button {
    color: var(--white);
    background: var(--red-700);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #fee2e2, #7f1d1d);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 55%);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--red-800);
    background: var(--white);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--gray-950);
    font-size: 17px;
    line-height: 1.32;
}

.movie-card h2 a:hover {
    color: var(--red-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    line-height: 1.55;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 64px;
    padding: 12px 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.rank-row span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--red-700);
    font-weight: 900;
}

.rank-row strong {
    color: var(--gray-950);
}

.rank-row em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 14px;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 70px 0 46px;
    color: var(--white);
    background: radial-gradient(circle at 18% 20%, rgba(248, 113, 113, 0.52), transparent 30%), linear-gradient(135deg, #450a0a, #7f1d1d 50%, #111827);
}

.page-hero .section-kicker {
    color: #fee2e2;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
    color: var(--white);
}

.page-hero p {
    max-width: 760px;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.75;
}

.filter-bar {
    margin-top: 24px;
    flex-wrap: wrap;
}

.filter-bar input {
    min-width: min(430px, 100%);
}

.wide-filter input {
    flex: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #fecaca;
    font-size: 14px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #fee2e2, #7f1d1d);
}

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

.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--gray-950);
}

.category-overview-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--red-700);
    background: #fef2f2;
    font-size: 13px;
    font-weight: 700;
}

.detail-hero {
    padding: 56px 0;
    color: var(--white);
    background: radial-gradient(circle at 80% 10%, rgba(248, 113, 113, 0.4), transparent 28%), linear-gradient(135deg, var(--red-950), var(--red-900) 52%, var(--gray-950));
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #fee2e2, #7f1d1d);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    color: var(--white);
}

.detail-one-line {
    max-width: 820px;
    color: #fee2e2;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
    color: #fecaca;
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-meta dd {
    margin: 0;
    color: var(--white);
    font-weight: 800;
}

.large-tags {
    margin-bottom: 28px;
}

.player-section {
    padding: 50px 0 0;
    background: #0f172a;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: rgba(2, 6, 23, 0.78);
    cursor: pointer;
    overflow: hidden;
}

.player-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover {
    position: absolute;
    inset: 0;
    opacity: 0.46;
}

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

.big-play {
    position: relative;
    z-index: 2;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    background: var(--red-700);
    box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
    font-size: 34px;
}

.player-overlay strong {
    position: relative;
    z-index: 2;
    align-self: start;
    margin-top: calc(50% + 58px);
    font-size: 24px;
}

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

.text-grid article {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.text-grid h2 {
    margin: 0 0 14px;
    color: var(--gray-950);
}

.text-grid p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden-card {
    display: none !important;
}

[data-cover].cover-missing {
    opacity: 0;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-carousel {
        min-height: 760px;
        padding-top: 34px;
    }

    .hero-track {
        min-height: 660px;
    }

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

    .hero-image {
        min-height: auto;
        max-width: 320px;
    }

    .hero-image img {
        height: 410px;
    }

    .split-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-search {
        width: 100%;
    }

    .inline-search input {
        flex: 1;
    }

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

    .category-overview-grid,
    .text-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

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

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

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

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

    .category-cover {
        max-height: 260px;
    }

    .rank-row {
        grid-template-columns: 46px 1fr;
    }

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

    .filter-bar,
    .inline-search {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select,
    .inline-search input,
    .inline-search button {
        width: 100%;
    }

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