:root {
    --blue-950: #0b1b4f;
    --blue-900: #103075;
    --blue-800: #1556b7;
    --blue-700: #1d6fe3;
    --blue-600: #2563eb;
    --blue-100: #dbeafe;
    --sky-50: #eff6ff;
    --gray-950: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.14);
    --shadow-blue: 0 24px 60px rgba(37, 99, 235, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), #38bdf8);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    font-size: 13px;
}

.brand-text {
    font-size: 20px;
    color: var(--gray-900);
}

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

.nav-link {
    padding: 9px 14px;
    color: var(--gray-700);
    border-radius: 999px;
    font-size: 15px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-700);
    background: var(--sky-50);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
}

.header-search input,
.mobile-search input {
    width: 170px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: var(--white);
    background: var(--blue-600);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--blue-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--sky-50);
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue-700);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
}

.hero {
    position: relative;
    min-height: 680px;
    padding-top: 72px;
    overflow: hidden;
    background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.42), transparent 32%), linear-gradient(135deg, var(--blue-950), var(--blue-900) 45%, var(--blue-600));
}

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

.hero-track {
    position: relative;
    min-height: 608px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.74fr);
    gap: 54px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    color: var(--white);
    padding: 54px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--blue-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue-600);
}

.hero-copy h1,
.hero-site-title {
    margin: 0 0 10px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(239, 246, 255, 0.92);
    font-size: 20px;
}

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

.hero-tags span,
.detail-tags span,
.chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    color: var(--blue-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

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

.center-actions {
    justify-content: center;
}

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

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

.btn-light {
    color: var(--blue-950);
    background: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-primary {
    color: var(--white);
    background: var(--blue-600);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    background: var(--blue-700);
}

.btn-outline {
    color: var(--blue-700);
    background: var(--white);
    border: 2px solid var(--blue-600);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(1.5deg);
    transition: transform 0.4s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

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

.hero-poster img {
    width: 100%;
    height: 490px;
    object-fit: cover;
}

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

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

.hero-dots button.active {
    width: 32px;
    background: var(--white);
}

.quick-stats {
    background: var(--gray-50, #f8fafc);
    padding: 32px 0;
}

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

.stat-card {
    padding: 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card strong {
    display: block;
    color: var(--blue-600);
    font-size: 32px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
}

.section {
    padding: 76px 0;
}

.white-section {
    background: var(--white);
}

.gray-section {
    background: #f8fafc;
}

.blue-section {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.section-head {
    margin-bottom: 34px;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.centered {
    text-align: center;
}

.light p,
.light h2 {
    color: var(--white);
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.text-link {
    color: var(--blue-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.card-cover {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.card-chip,
.rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 12px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.94);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 14px;
    right: auto;
    background: rgba(15, 23, 42, 0.72);
}

.card-body {
    padding: 20px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.card-body h2 a {
    transition: color 0.25s ease;
}

.movie-card:hover h2 a {
    color: var(--blue-600);
}

.card-meta,
.card-tags {
    color: var(--gray-500);
    font-size: 14px;
}

.card-desc {
    display: -webkit-box;
    min-height: 52px;
    margin: 12px 0;
    color: var(--gray-600);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    display: block;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img {
    width: 100%;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
}

.category-card h2,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--gray-600);
}

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

.mini-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.mini-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.35s ease;
}

.mini-card:hover img {
    transform: scale(1.08);
}

.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.9));
}

.mini-card span:last-child {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: var(--white);
    font-weight: 800;
}

.mini-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: var(--blue-950);
    background: var(--white);
    border-radius: 999px;
    font-weight: 900;
}

.final-cta {
    background: #f8fafc;
}

.cta-panel {
    padding: 54px 26px;
    text-align: center;
    color: var(--white);
    background: radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.35), transparent 26%), linear-gradient(135deg, var(--blue-950), var(--blue-600));
    border-radius: 32px;
    box-shadow: var(--shadow-blue);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
}

.cta-panel p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--blue-100);
    font-size: 18px;
}

.page-hero {
    padding: 150px 0 82px;
    color: var(--white);
    background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.42), transparent 30%), linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.slim-hero {
    padding-bottom: 68px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(239, 246, 255, 0.92);
    font-size: 19px;
}

.category-hero .chip-row {
    margin-top: 26px;
}

.chip-link {
    color: var(--white);
}

.chip-link.active,
.chip-link:hover {
    background: var(--white);
    color: var(--blue-800);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.overview-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.overview-thumbs img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
}

.overview-content .text-link {
    display: inline-flex;
    margin-top: 14px;
}

.filter-section {
    padding: 28px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--gray-200);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.8fr);
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--gray-200);
    outline: 0;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field select:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--gray-600);
    background: #f8fafc;
    border: 1px dashed var(--gray-200);
    border-radius: 24px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 86px 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.ranking-cover img {
    width: 86px;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-number {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: var(--blue-600);
    border-radius: 16px;
    font-weight: 900;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-info p {
    margin: 0 0 8px;
    color: var(--gray-600);
}

.rank-action {
    padding: 10px 16px;
    color: var(--blue-700);
    background: var(--sky-50);
    border-radius: 999px;
    font-weight: 800;
}

.detail-hero {
    padding: 118px 0 56px;
    background: radial-gradient(circle at 72% 10%, rgba(56, 189, 248, 0.26), transparent 30%), linear-gradient(135deg, #07143c, var(--blue-900));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
    gap: 36px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.player-card video {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: inline-grid;
    place-items: center;
    padding-left: 5px;
    color: var(--blue-700);
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow-blue);
}

.detail-info {
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(239, 246, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    padding: 7px 12px;
    color: var(--blue-100);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.lead-text {
    margin: 0 0 20px;
    color: rgba(239, 246, 255, 0.92);
    font-size: 18px;
}

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

.content-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo .brand-text {
    color: var(--white);
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
}

.footer-column {
    display: grid;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 18px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 0;
    color: var(--white);
    background: var(--blue-600);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.back-top.visible {
    display: grid;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-panel {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        padding: 18px 16px 28px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    body.menu-open .mobile-panel {
        display: grid;
        gap: 18px;
    }

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

    .mobile-search {
        display: flex;
        gap: 8px;
        padding: 6px;
        border: 1px solid var(--gray-200);
        border-radius: 18px;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .hero {
        min-height: 660px;
    }

    .hero-track {
        min-height: 588px;
    }

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

    .stats-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .related-grid,
    .category-grid,
    .top-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .split-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-cover {
        height: 220px;
    }

    .category-overview-card,
    .footer-inner,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .overview-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .ranking-row {
        gap: 12px;
    }

    .rank-action {
        justify-self: start;
    }

    .player-card,
    .player-card video {
        min-height: 300px;
    }

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

@media (max-width: 520px) {
    .brand-text {
        font-size: 18px;
    }

    .stats-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .related-grid,
    .category-grid,
    .top-list {
        grid-template-columns: 1fr;
    }

    .overview-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-cover {
        height: 280px;
    }

    .section {
        padding: 54px 0;
    }
}
