:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --blue-soft: #dbeafe;
    --gold: #f59e0b;
    --red: #ef4444;
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}

.brand-text {
    font-size: 21px;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #bfdbfe;
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 32vw);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.header-search input,
.mobile-search input,
.search-page-panel input,
.filter-bar input,
.quick-search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.header-search input {
    padding: 10px 14px;
    color: #fff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.header-search button,
.mobile-search button,
.quick-search-panel button,
.search-page-panel button {
    border: 0;
    color: #fff;
    background: var(--blue);
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search-panel button:hover,
.search-page-panel button:hover {
    background: #1d4ed8;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-search input {
    color: #fff;
    padding: 12px 14px;
}

.mobile-nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

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

.mobile-category-links a {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
}

.hero {
    position: relative;
    color: #fff;
    background: #020617;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(59, 130, 246, 0.45), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.32) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 56px;
    padding: 80px 0 120px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(191, 219, 254, 0.34);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(18px, 2.2vw, 24px);
}

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

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--blue-soft);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 999px;
    padding: 13px 24px;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.4);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 12px 22px;
    backdrop-filter: blur(16px);
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 90px rgba(2, 6, 23, 0.6);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    z-index: 2;
    pointer-events: none;
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.hero-strip {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    transform: translateX(-50%);
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-mini img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-mini span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.quick-search-panel,
.content-section,
.filter-bar,
.search-page-panel,
.detail-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    margin-top: -40px;
    padding: 26px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: var(--shadow);
}

.quick-search-panel h2,
.quick-search-panel p {
    margin: 0;
}

.quick-search-panel p {
    color: #bfdbfe;
}

.quick-search-panel form,
.search-page-panel form {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.quick-search-panel input,
.search-page-panel input {
    min-height: 52px;
    padding: 0 20px;
    color: var(--ink);
}

.quick-search-panel button,
.search-page-panel button {
    align-self: stretch;
    min-width: 120px;
}

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

.no-top-padding {
    padding-top: 0;
}

.alt-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
    background: var(--surface-soft);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: var(--blue);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    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.32);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.poster-grid .poster-frame img,
.category-movie-grid .poster-frame img {
    aspect-ratio: 2 / 3;
}

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

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

.quality-badge,
.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.quality-badge {
    top: 12px;
    left: 12px;
    background: var(--red);
    padding: 7px 9px;
    font-size: 12px;
}

.year-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
    padding: 7px 10px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.36);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    backdrop-filter: blur(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-title {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.32;
    font-weight: 850;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--blue);
}

.movie-line {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 13px;
}

.movie-meta span {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
}

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

.rank-list.large-rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

.rank-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.rank-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 34px;
    padding: 6px 8px;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-title {
    display: block;
    font-weight: 850;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.72;
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.08));
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 22px;
    font-weight: 900;
}

.category-card small {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #dbeafe;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 12% 25%, rgba(59, 130, 246, 0.55), transparent 35%),
        linear-gradient(135deg, #0f172a, #1e3a8a 65%, #020617);
}

.compact-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

.compact-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.detail-shell .breadcrumb {
    color: #64748b;
    margin: 26px 0;
}

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

.detail-shell .breadcrumb a:hover {
    color: var(--blue);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 16px;
    align-items: center;
    padding: 26px 0;
}

.filter-bar input {
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-links,
.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-links a,
.side-links a {
    display: inline-flex;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 750;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    border-radius: 13px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.search-page-panel {
    padding: 36px 0;
}

.search-page-panel form {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.detail-shell {
    padding-bottom: 20px;
}

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

.player-column,
.side-card {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.player-column {
    overflow: hidden;
}

.video-box {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.12);
    padding: 0;
}

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

.player-poster {
    position: absolute;
    inset: 0;
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

.player-button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.76);
    box-shadow: 0 22px 45px rgba(37, 99, 235, 0.42);
    font-size: 34px;
    text-indent: 4px;
}

.player-column h1,
.detail-one-line,
.detail-meta,
.detail-tags,
.detail-text {
    margin-left: 26px;
    margin-right: 26px;
}

.player-column h1 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: #334155;
    font-size: 18px;
    margin-top: 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
    margin-bottom: 14px;
}

.detail-meta span {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    padding: 7px 12px;
    color: #475569;
    font-weight: 700;
}

.detail-text {
    padding: 14px 0 30px;
}

.detail-text h2 {
    margin: 22px 0 10px;
    font-size: 24px;
}

.detail-text p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.side-card {
    padding: 18px;
}

.poster-side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.full-button {
    width: 100%;
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.detail-related {
    padding-top: 44px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    margin-top: 40px;
}

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

.site-footer h2 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

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

.site-footer a:hover {
    color: #93c5fd;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    text-align: center;
}

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .hero-poster {
        display: none;
    }

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

    .rank-grid,
    .rank-list.large-rank-list,
    .category-overview-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .site-header-inner {
        width: min(100% - 24px, 1200px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-stage,
    .hero-content {
        min-height: 640px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-strip {
        grid-template-columns: repeat(3, 1fr);
        bottom: 18px;
    }

    .hero-controls {
        bottom: 122px;
    }

    .quick-search-panel,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .quick-search-panel form,
    .search-page-panel form {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search-panel button,
    .search-page-panel button {
        min-height: 48px;
    }

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

    .movie-grid,
    .featured-grid,
    .poster-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rank-card,
    .category-overview-card {
        grid-template-columns: 96px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .rank-poster img {
        aspect-ratio: 2 / 3;
    }

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

    .category-covers img:nth-child(n+3) {
        display: none;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .featured-grid,
    .poster-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-mini span {
        display: none;
    }

    .hero-strip {
        grid-template-columns: repeat(6, 1fr);
    }

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

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

    .player-column h1,
    .detail-one-line,
    .detail-meta,
    .detail-tags,
    .detail-text {
        margin-left: 18px;
        margin-right: 18px;
    }
}
