:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: #334155;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --gold: #facc15;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.15), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 28%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.25);
}

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

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a,
.mobile-nav a {
    color: #cbd5e1;
    border-radius: 12px;
    transition: 0.2s ease;
}

.main-nav a {
    white-space: nowrap;
    padding: 10px 13px;
    font-size: 14px;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.header-search {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.tool-row input {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.9);
    outline: none;
    border-radius: 14px;
    transition: 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.tool-row input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding-top: 10px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    height: clamp(520px, 72vh, 760px);
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.1)),
        linear-gradient(0deg, var(--bg), transparent 34%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 760px;
    margin-left: max(16px, calc((100vw - 1180px) / 2));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    width: min(640px, 100%);
    color: #cbd5e1;
    margin: 0 0 22px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-meta span,
.detail-meta-row span {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    backdrop-filter: blur(14px);
}

.hero-meta span:first-child,
.detail-meta-row span:first-child {
    color: #111827;
    background: var(--gold);
    border-color: transparent;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 13px 20px;
    font-weight: 800;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.22);
}

.ghost-btn {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.45);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn:hover {
    border-color: rgba(6, 182, 212, 0.58);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.72);
    transition: 0.25s ease;
}

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

.page-section {
    padding: 58px 0;
}

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

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-head h2 span {
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-more {
    color: #67e8f9;
    font-weight: 700;
}

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(6, 182, 212, 0.72);
    box-shadow: 0 22px 58px rgba(6, 182, 212, 0.15);
}

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

.compact .poster-frame {
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.88));
}

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

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: 0.22s ease;
}

.play-hover span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    box-shadow: 0 15px 36px rgba(6, 182, 212, 0.36);
}

.movie-card-link:hover .play-hover {
    opacity: 1;
}

.poster-info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px;
}

.poster-info h3,
.card-title {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.35;
}

.poster-info h3 {
    font-size: 18px;
}

.poster-info p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 12px;
}

.card-body {
    padding: 13px 14px 15px;
}

.card-title {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span {
    color: #bae6fd;
    background: rgba(6, 182, 212, 0.13);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

.tag-row.large span {
    padding: 7px 11px;
    font-size: 13px;
}

.panel-section {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(51, 65, 85, 0.76);
    box-shadow: var(--shadow);
}

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

.category-card {
    position: relative;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.34), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.86));
    border: 1px solid rgba(51, 65, 85, 0.78);
    transition: 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.72);
}

.category-card strong {
    font-size: 24px;
}

.category-card span {
    color: #cbd5e1;
    line-height: 1.65;
}

.category-card b {
    color: #67e8f9;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.rank-list,
.side-rank {
    display: grid;
    gap: 10px;
}

.rank-row,
.full-rank-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 16px;
    transition: 0.2s ease;
}

.rank-row {
    grid-template-columns: 42px 1fr auto;
    padding: 13px 14px;
}

.rank-row:hover,
.full-rank-row:hover {
    border-color: rgba(6, 182, 212, 0.7);
    transform: translateX(4px);
}

.rank-row span,
.full-rank-row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: var(--gold);
    font-weight: 900;
}

.rank-row strong,
.full-rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em,
.full-rank-row em {
    color: #67e8f9;
    font-style: normal;
    font-weight: 800;
}

.rank-feature {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border-radius: 28px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: #000000;
}

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

.rank-feature > div {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 34px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95), transparent);
}

.rank-feature span,
.ranking-hero span {
    color: #67e8f9;
    font-weight: 800;
}

.rank-feature h2,
.ranking-hero h1 {
    margin: 10px 0;
    font-size: clamp(28px, 4vw, 46px);
}

.rank-feature p,
.ranking-hero p {
    color: #cbd5e1;
    line-height: 1.75;
}

.sub-page {
    padding: 38px 0 60px;
}

.sub-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(32px, 6vw, 66px);
    background:
        radial-gradient(circle at 10% 5%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(51, 65, 85, 0.76);
    box-shadow: var(--shadow);
}

.sub-hero h1,
.detail-title-block h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.sub-hero p,
.detail-title-block p {
    color: #cbd5e1;
    max-width: 760px;
    line-height: 1.8;
    font-size: 18px;
}

.compact-hero {
    padding: clamp(28px, 5vw, 52px);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 14px;
}

.crumb a {
    color: #67e8f9;
}

.tool-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.tool-row input {
    min-height: 52px;
    flex: 1;
    min-width: 0;
    padding: 0 18px;
}

.empty-state {
    margin-top: 24px;
    color: #cbd5e1;
    text-align: center;
    border-radius: 20px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.72);
}

.ranking-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: center;
}

.ranking-hero img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.side-rank {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(51, 65, 85, 0.76);
}

.side-rank h2 {
    margin: 0 0 16px;
}

.full-rank-row {
    grid-template-columns: 42px 1fr;
    padding: 12px;
}

.full-rank-row em,
.full-rank-row b {
    grid-column: 2;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.full-rank-row b {
    color: #67e8f9;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #000000;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) saturate(1.1);
    transform: scale(1.04);
    opacity: 0.56;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.64)),
        linear-gradient(0deg, var(--bg), transparent 35%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 82px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow);
}

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

.detail-title-block {
    padding-bottom: 12px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: -42px;
    position: relative;
    z-index: 3;
    padding-bottom: 70px;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.video-card,
.copy-card,
.side-card {
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(51, 65, 85, 0.78);
    box-shadow: var(--shadow);
}

.video-card {
    overflow: hidden;
}

.video-stage {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.38);
    transform: translateX(3px);
}

.video-card h2,
.video-card p,
.copy-card,
.side-card {
    padding: 24px;
}

.video-card h2 {
    margin: 0;
    padding-bottom: 0;
}

.video-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.copy-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.copy-card p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

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

.side-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: #ffffff;
}

.small-links {
    position: static;
    display: grid;
    gap: 10px;
}

.small-links a {
    display: block;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.68);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 0 28px;
    color: #64748b;
    font-size: 14px;
}

@media (min-width: 640px) {
    .hot-grid,
    .latest-grid,
    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (min-width: 1180px) {
    .hot-grid,
    .latest-grid,
    .filter-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

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

    .main-nav {
        margin-left: auto;
    }

    .rank-panel,
    .rank-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .side-rank,
    .side-card {
        position: static;
    }
}

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

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

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

    .brand-copy small {
        display: none;
    }

    .hero-copy {
        margin-left: 16px;
    }

    .panel-section {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .rank-feature {
        min-height: 420px;
    }

    .ranking-hero,
    .detail-head-grid {
        grid-template-columns: 1fr;
    }

    .ranking-hero img,
    .detail-poster {
        max-width: 280px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-content {
        margin-top: -22px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

    .hero-carousel {
        height: 640px;
    }

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

    .hero-actions,
    .tool-row {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

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

    .poster-info {
        padding: 12px;
    }

    .poster-info p {
        display: none;
    }

    .card-body {
        padding: 11px;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }

    .sub-hero,
    .ranking-hero {
        border-radius: 22px;
        padding: 28px 20px;
    }

    .detail-hero-inner {
        padding-top: 24px;
    }

    .detail-title-block h1 {
        font-size: 36px;
    }

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

    .video-card h2,
    .video-card p,
    .copy-card,
    .side-card {
        padding: 18px;
    }

    .play-circle {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }
}
