:root {
    --bg: #f4f8ff;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --brand-3: #14b8a6;
    --gold: #f59e0b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.13);
    --soft-shadow: 0 16px 50px rgba(37, 99, 235, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 28rem), linear-gradient(135deg, #f8fbff, var(--bg));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(219, 234, 254, 0.85);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

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

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #334155;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--brand);
    background: #eff6ff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

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

main {
    padding-top: 68px;
}

.hero-section {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.04));
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.45;
}

.hero-glow-one {
    top: 60px;
    right: 9%;
    background: rgba(255, 255, 255, 0.32);
}

.hero-glow-two {
    bottom: -80px;
    left: 10%;
    background: rgba(20, 184, 166, 0.5);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 580px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
    max-width: 690px;
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 620px;
    color: #e0f2fe;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.hero-copy .primary-btn {
    color: var(--brand);
    background: #fff;
}

.ghost-btn {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 440px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.38);
    isolation: isolate;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

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

.hero-poster span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(245, 158, 11, 0.9);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
    line-height: 1;
}

.hero-controls div {
    display: inline-flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 30px;
    background: #fff;
}

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

.quick-search-section {
    transform: translateY(-46px);
    position: relative;
    z-index: 5;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.quick-search-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.home-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 2px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
}

.home-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--ink);
    background: transparent;
}

.home-search button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
}

.section-block {
    padding: 54px 0;
}

.soft-panel {
    width: 100%;
    padding: 72px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #f1f5ff, #dff7ff);
}

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

.section-heading a {
    color: var(--brand);
    font-weight: 800;
}

.section-heading.inverted,
.section-heading.inverted a {
    color: #fff;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(219, 234, 254, 0.9);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #bfdbfe, #67e8f9);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(15, 23, 42, 0.78));
}

.card-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #ef4444);
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--brand);
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: #64748b;
    font-size: 13px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    padding: 7px 11px;
    color: #dff8ff;
    background: rgba(255, 255, 255, 0.14);
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 20px;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card span,
.category-overview-card span {
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-card strong {
    display: block;
    margin-top: 16px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

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

.ranking-panel {
    width: min(1180px, calc(100% - 32px));
    margin-bottom: 54px;
    padding: 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #1e3a8a, #0891b2);
    box-shadow: var(--shadow);
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 70px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-list-page .ranking-item {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.ranking-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.2);
}

.ranking-list-page .ranking-item:hover {
    background: #eff6ff;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #ef4444);
    font-weight: 900;
}

.ranking-item img {
    width: 70px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-text {
    min-width: 0;
}

.ranking-text strong,
.ranking-text em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-text em {
    color: currentColor;
    opacity: 0.72;
    font-size: 13px;
    font-style: normal;
}

.ranking-arrow {
    font-size: 30px;
    line-height: 1;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4 70%, #14b8a6);
}

.compact-hero {
    min-height: 290px;
    display: flex;
    align-items: center;
    padding: 58px max(16px, calc((100% - 1180px) / 2));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 3px);
    background-size: 38px 38px;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p {
    margin: 16px 0 0;
    color: #e0f2fe;
    font-size: 19px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #4b5563;
    font-size: 14px;
}

.breadcrumb.light {
    color: #dbeafe;
}

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

.control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 0 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.search-box span {
    color: var(--brand);
    font-size: 22px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row select {
    min-height: 48px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0 36px 0 14px;
    color: #334155;
    background: #fff;
}

.empty-state {
    display: none;
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-overview-card h2 {
    margin: 8px 0 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.28), transparent 24rem);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 70px;
}

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

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
}

.detail-one-line {
    margin: 20px 0 22px;
    max-width: 760px;
    color: #dbeafe;
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    grid-row: span 2;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: #fff;
    font-size: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    transform: translateX(2px);
}

.content-card {
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

.content-card p {
    margin: 14px 0 0;
    color: #334155;
    font-size: 16px;
}

.site-footer {
    margin-top: 50px;
    color: #dbeafe;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.footer-brand {
    color: #fff;
    font-size: 22px;
}

.footer-main p,
.footer-links a,
.copyright {
    color: #bfdbfe;
}

.footer-main p {
    max-width: 640px;
    margin: 16px 0 0;
}

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

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(191, 219, 254, 0.18);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }

    .category-grid,
    .wide-grid,
    .library-grid,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

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

    .hero-inner {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 48px 0 96px;
    }

    .hero-poster {
        min-height: 260px;
        max-width: 360px;
    }

    .hero-poster img {
        min-height: 260px;
    }

    .quick-search-card,
    .control-panel,
    .detail-layout,
    .detail-content,
    .footer-inner,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .filter-row,
    .home-search {
        flex-direction: column;
    }

    .featured-grid,
    .wide-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .ranking-list-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-cover {
        max-width: 300px;
    }
}

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

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

    .hero-section,
    .hero-inner {
        min-height: 760px;
    }

    .quick-search-section,
    .section-block,
    .ranking-panel,
    .detail-inner {
        width: min(100% - 24px, 1180px);
    }

    .soft-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .featured-grid,
    .wide-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .ranking-list-page {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        gap: 24px;
    }

    .ranking-item {
        grid-template-columns: 34px 60px minmax(0, 1fr) 18px;
    }

    .ranking-item img {
        width: 60px;
        height: 48px;
    }
}
