:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --teal: #14b8a6;
    --purple: #7c3aed;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: #f8fafc;
    font-family: 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,
svg {
    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;
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
    box-shadow: 0 12px 34px rgba(2, 132, 199, 0.28);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

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

.brand-text strong,
.footer-brand strong {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.brand-text small,
.footer-brand span {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.86;
}

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

.nav-link {
    font-weight: 650;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fef08a;
    opacity: 1;
}

.header-search {
    position: relative;
    width: 250px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.card-filter-input,
.card-filter-select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
}

.header-search input {
    padding: 10px 42px 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    color: #fff;
    background: transparent;
    transform: translateY(-50%);
}

.menu-button {
    display: none;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 28px;
}

.mobile-nav {
    background: linear-gradient(180deg, #2563eb, #0891b2);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-nav-inner {
    padding: 18px 0 22px;
}

.mobile-brand {
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 800;
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-search input {
    padding: 12px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #1d4ed8;
    background: #fff;
    font-weight: 800;
}

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

.mobile-nav nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #2563eb 52%, #7c3aed);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 12.5%, transparent 12.5%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 62.5%, transparent 62.5%, transparent 100%);
    background-size: 52px 52px;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.28), transparent 28%), rgba(0, 0, 0, 0.16);
}

.hero-carousel {
    position: relative;
    z-index: 2;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 44px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-lead {
    max-width: 780px;
    margin: 0 0 24px;
    color: #eef2ff;
    font-size: clamp(18px, 2vw, 26px);
}

.hero-meta,
.detail-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

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

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

.primary-button,
.ghost-button,
.text-link,
.footer-button,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.footer-button:hover,
.side-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    color: #1e40af;
    background: #fde047;
}

.primary-button.light {
    color: #2563eb;
    background: #fff;
}

.ghost-button {
    min-height: 46px;
    padding: 0 26px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    color: #2563eb;
    background: #fff;
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(15,23,42,0.2));
    box-shadow: var(--shadow);
}

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

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

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

.hero-poster span {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    font-size: 28px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    background: #fff;
}

.section {
    padding: 70px 0;
}

.light-section {
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.white-section {
    background: #fff;
}

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

.section-heading h2,
.rank-title h2,
.content-card h2,
.side-card h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.section-heading p,
.rank-title a,
.content-card p,
.side-card p {
    color: var(--muted);
}

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

.featured-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.featured-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.featured-card:hover img,
.poster-frame:hover img,
.overview-cover:hover img,
.compact-card:hover img {
    transform: scale(1.06);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(2,6,23,0.88));
}

.featured-content {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: #fff;
}

.featured-content strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.featured-content em {
    display: -webkit-box;
    overflow: hidden;
    color: #e5e7eb;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-meta {
    display: block;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 13px;
}

.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.tag-cloud span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(6, 182, 212, 0.86);
    font-size: 12px;
    font-weight: 750;
}

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

.category-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 26px;
    padding: 24px;
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
    width: fit-content;
    margin-bottom: auto;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.category-card strong {
    margin-top: 28px;
    font-size: 24px;
}

.category-card em {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-style: normal;
}

.category-card small {
    margin-top: 18px;
    opacity: 0.85;
}

.cyan-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.indigo-purple {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}

