:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-primary: #0284c7;
    --color-primary-dark: #0369a1;
    --color-rose: #f43f5e;
    --color-amber: #f59e0b;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #ec4899);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

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

.nav-link {
    padding: 10px 14px;
    color: #475569;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #0369a1;
    background: #e0f2fe;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 320px;
    padding: 5px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.08);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 10px 9px 16px;
    background: transparent;
    color: #0f172a;
}

.header-search button,
.large-search button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    padding: 9px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
}

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

.hero-carousel {
    position: relative;
    height: calc(70vh - 0px);
    min-height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #334155);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.26), transparent 34%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.42) 54%, rgba(2, 6, 23, 0.25));
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    right: 32px;
    bottom: 86px;
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 22px rgba(14, 165, 233, 0.22);
}

.hero-content h1,
.page-hero h1,
.detail-title-block h1 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-title-block p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.hero-meta,
.movie-meta,
.detail-facts,
.category-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span {
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-wide {
    width: 100%;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(15, 23, 42, 0.78);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

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

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

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

.section-heading p {
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.section-more {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(14, 165, 233, 0.32);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-cover img,
.horizontal-cover img,
.ranking-row-cover img,
.related-item img,
.poster-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.movie-card-horizontal:hover .horizontal-cover img,
.related-item:hover img {
    transform: scale(1.06);
}

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

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

.play-badge,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 50%;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

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

.movie-card-body h3,
.horizontal-body h3,
.ranking-row-info h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover,
.horizontal-body h3 a:hover,
.ranking-row-info h2 a:hover {
    color: var(--color-primary-dark);
}

.movie-card-body p,
.horizontal-body p,
.ranking-row-info p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    color: #64748b;
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 999px;
}

.category-preview-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px;
    border-radius: 32px;
    background: linear-gradient(135deg, #eff6ff, #fdf2f8);
}

.category-rail-block + .category-rail-block {
    margin-top: 34px;
}

.rail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rail-title h3 {
    margin: 0;
    font-size: 23px;
}

.rail-title h3::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    margin-right: 10px;
    vertical-align: -5px;
    border-radius: 999px;
    background: var(--accent, #0ea5e9);
}

.rail-title a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 188px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    overscroll-behavior-inline: contain;
}

.rail-item .movie-card {
    height: 100%;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.horizontal-cover {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border-radius: 14px;
    background: #e2e8f0;
}

.horizontal-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.ranking-panel {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    padding: 26px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 26px;
    background: linear-gradient(160deg, #fff7ed, #ffffff 65%);
    box-shadow: var(--shadow-card);
}

.ranking-list {
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.ranking-list li + li {
    border-top: 1px solid #fed7aa;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 13px 0;
    align-items: center;
}

.rank-number {
    grid-row: span 2;
    color: var(--color-amber);
    font-size: 20px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: #0f172a;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: #9a3412;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.compact-hero {
    padding: 84px 0 74px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -160px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.24);
    filter: blur(8px);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-image-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 170px;
    overflow: hidden;
    background: #e2e8f0;
}

.category-image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.category-card h2 {
    margin: 0 0 10px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--color-muted);
    line-height: 1.7;
}

.category-stat {
    justify-content: space-between;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.filter-search {
    display: grid;
    gap: 8px;
}

.filter-search label,
.filter-row span {
    color: #334155;
    font-weight: 800;
}

.filter-search input,
.large-search input {
    width: 100%;
    border: 1px solid #dbeafe;
    outline: 0;
    border-radius: 16px;
    padding: 13px 14px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search input:focus,
.large-search input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-row button {
    border: 0;
    padding: 8px 12px;
    color: #475569;
    font-weight: 800;
    border-radius: 999px;
    background: #f1f5f9;
}

.filter-row button:hover,
.filter-row button.is-active {
    color: #ffffff;
    background: var(--color-primary);
}

.result-count,
.search-status {
    margin: 0 0 20px;
    color: #64748b;
    font-weight: 800;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ranking-row-number {
    color: var(--color-amber);
    font-size: 26px;
    font-weight: 900;
}

.ranking-row-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #e2e8f0;
}

.large-search {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.large-search input {
    background: #ffffff;
}

.detail-hero {
    min-height: 430px;
    background-image: var(--detail-poster);
    background-size: cover;
    background-position: center;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.24), transparent 34%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.36));
    backdrop-filter: blur(1px);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 64px 0 72px;
}

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

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card,
.review-card,
.related-panel,
.poster-panel {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.22));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    font-size: 28px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-card,
.review-card,
.related-panel {
    padding: 26px;
}

.detail-card h2,
.review-card h2,
.related-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-card h2:not(:first-child) {
    margin-top: 28px;
}

.detail-card p,
.review-card p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.detail-facts span {
    padding: 11px 12px;
    color: #475569;
    background: #f8fafc;
    border-radius: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tag-list span {
    padding: 7px 12px;
    color: #075985;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.review-card {
    background: linear-gradient(135deg, #fffbeb, #ffffff 72%);
}

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

.prev-next a {
    padding: 16px;
    overflow: hidden;
    color: #0369a1;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 16px;
    background: #e0f2fe;
}

.prev-next a:last-child {
    text-align: right;
}

.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: grid;
    gap: 22px;
}

.poster-panel {
    padding: 16px;
}

.poster-panel img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: #e2e8f0;
    margin-bottom: 14px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: #e2e8f0;
}

.related-item strong,
.related-item em {
    display: block;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-item em {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 40px;
    padding: 42px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
    gap: 32px;
    align-items: start;
}

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    max-width: 620px;
    margin: 14px 0 0;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    color: #e0f2fe;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.accent-pink { --accent: #ec4899; }
.accent-blue { --accent: #2563eb; }
.accent-rose { --accent: #f43f5e; }
.accent-orange { --accent: #f97316; }
.accent-violet { --accent: #8b5cf6; }
.accent-fuchsia { --accent: #d946ef; }
.accent-cyan { --accent: #06b6d4; }
.accent-slate { --accent: #475569; }
.accent-amber { --accent: #f59e0b; }
.accent-emerald { --accent: #10b981; }
.accent-lime { --accent: #84cc16; }
.accent-indigo { --accent: #6366f1; }

.category-hero,
.ranking-hero,
.search-hero {
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent, #0ea5e9) 45%, transparent), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e293b);
}

@media (max-width: 1100px) {
    .header-search {
        width: 240px;
    }

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 860px) {
    .header-shell {
        gap: 12px;
    }

    .site-nav,
    .header-search {
        position: fixed;
        left: 16px;
        right: 16px;
        z-index: 100;
        display: none;
        width: auto;
    }

    .site-nav {
        top: 82px;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow-soft);
    }

    .header-search {
        top: 282px;
        box-shadow: var(--shadow-soft);
    }

    body.menu-open .site-nav,
    body.menu-open .header-search {
        display: flex;
    }

    .nav-link {
        display: block;
        text-align: center;
    }

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

    .hero-carousel {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 80px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-title-block h1 {
        font-size: clamp(34px, 12vw, 54px);
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

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

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

    .category-preview-panel {
        width: min(100% - 24px, 1180px);
        padding: 24px;
    }

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

    .horizontal-list {
        grid-template-columns: 1fr;
    }

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

    .ranking-row .btn {
        grid-column: 1 / -1;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-title-block p {
        font-size: 16px;
    }

    .hero-actions,
    .large-search {
        flex-direction: column;
    }

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

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

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

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

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

    .horizontal-cover {
        min-height: 132px;
    }

    .ranking-row {
        grid-template-columns: 1fr;
    }

    .ranking-row-cover {
        width: 120px;
    }

    .detail-facts,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .prev-next a:last-child {
        text-align: left;
    }

    .detail-card,
    .review-card,
    .related-panel {
        padding: 20px;
    }

    .big-play {
        width: 70px;
        height: 70px;
    }
}
