
:root {
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-card: #ffffff;
    --color-border: #e5e7eb;
    --color-amber: #f59e0b;
    --color-orange: #ea580c;
    --color-deep: #0f172a;
    --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.10);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 420px, #f9fafb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.30);
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-logo-text small {
    color: var(--color-muted);
    font-size: 12px;
}

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

.site-nav-link,
.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 26vw);
    padding: 6px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fff7ed;
}

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

.header-search button,
.big-search-form button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-ink);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    isolation: isolate;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.15);
    transform: translateX(-50%) scale(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 100vw;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.48), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.30));
    transform: translateX(-50%);
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.15);
    transform: scale(1.08);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.48), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.30));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
}

.eyebrow.dark {
    color: #d97706;
}

.hero-content h1 {
    max-width: 820px;
    margin: 16px 0 18px;
    font-size: clamp(40px, 6.2vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

.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: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.30);
}

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

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

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

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

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

.hero-dots button {
    width: 38px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
}

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

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: -54px;
    padding: 28px;
    position: relative;
    z-index: 5;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.quick-search-panel h2,
.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.big-search-form,
.search-page-form {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.big-search-form input,
.search-page-form input,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--color-ink);
}

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

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

.section-heading > a,
.filter-bar a {
    color: #d97706;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-medium);
    background: var(--color-card);
    border: 1px solid rgba(229, 231, 235, 0.80);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(17, 24, 39, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.play-chip,
.score-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(245, 158, 11, 0.90);
}

.score-chip {
    right: 12px;
    top: 12px;
    min-width: 42px;
    min-height: 34px;
    background: rgba(0, 0, 0, 0.55);
}

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

.movie-card-body h2 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card-body h2 a:hover {
    color: #d97706;
}

.movie-card-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.two-column-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
}

.showcase-panel,
.text-panel,
.content-panel,
.side-card,
.search-page-panel {
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.80);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.amber-panel {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: #fed7aa;
}

.rank-row strong {
    color: #d97706;
    font-size: 20px;
}

.rank-row img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row span {
    min-width: 0;
}

.rank-row b,
.rank-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row small {
    color: var(--color-muted);
}

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

.category-tile,
.category-card {
    position: relative;
    min-height: 120px;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    color: #ffffff;
    isolation: isolate;
}

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

.category-tile::after,
.category-card-overlay {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.82));
}

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

.category-tile span,
.category-card strong {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 38px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small,
.category-card small {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    min-height: 210px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.55), transparent 35%),
        linear-gradient(135deg, #111827, #431407 55%, #111827);
}

.small-page-hero {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 72px 16px;
}

.page-hero-content {
    width: min(980px, 100%);
    text-align: center;
}

.page-hero-content h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero-content p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-card);
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.pager a,
.pager span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    font-weight: 800;
}

.pager a.is-current {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
}

.pager .is-disabled {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.top-rank-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 420px;
    border-radius: var(--radius-large);
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.top-rank-card img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.top-rank-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card small {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
}

.top-rank-card span {
    top: 22px;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    font-weight: 900;
}

.top-rank-card strong {
    bottom: 52px;
    font-size: 26px;
}

.top-rank-card small {
    bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
}

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

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

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

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 28px;
}

.detail-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.player-cover-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-cover-button span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.45);
    font-size: 34px;
}

.player-cover-button strong {
    font-size: 20px;
}

.player-shell.is-playing .player-cover-button {
    opacity: 0;
    pointer-events: none;
}

.content-panel h2,
.text-panel h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.content-panel p,
.text-panel p {
    color: #374151;
    font-size: 17px;
}

.text-panel h3 {
    margin-top: 24px;
    color: #92400e;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

.search-page-panel {
    margin-top: 40px;
}

.search-page-form {
    margin-bottom: 18px;
}

.search-result-status {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-weight: 700;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.site-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
}

.footer-logo .site-logo-text strong {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 420px;
    color: #9ca3af;
}

.footer-column {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-column h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
}

.footer-column a:hover {
    color: #fbbf24;
}

.site-footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: var(--shadow-card);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

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

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

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

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

    .hero-carousel {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
        padding: 54px 0 82px;
    }

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

    .quick-search-panel,
    .two-column-showcase,
    .detail-layout,
    .detail-hero-inner,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .site-logo-text small {
        display: none;
    }

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

    .hero-content p,
    .detail-one-line {
        font-size: 17px;
    }

    .section-container {
        width: min(100% - 22px, 1180px);
        padding: 38px 0;
    }

    .quick-search-panel {
        width: min(100% - 22px, 1180px);
        padding: 20px;
    }

    .big-search-form,
    .search-page-form,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .movie-card-body p {
        display: none;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

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