:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #0d1117;
    --bg-card: rgba(31, 41, 55, 0.46);
    --bg-card-strong: rgba(17, 24, 39, 0.86);
    --line: rgba(251, 146, 60, 0.2);
    --line-soft: rgba(148, 163, 184, 0.16);
    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-deep: #9a3412;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --dim: #94a3b8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --radius: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 34rem),
        linear-gradient(135deg, #111827 0%, #0f172a 45%, #000000 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(154, 52, 18, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    position: relative;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), #fdba74);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.36);
}

.brand-icon::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    border-left: 13px solid #ffffff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--orange);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--dim);
    font-size: 0.72rem;
}

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

.nav-link {
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-light);
}

.top-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-controls input,
.filter-controls select {
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
    width: 190px;
    padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
    background: rgba(17, 24, 39, 0.94);
}

.top-search button,
.mobile-search button,
.big-search button,
.filter-controls button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
    padding: 10px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.filter-controls button:hover,
.primary-button:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.26);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #d1d5db;
}

.mobile-panel {
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(75, 85, 99, 0.6);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.7);
    color: #d1d5db;
}

.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.24);
}

.site-main {
    min-height: 70vh;
}

.page-main {
    padding-top: 38px;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #000000;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, transparent 0%, rgba(0, 0, 0, 0.38) 36%, rgba(0, 0, 0, 0.86) 100%),
        linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100% - 32px, 900px);
    margin-inline: auto;
    text-align: center;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button {
    min-height: 46px;
    padding: 12px 24px;
}

.primary-button.small {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.62);
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    background: rgba(31, 41, 55, 0.94);
    border-color: var(--orange);
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.76);
    transform: translateY(-50%) scale(1.04);
}

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

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

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--orange);
}

.section {
    padding-block: 64px;
}

.soft-band {
    background: linear-gradient(90deg, rgba(154, 52, 18, 0.16), rgba(17, 24, 39, 0.2));
    border-block: 1px solid rgba(249, 115, 22, 0.08);
}

.feature-band {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7), rgba(0, 0, 0, 0.82));
}

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

.section-heading h2,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    line-height: 1.12;
}

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

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.text-link {
    color: var(--orange-light);
    font-weight: 700;
}

.text-link:hover {
    color: #fed7aa;
}

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

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

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

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

.movie-card,
.movie-list-card,
.category-overview-card,
.text-panel {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.movie-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.44);
    background: rgba(31, 41, 55, 0.62);
    box-shadow: 0 28px 60px rgba(249, 115, 22, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(15, 23, 42, 0.88));
}

.movie-card > .poster-wrap {
    aspect-ratio: 16 / 10;
}

.poster-wrap img,
.list-poster img,
.feature-card img,
.category-card img,
.category-hero img,
.detail-poster img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img,
.movie-list-card:hover .list-poster img,
.feature-card:hover img,
.category-card:hover img {
    transform: scale(1.06);
}

.poster-wrap img.is-missing,
.list-poster img.is-missing,
.feature-card img.is-missing,
.category-card img.is-missing,
.category-hero img.is-missing,
.detail-poster img.is-missing,
.category-preview img.is-missing,
.hero-slide img.is-missing {
    opacity: 0;
}

.poster-shade,
.feature-layer,
.category-mask,
.category-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.region-pill,
.year-pill,
.type-pill,
.rank-badge,
.source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.region-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
}

.year-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.78);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #dc2626);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.card-body {
    padding: 16px;
}

.type-pill {
    margin-bottom: 9px;
    padding: 4px 9px;
    color: #d1d5db;
    background: rgba(55, 65, 81, 0.9);
}

.movie-card h3,
.movie-list-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.38;
}

.movie-card h3 a:hover,
.movie-list-card h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--orange-light);
}

.movie-card p,
.movie-list-card p,
.category-card p,
.category-overview-card p,
.page-hero p,
.category-hero p,
.detail-copy .lead,
.detail-article p,
.text-panel p {
    color: var(--muted);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0;
    overflow: hidden;
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.compact {
    border-radius: 14px;
    overflow: hidden;
}

.movie-card.compact .poster-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.movie-card.compact strong {
    display: -webkit-box;
    margin-top: 9px;
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.4;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.compact:hover strong {
    color: var(--orange-light);
}

.list-stack {
    display: grid;
    gap: 16px;
}

.movie-list-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.movie-list-card:hover {
    background: rgba(31, 41, 55, 0.64);
    border-color: rgba(249, 115, 22, 0.38);
}

.list-poster {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(15, 23, 42, 0.88));
}

.list-content {
    padding: 18px 18px 18px 0;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-line span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.2);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags {
    justify-content: center;
}

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

.category-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 220px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.74);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card strong,
.category-card em,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 1.45rem;
}

