:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #06b6d4;
    --yellow: #facc15;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 22px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.18), transparent 32rem),
        radial-gradient(circle at 92% 0%, rgba(6, 182, 212, 0.14), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    padding-left: 2px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.28);
}

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

.nav-link {
    color: var(--soft);
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(16, 185, 129, 0.16);
}

.header-search {
    width: 270px;
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 8px 10px 8px 14px;
}

.header-search input::placeholder {
    color: #64748b;
}

.header-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
}

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

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mobile-category-links a {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
}

.hero {
    position: relative;
    height: 78vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.30) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.20) 38%, rgba(2, 6, 23, 0.74) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    color: #6ee7b7;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(16, 185, 129, 0.30);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
    margin: 22px 0 0;
}

.hero-meta,
.detail-meta,
.feature-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.feature-meta span {
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.64);
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags a,
.footer-tags a {
    color: #6ee7b7;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: rgba(16, 185, 129, 0.10);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 18px 42px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(203, 213, 225, 0.22);
    background: rgba(15, 23, 42, 0.58);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #475569;
    transition: 0.28s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #34d399;
}

.content-section,
.feature-block,
.search-banner,
.filter-panel,
.detail-content,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.section-muted {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: rgba(15, 23, 42, 0.38);
}

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

.section-head h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    margin: 0 0 8px;
    letter-spacing: -0.04em;
}

.section-head p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.section-link {
    color: #6ee7b7;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
}

.movie-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-row .movie-card {
    width: 322px;
    flex: 0 0 322px;
    scroll-snap-align: start;
}

.scroll-controls {
    position: absolute;
    top: 78px;
    right: 0;
    display: flex;
    gap: 10px;
}

.scroll-controls button {
    width: 42px;
    height: 42px;
    color: #fff;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
}

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

.ranking-grid {
    counter-reset: ranking;
}

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

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card-link:hover .movie-poster img {
    transform: scale(1.09);
}

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.poster-year,
.rank-mark {
    position: absolute;
    top: 12px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
}

.poster-year {
    right: 12px;
}

.rank-mark {
    left: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #facc15);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    z-index: 3;
    display: grid;
    place-items: center;
    padding-left: 4px;
    color: #fff;
    opacity: 0;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    transform: translate(-50%, -50%) scale(0.76);
    transition: 0.26s ease;
}

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

.movie-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.movie-meta-line {
    justify-content: space-between;
    color: #6ee7b7;
    font-size: 12px;
}

.movie-meta-line span:last-child {
    color: var(--muted);
}

.movie-card h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-tags {
    margin-top: auto;
}

.card-tags span {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(148, 163, 184, 0.08);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    padding: 78px 0;
}

.feature-art {
    position: relative;
}

.feature-art::after {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    content: "";
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    filter: blur(36px);
}

.feature-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.feature-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #fff;
    font-size: 28px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.90);
    transform: translate(-50%, -50%);
}

.feature-info h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.05em;
}

.feature-info p {
    color: var(--muted);
    line-height: 1.85;
}

.feature-info .lead {
    color: #e2e8f0;
    font-size: 18px;
}

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

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.20);
    transition: 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.38);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
}

.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.category-card-body span {
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 800;
}

.category-card-body h3 {
    margin: 8px 0 10px;
    font-size: 24px;
}

.category-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 44px;
    margin-top: 40px;
    margin-bottom: 80px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 32px;
    background:
        radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.28), transparent 34rem),
        rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.search-banner h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.05em;
}

.search-banner p {
    color: var(--muted);
    line-height: 1.8;
}

.big-search {
    display: flex;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.46);
}

.big-search input {
    flex: 1;
    min-width: 0;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
}

.big-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    padding: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.26), transparent 32rem),
        radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.22), transparent 36rem),
        rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 780px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.85;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 28px;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-search input {
    width: 100%;
    color: #fff;
    outline: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 16px 18px;
    background: rgba(2, 6, 23, 0.52);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    color: var(--soft);
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(148, 163, 184, 0.08);
    transition: 0.22s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
    color: #fff;
    border-color: rgba(16, 185, 129, 0.36);
    background: rgba(16, 185, 129, 0.18);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.04);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 36px;
}

.breadcrumb a {
    color: #6ee7b7;
}

.detail-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-info .lead {
    max-width: 780px;
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.85;
}

.detail-info .btn {
    margin-top: 28px;
}

.player-section {
    padding: 72px 0 26px;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(16, 185, 129, 0.20);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.player-cover span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding-left: 7px;
    color: #fff;
    font-size: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.34);
}

.player-box.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 0 40px;
}

.story-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.story-card h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 24px;
}

.story-card p {
    color: var(--soft);
    line-height: 1.95;
    margin: 0;
}

.info-card {
    grid-column: 1 / -1;
}

.info-card dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 18px;
    color: var(--soft);
    margin: 0 0 20px;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.62);
}

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

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

.footer-brand p {
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 17px;
}

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

.footer-links a:hover,
.footer-tags a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

    .category-grid.large,
    .feature-block,
    .search-banner,
    .detail-grid,
    .detail-content,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
    }
}

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

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

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

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

    .hero {
        height: 76vh;
        min-height: 520px;
    }

    .hero-content,
    .content-section,
    .feature-block,
    .search-banner,
    .filter-panel,
    .detail-content,
    .player-section,
    .detail-shell,
    .page-hero,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .hero h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .section-head {
        display: block;
    }

    .scroll-controls {
        display: none;
    }

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

    .movie-row .movie-card {
        width: 282px;
        flex-basis: 282px;
    }

    .page-hero,
    .search-banner,
    .story-card {
        padding: 28px;
        border-radius: 24px;
    }

    .big-search {
        flex-direction: column;
    }

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

    .detail-hero {
        min-height: auto;
    }

    .detail-shell {
        padding-top: 30px;
    }
}

@media (max-width: 540px) {
    .header-shell {
        width: calc(100% - 20px);
        min-height: 64px;
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-overlay,
    .detail-backdrop::after {
        background:
            linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.44) 45%, rgba(2, 6, 23, 0.92) 100%),
            linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58));
    }

    .hero-meta span,
    .detail-meta span,
    .feature-meta span {
        font-size: 13px;
        padding: 7px 10px;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

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

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

    .category-thumbs {
        height: 120px;
    }

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

    .player-cover span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .info-card dl {
        grid-template-columns: 82px 1fr;
    }
}
