:root {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #e5e7eb;
    --line: rgba(15, 23, 42, 0.1);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --cyan: #06b6d4;
    --orange: #f97316;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-search {
    position: relative;
    width: 280px;
}

.global-search input,
.big-search input,
.filter-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 12px 18px;
    outline: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.global-search input:focus,
.big-search input:focus,
.filter-box input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    width: min(430px, 88vw);
    max-height: 470px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 100;
}

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

.search-result {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
}

.search-result:hover {
    background: var(--primary-soft);
}

.search-result img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #e5e7eb;
}

.search-result strong {
    display: block;
    margin-bottom: 2px;
}

.search-result span,
.search-empty {
    color: var(--muted);
    font-size: 13px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--primary-soft);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 999px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

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

.hero-bg {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    color: #ffffff;
}

.hero-content > * {
    max-width: 700px;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-kicker {
    margin-bottom: 18px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.95);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span,
.detail-tags a {
    background: #f1f5f9;
    color: #475569;
}

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

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

.primary-btn {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.detail-info .ghost-btn,
.content-card .ghost-btn {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
    background: var(--primary-soft);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 42px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

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

.search-band {
    padding: 30px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 30px;
}

.search-band h2,
.section-heading h2,
.featured-copy h2,
.page-hero h1,
.content-card h2 {
    margin: 10px 0 0;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.search-band p,
.featured-copy p,
.page-hero p,
.content-card p {
    color: var(--muted);
}

.big-search {
    position: relative;
}

.big-search input {
    min-height: 58px;
    padding-left: 24px;
    font-size: 18px;
}

.section-block {
    padding: 56px 0;
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-heading a {
    color: var(--primary);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    padding: 7px 11px;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.movie-card-topline strong {
    color: #f59e0b;
}

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

.movie-card h3 a:hover,
.rank-row h3 a:hover,
.sitemap-section a:hover {
    color: var(--primary);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    margin-top: 8px;
    min-height: 42px;
}

.tag-row {
    margin-top: 14px;
}

.soft-section {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
}

.rail-item {
    width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.86));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
    display: block;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.category-tile p {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.featured-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%),
        #ffffff;
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.featured-copy h2 {
    font-size: clamp(32px, 5vw, 52px);
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    font-weight: 900;
}

.rank-row:nth-child(1) .rank-number {
    color: #ffffff;
    background: #f59e0b;
}

.rank-row:nth-child(2) .rank-number {
    color: #ffffff;
    background: #94a3b8;
}

.rank-row:nth-child(3) .rank-number {
    color: #ffffff;
    background: #ea580c;
}

.rank-cover img {
    width: 84px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
}

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

.rank-content p,
.rank-content span,
.rank-score small {
    color: var(--muted);
    font-size: 13px;
}

.rank-content p,
.rank-content span {
    margin: 0;
}

.rank-score {
    min-width: 94px;
    text-align: right;
}

.rank-score strong {
    display: block;
    color: #f59e0b;
    font-size: 26px;
}

.page-main {
    min-height: 70vh;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.page-hero {
    padding: 84px 0 72px;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.36), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(6, 182, 212, 0.28), transparent 28%),
        linear-gradient(135deg, #0f172a, #172554);
}

.small-hero {
    padding-top: 74px;
}

.page-hero h1 {
    margin-top: 12px;
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

.page-hero .section-eyebrow,
.detail-hero .section-eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.filter-box {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin-top: 28px;
}

.filter-box span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.overview-stack {
    display: grid;
    gap: 28px;
    padding: 56px 0;
}

.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.category-overview-head img {
    width: 180px;
    height: 240px;
    border-radius: 22px;
    object-fit: cover;
    background: #e5e7eb;
}

.category-overview-head h2 {
    margin: 8px 0;
    font-size: clamp(30px, 5vw, 46px);
}

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

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

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

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.66) 50%, rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.05));
}

.detail-hero-inner {
    position: relative;
    padding: 50px 0 68px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    padding: 8px 14px;
    font-weight: 900;
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 7vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 820px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.detail-meta-list li {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    backdrop-filter: blur(12px);
}

.detail-meta-list span {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

.detail-meta-list strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
}

.player-section {
    padding: 56px 0 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

.player-start.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.34);
    font-size: 30px;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 12px;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 22px;
    padding: 36px 0 10px;
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.detail-tags a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

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

.sitemap-section {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.sitemap-section h2 {
    margin: 0 0 14px;
}

.sitemap-section ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-section li {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sitemap-section li a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.sitemap-section li span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--primary);
}

.accent-pink .section-eyebrow,
.accent-pink .primary-btn {
    background: #ec4899;
}

.accent-purple .section-eyebrow,
.accent-purple .primary-btn {
    background: #7c3aed;
}

.accent-orange .section-eyebrow,
.accent-orange .primary-btn {
    background: #f97316;
}

.accent-red .section-eyebrow,
.accent-red .primary-btn {
    background: #ef4444;
}

.accent-cyan .section-eyebrow,
.accent-cyan .primary-btn {
    background: #06b6d4;
}

.accent-green .section-eyebrow,
.accent-green .primary-btn {
    background: #10b981;
}

.accent-amber .section-eyebrow,
.accent-amber .primary-btn {
    background: #f59e0b;
}

.accent-slate .section-eyebrow,
.accent-slate .primary-btn {
    background: #475569;
}

.accent-indigo .section-eyebrow,
.accent-indigo .primary-btn {
    background: #4f46e5;
}

[data-card-list] .is-hidden-by-filter {
    display: none;
}

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

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

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

@media (max-width: 860px) {
    .header-inner {
        min-height: 66px;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
        padding: 12px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .global-search {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 86px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band-inner,
    .featured-panel,
    .category-overview-head,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .featured-panel {
        padding: 24px;
    }

    .detail-poster {
        max-width: 260px;
    }

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

    .filter-box {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-box span {
        width: fit-content;
    }
}

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

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

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

    .hero {
        height: 520px;
    }

    .hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

    .four-col,
    .featured-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .rank-row {
        grid-template-columns: 42px 66px 1fr;
        gap: 10px;
    }

    .rank-score {
        grid-column: 2 / -1;
        text-align: left;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .rank-cover img {
        width: 66px;
        height: 88px;
        border-radius: 12px;
    }

    .page-hero {
        padding: 54px 0 48px;
    }

    .detail-hero-inner {
        padding-top: 30px;
    }

    .detail-meta-list,
    .sitemap-section ul {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
