:root {
    --lava-50: #fff7ed;
    --lava-100: #ffedd5;
    --lava-400: #fb923c;
    --lava-500: #f97316;
    --lava-600: #ea580c;
    --lava-700: #c2410c;
    --ember-500: #f59e0b;
    --volcanic-50: #f4f4f5;
    --volcanic-100: #e4e4e7;
    --volcanic-200: #d4d4d8;
    --volcanic-300: #a1a1aa;
    --volcanic-400: #71717a;
    --volcanic-500: #52525b;
    --volcanic-600: #3f3f46;
    --volcanic-700: #27272a;
    --volcanic-800: #18181b;
    --volcanic-900: #09090b;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.14);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--volcanic-800);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 45%, #fff7ed 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
.brand,
.eyebrow {
    letter-spacing: -0.03em;
}

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

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

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.btn-primary,
.btn-ghost,
.text-link,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover,
.rank-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.42);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.text-link {
    color: var(--lava-600);
    gap: 6px;
}

.text-link:hover {
    color: var(--lava-700);
    transform: translateX(3px);
}

.text-gradient-lava {
    color: transparent;
    background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.bg-gradient-volcanic {
    background: linear-gradient(135deg, var(--volcanic-900), var(--volcanic-800), var(--volcanic-700));
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    color: transparent;
    background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: var(--volcanic-700);
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after,
.mobile-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--lava-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--volcanic-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    background: var(--volcanic-900);
}

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

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

.hero-bg,
.hero-bg .poster-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg .poster-image {
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-bg.image-empty {
    background: radial-gradient(circle at 28% 20%, rgba(249, 115, 22, 0.45), transparent 34%), linear-gradient(135deg, #09090b, #27272a 55%, #7c2d12);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.16) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.08) 55%);
}

.hero-content {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(80px, 12vh, 130px);
    padding-top: 120px;
}

.hero-copy {
    width: min(760px, 100%);
    color: #fff;
    animation: fadeIn 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--lava-500);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    font-weight: 950;
    margin-bottom: 22px;
}

.hero-copy p,
.page-hero p,
.detail-lead,
.section-title-row p {
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.tag-list,
.movie-meta,
.detail-meta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin: 22px 0 30px;
}

.hero-tags span,
.tag-list span,
.movie-meta span,
.detail-meta-box span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--lava-500);
}

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

.section-title-row.compact {
    align-items: center;
}

.section-title-row h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.side-card h2 {
    color: var(--volcanic-900);
}

.section-title-row h2,
.detail-article h2,
.side-card h2 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 950;
}

.section-title-row p {
    color: var(--volcanic-500);
    max-width: 760px;
    margin-top: 10px;
}

.soft-section {
    background: linear-gradient(180deg, #fff, var(--volcanic-50));
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(140px, 0.5fr));
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid rgba(212, 212, 216, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--volcanic-500);
    font-size: 12px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--volcanic-200);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--volcanic-800);
    outline: none;
    background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--lava-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(228, 228, 231, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.28), transparent 30%), linear-gradient(135deg, var(--volcanic-800), var(--volcanic-700));
}

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

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.poster-frame:hover .poster-image {
    transform: scale(1.06);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

.image-empty::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
}

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

.movie-meta {
    color: var(--volcanic-500);
    margin-bottom: 10px;
}

.movie-meta span {
    color: var(--volcanic-500);
    background: var(--volcanic-50);
}

