:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --dark: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1e293b;
    background: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.nav-dropdown-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: #334155;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-button {
    color: var(--blue);
    background: #eff6ff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    padding: 9px 12px;
    color: #475569;
    border-radius: 10px;
}

.nav-dropdown-menu a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--blue);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(8, 145, 178, 0.72), rgba(15, 23, 42, 0.28));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    gap: 48px;
    align-items: center;
    z-index: 2;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero h1 strong {
    color: #a5f3fc;
    font-style: normal;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e0f2fe;
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    font-size: 13px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
}

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

.primary-btn,
.ghost-btn,
.panel-link,
.section-more,
.text-link,
.ranking-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.panel-link:hover,
.ranking-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-poster {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.48);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.hero-categories {
    position: absolute;
    left: 50%;
    bottom: 70px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-categories a {
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.stats-section {
    background: #ffffff;
}

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

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

.stat-card {
    padding: 28px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #eef2f7;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: 0.22s ease;
}

.stat-card:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 30px;
}

.stat-card span {
    color: var(--muted);
}

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

.light-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2,
.rank-panel h2,
.player-block h2,
.article-block h2,
.detail-side h2,
.site-footer h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 850;
}

.section-heading p,
.rank-panel p,
.article-block p,
.detail-side p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more,
.text-link {
    color: var(--blue);
    background: #eff6ff;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: 0.22s ease;
}

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

.movie-card-compact .movie-cover,
.full-grid .movie-cover {
    aspect-ratio: 3 / 4;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.78));
    opacity: 0;
    transition: 0.22s ease;
}

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

.play-pill {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.movie-card:hover .play-pill {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 12px;
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    min-height: 48px;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-info h2 a:hover,
.ranking-info h2 a:hover,
.category-overview-card h1 a:hover {
    color: var(--blue);
}

.movie-info p {
    min-height: 52px;
    margin: 12px 0 14px;
    color: #64748b;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

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

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    transition: 0.22s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0f766e, #22d3ee);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 850;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    margin-top: 18px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.rank-panel,
.detail-side {
    position: sticky;
    top: 92px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    box-shadow: 0 15px 34px rgba(15, 23, 42, 0.07);
}

.rank-panel ol {
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.rank-panel li + li {
    margin-top: 10px;
}

.rank-panel li a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
}

.rank-panel li a:hover {
    background: #eff6ff;
}

.rank-panel li span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 12px;
    font-weight: 800;
}

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

.rank-panel li em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.panel-link {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 54px 0 36px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 18px;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 9px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    text-align: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2 55%, #0f766e);
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    min-height: 310px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero span {
    color: #cffafe;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e0f2fe;
    font-size: 20px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

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

.category-thumb-grid img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h1 {
    margin: 8px 0 12px;
    font-size: 28px;
    font-weight: 850;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 700;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

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

.filter-chip {
    min-height: 38px;
    padding: 0 14px;
    color: #475569;
    background: #f1f5f9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 60px 100px minmax(0, 1fr) 92px;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.ranking-index {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
}

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

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

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 850;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-play {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-hero {
    min-height: 620px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.76), rgba(8, 145, 178, 0.58));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bae6fd;
}

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

.detail-intro h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-intro p {
    max-width: 760px;
    margin: 0 0 20px;
    color: #e0f2fe;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin: 20px 0 28px;
}

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

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

.player-block,
.article-block {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 20px;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.48));
    cursor: pointer;
    transition: 0.22s ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.42);
    font-size: 34px;
}

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

.article-block p {
    color: #334155;
    font-size: 17px;
}

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

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

.mini-card:hover {
    background: #eff6ff;
}

.mini-card img {
    width: 68px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
}

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

.mini-card em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .featured-grid,
    .compact-grid,
    .full-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .nav-link,
    .nav-dropdown-button {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 40px;
        padding-bottom: 130px;
    }

    .hero-poster {
        width: min(280px, 72vw);
        margin: 0 auto;
    }

    .hero-categories {
        bottom: 78px;
    }

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

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

    .category-overview-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        padding: 42px 0;
    }

    .detail-poster {
        width: min(300px, 76vw);
    }

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

    .ranking-play {
        grid-column: 2 / 4;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .stats-grid,
    .featured-grid,
    .compact-grid,
    .full-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .light-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1,
    .detail-intro h1 {
        letter-spacing: -0.02em;
    }

    .page-hero > div {
        min-height: 250px;
    }

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