:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f97316;
    --primary-dark: #c2410c;
    --accent: #f59e0b;
    --white: #ffffff;
    --black: #111827;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
    --shadow-soft: 0 10px 25px rgba(124, 45, 18, 0.10);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(124, 45, 18, 0.10);
}

.site-nav {
    min-height: 76px;
    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-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    padding: 10px 15px;
    border-radius: 13px;
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #9a3412;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 32%), linear-gradient(135deg, #f97316 0%, #ea580c 48%, #d97706 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 2px 2px, #ffffff 1px, transparent 0);
    background-size: 36px 36px;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding: 80px 0 150px;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 52px;
}

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

.hero-copy h1 {
    max-width: 820px;
    margin: 10px 0 10px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: 20px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.button-light {
    color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.button-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
    color: var(--primary-dark);
    background: var(--white);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 390px);
    margin-left: auto;
    isolation: isolate;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.30);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: rotate(0deg) scale(1.03);
}

.hero-poster-glow {
    position: absolute;
    inset: 12% -8% -8% 12%;
    z-index: -1;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(18px);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 92px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 52px;
    background: var(--white);
}

.hero-stats {
    position: absolute;
    right: 0;
    bottom: 78px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats span {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-stats strong {
    display: block;
    font-size: 22px;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
}

.page-hero {
    position: relative;
    color: var(--white);
    padding: 78px 0;
    overflow: hidden;
}

.gradient-hero,
.category-hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.20), transparent 28%), linear-gradient(135deg, #f97316, #d97706);
}

.page-hero h1 {
    max-width: 880px;
    margin: 14px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

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

.breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.section-block {
    padding: 64px 0;
}

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

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

.section-heading p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-dark);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(124, 45, 18, 0.82));
}

.category-name,
.category-count {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 0 18px;
}

.category-name {
    font-size: 20px;
    font-weight: 900;
}

.category-count {
    padding-bottom: 18px;
    color: #ffedd5;
    font-size: 13px;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 1;
}

.poster-badge {
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.90);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: block;
    padding: 15px;
}

.movie-card-body strong {
    display: block;
    min-height: 1.45em;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body em {
    display: -webkit-box;
    min-height: 3.2em;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-card .tag-row {
    gap: 5px;
}

.movie-card .tag-row span {
    padding: 4px 7px;
    font-size: 11px;
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.panel {
    border: 1px solid rgba(254, 215, 170, 0.76);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.search-panel,
.ranking-panel,
.prose-panel,
.detail-side {
    padding: 28px;
}

.home-search {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.home-search input,
.search-box input {
    width: 100%;
    min-height: 48px;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.home-search input:focus,
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: transform 0.25s ease, background 0.25s ease;
}

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

.rank-no {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 900;
}

.ranking-row img {
    width: 54px;
    height: 74px;
    object-fit: cover;
    border-radius: 11px;
}

.ranking-text strong,
.ranking-text em {
    display: block;
}

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

.score {
    min-width: 46px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
    text-align: center;
}

.filter-panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid rgba(254, 215, 170, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.sticky-filter {
    position: sticky;
    top: 90px;
}

.search-box span {
    display: block;
    margin-bottom: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.result-count {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-card-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.category-card-content {
    padding: 24px;
}

.category-card-content h2 {
    margin: 12px 0 8px;
    font-size: 28px;
}

.category-card-content p {
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}

.category-samples a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 800;
}

.ranking-grid {
    display: grid;
    gap: 16px;
}

.ranking-card-link {
    display: grid;
    grid-template-columns: 58px 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
}

.ranking-card img {
    width: 92px;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-card-body strong,
.ranking-card-body em {
    display: block;
}

.ranking-card-body strong {
    font-size: 22px;
}

.ranking-card-body em {
    margin-top: 7px;
    color: var(--muted);
    font-style: normal;
}

.large-score {
    font-size: 18px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(8px);
    transform: scale(1.05);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.82), rgba(17, 24, 39, 0.68));
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster img {
    width: 270px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 12px 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 880px;
    color: #ffedd5;
    font-size: 20px;
}

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

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-info .button {
    margin-top: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #050505;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.player-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    color: #c2410c;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
    font-size: 26px;
}

.player-overlay em {
    color: #ffedd5;
    font-style: normal;
}

.player-message {
    margin: 0;
    padding: 12px 18px;
    color: #fed7aa;
    background: #111827;
    font-size: 14px;
}

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

.prose-panel p {
    color: #374151;
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: #9a3412;
    font-weight: 900;
}

.detail-side dd {
    margin: -8px 0 8px;
    color: #374151;
}

.info-page {
    max-width: 920px;
}

.info-section + .info-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 50px 0;
}

.footer-logo .brand-text strong {
    color: #ffffff;
    background: linear-gradient(90deg, #fdba74, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
}

.site-footer h3 {
    color: #fdba74;
    margin: 0 0 14px;
}

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

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

.site-footer a,
.site-footer p {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fdba74;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

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

    .footer-grid,
    .two-column-section,
    .detail-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-container {
        min-height: auto;
        padding: 58px 0 140px;
    }

    .hero-slide.active,
    .detail-layout,
    .detail-content,
    .two-column-section,
    .category-card-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(74vw, 320px);
        margin: 20px auto 0;
    }

    .hero-dots,
    .hero-stats {
        position: static;
        margin-top: 24px;
    }

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

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

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

    .detail-poster img {
        width: min(70vw, 250px);
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        display: none;
    }

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

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

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

    .ranking-card-link {
        grid-template-columns: 44px 72px 1fr;
    }

    .ranking-card-link .score {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .ranking-card img {
        width: 72px;
        height: 100px;
    }

    .ranking-row {
        grid-template-columns: 34px 46px 1fr;
    }

    .ranking-row .score {
        grid-column: 3;
        justify-self: start;
    }

    .page-hero {
        padding: 54px 0;
    }

    .section-block {
        padding: 42px 0;
    }

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