:root {
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --brand-soft: #fee2e2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --bg: #f9fafb;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.logo-text {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-subtitle {
    display: block;
    margin-top: -2px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
    color: #374151;
}

.primary-nav a,
.nav-dropdown-button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.primary-nav a:hover,
.nav-dropdown-button:hover {
    color: var(--brand);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    width: 310px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #4b5563;
    background: #f9fafb;
    font-size: 14px;
}

.nav-dropdown-menu a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.header-search {
    position: relative;
    flex: 0 1 260px;
}

.header-search input {
    width: 100%;
    padding: 11px 42px 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.mobile-panel-grid {
    display: grid;
    gap: 10px;
    padding: 18px 0 24px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 670px;
    background: #09090b;
    color: #fff;
}

.hero-slider {
    position: relative;
    min-height: 670px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    filter: saturate(1.1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 24%, rgba(248, 113, 113, 0.45), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, #09090b 0%, rgba(9, 9, 11, 0.15) 42%, rgba(9, 9, 11, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
    padding: 96px 0 118px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fee2e2;
    border: 1px solid rgba(254, 226, 226, 0.25);
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.22);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.32);
}

.btn-light {
    color: #111827;
    background: #fff;
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
    color: var(--brand);
    border-color: rgba(220, 38, 38, 0.22);
    background: #fff;
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
}

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

.hero-card-body {
    padding: 20px;
}

.hero-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.hero-card-text {
    margin: 8px 0 0;
    color: #d1d5db;
    font-size: 14px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--brand);
    opacity: 1;
}

.section {
    padding: 72px 0 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.movie-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(220, 38, 38, 0.28);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

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

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

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

.movie-card-title {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-meta {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 40px;
    margin-top: 8px;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 18px 38px rgba(220, 38, 38, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(220, 38, 38, 0.28);
}

.category-tile h3 {
    margin: 0;
    font-size: 22px;
}

.category-tile p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.rank-no {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #f97316);
    font-weight: 900;
}

.ranking-thumb {
    width: 74px;
    height: 98px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

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

.ranking-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.ranking-meta,
.ranking-desc {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.page-hero {
    padding: 64px 0;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(248, 113, 113, 0.32), transparent 34%),
        linear-gradient(135deg, #111827, #7f1d1d 48%, #111827);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #e5e7eb;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.detail-shell {
    padding: 34px 0 0;
}

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

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

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 24px 60px rgba(220, 38, 38, 0.38);
    font-size: 34px;
    transform: translateZ(0);
}

.player-title-bar {
    padding: 18px 20px;
    color: #f9fafb;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #09090b;
}

.player-title-bar h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.18;
}

.player-title-bar p {
    margin: 10px 0 0;
    color: #d1d5db;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

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

.detail-meta {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 14px;
}

.detail-meta strong {
    color: #111827;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 900;
}

.article-block {
    margin-top: 28px;
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.article-block p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 16px;
}

.article-block p:last-child {
    margin-bottom: 0;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 860px;
    margin-top: 26px;
}

.search-results {
    min-height: 260px;
}

.empty-state {
    padding: 58px 24px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 22px;
    background: #fff;
}

.site-footer {
    margin-top: 82px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    padding: 42px 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p {
    margin: 12px 0 0;
    color: #9ca3af;
}

.footer-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

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

.footer-links a {
    color: #9ca3af;
}

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

.copyright {
    padding: 18px 0;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

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

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

@media (max-width: 900px) {
    .primary-nav,
    .header-search {
        display: none;
    }

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

    .hero,
    .hero-slider {
        min-height: 780px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 72px 0 110px;
    }

    .hero-card {
        max-width: 380px;
    }

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

    .detail-side {
        position: static;
    }

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

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

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

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

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

    .ranking-item {
        grid-template-columns: 44px 58px minmax(0, 1fr);
    }

    .ranking-item .btn {
        grid-column: 1 / -1;
    }

    .ranking-thumb {
        width: 58px;
        height: 78px;
    }

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

    .search-box {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        height: 360px;
    }

    .logo-subtitle {
        display: none;
    }
}
