:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.84);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --brand: #38bdf8;
    --brand-2: #22d3ee;
    --brand-3: #2563eb;
    --orange: #f97316;
    --pink: #ec4899;
    --green: #22c55e;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.22), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.18), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.28);
}

.site-nav {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo span:last-child {
    font-size: 21px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.32);
}

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

.nav-link {
    color: #e2e8f0;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #38bdf8;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: min(290px, 24vw);
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    border-radius: 999px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    padding: 10px 44px 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

.nav-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 22px;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav-link {
    padding: 10px 0;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.mobile-search input {
    padding: 10px 14px;
}

.mobile-search button,
.filter-panel button,
.big-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 70px;
}

.inner-page {
    padding-top: 26px;
}

.hero-section {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(100deg, #2563eb 0%, #0891b2 48%, #0f766e 100%);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.32), transparent 22%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.06));
}

.hero-background-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 34px 34px;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    align-items: center;
    gap: 32px;
    padding: 56px;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow,
.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(25px, 3vw, 42px);
    color: #dff9ff;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn-primary {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.22);
}

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

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(100%, 390px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(56, 189, 248, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.46);
}

.hero-poster img,
.poster-wrap img,
.detail-cover img,
.ranking-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: #fff;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.78);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.52);
    backdrop-filter: blur(10px);
}

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

.hero-dots button {
    width: 30px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 56px;
    background: #fff;
}

.content-section {
    margin-top: 54px;
}

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

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading p {
    margin: 0;
    font-size: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-heading span {
    color: var(--muted);
    text-align: right;
}

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover .movie-card-link {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.2);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.28));
}

.poster-wrap::after,
.hero-poster::after,
.detail-cover::after {
    content: attr(data-title);
    position: absolute;
    inset: auto 14px 46px 14px;
    display: none;
    padding: 10px;
    border-radius: 14px;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    text-align: center;
    font-weight: 800;
    line-height: 1.35;
}

.poster-wrap.image-error::after,
.hero-poster.image-error::after,
.detail-cover.image-error::after {
    display: block;
}

.poster-wrap.image-error img,
.hero-poster.image-error img,
.detail-cover.image-error img {
    opacity: 0;
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.74), transparent 54%);
}

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

.poster-badge {
    left: 12px;
    top: 12px;
    background: rgba(37, 99, 235, 0.76);
}

.poster-duration {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: rgba(249, 115, 22, 0.88);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 999px;
    color: #fff;
    background: rgba(37, 99, 235, 0.74);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.65;
}

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

.tag-row span {
    padding: 4px 9px;
    color: #c4e9ff;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.18);
    font-size: 12px;
}

.movie-card-horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.movie-card-horizontal .poster-wrap {
    aspect-ratio: auto;
    min-height: 220px;
}

.movie-card-horizontal .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.category-tile,
.category-overview-card,
.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.76), rgba(6, 182, 212, 0.68));
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

.category-tile {
    min-height: 172px;
    padding: 22px;
    display: grid;
    align-content: end;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-overview-card::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.26), transparent 28%);
    pointer-events: none;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 60px rgba(14, 165, 233, 0.22);
}

.category-tile span {
    font-size: 36px;
    margin-bottom: 14px;
}

.category-tile strong {
    font-size: 20px;
    position: relative;
}

.category-tile em,
.category-tile small {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.section-more {
    margin-top: 24px;
    text-align: center;
}

.page-hero {
    padding: 46px;
    margin-bottom: 34px;
}

.compact-hero {
    min-height: 240px;
    display: grid;
    align-content: center;
}

.page-hero p,
.page-hero h1,
.page-hero span {
    position: relative;
    max-width: 820px;
    margin: 0;
}

.page-hero p {
    color: #bfdbfe;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-hero h1 {
    font-size: clamp(32px, 4.8vw, 56px);
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 14px;
}

.page-hero span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: #38bdf8;
}

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

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.category-overview-head > span {
    font-size: 42px;
}

.category-overview-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.category-overview-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.category-overview-head strong {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 20px;
    backdrop-filter: blur(14px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
}

.filter-panel em {
    color: #bae6fd;
    font-style: normal;
    text-align: right;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.34));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.56);
}

.detail-meta-grid b {
    color: var(--muted);
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-panel {
    margin-top: 42px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.movie-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-start {
    width: 106px;
    height: 106px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(37, 99, 235, 0.78);
    cursor: pointer;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.42);
    font-weight: 900;
}

.player-overlay p,
.player-message {
    color: #e0f2fe;
    margin: 0;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.74);
    font-size: 13px;
}

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

.detail-text-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    line-height: 1.9;
}

.detail-text-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-text-card p {
    margin: 0;
    color: #dbeafe;
}

.search-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
}

.big-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 16px;
}

.big-search input {
    min-height: 54px;
    padding: 0 18px;
}

.search-panel p {
    color: var(--muted);
    margin: 0 0 22px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 64px 68px minmax(0, 1fr) minmax(120px, 220px) 64px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row a:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.38);
}

.ranking-number {
    color: #fbbf24;
    font-weight: 900;
    font-size: 22px;
    text-align: center;
}

.ranking-row img {
    width: 68px;
    height: 92px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
}

.ranking-row em {
    color: var(--muted);
    font-style: normal;
}

.ranking-row b {
    color: #fbbf24;
    text-align: right;
    font-size: 18px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.98));
}

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

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid a:hover {
    color: #38bdf8;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.from-blue { background: linear-gradient(135deg, #2563eb, #22d3ee); }
.from-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.from-purple { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.from-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.from-pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.from-indigo { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.from-green { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.from-teal { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.from-sky { background: linear-gradient(135deg, #0284c7, #2563eb); }
.from-amber { background: linear-gradient(135deg, #d97706, #f97316); }

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-search {
        width: min(360px, 42vw);
        margin-left: auto;
    }

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

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

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

@media (max-width: 820px) {
    .site-nav {
        padding: 0 16px;
        gap: 12px;
    }

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

    .nav-search {
        display: none;
    }

    .page-shell {
        width: min(100% - 22px, 1280px);
        padding-top: 18px;
    }

    .hero-section,
    .hero-slider {
        min-height: 680px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 30px 22px 70px;
    }

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

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .section-heading span {
        text-align: left;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .horizontal-grid,
    .category-overview-samples,
    .detail-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .movie-card-horizontal .poster-wrap {
        min-height: 178px;
    }

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

    .detail-cover {
        width: min(280px, 78vw);
    }

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

    .ranking-row a {
        grid-template-columns: 46px 56px minmax(0, 1fr) 52px;
    }

    .ranking-row em {
        display: none;
    }
}

@media (max-width: 560px) {
    .movie-grid,
    .featured-grid,
    .category-grid,
    .horizontal-grid,
    .category-overview-samples,
    .detail-content-grid,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy p {
        font-size: 16px;
    }

    .page-hero,
    .detail-hero,
    .search-panel {
        padding: 22px;
    }

    .detail-meta-grid,
    .big-search {
        grid-template-columns: 1fr;
    }

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