.category-card em {
    color: var(--orange-light);
    font-style: normal;
    font-weight: 800;
}

.category-card p {
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.feature-card {
    position: relative;
    display: block;
    min-height: 380px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.88);
    box-shadow: var(--shadow);
}

.feature-card .floating {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
}

.feature-copy {
    position: absolute;
    z-index: 1;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.feature-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.7rem;
}

.feature-copy em {
    display: -webkit-box;
    color: var(--muted);
    font-style: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    padding-block: 54px 24px;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    font-size: 1.08rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: var(--shadow);
}

.filter-panel h2 {
    margin: 0;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.7fr) auto;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    min-width: 0;
    padding: 12px 14px;
}

.filter-controls button {
    padding: 12px 16px;
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--dim);
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 24px;
    padding: 18px;
}

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

.category-preview img {
    aspect-ratio: 16 / 11;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.1);
}

.category-overview-copy {
    align-self: center;
}

.category-overview-copy h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.category-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: grid;
    align-items: center;
    background: #000000;
}

.category-hero img {
    position: absolute;
    inset: 0;
}

.category-hero-mask {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34)),
        linear-gradient(0deg, #000000, transparent 70%);
}

.category-hero-copy {
    position: relative;
    z-index: 1;
    padding-block: 64px;
}

.category-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.category-hero p {
    max-width: 700px;
    margin: 16px 0 24px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 26px 0;
    color: var(--dim);
    font-size: 0.94rem;
}

.breadcrumbs a:hover {
    color: var(--orange-light);
}

.detail-main {
    padding-top: 12px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: center;
    padding-block: 30px 56px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    letter-spacing: -0.045em;
}

.detail-copy .lead {
    max-width: 820px;
    font-size: 1.18rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 20px 26px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.26);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.hls-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.2), transparent 30%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.45rem;
}

.play-overlay em {
    max-width: min(80%, 620px);
    color: var(--muted);
    font-style: normal;
    text-align: center;
}

.source-badge {
    padding: 7px 12px;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.related-panel,
.text-panel {
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: var(--shadow);
}

.detail-article h2,
.related-panel h2,
.text-panel h2 {
    margin: 0 0 12px;
    color: #ffffff;
}

.detail-article p,
.text-panel p {
    margin: 0 0 22px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.56);
}

.info-list dt {
    color: var(--dim);
}

.info-list dd {
    margin: 0;
    color: #e5e7eb;
}

.info-list a {
    color: var(--orange-light);
}

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

.big-search {
    max-width: 760px;
    margin-top: 24px;
}

.big-search input {
    flex: 1;
    min-height: 54px;
    padding: 14px 18px;
}

.big-search button {
    min-height: 54px;
    padding: 14px 28px;
}

.search-status {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(17, 24, 39, 0.6);
}

.text-panel {
    max-width: 900px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.78);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
    padding-block: 48px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--orange-light);
    font-size: 1rem;
}

.footer-grid p {
    color: var(--dim);
    font-size: 0.92rem;
}

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

.footer-grid a {
    color: var(--dim);
}

.footer-grid a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

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

@media (max-width: 1120px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .detail-layout,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    .header-inner {
        height: 64px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .hero {
        height: 560px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding-block: 44px;
    }

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

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

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

    .list-poster {
        aspect-ratio: 16 / 10;
    }

    .list-content {
        padding: 16px;
    }

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

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

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

    .big-search {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .shell,
    .header-inner,
    .mobile-panel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, var(--max));
    }

    .hero {
        height: 500px;
    }

    .hero-copy {
        width: min(100% - 22px, 900px);
    }

    .movie-grid,
    .all-grid,
    .compact-grid,
    .category-grid,
    .feature-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

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

    .mobile-panel nav {
        grid-template-columns: 1fr;
    }

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