*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
}

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

.brand-mark,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(14, 165, 233, 0.22);
}

.brand-copy strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

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

.main-nav a,
.mobile-panel nav a {
    padding: 10px 16px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel nav a:hover {
    background: #1e293b;
    color: #ffffff;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 240px;
    padding: 10px 13px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.header-search button,
.mobile-search button,
.primary-button,
.panel-button,
.watch-link {
    border: 0;
    border-radius: 12px;
    background: #0ea5e9;
    color: #ffffff;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 15px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.panel-button:hover,
.watch-link:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(14, 165, 233, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.25) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 48%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 700px;
    padding-top: 30px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    margin: 0 0 18px;
    max-width: 680px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-text,
.page-hero p {
    margin: 0 0 28px;
    max-width: 690px;
    color: #94a3b8;
    font-size: 16px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.ghost-button {
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}

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

.hero-dots button {
    width: 36px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
}

.hero-dots button.is-active {
    background: #0ea5e9;
}

.category-strip {
    border-top: 1px solid rgba(51, 65, 85, 0.45);
    border-bottom: 1px solid rgba(51, 65, 85, 0.45);
    background: rgba(15, 23, 42, 0.75);
}

.category-strip-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.category-tile {
    min-height: 128px;
    padding: 18px;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    border-color: rgba(14, 165, 233, 0.48);
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.32);
}

.category-tile span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
}

.category-tile strong {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 18px;
}

.category-tile em {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.content-section,
.page-main,
.detail-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 64px 0;
}

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

.section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.section-more {
    display: inline-flex;
    align-items: center;
    color: #38bdf8;
    font-size: 14px;
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(14, 165, 233, 0.42);
    transform: translateY(-5px);
    box-shadow: 0 28px 55px rgba(2, 6, 23, 0.34), 0 0 35px rgba(14, 165, 233, 0.08);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0));
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.9);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 12px;
    background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
    left: 12px;
    background: rgba(251, 191, 36, 0.9);
    color: #1e293b;
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card-body h3 a:hover,
.rank-info h3 a:hover,
.breadcrumb a:hover {
    color: #38bdf8;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.72);
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 86px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(14, 165, 233, 0.44);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.24));
    color: #7dd3fc;
    font-weight: 900;
}

.rank-thumb {
    display: block;
    width: 86px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 17px;
}

.rank-info p {
    margin: 0 0 10px;
    color: #94a3b8;
    font-size: 14px;
}

.watch-link {
    padding: 10px 16px;
    white-space: nowrap;
}

.page-main {
    padding: 44px 0 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    padding: 58px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 30px;
    background:
        radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.98));
}

.slim-hero h1,
.category-hero h1,
.ranking-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

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

.category-panel {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    height: 210px;
    overflow: hidden;
    background: #0f172a;
}

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

.category-panel-body {
    padding: 22px;
}

.category-panel-body span {
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 800;
}

.category-panel-body h2 {
    margin: 8px 0;
    color: #ffffff;
    font-size: 24px;
}

.category-panel-body p,
.prose-section p {
    color: #94a3b8;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.sample-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.72);
    color: #cbd5e1;
    font-size: 12px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 12px 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding: 24px 0;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb strong {
    color: #e2e8f0;
}

.detail-main {
    padding-bottom: 80px;
}

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

.detail-primary,
.detail-sidebar .side-card,
.detail-copy {
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.28);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.42) 42%, rgba(2, 6, 23, 0.72));
    color: #ffffff;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.32);
    font-size: 26px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-shell.is-playing .player-overlay,
.player-overlay[hidden] {
    display: none;
}

.detail-copy {
    padding: 30px;
    border-top: 0;
    border-radius: 0 0 26px 26px;
}

.detail-copy h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 10px;
    background: rgba(51, 65, 85, 0.72);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 26px;
}

.article-block {
    margin-top: 26px;
}

.article-block h2,
.prose-section h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
}

.article-block p,
.prose-section p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
}

.side-card h2 {
    margin: 18px 0 8px;
    color: #ffffff;
    font-size: 22px;
}

.side-card p {
    color: #94a3b8;
    font-size: 14px;
}

.side-card .panel-button {
    width: 100%;
    margin-top: 14px;
}

.related-section {
    padding-top: 44px;
}

.prose-section {
    padding: 34px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
}

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.72);
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #94a3b8;
    font-size: 14px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

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

.footer-grid a:hover {
    color: #38bdf8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(51, 65, 85, 0.72);
}

[data-movie-card].is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

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

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

    .detail-sidebar {
        display: none;
    }
}

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

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

    .hero {
        height: 560px;
    }

    .hero-gradient {
        background:
            linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 58%, rgba(2, 6, 23, 0.1) 100%),
            linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.36));
    }

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

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

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

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

    .rank-row .watch-link {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        gap: 12px;
    }

    .brand-copy em {
        display: none;
    }

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

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-top: 76px;
    }

    .category-strip-inner,
    .category-panels,
    .movie-grid,
    .compact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .detail-copy {
        padding: 22px;
    }

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

    .rank-thumb {
        display: none;
    }

    .rank-row .watch-link {
        grid-column: 1 / -1;
    }

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