:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --shadow-cyan: 0 24px 60px rgba(6, 182, 212, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.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 rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.26);
}

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

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.14);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    color: var(--muted-strong);
    border-radius: 12px;
}

.mobile-menu a:hover {
    background: rgba(6, 182, 212, 0.14);
    color: #ffffff;
}

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

.hero-slider {
    position: relative;
    min-height: 70vh;
    height: 680px;
    max-height: 820px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.86) 44%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.08) 50%, rgba(2, 6, 23, 0.75) 100%);
    z-index: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 18% 45%, rgba(6, 182, 212, 0.20), transparent 30rem);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 760px;
    padding: 84px 0 60px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 24px;
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.46);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.14);
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-meta,
.tag-list,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags a,
.hero-tags span,
.detail-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.28);
}

.ghost-button {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-cyan);
}

.quick-search {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: center;
    margin-top: -54px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.rank-head h2,
.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.quick-search p,
.rank-head p,
.page-hero p,
.section-heading p,
.footer-inner p,
.card-desc,
.category-card p,
.category-tile em {
    color: var(--muted);
    line-height: 1.72;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
    gap: 14px;
}

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

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: none;
    background: rgba(2, 6, 23, 0.66);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.86));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    min-height: 172px;
    padding: 22px;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: var(--shadow-cyan);
}

.category-tile span,
.category-name {
    display: block;
    margin-bottom: 16px;
    color: #67e8f9;
    font-weight: 800;
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.category-tile em {
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tone-orange .category-name,
.tone-orange span {
    color: #fdba74;
}

.tone-rose .category-name,
.tone-rose span {
    color: #fda4af;
}

.tone-red .category-name,
.tone-red span {
    color: #fca5a5;
}

.tone-violet .category-name,
.tone-violet span {
    color: #c4b5fd;
}

.tone-emerald .category-name,
.tone-emerald span {
    color: #6ee7b7;
}

.tone-amber .category-name,
.tone-amber span {
    color: #fcd34d;
}

.tone-indigo .category-name,
.tone-indigo span {
    color: #a5b4fc;
}

.page-section,
.panel-section {
    padding: 62px 0;
}

.panel-section {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.5));
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 30px;
}

.heading-line {
    width: 5px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.04em;
}

.section-icon {
    font-size: 28px;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.wide-card .poster-frame,
.feature-card .poster-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 48%);
}

.card-badge,
.card-year {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.86);
    backdrop-filter: blur(8px);
}

.card-badge {
    left: 10px;
}

.card-year {
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.movie-card:hover .card-body strong {
    color: #67e8f9;
}

.card-meta {
    color: #67e8f9;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: #64748b;
    font-size: 12px;
}

.horizontal-row {
    display: grid;
    grid-auto-columns: minmax(280px, 330px);
    grid-auto-flow: column;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 2px 18px;
    scroll-snap-type: x proximity;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

.rank-section {
    padding-top: 20px;
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.76));
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 10px 16px 10px 12px;
    border-radius: 18px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.rank-cover {
    width: 70px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-info strong {
    font-size: 18px;
}

.rank-info span,
.rank-info em,
.rank-views {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-info em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main {
    padding: 40px 0 72px;
}

.page-hero {
    margin-bottom: 30px;
    padding: clamp(34px, 6vw, 62px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.20), transparent 28rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.82));
    box-shadow: var(--shadow);
}

.small-hero h1 {
    margin-bottom: 14px;
}

.filter-zone {
    display: grid;
    gap: 24px;
}

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

.category-card {
    padding: 26px;
}

.category-name {
    font-size: 24px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.36);
    font-size: 13px;
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-main {
    padding: 34px 0 72px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 42px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 30% 0%, rgba(6, 182, 212, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.detail-kicker {
    align-self: flex-start;
    padding: 8px 13px;
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    font-weight: 800;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.75;
}

.tag-list {
    gap: 8px;
}

.player-section,
.detail-text,
.related-section {
    margin-top: 42px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    color: #ffffff;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.26), transparent 24rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42));
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 55px rgba(6, 182, 212, 0.35);
    font-size: 30px;
}

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

.detail-text article {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.68);
}

.detail-text h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-text p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 16px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p {
    max-width: 620px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.48);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .category-strip,
    .library-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .quick-search {
        grid-template-columns: 1fr;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 620px;
        min-height: 620px;
    }

    .hero-content {
        padding-top: 94px;
    }

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

    .category-strip,
    .category-grid-page,
    .movie-grid,
    .library-grid,
    .compact-grid,
    .detail-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .rank-row {
        grid-template-columns: 44px 56px minmax(0, 1fr);
    }

    .rank-views {
        display: none;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .logo-text {
        font-size: 16px;
    }

    .hero-slider {
        height: 580px;
        min-height: 580px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .quick-search {
        width: min(100% - 22px, 1180px);
        padding: 20px;
    }

    .category-strip,
    .category-grid-page,
    .movie-grid,
    .library-grid,
    .compact-grid,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .rank-info em {
        white-space: normal;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .detail-hero,
    .page-hero,
    .detail-text article {
        padding: 20px;
    }
}
