:root {
    --frost-950: #082f49;
    --frost-900: #0c4a6e;
    --frost-800: #075985;
    --frost-700: #0369a1;
    --frost-600: #0284c7;
    --frost-500: #0ea5e9;
    --frost-100: #e0f2fe;
    --frost-50: #f0f9ff;
    --ice-900: #164e63;
    --ice-700: #0e7490;
    --ice-600: #0891b2;
    --ice-500: #06b6d4;
    --ice-400: #22d3ee;
    --ice-300: #67e8f9;
    --ice-200: #a5f3fc;
    --ice-50: #ecfeff;
    --silver-950: #020617;
    --silver-900: #0f172a;
    --silver-800: #1e293b;
    --silver-700: #334155;
    --silver-600: #475569;
    --silver-500: #64748b;
    --silver-400: #94a3b8;
    --silver-300: #cbd5e1;
    --silver-200: #e2e8f0;
    --silver-100: #f1f5f9;
    --silver-50: #f8fafc;
    --white: #ffffff;
    --black: #000000;
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.10), 0 2px 4px -2px rgb(15 23 42 / 0.10);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.12), 0 4px 6px -4px rgb(15 23 42 / 0.12);
    --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.28);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--silver-900);
    background: linear-gradient(180deg, var(--silver-50), var(--white));
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-nav {
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-900), var(--frost-800), var(--ice-900));
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ice-400), var(--frost-500));
    box-shadow: 0 14px 30px rgb(8 145 178 / 0.34);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 21px;
    color: transparent;
    background: linear-gradient(90deg, var(--ice-200), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.nav-link {
    color: rgb(255 255 255 / 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--ice-200);
    transform: translateY(-1px);
}

.nav-link-soft {
    color: rgb(255 255 255 / 0.72);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    background: var(--frost-800);
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

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

.mobile-link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgb(255 255 255 / 0.92);
}

.mobile-link:hover {
    background: rgb(255 255 255 / 0.10);
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--silver-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgb(34 211 238 / 0.24), transparent 34%),
        linear-gradient(90deg, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.58), rgb(0 0 0 / 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
    padding-bottom: 64px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.hero-meta span:first-child {
    background: var(--frost-600);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.hero-meta span:not(:first-child) {
    color: var(--silver-300);
}

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

.hero p {
    margin: 0 0 24px;
    max-width: 640px;
    color: var(--silver-200);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
}

.hero-tags span {
    color: var(--white);
    background: rgb(2 132 199 / 0.54);
    padding: 8px 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 18px 35px rgb(8 145 178 / 0.35);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--frost-500), var(--ice-500));
}

.btn-ghost {
    color: var(--white);
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.28);
    backdrop-filter: blur(10px);
}

.btn-small {
    min-height: 38px;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgb(0 0 0 / 0.32);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgb(0 0 0 / 0.48);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 78px;
    width: min(760px, calc(100% - 48px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 8px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    border: 1px solid rgb(255 255 255 / 0.25);
    backdrop-filter: blur(18px);
}

.hero-search input,
.wide-search input,
.inline-search input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--silver-900);
    background: var(--white);
}

.hero-search input {
    border-radius: 999px 0 0 999px;
    padding: 14px 20px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    cursor: pointer;
    font-weight: 800;
}

.hero-category-bar {
    position: absolute;
    z-index: 5;
    right: 24px;
    bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 44%;
}

.hero-category-bar a {
    color: var(--white);
    background: rgb(255 255 255 / 0.16);
    border: 1px solid rgb(255 255 255 / 0.24);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    backdrop-filter: blur(12px);
}

.section,
.content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.tint-section {
    max-width: none;
    background: linear-gradient(135deg, var(--frost-50), var(--ice-50));
}

.tint-section > .section-head,
.tint-section > .card-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.dark-section {
    max-width: none;
    color: var(--white);
    background: linear-gradient(135deg, var(--silver-900), var(--frost-950));
}

.dark-section > .section-head,
.dark-section > .ranking-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head h2,
.category-panel-head h2,
.side-card h2,
.story-section h2 {
    margin: 0;
    color: var(--silver-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-head.light h2 {
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--frost-600);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dark-section .eyebrow,
.page-hero .eyebrow {
    color: var(--ice-300);
}

.section-link {
    color: var(--frost-600);
    font-weight: 800;
}

.section-link.light {
    color: var(--ice-300);
}

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--silver-200);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.72));
    transition: opacity 0.3s ease;
}

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

.type-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.type-pill {
    right: 12px;
    padding: 7px 10px;
    background: var(--frost-600);
}

.rank-badge {
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 20px rgb(239 68 68 / 0.25);
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    min-height: 48px;
    color: var(--silver-900);
    font-size: 17px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--frost-600);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--silver-600);
    font-size: 13px;
    margin-bottom: 10px;
}

