:root {
    --page-bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.82);
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --accent: #10b981;
    --accent-strong: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.18);
    --gold: #facc15;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 6%, rgba(14, 165, 233, 0.18), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(22px);
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #001b12;
    background: linear-gradient(135deg, #6ee7b7, #10b981);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.34);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(16, 185, 129, 0.15);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-search input,
.wide-search input,
.card-filter,
.card-filter-select {
    color: white;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-search input {
    width: 220px;
    padding: 10px 14px;
}

.nav-search input:focus,
.wide-search input:focus,
.card-filter:focus,
.card-filter-select:focus {
    border-color: rgba(52, 211, 153, 0.72);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.nav-search button,
.wide-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-search button,
.wide-search button,
.primary-btn {
    color: #052e23;
    background: linear-gradient(135deg, #6ee7b7, #10b981);
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.26);
}

.nav-search button {
    padding: 10px 18px;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: white;
    background: rgba(15, 23, 42, 0.86);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

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

.hero-slider {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.46) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 46%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 670px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 80px 0 92px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.hero-desc {
    max-width: 660px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2.2vw, 23px);
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.64);
}

.hero-tags span,
.detail-meta span {
    padding: 8px 13px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.52);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.48);
    transition: width 200ms ease, background 200ms ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--accent-strong);
}

.quick-search-panel,
.section-shell,
.detail-shell,
.footer-grid,
.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.quick-search-panel h2,
.section-title h2,
.rank-panel h2,
.detail-article h2 {
    margin: 0;
    color: white;
    letter-spacing: -0.04em;
}

.quick-search-panel h2 {
    font-size: clamp(26px, 3vw, 42px);
}

.wide-search {
    display: flex;
    gap: 12px;
}

.wide-search input {
    min-width: 0;
    width: 100%;
    padding: 16px 20px;
}

.wide-search button {
    flex: 0 0 auto;
    padding: 0 26px;
}

.section-shell {
    padding: 72px 0 0;
}

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

.section-title h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-title.compact {
    margin-bottom: 20px;
}

.section-title.compact h2 {
    font-size: 30px;
}

.section-title a,
.text-link {
    color: var(--accent-strong);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transition: transform 450ms ease, opacity 450ms ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 58px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    bottom: 20px;
    color: #cbd5e1;
    line-height: 1.55;
}

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.02) 56%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    color: #111827;
    border-radius: 99px;
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.14);
}

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

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

.movie-card-body h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover {
    color: var(--accent-strong);
}

.card-meta {
    gap: 6px;
    margin-bottom: 9px;
}

.card-meta span {
    padding: 4px 8px;
    color: #a7f3d0;
    font-size: 12px;
}

.movie-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.tag-row {
    margin-top: 11px;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: #d1fae5;
    font-size: 12px;
}

.two-column-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.62);
    transition: transform 180ms ease, background 180ms ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(16, 185, 129, 0.12);
}

.rank-no {
    color: var(--accent-strong);
    font-weight: 900;
}

.rank-item img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-score {
    color: var(--gold);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.page-hero {
    min-height: 360px;
    display: grid;
    align-items: center;
    padding: 86px 0;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 18%, rgba(16, 185, 129, 0.34), transparent 26rem),
        linear-gradient(135deg, #020617, #0f172a 72%, #064e3b);
}

.page-hero > div {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.8;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.category-card-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-card-large h2 {
    margin: 0;
    font-size: 30px;
}

.category-card-large p:not(.eyebrow) {
    color: #cbd5e1;
    line-height: 1.8;
}

.filter-shell {
    padding-top: 52px;
}

.filter-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.card-filter {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.card-filter-select {
    width: 170px;
    padding: 14px 16px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.ranking-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 4px 7px;
    color: #111827;
    border-radius: 99px;
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.ranking-cover img {
    width: 96px;
    height: 134px;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.ranking-info p {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.7;
}

.detail-hero {
    min-height: 640px;
}

.detail-shell {
    position: relative;
    z-index: 2;
    padding: 38px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 10px 0 54px;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    max-width: 850px;
}

.detail-one-line {
    max-width: 880px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 22px;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 24px;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 52px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 30px;
    background: black;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: black;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

.player-start span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding-left: 7px;
    border-radius: 999px;
    color: #052e23;
    background: linear-gradient(135deg, #a7f3d0, #10b981);
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.38);
    font-size: 34px;
}

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

.article-section {
    padding-top: 46px;
}

.detail-article {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    line-height: 1.9;
}

.detail-article h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 12px 0 0;
    font-size: 17px;
}

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

.info-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.48);
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 5px 0 0;
    color: white;
    font-weight: 800;
}

.site-footer {
    margin-top: 78px;
    padding: 46px 0 24px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

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

.footer-grid p {
    max-width: 560px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.footer-grid a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: var(--accent-strong);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 14px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none;
}

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

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

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

    .two-column-block,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding-top: 54px;
    }

    .hero-poster {
        width: min(250px, 70vw);
        transform: none;
    }

    .quick-search-panel,
    .wide-search,
    .detail-grid,
    .footer-grid,
    .category-card-large,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .wide-search {
        display: grid;
    }

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

    .card-filter-select {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .nav-shell,
    .quick-search-panel,
    .section-shell,
    .detail-shell,
    .footer-grid,
    .footer-bottom,
    .page-hero > div {
        width: min(100% - 24px, 1240px);
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-desc,
    .detail-one-line,
    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

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

    .section-shell {
        padding-top: 52px;
    }

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

    .category-card-cover {
        max-width: 260px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}
