:root {
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --red: #dc2626;
    --pink: #db2777;
    --blue: #2563eb;
    --green: #16a34a;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.25);
}

.logo-text strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

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

.desktop-nav,
.desktop-category-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-nav {
    margin-left: auto;
}

.desktop-category-nav {
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.nav-link,
.desktop-category-nav a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.desktop-category-nav a:hover {
    color: var(--red);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-logo {
    padding: 8px 12px;
    color: var(--red);
    font-weight: 800;
}

.mobile-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: #f9fafb;
    color: var(--red);
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #000000;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(219, 39, 119, 0.30), transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 84px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-kicker,
.hero-tags,
.detail-tags,
.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-kicker span,
.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 750;
}

.hero-kicker span:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, var(--red), var(--pink));
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 680px;
    margin: 0 0 18px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.secondary-button,
.home-search-form button,
.filter-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search-form button,
.filter-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.26);
}

.primary-button:hover,
.home-search-form button:hover,
.filter-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(220, 38, 38, 0.32);
}

.primary-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.primary-button.wide {
    width: 100%;
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 38px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.home-search-card {
    width: min(1120px, calc(100% - 48px));
    margin: -42px auto 56px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.home-search-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.home-search-card p {
    margin: 0;
    color: var(--muted);
}

.home-search-form {
    display: flex;
    gap: 12px;
}

.home-search-form input,
.filter-search input,
.filter-selects select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    outline: 0;
}

.home-search-form input,
.filter-search input {
    min-height: 48px;
    padding: 0 16px;
}

.home-search-form input:focus,
.filter-search input:focus,
.filter-selects select:focus {
    border-color: rgba(220, 38, 38, 0.52);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-bottom: 72px;
}

.main-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.content-section,
.side-panel,
.category-overview-block,
.detail-content,
.related-section,
.filter-panel {
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.content-section,
.side-panel,
.category-overview-block,
.detail-content,
.related-section {
    padding: 28px;
}

.panel-section {
    box-shadow: var(--shadow);
}

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

.section-heading {
    margin-bottom: 22px;
}

.section-heading p,
.eyebrow,
.page-hero p {
    margin: 0 0 6px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading.mini h2 {
    font-size: 22px;
}

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

.section-heading.with-link a {
    color: var(--red);
    font-weight: 800;
}

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

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

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

.search-grid {
    align-items: stretch;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.84);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.22);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.poster-badge,
.poster-year {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 10px;
    background: linear-gradient(135deg, var(--red), var(--pink));
}

.poster-year {
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

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

.movie-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-title a:hover {
    color: var(--red);
}

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

.movie-card-desc {
    display: -webkit-box;
    min-height: 40px;
    margin-top: 8px;
    overflow: hidden;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-tags {
    margin-top: 10px;
}

.movie-card-tags span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    gap: 12px;
}

.category-grid.small {
    grid-template-columns: 1fr;
}

.category-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
    border: 1px solid rgba(251, 146, 60, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 850;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.rank-line {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
    background: #fee2e2;
    transform: translateX(3px);
}

.rank-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 900;
    font-size: 13px;
}

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

.rank-score {
    color: var(--red);
    font-weight: 900;
    text-align: right;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

.inner-page {
    padding-top: 34px;
    padding-bottom: 72px;
}

.page-hero {
    margin-bottom: 28px;
    padding: 38px;
    border-radius: 28px;
    color: #111827;
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 38, 38, 0.16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f9fafb);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.category-overview-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.category-intro {
    margin: -12px 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
}

.filter-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 16px;
}

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

.filter-selects label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.filter-selects select {
    min-height: 44px;
    padding: 0 12px;
}

.filter-empty {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    color: #991b1b;
    background: #fee2e2;
    font-weight: 800;
    text-align: center;
}

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

.ranking-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-spotlight img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.ranking-spotlight strong,
.ranking-spotlight em,
.ranking-crown {
    position: absolute;
    z-index: 2;
}

.ranking-crown {
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 900;
}

.ranking-spotlight strong {
    left: 18px;
    right: 18px;
    bottom: 52px;
    font-size: 24px;
}

.ranking-spotlight em {
    left: 18px;
    bottom: 20px;
    font-style: normal;
    font-size: 20px;
    font-weight: 900;
}

.ranking-list-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 90px minmax(0, 1fr) 70px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 900;
}

.ranking-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #111827;
}

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

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info h2 a:hover {
    color: var(--red);
}

.ranking-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #4b5563;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-score {
    color: var(--red);
    font-size: 22px;
    text-align: right;
}

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

.breadcrumb a {
    color: #374151;
    font-weight: 800;
}

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

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.18), rgba(0, 0, 0, 0.62));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    font-size: 30px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    max-width: 82%;
    font-size: clamp(20px, 4vw, 32px);
    text-align: center;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.detail-content {
    line-height: 1.85;
}

.detail-title-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 750;
}

.detail-content section {
    margin-top: 24px;
}

.detail-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-content p {
    margin: 0;
    color: #374151;
}

.review-box {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

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

.poster-panel {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

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

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.footer-inner nav a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 750;
}

.footer-inner nav a:hover {
    color: var(--red);
    background: #fee2e2;
}

.footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-category-nav {
        display: none;
    }

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

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

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

    .sticky-panel {
        position: static;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }
}

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

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

    .site-header-inner {
        padding: 0 16px;
    }

    .hero {
        min-height: 560px;
        height: 76vh;
    }

    .hero-content {
        padding: 0 18px 80px;
    }

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

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .page-container,
    .home-search-card,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1280px);
    }

    .home-search-card {
        grid-template-columns: 1fr;
        margin-bottom: 36px;
    }

    .home-search-form,
    .filter-search {
        grid-template-columns: 1fr;
    }

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

    .ranking-spotlight-grid,
    .filter-selects,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .ranking-score {
        grid-column: 3;
        text-align: left;
        font-size: 18px;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .content-section,
    .side-panel,
    .category-overview-block,
    .detail-content,
    .related-section,
    .page-hero,
    .filter-panel {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    .logo-text small {
        display: none;
    }

    .logo-text strong {
        font-size: 18px;
    }

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

    .hero-kicker span,
    .hero-tags span {
        font-size: 12px;
        padding: 5px 9px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

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

    .movie-card-desc {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 34px 62px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .ranking-info p {
        display: none;
    }
}
