:root {
    --mist-950: #0f172a;
    --mist-900: #111827;
    --mist-800: #1f2937;
    --mist-700: #374151;
    --mist-600: #4b5563;
    --mist-500: #6b7280;
    --mist-300: #d1d5db;
    --mist-200: #e5e7eb;
    --mist-100: #f3f4f6;
    --mist-50: #f9fafb;
    --lake-900: #0c4a6e;
    --lake-800: #075985;
    --lake-700: #0369a1;
    --lake-600: #0284c7;
    --lake-500: #0ea5e9;
    --lake-100: #e0f2fe;
    --lake-50: #f0f9ff;
    --sepia-100: #fef3c7;
    --sepia-50: #fffbeb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-elevated: 0 24px 70px rgba(15, 23, 42, 0.18);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max: 1180px;
}

* {
    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;
    color: var(--mist-900);
    background: linear-gradient(180deg, var(--sepia-50) 0%, #ffffff 42%, var(--mist-50) 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25);
}

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

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

.brand-copy em {
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    color: var(--mist-300);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    color: var(--mist-300);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 9px 14px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.hero-carousel {
    position: relative;
    width: min(100% - 32px, var(--max));
    min-height: 560px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.45), transparent 38%), linear-gradient(120deg, var(--mist-950), var(--lake-900));
    box-shadow: var(--shadow-elevated);
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.25) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 32px));
    padding: 72px 48px 120px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--lake-100);
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.22);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-line {
    max-width: 650px;
    margin: 0;
    color: var(--mist-200);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.meta-row span,
.ghost-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 9px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.28);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-panel {
    position: absolute;
    right: 28px;
    bottom: 92px;
    z-index: 3;
    width: min(340px, calc(100% - 56px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--mist-200);
    font-size: 13px;
}

.hero-panel-title b {
    color: #ffffff;
}

.hero-mini {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    color: #ffffff;
    opacity: 0.74;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-mini.active,
.hero-mini:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.hero-mini img {
    width: 70px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini span {
    min-width: 0;
}

.hero-mini strong,
.compact-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini em,
.compact-card em {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--mist-300);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-controls {
    position: absolute;
    left: 48px;
    bottom: 36px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 28px;
    background: #ffffff;
}

.quick-search,
.category-strip,
.content-section,
.page-main,
.site-footer {
    width: min(100% - 32px, var(--max));
    margin-left: auto;
    margin-right: auto;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 20px;
    margin-top: 24px;
}

.search-form,
.quick-links,
.filter-bar,
.search-panel,
.detail-card,
.side-box {
    border: 1px solid var(--mist-200);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.search-form {
    padding: 22px;
    border-radius: 24px;
}

.search-form label,
.search-box label,
.filter-bar span {
    display: block;
    margin-bottom: 10px;
    color: var(--mist-700);
    font-weight: 800;
}

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

.search-form input,
.filter-bar input,
.search-box input,
.site-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--mist-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mist-900);
    outline: none;
    padding: 0 18px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-bar input:focus,
.search-box input:focus,
.site-select:focus {
    border-color: var(--lake-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
}

.quick-links a,
.category-strip a,
.category-card {
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, var(--lake-50));
    border: 1px solid var(--mist-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.quick-links a {
    display: grid;
    place-items: center;
    min-height: 58px;
    font-weight: 800;
    color: var(--lake-800);
}

.quick-links a:hover,
.category-strip a:hover,
.category-card:hover,
.movie-card:hover,
.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(14, 165, 233, 0.32);
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.category-strip a {
    padding: 22px;
}

.category-strip strong,
.category-strip span,
.category-card span,
.category-card strong,
.category-card em {
    display: block;
}

.category-strip strong,
.category-card strong {
    color: var(--mist-900);
    font-size: 18px;
}

.category-strip span,
.category-card em {
    margin-top: 8px;
    color: var(--mist-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.content-section {
    padding-top: 56px;
}

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

.section-head h2,
.page-hero h1,
.detail-heading h1 {
    margin: 0;
    color: var(--mist-900);
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--mist-600);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--lake-700);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--mist-200);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mist-100);
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.76) 100%);
    transition: opacity 0.25s ease;
}

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

.poster-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    color: #ffffff;
    font-size: 12px;
    transition: opacity 0.25s ease;
}

