:root {
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --pink-50: #fdf2f8;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --mint-50: #f0fdfa;
    --mint-100: #ccfbf1;
    --mint-500: #14b8a6;
    --mint-600: #0d9488;
    --cool-50: #ecfeff;
    --cool-100: #cffafe;
    --cool-600: #0891b2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.14);
    --radius-lg: 18px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--red-50), var(--pink-50) 34%, var(--white) 72%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.24);
}

.brand-text {
    font-size: 22px;
    color: transparent;
    background: linear-gradient(90deg, var(--red-600), var(--pink-600));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--red-600);
}

.header-search,
.mobile-search,
.page-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input {
    width: 240px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(90deg, var(--red-500), var(--pink-500));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.mobile-panel {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gray-200);
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66) 44%, rgba(17, 24, 39, 0.12)),
        linear-gradient(0deg, rgba(254, 242, 242, 0.9), rgba(254, 242, 242, 0) 30%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(1180px, calc(100% - 40px));
    transform: translate(-50%, -50%);
}

.hero-kicker,
.page-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(239, 68, 68, 0.78);
    backdrop-filter: blur(8px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    max-width: 820px;
    margin: 22px 0 8px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 0 0 18px;
    color: #fecdd3;
    font-size: clamp(24px, 3vw, 44px);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 23px);
}

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

.primary-button,
.secondary-button,
.cta-button,
.side-button,
.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.cta-button,
.side-button,
.panel-link {
    color: var(--white);
    background: linear-gradient(90deg, var(--red-500), var(--pink-500));
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.28);
}

.secondary-button {
    color: var(--red-600);
    background: rgba(255, 255, 255, 0.92);
}

.primary-button:hover,
.secondary-button:hover,
.cta-button:hover,
.side-button:hover,
.panel-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    right: 36px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    line-height: 1;
}

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

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

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

.content-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}

.content-section.compact {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-600);
    font-weight: 800;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.74);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.32);
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--gray-900);
}

.poster-link img,
.list-cover img,
.rank-poster img,
.related-item img,
.side-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.movie-card-list:hover .list-cover img,
.rank-card:hover .rank-poster img,
.related-item:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
}

.play-badge,
.play-dot {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.play-badge {
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.duration-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title,
.movie-card-list:hover h3,
.rank-card:hover h2 {
    color: var(--mint-600);
}

.card-body p,
.list-body p,
.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 14px;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags,
.card-foot,
.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-tags span,
.tag-cloud span,
.filter-chip {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--mint-600);
    background: var(--mint-50);
    font-size: 13px;
    font-weight: 800;
}

.card-foot,
.meta-line {
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 13px;
}

.category-section {
    background: linear-gradient(135deg, var(--red-100), var(--pink-50), var(--white));
}

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

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

.category-card {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--white);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.category-card small {
    display: block;
    color: var(--gray-600);
    line-height: 1.55;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.list-stack {
    display: grid;
    gap: 18px;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 14px;
}

.list-cover {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border-radius: 14px;
    background: var(--gray-900);
}

.play-dot {
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.list-body h3 {
    margin: 4px 0 8px;
    font-size: 22px;
    line-height: 1.32;
}

.rank-panel,
.side-card {
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.rank-panel {
    position: sticky;
    top: 92px;
}

.panel-title {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 900;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 78px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: var(--gray-50);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--white);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
    font-weight: 900;
}

.rank-row img {
    width: 78px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

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

.rank-meta {
    color: var(--gray-500);
    font-size: 13px;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
}

.cta-section {
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 80px;
    padding: 54px 28px;
    color: var(--white);
    text-align: center;
    border-radius: 32px;
    background: linear-gradient(90deg, var(--red-500), var(--pink-500));
    box-shadow: var(--shadow-lg);
}

.cta-section h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
}

.cta-section p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 19px;
}

.cta-button {
    color: var(--red-600);
    background: var(--white);
}

.page-hero {
    padding: 88px 24px;
}

.soft-hero {
    background: linear-gradient(135deg, var(--red-100), var(--pink-50), var(--white));
}

.page-hero > div {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.page-kicker {
    color: var(--red-600);
    background: var(--white);
}

.page-hero h1 {
    margin: 18px 0 12px;
    color: var(--gray-900);
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--gray-600);
    font-size: 19px;
}

.page-search {
    margin-bottom: 20px;
}

.page-search input {
    width: min(560px, 100%);
    padding: 13px 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.filter-chip {
    border: 1px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--white);
    background: linear-gradient(90deg, var(--red-500), var(--pink-500));
}

.rank-list {
    display: grid;
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 16px;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    height: 110px;
    border-radius: 16px;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
    font-weight: 900;
}

.rank-info h2 {
    margin: 4px 0 8px;
    font-size: 23px;
}

.detail-wrap {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 82px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 20px;
    color: var(--gray-600);
    font-size: 14px;
}

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

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

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

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

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

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: var(--red-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 32px;
    transition: transform 0.2s ease;
}

.big-play:hover {
    transform: scale(1.08);
}

.detail-title {
    margin: 28px 0;
}

.detail-title h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-title p {
    max-width: 860px;
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 19px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-weight: 800;
}

.detail-block {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.intro-block {
    background: linear-gradient(135deg, var(--mint-50), var(--white));
    border-color: var(--mint-100);
}

.detail-block h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-block p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.85;
    white-space: pre-line;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 92px;
}

.side-poster {
    height: 420px;
    border-radius: 18px;
}

.side-button {
    width: 100%;
    margin-top: 16px;
}

.related-list {
    display: grid;
    gap: 14px;
}

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

.related-item:hover {
    background: var(--gray-50);
}

.related-item img {
    height: 64px;
    border-radius: 12px;
}

.related-item span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item small {
    display: block;
    grid-column: 2;
    margin-top: -20px;
    color: var(--gray-500);
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

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

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

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

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

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 300px 1fr;
    }
}

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

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

    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        width: min(100% - 32px, 760px);
    }

    .hero-controls {
        right: 18px;
        bottom: 18px;
    }

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

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

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

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

    .rank-panel {
        position: static;
    }

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

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

    .side-poster {
        height: 320px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding: 0 16px;
    }

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

    .hero-carousel {
        min-height: 590px;
    }

    .hero-actions,
    .page-search,
    .header-search,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-search input,
    .page-search input,
    .mobile-search button,
    .page-search button {
        width: 100%;
    }

    .content-section,
    .detail-wrap,
    .cta-section {
        width: min(100% - 28px, 1240px);
    }

    .content-section {
        padding: 48px 0;
    }

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

    .poster-link {
        height: 330px;
    }

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

    .list-cover,
    .rank-poster {
        min-height: 190px;
        height: 190px;
    }

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

    .rank-meta {
        display: none;
    }

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

    .related-item {
        grid-template-columns: 88px 1fr;
    }
}
