:root {
    --color-blue: #2563eb;
    --color-blue-dark: #1e3a8a;
    --color-blue-mid: #1d4ed8;
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #f3f4f6;
    --color-line: #e5e7eb;
    --color-dark: #111827;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.24);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

body {
    min-height: 100vh;
    background: #f9fafb;
    color: var(--color-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--color-blue);
    letter-spacing: -0.03em;
}

.site-logo span:last-child,
.footer-logo span:last-child {
    background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--color-blue), var(--color-orange));
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-size: 17px;
    font-weight: 650;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link {
    padding: 23px 0 20px;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-blue);
}

.nav-link.is-active {
    border-bottom-color: var(--color-blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--color-line);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
}

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

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--color-line);
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: white;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-mid), var(--color-blue-dark));
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(1px);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(30, 64, 175, 0.72), rgba(249, 115, 22, 0.25));
}

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

.hero-panel {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 54px;
    align-items: center;
    padding: 82px 0 120px;
}

.hero-copy {
    max-width: 760px;
}

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

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0;
    color: #dbeafe;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--color-blue);
    background: #dbeafe;
    font-size: 13px;
    font-weight: 750;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

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

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

.ghost-button.light {
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
    display: block;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 430px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38));
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    width: min(1200px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    color: white;
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 42px;
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.stats-strip {
    width: min(1120px, calc(100% - 32px));
    margin: -44px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-item {
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.stat-item strong {
    display: block;
    color: var(--color-blue);
    font-size: 32px;
    font-weight: 900;
}

.stat-item span {
    color: var(--color-muted);
    font-weight: 650;
}

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

.content-section > .section-heading,
.content-section > .movie-grid,
.content-section > .movie-list-grid,
.content-section > .rank-grid,
.content-section > .category-grid,
.content-section > .filter-bar,
.content-section > .search-panel,
.content-section > .empty-state,
.content-section > .rank-lines,
.content-section > .detail-grid,
.content-section > .player-section {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: #f3f4f6;
}

.dark-section {
    color: white;
    background: linear-gradient(135deg, #111827, #1f2937);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 17px;
}

.dark-section .section-heading p {
    color: #d1d5db;
}

.section-more {
    min-height: 42px;
    padding: 0 16px;
    color: var(--color-blue);
    background: #dbeafe;
}

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

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e5e7eb;
}

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

.movie-card:hover .movie-poster img,
.rank-card:hover img,
.category-covers a:hover img {
    transform: scale(1.08);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(37, 99, 235, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.corner-label {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.corner-label.orange {
    right: 12px;
    top: 12px;
    background: var(--color-orange);
}

.corner-label.blue {
    left: 12px;
    bottom: 12px;
    background: var(--color-blue);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body p {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    margin-top: auto;
}

.movie-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-wide .movie-card-link {
    flex-direction: row;
}

.card-wide .movie-poster {
    width: 190px;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 250px;
}

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

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

.category-card {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-card-main {
    display: grid;
    gap: 20px;
    padding: 22px;
}

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

.category-covers a {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: #e5e7eb;
}

.category-covers img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

.category-card p {
    min-height: 52px;
    margin: 0 0 16px;
    color: var(--color-muted);
    line-height: 1.65;
}

.category-card span {
    color: var(--color-blue);
    font-weight: 800;
}

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

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

.rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.rank-number {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: var(--color-orange);
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.32);
}

.rank-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px;
}

.rank-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.rank-tags span {
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    background: rgba(37, 99, 235, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.rank-content h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 20px;
    font-weight: 900;
}

.rank-content p {
    color: #d1d5db;
    font-size: 14px;
}

.cta-section {
    padding: 80px 16px;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
}

.cta-section h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
}

.cta-section p {
    margin: 0 auto 28px;
    max-width: 680px;
    color: #dbeafe;
    font-size: 19px;
}

.page-hero {
    display: grid;
    place-items: center;
    min-height: 310px;
    padding: 70px 16px;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
}

.dark-page-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 16px auto 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.7;
}

.filter-bar,
.search-panel {
    margin-bottom: 34px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.soft-section .filter-bar,
.soft-section .search-panel {
    background: #ffffff;
}

.search-field {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 800;
}

.search-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.large-search input {
    min-height: 62px;
    font-size: 18px;
}

.quick-links,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a,
.chip-row button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--color-blue);
    background: #dbeafe;
    font-weight: 800;
}

.chip-row button {
    border: none;
}

.empty-state {
    display: none;
    padding: 54px;
    color: var(--color-muted);
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
}

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

.rank-lines {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.rank-line a {
    display: grid;
    grid-template-columns: 52px 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #f9fafb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-line a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.rank-line-number {
    color: var(--color-orange);
    font-size: 20px;
    font-weight: 900;
}

.rank-line img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-line-title {
    font-weight: 850;
}

.rank-line-meta {
    color: var(--color-muted);
}

.detail-top {
    position: relative;
    overflow: hidden;
    color: white;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827, rgba(37, 99, 235, 0.82), rgba(249, 115, 22, 0.22));
}

.detail-bg img {
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 74px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #dbeafe;
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: white;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
    background: #e5e7eb;
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-one-line {
    max-width: 820px;
    margin-top: 22px;
    color: #dbeafe;
    font-size: 21px;
    line-height: 1.7;
}

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

.story-card,
.info-card,
.player-section {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.story-card,
.info-card {
    padding: 30px;
}

.story-card h2,
.info-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.story-card h2:not(:first-child) {
    margin-top: 34px;
}

.story-card p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.info-card dl {
    display: grid;
    gap: 0;
}

.info-card div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-line);
}

.info-card div:last-child {
    border-bottom: 0;
}

.info-card dt {
    color: var(--color-muted);
}

.info-card dd {
    color: #111827;
    font-weight: 800;
    text-align: right;
}

.player-section {
    padding: 28px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border: none;
    color: white;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.32), rgba(17, 24, 39, 0.82));
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    transition: opacity 0.2s ease;
}

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

.player-play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--color-blue), var(--color-orange));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}

.footer-logo {
    margin-bottom: 16px;
    font-size: 22px;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: white;
    font-size: 18px;
    font-weight: 850;
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.site-footer a:hover,
.back-to-top:hover {
    color: var(--color-orange);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.back-to-top {
    border: 0;
    color: #d1d5db;
    background: transparent;
    font-weight: 800;
}

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

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

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

    .hero-poster {
        display: none;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section,
    .hero-track {
        min-height: 620px;
    }

    .hero-panel {
        padding: 62px 0 110px;
    }

    .hero-controls {
        bottom: 24px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-grid,
    .featured-grid,
    .rank-grid,
    .category-grid,
    .large-category-grid,
    .movie-list-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .card-wide .movie-card-link {
        flex-direction: column;
    }

    .card-wide .movie-poster {
        width: 100%;
        aspect-ratio: 3 / 4;
    }

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

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

    .detail-poster {
        max-width: 280px;
    }

    .rank-line a {
        grid-template-columns: 42px 56px 1fr;
    }

    .rank-line-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-logo {
        font-size: 22px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

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

    .stats-strip,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .story-card,
    .info-card,
    .player-section {
        padding: 20px;
    }
}