.movie-card h3,
.rank-row h3 {
    color: var(--volcanic-900);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 10px;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover {
    color: var(--lava-600);
}

.movie-card p,
.rank-row p {
    display: -webkit-box;
    min-height: 48px;
    color: var(--volcanic-500);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-list {
    margin-top: 14px;
}

.tag-list span {
    color: var(--lava-700);
    background: var(--lava-50);
}

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

.category-tile {
    min-height: 156px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(228, 228, 231, 0.92);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.category-image {
    width: 96px;
    height: 128px;
    border-radius: 18px;
}

.category-text {
    display: grid;
    gap: 9px;
}

.category-text strong {
    color: var(--volcanic-900);
    font-size: 20px;
    font-weight: 950;
}

.category-text small {
    color: var(--volcanic-500);
    line-height: 1.6;
}

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

.rank-panel,
.side-card,
.detail-article {
    border: 1px solid rgba(228, 228, 231, 0.92);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 76px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(228, 228, 231, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.home-rank-list .rank-row {
    grid-template-columns: 34px 62px 1fr;
    padding: 10px;
}

.home-rank-list .rank-action {
    display: none;
}

.rank-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
}

.rank-thumb {
    width: 76px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.home-rank-list .rank-thumb {
    width: 62px;
}

.rank-content h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.rank-content p {
    min-height: auto;
    -webkit-line-clamp: 1;
}

.rank-action {
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
    background: var(--lava-600);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.page-hero {
    padding: 138px 0 66px;
    color: #fff;
    background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.44), transparent 30%), linear-gradient(135deg, var(--volcanic-900), var(--volcanic-800) 48%, #7c2d12);
}

.small-hero h1 {
    color: #fff;
}

.small-hero p {
    max-width: 850px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--lava-400);
}

.detail-hero {
    padding: 132px 0 54px;
    background: radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.18), transparent 28%), linear-gradient(180deg, #fff, var(--volcanic-50));
}

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

.detail-copy .breadcrumb {
    color: var(--volcanic-500);
}

.detail-copy .breadcrumb a:hover {
    color: var(--lava-600);
}

.detail-copy h1 {
    color: var(--volcanic-900);
}

.detail-lead {
    color: var(--volcanic-600);
    max-width: 850px;
    margin-bottom: 24px;
}

.detail-meta-box span {
    color: var(--volcanic-700);
    background: #fff;
    border: 1px solid var(--volcanic-100);
}

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

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
    transition: opacity 0.25s ease;
}

.player-toggle {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.play-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
}

.player-shell.is-playing:hover .player-overlay {
    opacity: 1;
}

.player-control-bar {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.player-shell:hover .player-control-bar,
.player-shell:focus-within .player-control-bar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.player-control-bar button {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    color: #fff;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 14px 18px;
    color: #fff;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.72);
}

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

.detail-article {
    padding: clamp(24px, 5vw, 44px);
}

.detail-article h2,
.side-card h2 {
    margin-bottom: 16px;
    font-size: clamp(24px, 3vw, 34px);
}

.detail-article p {
    color: var(--volcanic-600);
    line-height: 1.95;
    font-size: 17px;
    margin-bottom: 28px;
}

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

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

.side-card dt {
    color: var(--volcanic-400);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: var(--volcanic-800);
    font-weight: 700;
}

.filter-empty {
    margin-top: 22px;
    color: var(--volcanic-500);
    font-weight: 800;
}

.site-footer {
    color: #fff;
    padding-top: 58px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer-about p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.72);
}

.footer-about p {
    max-width: 560px;
    line-height: 1.8;
}

.site-footer h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

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

.site-footer a:hover {
    color: var(--lava-400);
}

.footer-bottom {
    margin-top: 44px;
    padding: 22px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    background: var(--lava-600);
    box-shadow: 0 14px 34px rgba(234, 88, 12, 0.36);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .two-column-layout,
    .detail-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(340px, 100%);
    }
}

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

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

    .mobile-nav {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        z-index: 99;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-card);
        backdrop-filter: blur(18px);
    }

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

    .mobile-nav a {
        padding: 12px 8px;
        color: var(--volcanic-700);
        font-weight: 800;
    }

    .section-spacing {
        padding: 52px 0;
    }

    .hero,
    .hero-content {
        min-height: 78vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 90px;
    }

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

    .filter-search {
        grid-column: 1 / -1;
    }

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

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

    .rank-action {
        display: none;
    }

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

@media (max-width: 560px) {
    .container-custom {
        width: min(100% - 22px, 1280px);
    }

    .header-inner {
        height: 68px;
    }

    .mobile-nav {
        top: 68px;
    }

    .brand {
        font-size: 18px;
    }

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

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

    .hero-actions {
        display: grid;
    }

    .filter-panel,
    .movie-grid,
    .movie-grid-featured,
    .category-movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .category-image {
        width: 82px;
        height: 108px;
    }

    .rank-row,
    .home-rank-list .rank-row {
        grid-template-columns: 34px 56px 1fr;
        gap: 10px;
    }

    .rank-thumb,
    .home-rank-list .rank-thumb {
        width: 56px;
    }

    .detail-meta-box {
        display: grid;
    }

    .player-control-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-wrap: wrap;
    }

    .player-toggle {
        min-height: 54px;
        padding: 0 20px;
    }
}
