:root {
    color-scheme: dark;
    --page-bg: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --orange: #f97316;
    --radius: 18px;
    --shadow: 0 25px 80px rgba(2, 8, 23, 0.45);
}

html {
    scroll-behavior: smooth;
}

body.site-shell {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

button,
a,
input,
video {
    -webkit-tap-highlight-color: transparent;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.35);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.logo-mark {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-mark::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.site-logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
    transform: scale(1.05);
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.32);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 0.76rem;
}

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

.nav-link {
    position: relative;
    color: #e2e8f0;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.24s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.82);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid var(--line);
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.6s ease both;
}

.hero-slide::before,
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-slide::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.24) 100%);
}

.hero-slide::after {
    background: linear-gradient(0deg, #0f172a 0%, transparent 38%, rgba(15, 23, 42, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 42px;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.88);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 750;
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.22);
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 50px rgba(2, 8, 23, 0.68);
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    text-shadow: 0 8px 26px rgba(2, 8, 23, 0.68);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-weight: 650;
}

.hero-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fde68a;
    font-size: 1.25rem;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
}

.btn-secondary {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.62);
}

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

.hero-search {
    display: flex;
    width: min(480px, 100%);
    min-height: 52px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(2, 8, 23, 0.35);
}

.hero-search input,
.search-panel input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
}

.hero-search input {
    padding: 0 18px;
}

.hero-search button {
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    font-weight: 800;
    cursor: pointer;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
}

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

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

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading a {
    flex: none;
    color: #67e8f9;
    text-decoration: none;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    padding: 22px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    text-decoration: none;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.35), transparent 42%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.45);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.32rem;
}

.category-tile span {
    color: #cbd5e1;
    line-height: 1.7;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 46px rgba(2, 8, 23, 0.28);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, 0.42);
    background: rgba(30, 41, 59, 0.78);
}

.movie-card[hidden],
.horizontal-card[hidden] {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
}

.movie-cover img,
.horizontal-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.horizontal-card:hover .horizontal-cover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 8, 23, 0.82) 100%);
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.play-hover::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 14px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #0f172a;
}

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

.movie-score,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 850;
    font-size: 0.82rem;
}

.movie-score {
    right: 10px;
    padding: 5px 8px;
    background: rgba(6, 182, 212, 0.92);
}

.rank-badge {
    left: 10px;
    min-width: 28px;
    padding: 5px 8px;
    background: rgba(249, 115, 22, 0.92);
    text-align: center;
}

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

.movie-title {
    display: block;
    min-height: 2.8em;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.38;
    text-decoration: none;
}

.movie-title:hover {
    color: #67e8f9;
}

.movie-meta {
    margin: 8px 0;
    color: #94a3b8;
    font-size: 0.84rem;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.7em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.search-panel,
.content-panel,
.detail-card {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.ranking-panel {
    padding: 18px;
    position: sticky;
    top: 96px;
}

.ranking-panel h2,
.content-panel h2,
.detail-card h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 850;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid transparent;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.horizontal-card:hover {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(103, 232, 249, 0.26);
}

.horizontal-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.horizontal-body {
    min-width: 0;
}

.horizontal-rank {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.88);
    font-size: 0.75rem;
    font-weight: 850;
}

.horizontal-title {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.horizontal-title:hover {
    color: #67e8f9;
}

.horizontal-body p,
.horizontal-body span {
    display: block;
    margin: 4px 0 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.84rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero {
    padding: 72px 0 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.22), transparent 30rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0));
}

.page-hero h1 {
    max-width: 860px;
    margin: 16px 0 12px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.search-panel {
    padding: 18px;
    margin-bottom: 28px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.search-panel input {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-buttons button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    cursor: pointer;
    font-weight: 750;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.85);
    border-color: rgba(103, 232, 249, 0.72);
}

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

.category-card {
    display: block;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    text-decoration: none;
    background:
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.3), transparent 45%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(103, 232, 249, 0.38);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.category-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.75;
}

.category-card span {
    color: #67e8f9;
    font-weight: 850;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #bae6fd;
    text-decoration: none;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    color: #ffffff;
    background: rgba(2, 8, 23, 0.38);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52);
    transform: scale(1.02);
}

.player-button {
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    box-shadow: 0 18px 46px rgba(2, 8, 23, 0.48);
}

.player-button::after {
    content: "";
    display: block;
    margin: 24px 0 0 31px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid #0f172a;
}

.player-overlay strong {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    font-size: 1.05rem;
}

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

.detail-card {
    padding: 24px;
    margin-top: 24px;
}

.detail-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

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

.detail-card p {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 1rem;
}

.detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.58);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
}

.poster-info {
    padding: 18px;
}

.poster-info h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.poster-info p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

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

.site-footer {
    margin-top: 70px;
    padding: 48px 0 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p,
.site-footer li,
.site-footer a,
.footer-logo em {
    color: #94a3b8;
}

.footer-logo strong,
.site-footer h2 {
    display: block;
    color: #ffffff;
    font-style: normal;
}

.footer-logo em {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-style: normal;
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 9px 0;
    font-size: 0.92rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    margin-top: 38px;
    padding: 22px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
    color: #64748b;
}

.footer-bottom p {
    margin: 0;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .ranking-panel,
    .detail-poster {
        position: static;
    }

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

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

@media (max-width: 720px) {
    .site-header-inner {
        min-height: 66px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .logo-mark::after {
        left: 16px;
        top: 12px;
    }

    .logo-text {
        font-size: 1.08rem;
    }

    .logo-subtitle {
        display: none;
    }

    .hero {
        height: 680px;
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
    }

    .hero-copy {
        padding-top: 28px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .hero-search {
        width: 100%;
    }

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

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

    .category-strip,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .movie-title {
        font-size: 0.95rem;
    }
}
