:root {
    color-scheme: dark;
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #e2e8f0;
    --accent-soft: rgba(226, 232, 240, 0.14);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(71, 85, 105, 0.34), transparent 32rem),
        radial-gradient(circle at 100% 12%, rgba(30, 41, 59, 0.42), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

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

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(15, 23, 42, 0.95));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
    color: #f8fafc;
    font-size: 14px;
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.82);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

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

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.mobile-link {
    padding: 12px;
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    height: min(720px, 78vh);
    min-height: 560px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.01);
}

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

.hero-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.36)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 82px 0 86px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    padding: 8px 12px;
    border: 1px solid rgba(226, 232, 240, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 820px;
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-line {
    max-width: 760px;
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    font-weight: 680;
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.78;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 28px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.15);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 650;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
}

.movie-tags span {
    padding: 5px 8px;
}

.hero-actions,
.channel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.quick-search button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-btn,
.quick-search button {
    border: 1px solid rgba(248, 250, 252, 0.92);
    background: #f8fafc;
    color: #020617;
    box-shadow: 0 18px 44px rgba(248, 250, 252, 0.12);
}

.primary-btn {
    min-height: 48px;
    padding: 0 22px;
}

.ghost-btn,
.more-link {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.52);
    color: #e2e8f0;
}

.more-link {
    min-height: 42px;
    font-size: 14px;
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover,
.quick-search button:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.62);
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-shell,
.footer-grid,
.footer-bottom,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.intro-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 28px;
    align-items: center;
}

.intro-search h2,
.section-title-row h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.text-card h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.035em;
}

.intro-search h2,
.section-title-row h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-search p,
.section-title-row p,
.page-hero p,
.text-card p,
.content-card p {
    color: #cbd5e1;
    line-height: 1.86;
}

.quick-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.quick-search input,
.page-search {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.13);
    outline: none;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.58);
    color: #f8fafc;
}

.quick-search input {
    min-height: 48px;
    padding: 0 16px;
}

.quick-search button {
    min-width: 96px;
    border-radius: 14px;
    cursor: pointer;
}

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

.section-title-row.compact {
    align-items: center;
    margin-bottom: 20px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.07);
    opacity: 0.58;
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 70%);
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
}

.category-card strong {
    margin-bottom: 10px;
    font-size: 22px;
    color: #ffffff;
}

.category-card em {
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.6;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 232, 240, 0.3);
    background: rgba(30, 41, 59, 0.82);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 10%, rgba(148, 163, 184, 0.22), transparent 14rem),
        linear-gradient(135deg, #1e293b, #020617);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82));
}

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.movie-year {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    color: #020617;
    font-size: 15px;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-desc {
    color: #94a3b8;
    line-height: 1.65;
}

.movie-meta {
    margin: 9px 0 8px;
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.rank-panel,
.content-card,
.text-card,
.category-overview-block {
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(3px);
    border-color: rgba(226, 232, 240, 0.25);
    background: rgba(30, 41, 59, 0.56);
}

.rank-num {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-cover {
    width: 58px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #020617);
}

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

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

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

.rank-text strong {
    color: #f8fafc;
    font-size: 15px;
}

.rank-text em {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 52px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 12% 0%, rgba(148, 163, 184, 0.22), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
}

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

.page-hero h1 {
    max-width: 980px;
    margin-top: 12px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.03;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 17px;
}

.channel-actions {
    margin-top: 28px;
    align-items: stretch;
}

.page-search {
    max-width: 460px;
    min-height: 50px;
    padding: 0 16px;
}

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

.filter-chip {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: rgba(248, 250, 252, 0.9);
    background: #f8fafc;
    color: #020617;
}

.stacked-sections {
    display: grid;
    gap: 28px;
}

.category-overview-block {
    padding: 24px;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

.detail-bg {
    filter: blur(3px);
    transform: scale(1.03);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.62)),
        linear-gradient(0deg, #020617, transparent 68%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 82px 0;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 26px;
    background: linear-gradient(135deg, #1e293b, #020617);
    box-shadow: var(--shadow);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

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

.detail-info h1 {
    max-width: 900px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.06;
}

.detail-line {
    max-width: 820px;
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta-grid span {
    padding: 10px 13px;
    border: 1px solid rgba(226, 232, 240, 0.13);
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    font-weight: 700;
}

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

.player-section {
    scroll-margin-top: 92px;
}

.player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-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: 16px;
    border: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(148, 163, 184, 0.2), transparent 22rem),
        rgba(2, 6, 23, 0.68);
    color: #f8fafc;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    color: #020617;
    font-size: 28px;
    box-shadow: 0 22px 54px rgba(248, 250, 252, 0.18);
}

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

.content-card,
.text-card {
    padding: 28px;
}

.content-card h2,
.text-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.content-card p,
.text-card p {
    margin: 0;
}

.text-layout {
    display: grid;
    gap: 18px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

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

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 16px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 9px 0;
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

[data-search-item].is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: flex;
    }

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

    .split-section,
    .intro-search,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .hero-carousel {
        min-height: 660px;
        height: auto;
    }

    .hero-content {
        min-height: 660px;
        padding: 84px 0 88px;
    }

    .hero-summary {
        display: none;
    }

    .hero-control {
        display: none;
    }

    .section-shell {
        padding-top: 54px;
    }

    .section-title-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-title {
        font-size: 14px;
    }

    .movie-desc {
        display: none;
    }

    .detail-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 54px 0;
    }

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

    .detail-info h1 {
        font-size: 38px;
    }

    .detail-line {
        font-size: 17px;
    }

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

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

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

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.two-col,
    .movie-grid.small-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .hero-actions,
    .channel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search button,
    .primary-btn,
    .ghost-btn,
    .more-link {
        width: 100%;
    }

    .page-search {
        max-width: none;
    }

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