* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #f8fafc;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.20), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #082f49 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

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

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

main {
    padding-top: 4.6rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.94));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.42);
    transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-copy strong {
    max-width: 16rem;
    overflow: hidden;
    color: transparent;
    font-size: 1.08rem;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, #bfdbfe, #67e8f9);
    background-clip: text;
    -webkit-background-clip: text;
}

.brand-copy em {
    color: #bae6fd;
    font-size: 0.74rem;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    position: relative;
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #22d3ee;
    transition: transform 0.2s ease;
}

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

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

.header-search,
.mobile-search,
.inline-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.inline-search input,
.local-search input {
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-search input:focus,
.local-search input:focus {
    border-color: #22d3ee;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}

.header-search input {
    width: 15rem;
    border-radius: 0.72rem;
    padding: 0.62rem 0.8rem;
}

.header-search button,
.mobile-search button,
.inline-search button {
    border: 0;
    border-radius: 0.72rem;
    padding: 0.66rem 1rem;
    color: #082f49;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}

.menu-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.75rem;
    color: #ffffff;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.58);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1rem;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    margin-bottom: 1rem;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    border-radius: 0.72rem;
    padding: 0.75rem 0.9rem;
}

.mobile-nav {
    display: grid;
    gap: 0.35rem;
}

.mobile-nav-link {
    border-radius: 0.75rem;
    padding: 0.78rem 0.9rem;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.36);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #67e8f9;
    background: rgba(14, 165, 233, 0.16);
}

.hero {
    position: relative;
    min-height: calc(100vh - 4.6rem);
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem);
    align-items: center;
    gap: 3rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 4.6rem 0 0 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 44rem;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 999px;
    padding: 0.36rem 0.75rem;
    color: #67e8f9;
    background: rgba(14, 165, 233, 0.10);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 1rem 0 0.4rem;
    color: transparent;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    font-weight: 950;
    line-height: 1.05;
    background: linear-gradient(90deg, #ffffff, #bfdbfe 42%, #67e8f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero h2 {
    margin: 0 0 1rem;
    color: #e0f2fe;
    font-size: clamp(1.4rem, 2.6vw, 2.25rem);
}

.hero p {
    max-width: 40rem;
    margin: 0 0 1.3rem;
    color: #cbd5e1;
    font-size: 1.08rem;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.48);
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    padding: 0 1.25rem;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: #082f49;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.32);
}

.ghost-btn,
.section-more {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.48);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.22);
}

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.60);
    transform: perspective(1000px) rotateY(-6deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    color: #082f49;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
}

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

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

.hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.66rem;
    height: 0.66rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.44);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 1.8rem;
    background: #67e8f9;
}

.panel-section,
.player-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(14, 165, 233, 0.12));
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.22);
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.text-panel h2 {
    margin: 0.55rem 0 0.35rem;
    color: #ffffff;
    line-height: 1.18;
}

.quick-search p,
.section-head p,
.page-hero p,
.text-panel p,
.detail-one-line {
    margin: 0;
    color: #cbd5e1;
}

.inline-search input {
    flex: 1;
    min-width: 0;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.category-grid,
.movie-grid,
.list-grid,
.category-overview {
    display: grid;
    gap: 1rem;
}

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

.category-tile,
.category-card,
.movie-card,
.text-panel,
.video-shell,
.detail-poster,
.ranking-list,
.small-link {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

.category-tile {
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.55rem;
    border-radius: 1rem;
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 55%),
        rgba(15, 23, 42, 0.66);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile strong {
    color: #f8fafc;
    font-size: 1.08rem;
}

.category-tile span {
    color: #cbd5e1;
    font-size: 0.88rem;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster img {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.86));
}

.poster-play {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #082f49;
    background: #67e8f9;
    font-size: 0.75rem;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
}

.rank-number {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    z-index: 2;
    border-radius: 0.7rem;
    padding: 0.2rem 0.48rem;
    color: #082f49;
    background: #67e8f9;
    font-size: 0.8rem;
}

.card-body {
    padding: 0.88rem;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 800;
}

.card-body h3 {
    margin: 0.45rem 0 0.35rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 0.75rem;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 0.83rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 6.8rem minmax(0, 1fr);
}

.movie-card.compact .poster img {
    height: 100%;
}

.movie-card.compact .card-body p {
    min-height: auto;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
    gap: 1.4rem;
}

.ranking-list {
    display: grid;
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 0.9rem;
}

.small-link {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.small-link img {
    aspect-ratio: 2 / 3;
    border-radius: 0.65rem;
    object-fit: cover;
}

.small-link strong,
.small-link em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-link strong {
    color: #ffffff;
}

.small-link em {
    color: #93c5fd;
    font-size: 0.78rem;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.compact-hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 2rem;
}

.compact-hero h1 {
    max-width: 52rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.local-search {
    max-width: 42rem;
    margin-top: 1.5rem;
}

.local-search input {
    width: 100%;
    border-radius: 0.95rem;
    padding: 1rem 1.1rem;
}

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

.category-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card-main {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 52%);
}

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

.category-card-main strong {
    color: #e2e8f0;
    font-weight: 500;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.category-samples a {
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.60);
    font-size: 0.78rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #bae6fd;
    font-size: 0.9rem;
}

.breadcrumb strong {
    color: #f8fafc;
}

.detail-hero {
    min-height: 38rem;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.detail-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.8rem 0 3rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
}

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

.detail-poster span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-radius: 0.9rem;
    padding: 0.75rem;
    color: #082f49;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
}

.detail-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.detail-one-line {
    max-width: 58rem;
    font-size: 1.08rem;
}

.detail-meta {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.3rem;
    background: #000000;
}

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

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.7rem;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.80));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 4.8rem;
    height: 4.8rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #082f49;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    font-size: 1.6rem;
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.36);
}

.video-cover strong {
    max-width: min(40rem, 90%);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.video-cover em {
    max-width: min(46rem, 90%);
    color: #cbd5e1;
    font-style: normal;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.text-panel {
    border-radius: 1rem;
    padding: 1.35rem;
}

.text-panel h2 {
    font-size: 1.45rem;
}

.next-prev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 0;
}

.next-prev a {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    padding: 1rem;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.66);
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
}

.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-inner h2 {
    margin: 0 0 0.8rem;
    color: #67e8f9;
    font-size: 1.05rem;
}

.footer-inner p,
.footer-inner a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-inner ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 1rem 0 1.5rem;
    color: #94a3b8;
    font-size: 0.86rem;
}

[data-card].is-hidden {
    display: none !important;
}

.empty-result {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    padding: 2rem;
    color: #cbd5e1;
    text-align: center;
    background: rgba(15, 23, 42, 0.66);
}

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

    .header-search input {
        width: 12rem;
    }

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

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

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

@media (max-width: 820px) {
    main {
        padding-top: 4.2rem;
    }

    .header-inner {
        min-height: 4.2rem;
    }

    .brand-copy strong {
        max-width: 12rem;
    }

    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 46rem;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-content: center;
        padding: 2rem 0 4.5rem;
    }

    .hero-poster {
        max-width: 16rem;
        transform: none;
    }

    .quick-search,
    .split-section,
    .detail-layout,
    .detail-content,
    .next-prev,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .brand-copy strong {
        max-width: 9.5rem;
        font-size: 0.96rem;
    }

    .brand-copy em {
        display: none;
    }

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

    .hero-poster {
        max-width: 12.5rem;
    }

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

    .primary-btn,
    .ghost-btn,
    .section-more,
    .inline-search button {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .list-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .movie-card.compact {
        grid-template-columns: 5.8rem minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }
}
