:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #dbeafe;
    --yellow: #facc15;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef2ff 100%);
    font-family: 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 {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.top-nav {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--gray-500);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 9px 12px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #1d4ed8;
    background: var(--blue-soft);
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    padding: 8px 18px 18px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

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

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 35%, rgba(37, 99, 235, 0.22), transparent 36%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 15px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
    backdrop-filter: blur(14px);
}

.hero-score strong {
    color: var(--yellow);
}

.hero-score i {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions,
.scroll-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-button,
.ghost-button,
.wide-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    padding: 12px 26px;
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.primary-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.ghost-button {
    padding: 12px 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

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

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

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 72px;
}

.page-top {
    padding-top: 34px;
}

.quick-search,
.filter-panel,
.page-hero,
.content-section,
.category-card,
.category-tile,
.movie-card,
.movie-list-item {
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: var(--shadow-sm);
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
    gap: 24px;
    margin-bottom: 42px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
}

.quick-search h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.quick-search p {
    margin: 0;
    color: var(--gray-500);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(110px, 0.6fr));
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    color: var(--gray-800);
    background: var(--gray-50);
}

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

.content-section {
    margin-bottom: 42px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--gray-500);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.featured-grid .poster-wrap {
    aspect-ratio: 16 / 9;
}

.movie-card.compact {
    min-width: 220px;
    width: 220px;
    flex: 0 0 220px;
}

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

.poster-wrap img,
.category-card img,
.category-tile img,
.tile-images img,
.movie-list-item img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-tile:hover img,
.movie-list-item:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.68) 100%);
    transition: opacity 0.25s ease;
}

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

.type-pill,
.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.type-pill {
    top: 10px;
    right: 10px;
}

.year-pill {
    left: 10px;
    bottom: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    color: var(--gray-900);
    background: var(--yellow);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    margin-bottom: 12px;
}

.card-tags span {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 12px;
    font-weight: 700;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:first-child {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
    display: none;
}

.scroll-actions button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 24px;
}

.scroll-actions button:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.movie-list {
    display: grid;
    gap: 14px;
}

.movie-list-item {
    position: relative;
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.movie-list-item img {
    height: 82px;
    border-radius: 12px;
    background: var(--gray-100);
}

.list-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--gray-900);
    background: var(--yellow);
    font-weight: 900;
}

.list-content h3 {
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-content p {
    margin: 0 0 8px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.list-meta span {
    padding: 3px 7px;
    border-radius: 8px;
    background: var(--gray-100);
}

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

.category-card,
.category-tile {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 138px;
}

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

.category-card div,
.tile-content {
    padding: 18px;
}

.category-card h3,
.category-tile h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-tile p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.category-tile {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.tile-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    height: 170px;
    overflow: hidden;
    background: var(--gray-100);
}

.tile-content span {
    display: inline-flex;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
}

.split-section .content-section {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.compact-list {
    margin-bottom: 16px;
}

.wide-link {
    width: 100%;
    padding: 12px 18px;
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.text-link {
    padding: 8px 14px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(32px, 6vw, 72px);
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.4), transparent 26%),
        linear-gradient(135deg, #0f172a, #1d4ed8 60%, #2563eb);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px !important;
    color: #bfdbfe !important;
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.detail-page {
    max-width: none;
    padding: 0 0 72px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.04);
}

.detail-backdrop div {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.92));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 62px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.detail-info h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

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

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 0 28px;
}

.detail-meta div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.detail-page > .content-section {
    max-width: 1280px;
    margin: 42px auto 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.video-player {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-layer {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), rgba(2, 6, 23, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-frame.is-playing .play-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
    font-size: 34px;
    text-indent: 5px;
}

.detail-text {
    color: var(--gray-700);
    font-size: 17px;
}

.detail-text h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 900;
}

.detail-text p {
    margin: 0 0 24px;
}

.related-row .movie-card {
    min-width: 210px;
}

.ranking-list {
    gap: 12px;
}

.hidden {
    display: none !important;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 42px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding: 20px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .quick-search,
    .split-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .top-nav {
        padding: 0 16px;
    }

    .brand {
        min-width: auto;
    }

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

    .hero {
        height: 76vh;
        min-height: 600px;
    }

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

    .hero-control {
        display: none;
    }

    .hero-content p {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        max-width: 260px;
    }

    .page-wrap {
        padding: 28px 16px 54px;
    }

    .quick-search,
    .content-section,
    .page-hero {
        border-radius: 20px;
        padding: 20px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

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

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

    .movie-card.compact {
        width: 176px;
        min-width: 176px;
        flex-basis: 176px;
    }

    .card-body {
        padding: 11px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p {
        min-height: 40px;
        font-size: 13px;
    }

    .card-tags {
        display: none;
    }

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

    .category-card img {
        height: 150px;
    }

    .tile-images {
        height: 140px;
    }

    .movie-list-item {
        grid-template-columns: 92px 1fr;
        gap: 12px;
    }

    .movie-list-item img {
        height: 78px;
    }

    .list-content h3 {
        font-size: 16px;
    }

    .list-content p {
        -webkit-line-clamp: 1;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-inner {
        padding: 26px 16px 42px;
    }

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

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

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

    .detail-page > .content-section {
        margin: 24px 16px 0;
    }

    .footer-inner {
        padding: 38px 16px;
    }
}

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

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