:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eff6ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.26);
    --primary: #2563eb;
    --primary-deep: #1d4ed8;
    --cyan: #0891b2;
    --accent: #f59e0b;
    --dark: #0f172a;
    --radius: 22px;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.08), transparent 30rem),
        radial-gradient(circle at 88% 0%, rgba(8, 145, 178, 0.10), transparent 28rem),
        var(--bg);
    min-width: 320px;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.96), rgba(8, 145, 178, 0.96));
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.20);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 26px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: rgba(219, 234, 254, 0.95);
    font-size: 13px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 9px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    margin: 5px 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a, #111827 50%, #1e293b);
    color: #ffffff;
    min-height: 620px;
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.35;
}

.hero-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.35;
}

.hero-glow-one {
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.70), transparent 68%);
}

.hero-glow-two {
    right: -140px;
    bottom: -210px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.60), transparent 68%);
}

.hero-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    align-items: center;
    padding: 56px 0 76px;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
    gap: 52px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

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

.hero-desc {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.30);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.secondary-btn.light {
    color: var(--primary-deep);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.hero-visual {
    justify-self: end;
    width: min(420px, 100%);
}

.hero-poster {
    position: relative;
    min-height: 510px;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(8, 145, 178, 0.42)),
        #1e293b;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.40);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-visual:hover img {
    transform: scale(1.06);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.82));
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.94);
    color: #111827;
    padding: 10px 14px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 32px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 58px;
    background: #38bdf8;
}

.quick-stat-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -38px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-stat-strip a {
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-stat-strip a:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
}

.quick-stat-strip strong,
.quick-stat-strip span {
    display: block;
}

.quick-stat-strip strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-stat-strip span {
    color: var(--muted);
    line-height: 1.65;
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding: 64px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(224, 242, 254, 0.80));
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading.with-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

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

.section-heading.with-link > a,
.text-link {
    color: var(--primary);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 178px;
    border-radius: 24px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.tile-bg,
.tile-overlay,
.tile-content {
    position: absolute;
    inset: 0;
}

.tile-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 0.45s ease;
}

.tile-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.88));
    z-index: 1;
}

.tile-content {
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.tile-content strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.tile-content small {
    color: #cbd5e1;
    line-height: 1.55;
}

.category-tile:hover .tile-bg {
    transform: scale(1.12);
}

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

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

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

.movie-card {
    background: var(--surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.15);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(8, 145, 178, 0.38)),
        #1e293b;
}

.poster-frame img,
.overview-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.00), rgba(15, 23, 42, 0.72));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.quality-badge,
.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
}

.quality-badge {
    left: 10px;
    top: 10px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
}

.score-badge {
    right: 10px;
    top: 10px;
    color: #111827;
    background: rgba(250, 204, 21, 0.95);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.92);
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: auto;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.24s ease, transform 0.24s ease;
    font-weight: 900;
    font-size: 22px;
}

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

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

.movie-card-body h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--primary);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    margin-bottom: 10px;
}

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

.tag-row span {
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    padding: 5px 8px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    min-height: 250px;
    border-radius: 32px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.40), transparent 30rem),
        linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0e7490);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 0;
    color: #dbeafe;
    max-width: 720px;
    line-height: 1.78;
    font-size: 18px;
}

.filter-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    align-items: end;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
    font-size: 13px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(37, 99, 235, 0.78);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.filter-empty {
    display: none;
    margin: 18px 0 0;
    color: #dc2626;
    font-weight: 800;
}

.filter-empty.is-visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    background: #ffffff;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.90);
    box-shadow: var(--shadow-soft);
}

.overview-cover {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.50), rgba(8, 145, 178, 0.42)),
        #1e293b;
}

.overview-body h2 {
    margin: 2px 0 10px;
}

.overview-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.overview-links {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.overview-links a {
    color: #334155;
    font-weight: 700;
}

.overview-links a:hover {
    color: var(--primary);
}

.detail-hero {
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 34px 0 54px;
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    color: #ffffff;
    display: grid;
    place-items: center;
    gap: 12px;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.18), transparent 22rem),
        rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 36px;
    padding-left: 5px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
}

.player-overlay strong {
    font-size: 18px;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 3;
    margin: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 13px;
    pointer-events: none;
}

.player-status.is-error {
    background: rgba(185, 28, 28, 0.86);
    color: #ffffff;
}

.detail-title-block {
    padding-top: 24px;
}

.detail-title-block h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.03em;
}

.detail-title-block p {
    color: #cbd5e1;
    line-height: 1.82;
    font-size: 18px;
    margin: 0 0 18px;
}

.detail-poster {
    display: block;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(8, 145, 178, 0.42)),
        #1e293b;
    box-shadow: var(--shadow);
}

.info-card {
    margin-top: 18px;
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.info-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.info-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #cbd5e1;
}

.info-card strong {
    color: #ffffff;
    text-align: right;
}

.side-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

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

.text-panel {
    border-radius: 26px;
    padding: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.90);
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.text-panel p {
    margin: 0;
    color: #334155;
    line-height: 1.92;
    font-size: 17px;
}

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

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

.footer-brand {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 520px;
    line-height: 1.75;
    margin: 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 11px;
    color: #dbeafe;
    font-weight: 700;
    font-size: 13px;
}

.footer-links a:hover {
    background: rgba(37, 99, 235, 0.42);
}

.no-image img {
    display: none;
}

.no-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 14rem),
        linear-gradient(135deg, rgba(37, 99, 235, 0.70), rgba(8, 145, 178, 0.54));
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .large-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 30px;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    .side-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .header-shell {
        min-height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .hero-shell {
        min-height: auto;
        padding: 42px 0 72px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-self: stretch;
    }

    .hero-poster {
        min-height: 360px;
        transform: none;
    }

    .hero-poster img {
        min-height: 360px;
    }

    .hero-dots {
        bottom: 22px;
    }

    .quick-stat-strip {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

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

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

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

    .category-overview-card {
        grid-template-columns: 130px minmax(0, 1fr);
    }

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

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .brand-text strong {
        font-size: 21px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero-desc,
    .page-hero p,
    .detail-title-block p {
        font-size: 16px;
    }

    .content-section,
    .soft-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

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

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

    .movie-card-body p {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .overview-cover {
        max-height: 240px;
    }

    .detail-hero {
        padding-top: 22px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 29px;
    }

    .text-panel {
        padding: 22px;
    }

    .footer-links {
        gap: 8px;
    }
}
