:root {
    color-scheme: light;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f0fdff;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 34%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 254, 255, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(8, 145, 178, 0.14);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-name {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan-dark);
    background: rgba(6, 182, 212, 0.12);
    transform: translateY(-1px);
}

.header-search {
    width: min(310px, 28vw);
    display: flex;
    align-items: center;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 11px 12px 11px 16px;
}

.header-search button {
    border: 0;
    padding: 11px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--cyan-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.hero {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.36), transparent 36%), radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.24), transparent 34%), linear-gradient(135deg, #082f49, #0f172a 58%, #0e7490);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(8, 47, 73, 0.94), rgba(15, 23, 42, 0.72), rgba(14, 116, 144, 0.58));
    pointer-events: none;
}

.hero-track {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 670px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    background-image: linear-gradient(90deg, rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.62), rgba(8, 145, 178, 0.48)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.16);
    z-index: -1;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
    animation: fadeIn 0.72s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 0.85rem;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    letter-spacing: -0.05em;
    color: #67e8f9;
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e0f2fe;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0e7490;
    background: #ecfeff;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-actions,
.detail-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.card-footer a,
.cta-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.cta-band a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-btn.dark {
    color: #0f172a;
    border-color: rgba(8, 145, 178, 0.22);
    background: #ecfeff;
}

.primary-btn:hover,
.ghost-btn:hover,
.card-footer a:hover,
.cta-band a:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(380px, 100%);
    justify-self: end;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transform: scale(1.01);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.86);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.25);
}

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

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 1.55rem;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.35) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    background: #67e8f9 !important;
}

.quick-search,
.section-block,
.page-main,
.detail-main {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -58px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 6;
}

.quick-search h2,
.section-title-row h2,
.feature-panel h2,
.detail-article h2,
.detail-aside h2,
.page-hero h1,
.cta-band h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.quick-search p,
.section-title-row p,
.feature-panel p,
.page-hero p,
.cta-band p {
    color: var(--muted);
    line-height: 1.75;
}

.quick-search form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    background: #f8fafc;
}

.quick-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px;
}

.quick-search button,
.filter-toolbar button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
    font-weight: 800;
}

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

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

.section-title-row h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-more {
    color: var(--cyan-dark);
    font-weight: 800;
}

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

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

.movie-card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.38);
    box-shadow: 0 24px 50px rgba(8, 145, 178, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.12;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.9);
    box-shadow: 0 10px 22px rgba(6, 182, 212, 0.24);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    font-size: 0.78rem;
}

.card-body {
    padding: 18px;
}

.card-meta,
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

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

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.32;
}

.card-body h2 a:hover {
    color: var(--cyan-dark);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.62;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-bottom: 14px;
}

.tag-row span {
    color: #0891b2;
    background: #ecfeff;
}

.card-footer a {
    min-height: 34px;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 0.85rem;
}

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

.category-tile,
.category-overview-card,
.feature-panel,
.detail-article,
.detail-aside,
.filter-toolbar,
.info-list,
.player-shell {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-tile {
    padding: 24px;
    min-height: 172px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 45px rgba(8, 145, 178, 0.16);
}

.category-tile span,
.category-heading span {
    display: block;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-tile p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.72;
    margin: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 26px;
    align-items: start;
}

.feature-panel {
    position: sticky;
    top: 102px;
    padding: 34px;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.ranking-section {
    padding-bottom: 10px;
}

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

.mini-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.42);
}

.mini-card img {
    width: 64px;
    height: 86px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.mini-card strong {
    display: -webkit-box;
    color: #0f172a;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.85rem;
}

.mini-rank {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

.cta-band {
    margin: 76px auto 0;
    padding: 52px 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-band p {
    color: #cffafe;
}

.cta-band a {
    margin-top: 14px;
    background: #ffffff;
    color: var(--cyan-dark);
}

.page-main,
.detail-main {
    padding-bottom: 82px;
}

.page-hero {
    margin-top: 34px;
    padding: 58px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(103, 232, 249, 0.38), transparent 34%), linear-gradient(135deg, #0f172a, #075985 58%, #0891b2);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    color: #e0f2fe;
    font-size: 1.08rem;
}

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

.category-overview-card {
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.category-heading em {
    color: var(--cyan-dark);
    font-style: normal;
    font-weight: 800;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.7fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 12px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 26px 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--cyan-dark);
    font-weight: 800;
}

.player-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.48));
    cursor: pointer;
    z-index: 2;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
    font-size: 2.1rem;
    padding-left: 4px;
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.detail-copy {
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-lead {
    color: #475569;
    line-height: 1.78;
    font-size: 1.05rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin-top: 30px;
}

.detail-article,
.detail-aside {
    padding: 28px;
}

.detail-article h2,
.detail-aside h2 {
    margin-top: 0;
    font-size: 1.45rem;
}

.detail-article p {
    color: #334155;
    line-height: 1.9;
    font-size: 1.02rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 0;
    background: #e2e8f0;
}

.info-list div {
    padding: 16px;
    background: #ffffff;
}

.info-list dt {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.info-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.info-list a {
    color: var(--cyan-dark);
}

.site-footer {
    margin-top: 84px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-brand {
    color: #67e8f9;
    font-size: 1.45rem;
    font-weight: 900;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #67e8f9;
    font-size: 1.05rem;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: block;
    }

    .header-search {
        margin-left: auto;
        width: min(420px, 45vw);
    }

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

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

    .split-section,
    .player-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .feature-panel {
        position: static;
    }

    .detail-aside {
        order: -1;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .brand-subtitle,
    .header-search {
        display: none;
    }

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        align-content: center;
        padding: 84px 0 98px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 72vw);
    }

    .quick-search {
        grid-template-columns: 1fr;
        margin-top: -42px;
        padding: 22px;
    }

    .quick-search form {
        border-radius: 20px;
        flex-direction: column;
    }

    .quick-search input {
        min-height: 46px;
    }

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

    .movie-grid,
    .catalog-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 38px 24px;
        border-radius: 24px;
    }

    .detail-copy,
    .detail-article,
    .detail-aside {
        padding: 22px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

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

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

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 1.65rem;
    }
}
