
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #0891b2;
    --brand-dark: #0e7490;
    --blue: #2563eb;
    --slate: #0f172a;
    --soft: #ecfeff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    box-shadow: 0 12px 25px rgba(8, 145, 178, 0.28);
    font-size: 13px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 8px 12px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--brand-dark);
    background: #cffafe;
}

.search-box,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within,
.mobile-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.search-box input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 16px;
    background: transparent;
    color: var(--text);
}

.search-box button,
.mobile-search button {
    border: 0;
    padding: 9px 15px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #334155;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 14px 16px 18px;
}

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

.mobile-search {
    width: 100%;
    margin-bottom: 12px;
}

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

.mobile-link-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link {
    padding: 10px 12px;
    background: #f8fafc;
}

.search-panel {
    position: fixed;
    top: 78px;
    left: 50%;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.search-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.search-panel-inner {
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.search-panel-title {
    padding: 14px 18px;
    font-weight: 800;
    border-bottom: 1px solid #e2e8f0;
}

.search-results {
    max-height: 440px;
    overflow: auto;
    padding: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #ecfeff;
}

.search-result-item img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    background: #e2e8f0;
}

.search-result-item strong {
    display: block;
    font-size: 15px;
}

.search-result-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.empty-search {
    padding: 18px;
    color: var(--muted);
}

.hero-carousel {
    position: relative;
    height: min(760px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: var(--slate);
}

.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,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(8, 145, 178, 0.4), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.48) 52%, rgba(15, 23, 42, 0.15)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 96px 0 84px;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.25);
    border: 1px solid rgba(207, 250, 254, 0.26);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
    margin: 0;
    max-width: 760px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.card-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 6px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    box-shadow: 0 16px 34px rgba(8, 145, 178, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #22d3ee;
}

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

.soft-bg {
    background: linear-gradient(180deg, #f8fafc, #ecfeff 48%, #ffffff);
}

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

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

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

.section-more {
    min-height: 38px;
    color: var(--brand-dark);
    background: #cffafe;
}

.movie-grid,
.feature-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

.movie-card article {
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.movie-card:hover article {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(8, 145, 178, 0.22);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #e2e8f0;
}

.movie-card.feature .poster-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame img,
.mini-poster img,
.category-thumbs img,
.category-card-visual img,
.side-poster img {
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.mini-card:hover .mini-poster img,
.category-tile:hover img,
.category-card:hover img {
    transform: scale(1.07);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent);
}

.year-badge,
.rank-mark {
    position: absolute;
    top: 10px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.year-badge {
    right: 10px;
    padding: 5px 9px;
    background: rgba(8, 145, 178, 0.92);
}

.rank-mark {
    left: 10px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.84);
}

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

.movie-card-body h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.mini-card:hover strong {
    color: var(--brand-dark);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin-bottom: 10px;
}

.card-meta span {
    padding: 4px 8px;
    color: #475569;
    background: #f1f5f9;
}

.tag-row span,
.detail-tags a {
    padding: 5px 9px;
    color: var(--brand-dark);
    background: #ecfeff;
}

.category-tile,
.category-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs,
.category-card-visual {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    height: 150px;
    background: #e2e8f0;
}

.category-card-visual {
    height: 180px;
}

.category-tile-body,
.category-card-body {
    padding: 22px;
}

.category-tile-body h3,
.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.category-tile-body p,
.category-card-body p {
    margin: 0 0 14px;
    color: var(--muted);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.rank-list,
.strip-stack,
.side-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.mini-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #e2e8f0;
}

.mini-rank {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    font-size: 12px;
    font-weight: 900;
}

.mini-info {
    min-width: 0;
}

.mini-info strong,
.mini-info span,
.mini-info p {
    display: block;
}

.mini-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.mini-info span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.mini-info p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.strip-block {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.strip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.strip-title h3 {
    margin: 0;
}

.strip-title a {
    color: var(--brand-dark);
    font-weight: 800;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.34), transparent 25%),
        linear-gradient(135deg, #0f172a, #155e75 52%, #1d4ed8);
}

.page-hero .breadcrumbs {
    margin-bottom: 16px;
}

.page-hero h1 {
    color: #ffffff;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
}

.movie-card.is-filtered-out {
    display: none;
}

.related-categories {
    margin-top: 46px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.related-categories h2 {
    margin: 0 0 16px;
}

.related-categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ecfeff;
    font-weight: 800;
}

.detail-page {
    background: #f8fafc;
}

.detail-hero {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--slate);
}

.detail-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.94)),
        radial-gradient(circle at 72% 10%, rgba(8, 145, 178, 0.36), transparent 28%);
}

.detail-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 28px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    margin-top: -64px;
    position: relative;
    z-index: 3;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 20px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

.player-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 42%, rgba(8, 145, 178, 0.34), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.34);
    font-size: 28px;
    padding-left: 4px;
}

.detail-card,
.side-card {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.title-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.lead-text {
    margin-top: 18px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 650;
}

.detail-meta {
    margin-bottom: 14px;
}

.detail-meta span {
    padding: 6px 10px;
    color: #334155;
    background: #f1f5f9;
}

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

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

.poster-side {
    display: grid;
    gap: 16px;
}

.side-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #e2e8f0;
}

.primary-btn.full {
    width: 100%;
}

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

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 42px;
    padding: 54px 0;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.18);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-block;
    }

    .nav-shell {
        justify-content: space-between;
    }

    .search-box {
        margin-left: auto;
    }

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

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

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

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

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

    .hero-carousel {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        align-items: flex-end;
        padding: 140px 0 86px;
    }

    .hero-control {
        display: none;
    }

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

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

    .movie-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .rank-page-list,
    .related-grid,
    .mini-strip,
    .detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-thumbs,
    .category-card-visual {
        height: 130px;
    }

    .detail-layout {
        margin-top: -44px;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

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

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .rank-page-list,
    .related-grid,
    .mini-strip,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .movie-card.feature .poster-frame {
        aspect-ratio: 2 / 3;
    }

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

    .detail-card,
    .side-card {
        padding: 20px;
    }

    .player-wrap {
        border-radius: 18px;
    }

    .play-icon {
        width: 62px;
        height: 62px;
    }
}
