:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-cyan: #06b6d4;
    --color-red: #ef4444;
    --color-orange: #f97316;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-border: #e5e7eb;
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
    --shadow-card-hover: 0 24px 60px rgba(37, 99, 235, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--color-text);
    background: #f3f6fb;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 45%, #0891b2 100%);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.header-inner {
    width: min(var(--container), calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.22);
}

.brand-text {
    font-size: 21px;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    font-weight: 650;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 99px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

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

.header-search {
    position: relative;
    width: min(280px, 26vw);
}

.header-search input,
.mobile-search input,
.page-search input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 11px 46px 11px 18px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.header-search input:focus,
.mobile-search input:focus {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link.sub-link {
    opacity: 0.9;
    padding-left: 24px;
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.18);
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 4px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #1d4ed8;
    background: #ffffff;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.28), transparent 34%),
                linear-gradient(120deg, #172554 0%, #1e3a8a 48%, #164e63 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.52), rgba(8, 47, 73, 0.72));
    z-index: 1;
}

.hero-slides {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.hero-slide {
    min-height: 650px;
    display: none;
    grid-template-columns: 1.05fr 0.75fr;
    align-items: center;
    gap: 56px;
    padding: 70px 0;
}

.hero-slide.is-active {
    display: grid;
    animation: fade-up 0.65s ease both;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.34;
    filter: saturate(1.08);
}

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

.hero-copy,
.hero-poster-card {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 23px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.16);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
}

.hero-poster-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
    transform: rotate(1deg);
}

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

.hero-poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-poster-info strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.main-section.white {
    background: #ffffff;
}

.main-section.soft {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
}

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

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

.section-header h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-header p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.section-link {
    color: var(--color-primary);
    font-weight: 850;
}

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

.movie-grid.featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.card-poster {
    position: relative;
    overflow: hidden;
    background: #dbeafe;
}

.card-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-region,
.card-year {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.card-region {
    top: 10px;
    left: 10px;
}

.card-year {
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.78);
}

.card-play,
.featured-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 40px;
    opacity: 0;
    background: rgba(15, 23, 42, 0.36);
    transition: opacity 0.22s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h3,
.horizontal-content h3,
.featured-content h3 {
    margin: 0 0 8px;
    line-height: 1.35;
}

.card-body h3 {
    font-size: 16px;
}

.card-body p,
.horizontal-content p,
.featured-content p {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.card-meta.light {
    color: rgba(255, 255, 255, 0.78);
}

.featured-card {
    border-radius: 24px;
}

.featured-poster {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    background: #0f172a;
}

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

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0.90) 100%);
}

.featured-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: #ffffff;
}

.featured-content h3 {
    font-size: 24px;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.76);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.category-tile::after {
    content: "▶";
    position: absolute;
    right: 22px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.22);
    font-size: 70px;
    line-height: 1;
}

.from-blue-to-cyan {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.from-red-to-orange {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.from-indigo-to-purple {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.from-slate-to-blue {
    background: linear-gradient(135deg, #334155, #2563eb);
}

.from-pink-to-rose {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.from-cyan-to-teal {
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.from-amber-to-red {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.from-emerald-to-green {
    background: linear-gradient(135deg, #10b981, #22c55e);
}

.from-violet-to-fuchsia {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.from-sky-to-blue {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.rank-item a {
    display: grid;
    grid-template-columns: 44px 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card-hover);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-tag {
    color: var(--color-muted);
    font-size: 13px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #172554, #1d4ed8 52%, #0891b2);
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 14px;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 750;
}

.page-tools {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.page-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.page-search input {
    color: var(--color-text);
    border-color: var(--color-border);
    background: #f8fafc;
}

.page-search input::placeholder {
    color: #94a3b8;
}

.page-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    font-weight: 850;
    cursor: pointer;
}

.no-results {
    display: none;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.90));
    z-index: 1;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
}

.player-section {
    padding: 48px 0 24px;
    background: #0f172a;
}

.video-player {
    position: relative;
    overflow: hidden;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.38);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.70));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    color: #2563eb;
    background: #ffffff;
    font-size: 42px;
    box-shadow: 0 18px 50px rgba(255, 255, 255, 0.20);
}

.player-status {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.content-panel,
.side-panel {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.content-panel + .content-panel {
    margin-top: 24px;
}

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

.content-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.content-panel p + p {
    margin-top: 16px;
}

.side-panel {
    display: grid;
    gap: 18px;
}

.side-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
}

.side-card img {
    width: 80px;
    height: 108px;
    border-radius: 14px;
    object-fit: cover;
}

.side-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-card span {
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    color: #cbd5e1;
    background: #111827;
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 32px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 36px;
}

.footer-logo .brand-icon {
    color: #111827;
}

.footer-brand p {
    max-width: 420px;
    margin: 16px 0 0;
}

.footer-group h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
}

.footer-group li {
    margin-bottom: 8px;
}

.footer-group a {
    color: #cbd5e1;
}

.footer-group a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

    .mobile-menu-button {
        display: inline-block;
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
        padding: 56px 0 86px;
    }

    .hero-poster-card {
        max-width: 340px;
        margin: 0 auto;
    }

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

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

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-cover {
        max-width: 300px;
    }

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

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

    .brand-text {
        font-size: 18px;
    }

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

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

    .rank-item a {
        grid-template-columns: 34px 50px 1fr;
    }

    .rank-tag {
        display: none;
    }

    .page-search {
        grid-template-columns: 1fr;
    }

    .page-search button {
        min-height: 44px;
    }

    .content-panel,
    .side-panel {
        padding: 20px;
    }

    .player-button {
        width: 76px;
        height: 76px;
        font-size: 34px;
    }
}
