:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --deep: #020617;
    --deep-2: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #f1f5f9 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.26);
}

.brand-name {
    font-size: 21px;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.10);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(360px, 36vw);
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.76);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
}

.header-search input {
    flex: 1;
    min-width: 0;
    color: #e2e8f0;
    background: transparent;
    padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: #00111a;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 11px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

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

.mobile-search {
    display: flex;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    color: #e2e8f0;
    background: transparent;
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: var(--deep);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.04);
}

.hero-slide.is-active .hero-bg {
    animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.11);
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.32), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.84) 45%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.15) 0%, rgba(2, 6, 23, 0.90) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding: 96px 0 68px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 44px;
    align-items: center;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: #0891b2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #67e8f9;
}

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

.hero h1 span,
.gradient-text {
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #c4b5fd);
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    margin: 22px 0 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 18px 0 0;
    max-width: 660px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

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

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

.btn-primary {
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    color: #e0f2fe;
    border: 1px solid rgba(224, 242, 254, 0.28);
    background: rgba(15, 23, 42, 0.46);
}

.hero-search {
    display: flex;
    width: min(600px, 100%);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(224, 242, 254, 0.24);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    color: #f8fafc;
    background: transparent;
    padding: 18px 20px;
}

.hero-search button {
    padding: 0 24px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.hero-tags span {
    color: #cffafe;
    border: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(8, 145, 178, 0.18);
    padding: 9px 12px;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.feature-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.52);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
}

.feature-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.feature-body {
    padding: 20px;
}

.feature-body h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
}

.feature-body p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
}

.mini-movie {
    display: grid;
    grid-template-columns: auto 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.mini-movie img {
    width: 62px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-movie strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.mini-movie em {
    display: block;
    margin-top: 4px;
    color: #bae6fd;
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #082f49;
    font-weight: 900;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), #fef3c7);
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    cursor: pointer;
}

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

.content-section,
.page-hero,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.75;
}

.section-more {
    flex-shrink: 0;
    color: #0369a1;
    font-weight: 900;
    padding: 10px 16px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #f0f9ff;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #cbd5e1;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.76));
}

.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.duration {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    padding: 6px 9px;
    background: rgba(2, 6, 23, 0.78);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    justify-content: center;
    color: #082f49;
    background: linear-gradient(135deg, var(--cyan), #fde68a);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #0891b2;
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #0891b2;
}

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

.tag-row span {
    color: #0369a1;
    padding: 7px 9px;
    background: #e0f2fe;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.20);
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    box-shadow: var(--shadow-soft);
}

.category-card::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 68%);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.category-card span {
    position: relative;
    display: inline-flex;
    margin-top: 20px;
    color: #0369a1;
    font-weight: 900;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 92px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #082f49;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), #bfdbfe);
}

.rank-row img {
    width: 92px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-row h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-go {
    color: #0369a1;
    font-weight: 900;
    padding: 9px 12px;
    border-radius: 999px;
    background: #e0f2fe;
}

.side-panel {
    position: sticky;
    top: 94px;
    align-self: start;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.side-panel h2,
.side-panel h3 {
    margin-top: 0;
}

.page-hero {
    padding: 72px 0 18px;
}

.page-hero-inner {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 42px;
    color: #ffffff;
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.34), transparent 32%),
        linear-gradient(135deg, #020617 0%, #0f172a 58%, #164e63 100%);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: #dbeafe;
    line-height: 1.85;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    padding: 13px 14px;
}

.empty-state {
    margin: 30px 0 0;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #bae6fd;
    border-radius: 24px;
    background: #f0f9ff;
}

.detail-wrap {
    padding: 36px 0 0;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 380px;
    gap: 26px;
    align-items: start;
}

.player-card,
.movie-info-card,
.article-card,
.related-card-wrap {
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #020617;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.78));
}

.play-button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    color: #00111a;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.35);
}

.play-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 999px;
    background: #020617;
}

.player-caption {
    padding: 20px 22px 24px;
}

.player-caption h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.player-caption p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.85;
}

.movie-info-card {
    overflow: hidden;
}

.movie-info-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.info-body {
    padding: 22px;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.info-pill {
    color: #0369a1;
    padding: 8px 10px;
    background: #e0f2fe;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: start;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    line-height: 1.65;
}

.article-card,
.related-card-wrap {
    margin-top: 28px;
    padding: 28px;
}

.article-card h2,
.related-card-wrap h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.article-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
    line-height: 2;
}

.next-prev {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.next-prev a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    color: #075985;
    font-weight: 900;
    background: #e0f2fe;
}

.site-footer {
    margin-top: 82px;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 680px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

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

.copyright {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .hero-content,
    .detail-hero,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .side-panel {
        position: static;
    }

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

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

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

    .header-inner {
        height: 66px;
    }

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

    .hero-content {
        padding: 70px 0 78px;
    }

    .hero-side {
        display: none;
    }

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

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

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

    .rank-row {
        grid-template-columns: 40px 76px 1fr;
    }

    .rank-row img {
        width: 76px;
        height: 52px;
    }

    .rank-go {
        display: none;
    }

    .page-hero-inner {
        padding: 28px;
        border-radius: 26px;
    }

    .next-prev {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .content-section,
    .page-hero,
    .detail-wrap,
    .footer-inner,
    .header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

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

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-search {
        display: grid;
        border-radius: 22px;
    }

    .hero-search button {
        min-height: 48px;
    }

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

    .player-caption,
    .article-card,
    .related-card-wrap,
    .info-body {
        padding: 20px;
    }
}
