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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--soft);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

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

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand-text {
    font-size: 18px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #eff6ff;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 8px 8px 12px;
    color: var(--ink);
}

.header-search button,
.search-page-form button,
.quick-search-card button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.search-page-form button:hover,
.quick-search-card button:hover,
.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--blue);
    border-radius: 99px;
}

.hero-section {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.35), transparent 34%),
        linear-gradient(135deg, #1d4ed8 0%, #0891b2 48%, #0f172a 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.78));
    pointer-events: none;
}

.hero-slide {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 76vh;
    margin: 0 auto;
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
    gap: 56px;
    align-items: center;
    padding: 72px 0;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.55s ease both;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.spotlight-panel span,
.category-block-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0;
    max-width: 800px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    display: block;
    margin-top: 12px;
    color: #bfdbfe;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 760px;
    color: #e0f2fe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

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

.primary-action,
.ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

.ghost-action:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    min-height: 520px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.hero-poster span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    border-radius: 22px;
    padding: 16px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
    font-size: 22px;
    font-weight: 850;
}

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

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

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

.quick-search-section,
.section-wrap,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-section {
    margin-top: -46px;
    position: relative;
    z-index: 10;
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.quick-search-card span {
    color: var(--blue);
    font-weight: 850;
}

.quick-search-card h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 34px);
}

.quick-search-card form,
.search-page-form {
    display: flex;
    gap: 12px;
}

.quick-search-card input,
.search-page-form input,
.filter-bar input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
    background: #f8fafc;
}

.quick-search-card input:focus,
.search-page-form input:focus,
.filter-bar input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.section-heading,
.category-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading span,
.page-hero span,
.spotlight-panel span,
.category-block-head span {
    color: var(--blue);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.section-heading h2,
.category-block-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.15;
}

.section-heading a,
.category-block-head a {
    color: var(--blue);
    font-weight: 850;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.15);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.movie-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

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

.movie-card h3 a:hover {
    color: var(--blue);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 750;
}

.movie-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-foot a {
    color: var(--blue);
    font-weight: 850;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 35%),
        linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.28);
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-tile em {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    font-style: normal;
    font-weight: 800;
}

.category-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    color: #e0f2fe;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.spotlight-panel,
.rank-panel,
.detail-content-card,
.player-card,
.side-info-card,
.poster-panel,
.category-block,
.filter-bar {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.spotlight-panel {
    padding: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.38), transparent 40%),
        linear-gradient(135deg, #1d4ed8, #0f172a);
}

.spotlight-panel span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

.spotlight-panel h2 {
    margin: 20px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
}

.spotlight-panel p {
    color: #dbeafe;
    line-height: 1.85;
}

.rank-panel {
    padding: 26px;
}

.compact-heading {
    margin-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 13px;
    background: #f8fafc;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.rank-number,
.rank-card-number {
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.36), transparent 36%),
        linear-gradient(135deg, #2563eb, #06b6d4);
}

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

.page-hero span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1;
    font-weight: 900;
}

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

.filter-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-bar label {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.category-index {
    display: grid;
    gap: 28px;
}

.category-block {
    padding: 28px;
}

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

.mini-card {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-weight: 800;
}

.mini-card img {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.mini-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card {
    display: grid;
    grid-template-columns: 76px 84px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

.rank-card img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.rank-card-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rank-card-main strong {
    font-size: 20px;
}

.rank-card-main em {
    color: var(--blue);
    font-style: normal;
    font-weight: 750;
}

.rank-card-main small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-page-form {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.search-result-count {
    min-height: 28px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 750;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 26px 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.55), rgba(2, 6, 23, 0.68)),
        rgba(2, 6, 23, 0.35);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
    clip-path: polygon(32% 20%, 32% 80%, 82% 50%);
}

.player-cover strong {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 18px;
}

.detail-content-card {
    padding: 28px;
}

.detail-content-card h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-one-line {
    margin: 0 0 22px;
    color: #334155;
    font-size: 19px;
    line-height: 1.75;
}

.detail-content-card .detail-meta span {
    color: var(--blue);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.detail-content-card h2 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.detail-content-card p {
    color: #334155;
    line-height: 1.95;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.poster-panel {
    overflow: hidden;
    padding: 16px;
}

.poster-panel img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.full-action {
    width: 100%;
    margin-top: 14px;
}

.side-info-card {
    padding: 22px;
}

.side-info-card h2 {
    margin: 0 0 14px;
}

.side-info-card dl {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-info-card dt {
    color: var(--muted);
}

.side-info-card dd {
    margin: 0;
    font-weight: 750;
}

.related-section {
    width: 100%;
    padding-bottom: 76px;
}

.site-footer {
    margin-top: 76px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 42px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 680px;
    margin: 12px 0 0;
    line-height: 1.7;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 980px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 14px 0;
    }

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

    .nav-links,
    .header-search {
        display: none;
        width: 100%;
    }

    .nav-links.is-open,
    .header-search.is-open {
        display: flex;
    }

    .nav-links.is-open {
        flex-wrap: wrap;
        order: 3;
        margin-left: 0;
        padding-top: 10px;
    }

    .header-search.is-open {
        order: 4;
    }

    .header-search input {
        width: auto;
        flex: 1;
    }

    .hero-slide,
    .detail-layout,
    .split-section,
    .quick-search-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster img {
        min-height: 0;
        max-height: 520px;
    }

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 680px) {
    .site-nav,
    .quick-search-section,
    .section-wrap,
    .detail-shell,
    .page-hero > div,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-slide {
        width: min(100% - 22px, 1180px);
        min-height: auto;
        padding: 46px 0 80px;
    }

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

    .quick-search-card,
    .spotlight-panel,
    .rank-panel,
    .detail-content-card,
    .category-block {
        padding: 20px;
    }

    .quick-search-card form,
    .search-page-form,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

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

    .section-heading,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-row .rank-info,
    .rank-card img {
        display: none;
    }

    .rank-card-main strong {
        font-size: 17px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .archive-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }
}
