:root {
    --site-red: #dc2626;
    --site-red-deep: #991b1b;
    --site-cream: #fff7ed;
    --site-ink: #111827;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-card: #ffffff;
    --site-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: var(--site-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    color: var(--site-ink);
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
}

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

.main-nav a,
.mobile-nav a {
    color: #374151;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.is-active,
.mobile-nav a.is-active {
    background: #fee2e2;
    color: var(--site-red);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--site-line);
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 36px 0;
}

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

.section-title h2,
.section-title h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-title p {
    color: var(--site-muted);
    margin-top: 8px;
    max-width: 720px;
}

.link-more {
    color: var(--site-red);
    font-weight: 900;
    white-space: nowrap;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 40%, rgba(248, 113, 113, 0.22), transparent 28%), linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(20, 20, 20, 0.78) 45%, rgba(20, 20, 20, 0.25) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.08) 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    align-content: center;
}

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

.hero-eyebrow,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.24);
    border: 1px solid rgba(252, 165, 165, 0.28);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(40px, 8vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
    max-width: 820px;
}

.hero-copy h2 {
    margin-top: 12px;
}

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

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

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 16px 36px rgba(220, 38, 38, 0.32);
}

.button-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

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

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

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

.quick-search {
    position: relative;
    max-width: 720px;
    margin-top: 28px;
}

.search-input {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--site-line);
    background: #fff;
    color: var(--site-ink);
    padding: 0 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    outline: none;
}

.search-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    margin: 24px 0 34px;
}

.filter-select {
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--site-line);
    background: #fff;
    padding: 0 14px;
    outline: none;
}

.filter-status {
    color: var(--site-muted);
    font-weight: 700;
    margin-top: -16px;
    margin-bottom: 26px;
}

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

.movie-card {
    display: block;
    background: var(--site-card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
    border-color: rgba(239, 68, 68, 0.36);
}

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

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
}

.poster-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
}

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

.movie-card-body h3 {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 10px;
    min-height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-card {
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid rgba(254, 202, 202, 0.75);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    margin-top: 12px;
    color: var(--site-muted);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 82px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.rank-number {
    font-size: 24px;
    font-weight: 950;
    color: var(--site-red);
    text-align: center;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
}

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

.rank-item h3 {
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rank-item p {
    color: var(--site-muted);
    line-height: 1.6;
}

.rank-tag {
    color: var(--site-red);
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fee2e2;
}

.page-hero {
    background: radial-gradient(circle at 80% 20%, rgba(252, 165, 165, 0.35), transparent 28%), linear-gradient(135deg, #991b1b, #dc2626);
    color: #fff;
    padding: 78px 0;
}

.page-hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
    max-width: 860px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--site-red);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    gap: 30px;
}

.player-frame {
    position: relative;
    background: #0f172a;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

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

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.player-button {
    position: relative;
    z-index: 4;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: #fff;
    color: var(--site-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    padding-left: 6px;
}

.detail-panel,
.info-panel {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.detail-panel h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 14px;
}

.meta-pill.is-red {
    background: #fee2e2;
    color: var(--site-red);
}

.content-block {
    margin-top: 28px;
}

.content-block h2,
.content-block h3 {
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 12px;
}

.content-block p {
    color: #374151;
    line-height: 1.9;
    margin-bottom: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-panel {
    position: sticky;
    top: 96px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span:first-child {
    color: var(--site-muted);
}

.info-row span:last-child {
    font-weight: 900;
    text-align: right;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 44px 0;
    margin-top: 56px;
}

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

.footer-brand {
    font-weight: 950;
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}

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

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

.empty-result {
    display: none;
    text-align: center;
    padding: 48px;
    border-radius: 24px;
    background: #fff;
    color: var(--site-muted);
    border: 1px solid var(--site-line);
}

.empty-result.is-visible {
    display: block;
}

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

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

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

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

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

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

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

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

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

    .info-panel {
        position: static;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .container,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero-content {
        padding-top: 96px;
        padding-bottom: 70px;
    }

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

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

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

    .movie-card-body h3 {
        font-size: 15px;
        min-height: 40px;
    }

    .movie-card-body p {
        font-size: 13px;
        min-height: 60px;
    }

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

    .rank-item {
        grid-template-columns: 42px 68px 1fr;
    }

    .rank-tag {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

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

    .detail-panel,
    .info-panel {
        padding: 20px;
        border-radius: 22px;
    }

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

    .player-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