.poster-meta em {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    font-style: normal;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--lake-700);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-meta,
.movie-card:hover .poster-play {
    opacity: 1;
}

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

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

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: var(--mist-900);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover {
    color: var(--lake-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 6px 9px;
    color: var(--lake-700);
    background: var(--lake-100);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--mist-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-row span,
.rank-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
    font-weight: 900;
}

.rank-row em {
    color: var(--mist-500);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding: 36px 0 60px;
}

.page-hero {
    margin-bottom: 24px;
    padding: 44px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 32%), linear-gradient(135deg, #ffffff, var(--sepia-50));
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin-top: 16px;
    font-size: clamp(34px, 4vw, 54px);
}

.category-directory {
    margin-top: 22px;
}

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

.category-card {
    padding: 24px;
}

.category-card span {
    color: var(--lake-700);
    font-size: 13px;
    font-weight: 900;
}

.filter-bar,
.search-panel {
    margin-bottom: 22px;
    padding: 20px;
    border-radius: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pager a,
.pager span {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--mist-200);
    background: #ffffff;
    color: var(--mist-700);
    font-weight: 800;
}

.pager a.current,
.pager a:hover {
    color: #ffffff;
    border-color: var(--lake-600);
    background: var(--lake-600);
}

.pager span {
    opacity: 0.5;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--mist-200);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: var(--mist-100);
}

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

.ranking-info {
    position: relative;
    min-width: 0;
    padding: 6px 0;
}

.ranking-info .rank-number {
    position: absolute;
    right: 0;
    top: 0;
}

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

.ranking-info p {
    margin: 0 0 14px;
    color: var(--mist-600);
    line-height: 1.7;
}

.meta-row span {
    padding: 7px 10px;
    color: var(--mist-700);
    background: var(--mist-100);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-elevated);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--lake-700);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.player-start strong {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
}

.player-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card,
.side-box {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
}

.detail-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-heading h1 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 48px);
}

.ghost-chip {
    padding: 9px 12px;
    color: var(--lake-700);
    background: var(--lake-100);
}

.detail-meta {
    margin: 18px 0 8px;
}

.story-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--mist-200);
}

.story-block h2,
.side-box h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.story-block p {
    margin: 0;
    color: var(--mist-700);
    line-height: 1.9;
    white-space: pre-line;
}

.review-block {
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: var(--sepia-50);
}

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

.detail-side {
    min-width: 0;
}

.detail-side .side-box:first-child {
    margin-top: 0;
}

.poster-box {
    padding: 0;
    overflow: hidden;
}

.poster-box img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: var(--mist-100);
}

.compact-card img {
    width: 96px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.site-footer {
    margin-top: 46px;
    padding: 34px 0 24px;
    color: var(--mist-300);
    background: transparent;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    background: var(--mist-900);
}

.footer-inner p {
    max-width: 580px;
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.28);
}

.copyright {
    margin: 18px 0 0;
    text-align: center;
    color: var(--mist-500);
}

.is-hidden {
    display: none !important;
}

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

    .hero-panel {
        display: none;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 18px;
    }

    .detail-side .side-box {
        margin-top: 0;
    }
}

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

    .nav-toggle {
        display: block;
    }

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

    .hero-carousel {
        min-height: 580px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 52px 24px 118px;
    }

    .hero-controls {
        left: 24px;
    }

    .quick-search,
    .search-panel,
    .category-strip,
    .category-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .category-strip,
    .quick-search {
        gap: 12px;
    }

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

    .ranking-card {
        grid-template-columns: 150px 1fr;
    }

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

    .footer-inner {
        display: grid;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .quick-search,
    .category-strip,
    .content-section,
    .page-main,
    .site-footer,
    .hero-carousel {
        width: min(100% - 20px, var(--max));
    }

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

    .brand-copy em {
        display: none;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-line {
        font-size: 16px;
    }

    .search-form div {
        display: grid;
    }

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

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

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

    .movie-card p {
        font-size: 13px;
    }

    .page-hero,
    .detail-card,
    .side-box {
        padding: 20px;
        border-radius: 20px;
    }

    .section-head,
    .detail-heading {
        display: grid;
    }

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

    .ranking-card {
        grid-template-columns: 1fr;
    }

    .ranking-info .rank-number {
        position: static;
        margin-bottom: 12px;
    }

    .player-start span {
        width: 68px;
        height: 68px;
    }
}