.slate-blue {
    background: linear-gradient(135deg, #334155, #2563eb);
}

.pink-rose {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.amber-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.green-emerald {
    background: linear-gradient(135deg, #22c55e, #059669);
}

.blue-violet {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
}

.teal-cyan {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.poster-label,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.poster-label {
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.26);
}

.poster-year {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.76);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #facc15, #f97316);
    font-size: 16px;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.3;
}

.card-body h2 a:hover {
    color: #0891b2;
}

.card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line span {
    color: #64748b;
    background: #f1f5f9;
    font-size: 12px;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.rank-panel,
.content-card,
.side-card,
.video-card,
.overview-card,
.filter-panel,
.search-summary {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
}

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

.rank-title h2 {
    font-size: 24px;
}

.rank-title a,
.text-link {
    color: #0891b2;
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 14px;
    padding: 10px;
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: #f8fafc;
}

.compact-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #dbeafe;
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compact-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-body small {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

.cta-section {
    color: #fff;
    background: linear-gradient(90deg, #06b6d4, #2563eb, #7c3aed);
}

.cta-inner {
    padding: 64px 0;
    text-align: center;
}

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

.cta-inner p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #e0f2fe;
    font-size: 18px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0;
    color: #fff;
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.24), transparent 28%);
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.detail-hero h1 {
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p,
.detail-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.back-link,
.breadcrumb a {
    display: inline-flex;
    color: #fef9c3;
    font-weight: 800;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #dbeafe;
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.overview-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(37, 99, 235, 0.9);
    font-weight: 800;
}

.overview-card h2 {
    margin: 2px 0 10px;
    color: #1e293b;
    font-size: 24px;
}

.overview-card p,
.overview-card li {
    color: #64748b;
}

.overview-card ul {
    display: grid;
    gap: 5px;
    margin: 12px 0 16px;
    padding: 0;
    list-style: none;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
}

.card-filter-input,
.card-filter-select {
    min-height: 46px;
    padding: 0 16px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.filter-empty {
    margin: 30px 0 0;
    border-radius: 18px;
    padding: 28px;
    color: #64748b;
    background: #fff;
    text-align: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 34px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
}

.detail-meta {
    margin-top: 24px;
}

.detail-cover {
    width: 250px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 26px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.video-card {
    overflow: hidden;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    color: #2563eb;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

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

.content-card,
.side-card {
    padding: 24px;
}

.content-card h2,
.side-card h2 {
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0 0 18px;
}

.side-card dt {
    color: #94a3b8;
}

.side-card dd {
    margin: 0;
    color: #334155;
    word-break: break-word;
}

.side-link {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.search-page-form {
    display: flex;
    max-width: 720px;
    gap: 12px;
    margin-top: 30px;
}

.search-page-form input {
    min-height: 56px;
    padding: 0 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.search-page-form button {
    min-width: 110px;
}

.search-summary {
    margin-bottom: 28px;
    padding: 24px;
}

.search-summary h2 {
    margin: 0 0 14px;
}

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

.hot-links a {
    border-radius: 999px;
    padding: 8px 14px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 750;
}

.not-found {
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found h1 {
    font-size: clamp(80px, 16vw, 150px);
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #1e3a8a, #164e63);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-brand .brand-mark {
    color: #67e8f9;
}

.site-footer h2 {
    margin: 0 0 15px;
    color: #67e8f9;
    font-size: 18px;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #cbd5e1;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-button {
    min-height: 42px;
    margin-top: 18px;
    border-radius: 999px;
    padding: 0 18px;
    color: #1e40af !important;
    background: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    color: #94a3b8;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

    .menu-button {
        display: block;
    }

    .hero-slide,
    .detail-hero-grid,
    .detail-grid,
    .home-split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 320px;
    }

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

    .rank-panel {
        position: static;
    }

    .detail-cover {
        width: min(260px, 100%);
    }
}

@media (max-width: 900px) {
    .featured-grid,
    .category-grid,
    .four-cols,
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-text strong {
        font-size: 18px;
    }

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

    .hero-slide {
        align-content: center;
        gap: 24px;
        padding: 24px 0 70px;
    }

    .hero-dots {
        bottom: 24px;
    }

    .featured-grid,
    .category-grid,
    .four-cols,
    .overview-grid,
    .top-three {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .compact-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .page-hero,
    .detail-hero {
        padding: 44px 0;
    }

    .search-page-form,
    .mobile-search {
        flex-direction: column;
    }

    .search-page-form button,
    .mobile-search button {
        min-height: 46px;
    }
}
