:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-accent: #06b6d4;
    --color-bg: #f8fafc;
    --color-soft: #eef6ff;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-card: #ffffff;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 30px rgba(37, 99, 235, 0.18);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
    --header-height: 74px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 48%, #ecfeff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    color: #475569;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-search {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 8px 12px;
    background: transparent;
}

.header-search button,
.filter-bar button {
    border: 0;
    color: #ffffff;
    background: var(--color-primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #eff6ff;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-line);
    background: #ffffff;
}

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

.mobile-nav a {
    padding: 10px 12px;
    color: #334155;
    background: #f8fafc;
    border-radius: 12px;
    font-weight: 650;
}

.hero-slider {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #1e3a8a, #155e75);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-bg.is-hidden,
.detail-backdrop.is-hidden {
    display: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.40), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.66) 42%, rgba(15, 23, 42, 0.25) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 56%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 42px;
    padding-top: 56px;
    padding-bottom: 56px;
}

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

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-soft);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-line,
.detail-one-line,
.page-hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span,
.rank-meta span,
.card-topline span,
.player-source {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 650;
}

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

.hero-tags span,
.movie-tags span {
    padding: 5px 10px;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

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

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

.button.primary {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.button.primary:hover {
    background: var(--color-primary-dark);
}

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

.button.light {
    color: #0f172a;
    background: #ffffff;
}

.hero-poster,
.detail-poster,
.poster-frame,
.rank-thumb,
.category-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

.hero-poster {
    border-radius: var(--radius-large);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    aspect-ratio: 2 / 3;
}

.hero-poster img,
.detail-poster img,
.poster-frame img,
.rank-thumb img,
.category-cover img,
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img,
.poster-frame:hover img,
.category-tile:hover img,
.rank-thumb:hover img {
    transform: scale(1.05);
}

.hero-score {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.38);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.40);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 72px 0;
}

.soft-bg {
    background: rgba(239, 246, 255, 0.72);
}

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

.section-heading h2,
.section-intro h2,
.content-card h2,
.player-heading h2,
.sitemap-box h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-label {
    color: #ffffff;
}

.text-link {
    color: var(--color-primary);
    font-weight: 850;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 18px;
}

.intro-grid p {
    margin: 14px 0 0;
    color: var(--color-muted);
}

.stats-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.80);
    box-shadow: var(--shadow-card);
}

.stats-card strong {
    color: var(--color-primary);
    font-size: 44px;
    line-height: 1;
}

.stats-card span {
    margin-top: 10px;
    color: var(--color-muted);
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 20px;
    color: #ffffff;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, #1e3a8a, #06b6d4);
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.12));
}

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

.category-tile strong {
    font-size: 24px;
}

.category-tile em {
    margin-top: 4px;
    font-style: normal;
    font-weight: 800;
    color: #bfdbfe;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
}

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

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

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

.movie-card.is-hidden-by-filter,
.rank-row.is-hidden-by-filter {
    display: none;
}

.poster-frame {
    aspect-ratio: 2 / 3;
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
}

.poster-fallback {
    position: absolute;
    inset: auto 10px 12px;
    z-index: 0;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.18;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.poster-frame img,
.hero-poster img,
.detail-poster img,
.rank-thumb img,
.category-cover img {
    position: relative;
    z-index: 1;
}

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

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

.card-topline {
    gap: 7px;
    margin-bottom: 10px;
}

.card-topline span,
.rank-meta span,
.detail-meta span {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
    backdrop-filter: none;
}

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.rank-main h3 a:hover,
.sitemap-box a:hover,
.category-overview-card a:hover {
    color: var(--color-primary);
}

.movie-card-meta,
.movie-card-line {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
}

.movie-card-meta {
    -webkit-line-clamp: 1;
}

.movie-card-line {
    min-height: 42px;
    -webkit-line-clamp: 2;
}

.card-category {
    display: inline-flex;
    margin-top: 14px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 850;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr) auto 72px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.rank-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 16px;
    font-weight: 900;
}

.rank-thumb {
    width: 86px;
    height: 116px;
    border-radius: 14px;
}

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

.rank-main p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 9px;
    color: var(--color-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-category {
    color: var(--color-primary);
    font-weight: 850;
    white-space: nowrap;
}

.rank-score {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    text-align: right;
}

.page-hero {
    padding: 96px 0 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 72% 20%, rgba(6, 182, 212, 0.45), transparent 36%),
        linear-gradient(135deg, #1e3a8a 0%, #155e75 100%);
}

.page-hero p {
    margin-bottom: 0;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.76);
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px)) auto auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.header-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    color: var(--color-muted);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.category-cover {
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-medium);
}

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

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

.category-overview-card strong {
    display: inline-flex;
    margin: 10px 0;
    color: var(--color-primary);
}

.category-overview-card ul,
.sitemap-box ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li,
.sitemap-box li,
.site-footer li {
    margin: 6px 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #155e75);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 58%);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    min-height: 640px;
    padding-top: 58px;
    padding-bottom: 58px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-large);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-tags {
    margin-top: 20px;
}

.player-panel,
.content-card,
.sitemap-box {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.player-panel {
    overflow: hidden;
}

.player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
}

.player-heading h2 {
    font-size: 28px;
}

.player-source {
    color: var(--color-primary);
    border-color: #bfdbfe;
    background: #eff6ff;
}

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

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

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.94);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.34);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.video-stage.is-playing .video-start {
    display: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    background: #ffffff;
    border-radius: 50%;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 3;
    margin: 0;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

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

.content-card {
    padding: 26px;
}

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

.content-card p {
    color: #334155;
    font-size: 17px;
}

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

.sitemap-box {
    padding: 24px;
}

.movie-index-box ul {
    columns: 3 240px;
    column-gap: 30px;
}

.sitemap-box a {
    color: #334155;
}

.site-footer {
    padding: 56px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.search-panel {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 20px;
    z-index: 80;
    display: none;
    width: min(520px, calc(100% - 40px));
    max-height: 70vh;
    overflow: auto;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.search-panel.is-open {
    display: block;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
}

.search-panel-header strong {
    color: #0f172a;
}

.search-panel-header button {
    border: 0;
    color: var(--color-muted);
    background: transparent;
    cursor: pointer;
}

.search-result-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 14px;
    font-weight: 900;
}

.search-result-item h3 {
    margin: 0;
    font-size: 16px;
}

.search-result-item p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .rank-list.compact {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-content,
    .detail-hero-grid,
    .detail-content-grid,
    .sitemap-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 300px;
    }

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

    .rank-row {
        grid-template-columns: 48px 72px minmax(0, 1fr);
    }

    .rank-category,
    .rank-score {
        display: none;
    }
}

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

    .hero-slider,
    .hero-content,
    .detail-hero,
    .detail-hero-grid {
        min-height: auto;
    }

    .hero-content,
    .detail-hero-grid {
        padding-top: 48px;
        padding-bottom: 72px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

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

    .movie-grid,
    .category-grid,
    .intro-grid,
    .category-overview-card {
        grid-template-columns: 1fr 1fr;
    }

    .category-overview-card {
        gap: 14px;
    }

    .category-cover {
        min-height: 220px;
    }

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

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

@media (max-width: 520px) {
    .mobile-nav.is-open,
    .movie-grid,
    .category-grid,
    .intro-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .site-logo {
        font-size: 17px;
    }

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

    .rank-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-thumb {
        display: none;
    }

    .movie-index-box ul {
        columns: 1;
    }
}
