:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --card: #ffffff;
    --card-strong: #fefefe;
    --text: #111827;
    --muted: #64748b;
    --muted-strong: #475569;
    --line: rgba(15, 23, 42, 0.1);
    --dark: #0f172a;
    --dark-soft: #1f2937;
    --accent: #111827;
    --accent-soft: rgba(17, 24, 39, 0.12);
    --gold: #f59e0b;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 45%, #f5f5f4 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

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

.nav-link:hover,
.nav-link.active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
}

.nav-link-soft {
    color: #64748b;
    font-weight: 600;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #0f172a;
}

.hero {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.25), transparent 24%),
        linear-gradient(100deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.44) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 86px 54px 112px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(241, 245, 249, 0.88);
    font-size: 18px;
}

.hero-actions,
.detail-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

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

.primary-button {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

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

.ghost-button.dark {
    color: #111827;
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.hero-panel {
    position: absolute;
    z-index: 4;
    right: 24px;
    top: 24px;
    bottom: 86px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-panel-card,
.hero-side-item {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.52);
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-panel-card {
    padding: 24px;
}

.hero-panel-card p {
    margin: 0 0 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.hero-panel-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.25;
}

.hero-panel-card a {
    color: #ffffff;
    font-weight: 800;
}

.hero-side-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 12px;
    padding: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-side-item:hover {
    transform: translateX(-4px);
    background: rgba(15, 23, 42, 0.72);
}

.hero-side-item span {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #111827;
    background: #ffffff;
    font-weight: 900;
}

.hero-side-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-side-item small {
    color: #cbd5e1;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 52px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    padding: 0;
    opacity: 0.55;
}

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

.hero-search-block {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: -36px auto 54px;
    position: relative;
    z-index: 8;
    width: min(1120px, calc(100% - 32px));
}

.hero-search {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.hero-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    outline: none;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--text);
}

.hero-search button {
    border: 0;
    color: #ffffff;
    background: #111827;
    cursor: pointer;
}

.hero-category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hero-category-pills a {
    padding: 8px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.content-section,
.search-panel,
.ranking-board,
.detail-content,
.player-section,
.breadcrumb,
.page-hero,
.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    margin-top: 56px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2,
.ranking-board h2 {
    margin: 0;
    color: #0f172a;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: #64748b;
}

.section-link {
    min-height: 40px;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: var(--shadow-md);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 36% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.play-chip {
    right: 12px;
    padding: 6px 10px;
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #cbd5e1;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.38;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.mini-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

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

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

.category-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 170px;
    overflow: hidden;
    background: #e2e8f0;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 18px;
}

.category-card-body p {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.category-card-body span {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    margin-top: 28px;
    padding: 72px 52px;
    overflow: hidden;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #111827 0%, #1f2937 58%, #334155 100%);
    box-shadow: var(--shadow-lg);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(241, 245, 249, 0.88);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #111827;
    font-weight: 750;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 22px;
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-copy p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: #f1f5f9;
    font-weight: 800;
}

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

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #111827;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
    font-size: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.detail-content article {
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-content h2 {
    font-size: 28px;
}

.detail-content p {
    margin: 16px 0 0;
    color: #475569;
    font-size: 16px;
}

.related-section {
    margin-top: 42px;
}

.ranking-board {
    margin-top: 34px;
}

.ranking-board-inner {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.ranking-board h2 {
    margin-bottom: 16px;
    font-size: 32px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(220px, 0.8fr) 60px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ranking-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: #111827;
    font-weight: 900;
}

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

.ranking-info {
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row strong {
    color: #b45309;
}

.search-panel {
    margin-top: 30px;
}

.search-controls {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.search-controls label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.search-controls input,
.search-controls select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    outline: none;
    color: #0f172a;
    background: #f8fafc;
}

.search-results {
    margin-top: 28px;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    border-radius: 20px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
    display: block;
}

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

.site-footer {
    margin-top: 76px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827 0%, #1f2937 58%, #0f172a 100%);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 34px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.9fr);
    gap: 42px;
}

.brand-footer .brand-mark {
    color: #111827;
    background: #ffffff;
}

.brand-footer .brand-text strong {
    color: #ffffff;
}

.brand-footer .brand-text small {
    color: #94a3b8;
}

.footer-brand p {
    max-width: 540px;
    margin: 18px 0 0;
    color: #94a3b8;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

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

.footer-columns ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-columns li + li {
    margin-top: 8px;
}

.footer-columns a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-columns a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .hero-panel {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-right: 44px;
    }

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

@media (max-width: 860px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .menu-button {
        display: block;
        margin-top: 1px;
    }

    .main-nav {
        display: none;
        width: 100%;
        justify-content: flex-start;
        padding: 10px 0 2px;
    }

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

    .nav-link {
        padding: 9px 11px;
    }

    .hero-stage {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-copy {
        padding: 58px 28px 96px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-controls {
        left: 26px;
    }

    .hero-search-block {
        grid-template-columns: 1fr;
        margin-top: 16px;
        width: 100%;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-category-pills {
        justify-content: flex-start;
    }

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

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

    .detail-poster {
        width: min(310px, 100%);
    }

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

    .footer-inner,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-inner {
        display: block;
    }

    .footer-columns {
        margin-top: 28px;
    }

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

    .ranking-info {
        display: none;
    }
}

@media (max-width: 620px) {
    .hero,
    .content-section,
    .search-panel,
    .ranking-board,
    .detail-content,
    .player-section,
    .breadcrumb,
    .page-hero,
    .detail-hero {
        width: min(100% - 22px, 1220px);
    }

    .hero-stage {
        min-height: 540px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

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

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

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

    .movie-card p {
        display: none;
    }

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

    .page-hero {
        padding: 46px 24px;
        border-radius: 26px;
    }

    .detail-hero {
        padding: 20px;
        border-radius: 26px;
    }

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

    .footer-columns {
        grid-template-columns: 1fr;
    }
}