.movie-card-body p {
    margin: 0 0 14px;
    color: var(--silver-600);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-card,
.category-panel,
.detail-card,
.side-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.category-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 116px;
    overflow: hidden;
    border-radius: 16px;
}

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

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p,
.category-panel-head p {
    margin: 0;
    color: var(--silver-600);
    line-height: 1.7;
}

.category-panel {
    padding: 28px;
    margin-bottom: 34px;
}

.category-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: auto 66px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: var(--silver-900);
    background: rgb(255 255 255 / 0.94);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, background 0.25s ease;
}

.dark-section .mini-card {
    color: var(--white);
    background: rgb(255 255 255 / 0.10);
    border: 1px solid rgb(255 255 255 / 0.12);
}

.mini-card:hover {
    transform: translateY(-3px);
    background: var(--white);
}

.dark-section .mini-card:hover {
    color: var(--silver-900);
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    font-weight: 900;
}

.mini-card img {
    width: 66px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.mini-card em {
    display: block;
    color: var(--silver-500);
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
}

.dark-section .mini-card em {
    color: var(--silver-300);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgb(34 211 238 / 0.25), transparent 26%),
        linear-gradient(90deg, var(--frost-900), var(--frost-800), var(--ice-900));
}

.page-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--ice-200);
    font-size: 18px;
    line-height: 1.8;
}

.inline-search input,
.wide-search input {
    border-radius: 999px;
    border: 1px solid var(--silver-200);
    box-shadow: var(--shadow-md);
}

.inline-search input {
    width: 280px;
    padding: 13px 18px;
}

.wide-search {
    margin-bottom: 28px;
}

.wide-search input {
    padding: 18px 24px;
    font-size: 18px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    text-align: center;
    color: var(--silver-600);
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.empty-state.is-visible {
    display: block;
}

.searchable-card.is-hidden {
    display: none;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
    gap: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--silver-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--frost-600);
    font-weight: 700;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: var(--black);
    box-shadow: var(--shadow-2xl);
    margin-bottom: 24px;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle, rgb(2 132 199 / 0.20), transparent 38%),
        linear-gradient(180deg, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-mark {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 24px 45px rgb(2 132 199 / 0.36);
    font-size: 34px;
    padding-left: 5px;
}

.player-overlay strong {
    max-width: 80%;
    font-size: 24px;
    line-height: 1.4;
}

.player-error {
    position: absolute;
    inset: auto 20px 20px;
    display: none;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--white);
    background: rgb(127 29 29 / 0.92);
    text-align: center;
}

.player-error.is-visible {
    display: block;
}

.detail-card {
    padding: 30px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 1fr 148px;
    gap: 24px;
    align-items: start;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.detail-one-line {
    margin: 0;
    color: var(--silver-600);
    font-size: 18px;
    line-height: 1.7;
}

.detail-poster {
    width: 148px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 16px;
}

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    font-weight: 700;
    font-size: 13px;
}

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

.detail-tags span {
    color: var(--silver-700);
    background: var(--silver-100);
    padding: 7px 11px;
}

.story-section {
    padding-top: 24px;
    border-top: 1px solid var(--silver-200);
    margin-top: 24px;
}

.story-section h2 {
    font-size: 23px;
    margin-bottom: 12px;
}

.story-section p {
    margin: 0;
    color: var(--silver-700);
    line-height: 1.9;
    font-size: 16px;
}

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

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

.side-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

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

.side-list .mini-card {
    grid-template-columns: 62px 1fr;
}

.side-list .ranking-number {
    display: none;
}

.site-footer {
    color: var(--silver-300);
    background: var(--silver-950);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

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

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

.footer-links a:hover {
    color: var(--ice-300);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px;
    border-top: 1px solid rgb(148 163 184 / 0.16);
    color: var(--silver-400);
    font-size: 14px;
}

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .hero {
        min-height: 680px;
        height: 86vh;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 74px;
    }

    .hero-copy {
        padding-bottom: 140px;
    }

    .hero-search {
        bottom: 82px;
    }

    .hero-category-bar {
        left: 24px;
        right: 24px;
        max-width: none;
        justify-content: center;
    }

    .hero-arrow {
        display: none;
    }

    .section,
    .content-wrap {
        padding: 52px 16px;
    }

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

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

    .movie-card-body h3 {
        font-size: 15px;
        min-height: 42px;
    }

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

    .section-head,
    .category-panel-head {
        display: grid;
        align-items: start;
    }

    .inline-search input {
        width: 100%;
    }

    .detail-layout {
        padding: 24px 16px 42px;
    }

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

    .detail-poster {
        width: 180px;
    }

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

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

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .hero-search input {
        border-radius: 16px;
    }

    .hero-search button {
        min-height: 44px;
        margin-top: 8px;
    }

    .card-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-panel {
        padding: 18px;
    }

    .detail-card {
        padding: 20px;
    }

    .mini-card {
        grid-template-columns: auto 58px 1fr;
        gap: 10px;
    }

    .mini-card img {
        width: 58px;
        height: 78px;
    }
}
