:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfdf5;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #059669;
    --brand-dark: #047857;
    --brand-deep: #064e3b;
    --accent: #f59e0b;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    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;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

img.is-missing {
    opacity: 0;
}

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

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-deep);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.28);
}

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

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

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

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

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

.header-search button,
.primary-button,
.ghost-button,
.filter-reset {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.24);
}

.header-search button {
    padding: 8px 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.primary-button:hover,
.ghost-button:hover,
.filter-reset:hover,
.header-search button:hover {
    transform: translateY(-1px);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--brand-deep);
    border-color: rgba(5, 150, 105, 0.22);
    background: var(--surface-soft);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--surface-soft);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--brand-deep);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: white;
    background: #04130f;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.38), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.28), transparent 24%),
        linear-gradient(135deg, #022c22, #0f172a 60%, #111827);
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-heading span,
.home-search-band span {
    display: inline-flex;
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a7f3d0;
}

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

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster {
    position: relative;
    min-height: 500px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(15, 23, 42, 0.92));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-poster::after,
.poster-frame::after,
.detail-poster::after,
.ranking-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 28px;
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dots button.is-active {
    width: 30px;
    background: #a7f3d0;
}

.home-search-band {
    margin-top: -42px;
    position: relative;
    z-index: 7;
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 20px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band-inner strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
}

.search-band-inner form {
    display: flex;
    gap: 10px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.search-band-inner input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    background: transparent;
}

.search-band-inner button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: white;
    font-weight: 800;
    background: var(--brand);
}

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

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

.section-heading.compact {
    display: block;
    margin-bottom: 18px;
}

.section-heading h2,
.section-heading strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #111827);
}

.poster-frame img {
    transition: transform 0.35s ease;
}

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

.quality-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(5, 150, 105, 0.9);
    font-size: 12px;
    font-weight: 900;
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--brand-deep);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

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

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

.movie-card h3 {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.text-link:hover,
.prev-next a:hover {
    color: var(--brand-dark);
}

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

.movie-desc {
    display: -webkit-box;
    margin: 0;
    min-height: 66px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    color: #065f46;
    background: #ecfdf5;
}

.tag-row.large span {
    min-height: 34px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-card {
    display: block;
    min-height: 168px;
    padding: 22px;
    border-radius: 24px;
    color: white;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 18px 38px rgba(5, 150, 105, 0.18);
    transition: transform 0.22s ease;
}

.category-card:nth-child(3n + 2) {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(135deg, #0f766e, #0f172a);
}

.category-card:nth-child(3n) {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(135deg, #f59e0b, #92400e);
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card span {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

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

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

.rank-section {
    padding-bottom: 8px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
}

.rank-list span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    grid-row: span 2;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    font-weight: 900;
}

.rank-list strong {
    font-weight: 900;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.section-more {
    margin-top: 20px;
    text-align: center;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.38), transparent 28%),
        linear-gradient(135deg, #022c22, #0f172a);
}

.page-hero.slim {
    padding: 76px 0;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

.filter-panel {
    margin-top: 32px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.filter-control span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-control input,
.filter-control select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 0 12px;
    background: #f8fafc;
}

.filter-control input:focus,
.filter-control select:focus {
    border-color: rgba(5, 150, 105, 0.55);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.filter-reset {
    height: 46px;
    padding: 0 18px;
    color: white;
    background: var(--brand-dark);
}

.empty-state {
    margin: 20px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: #92400e;
    background: #fffbeb;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #111827);
}

.ranking-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 12px;
    color: white;
    background: rgba(5, 150, 105, 0.92);
    font-weight: 900;
}

.ranking-card h3 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
}

.ranking-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.7;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 900;
}

.detail-main {
    background: #f8fafc;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, #f8fafc);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 34px 0 86px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: white;
}

.detail-header-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #064e3b, #111827);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
}

.detail-intro h1 {
    margin: 14px 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.detail-intro p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.detail-content,
.side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.detail-content {
    overflow: hidden;
}

.player-section {
    padding: 18px;
    background: #020617;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: black;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: black;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--brand-deep);
    background: white;
    font-size: 32px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

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

.player-error {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.72);
}

.article-block {
    padding: 28px;
    border-top: 1px solid var(--line);
}

.article-block h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.article-block p {
    margin: 0;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.movie-facts dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.movie-facts div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.movie-facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-facts dd {
    margin: 6px 0 0;
    font-weight: 800;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 28px 28px;
}

.prev-next a {
    padding: 14px;
    border-radius: 16px;
    color: #334155;
    background: #f8fafc;
    font-weight: 800;
}

.detail-sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
}

.related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.related-grid .movie-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    border-radius: 18px;
    box-shadow: none;
}

.related-grid .poster-frame {
    height: 100%;
    min-height: 142px;
    border-radius: 18px 0 0 18px;
}

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

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

.related-grid .movie-desc,
.related-grid .tag-row,
.related-grid .movie-card-topline {
    display: none;
}

.site-footer {
    margin-top: 72px;
    padding: 36px 0;
    color: rgba(255, 255, 255, 0.78);
    background: #031711;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.site-footer strong {
    display: block;
    color: white;
    font-size: 20px;
    margin-bottom: 6px;
}

.site-footer p {
    margin: 0;
}

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

.site-footer a:hover {
    color: white;
}

[hidden] {
    display: none !important;
}

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

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

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

    .detail-sidebar {
        position: static;
    }

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

    .related-grid .movie-card {
        display: block;
    }

    .related-grid .poster-frame {
        min-height: auto;
        border-radius: 18px 18px 0 0;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

    body.menu-open .site-nav {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .hero,
    .hero-slider {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 60px 0 90px;
    }

    .hero-poster {
        min-height: 280px;
        max-height: 360px;
    }

    .search-band-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-header-grid {
        grid-template-columns: 170px 1fr;
        gap: 20px;
    }

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

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

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

    .hero,
    .hero-slider {
        min-height: 700px;
    }

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

    .hero p,
    .page-hero p,
    .detail-intro p {
        font-size: 16px;
    }

    .search-band-inner form {
        display: grid;
        border-radius: 18px;
    }

    .search-band-inner button {
        height: 44px;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .filter-grid,
    .related-grid,
    .prev-next,
    .movie-facts dl {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 86px 1fr;
    }

    .detail-header-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 190px;
    }

    .detail-layout {
        margin-top: -24px;
    }

    .article-block,
    .prev-next {
        padding-left: 18px;
        padding-right: 18px;
    }
}
