:root {
    --primary-50: #fef6ee;
    --primary-100: #fdebd6;
    --primary-500: #f0691b;
    --primary-600: #e14f11;
    --primary-700: #ba3910;
    --secondary-500: #668176;
    --secondary-600: #50675e;
    --accent-50: #fefbe8;
    --accent-100: #fff8c2;
    --accent-500: #eeac07;
    --accent-600: #d99205;
    --warm-50: #faf8f5;
    --warm-100: #f2ede4;
    --warm-200: #e4d8c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, .12);
    --shadow-large: 0 24px 80px rgba(17, 24, 39, .22);
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff 0%, var(--warm-50) 45%, var(--warm-100) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.06);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link,
.mobile-link {
    position: relative;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

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

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary-600);
}

.mobile-menu-button {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary-600);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 16px;
    border-top: 1px solid var(--gray-100);
    background: #fff;
    box-shadow: var(--shadow-medium);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 10px;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .56) 48%, rgba(0, 0, 0, .16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 112px;
}

.hero-copy {
    width: min(100%, 680px);
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.hero-badges,
.detail-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-badges a,
.hero-badges span,
.detail-topline span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    font-weight: 700;
}

.hero-badges a {
    background: var(--accent-500);
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.primary-button {
    color: #fff;
    background: var(--primary-600);
    box-shadow: var(--shadow-soft);
}

.primary-button:hover {
    background: var(--primary-700);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.secondary-button {
    color: var(--primary-700);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.full-width {
    width: 100%;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, .32);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #fff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 74px;
    z-index: 4;
    width: min(640px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.hero-search input,
.filter-search input,
.filter-panel select {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--gray-800);
    background: rgba(255, 255, 255, .94);
    outline: none;
}

.hero-search input {
    min-height: 46px;
    padding: 0 16px;
}

.hero-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 22px;
    color: #fff;
    background: var(--primary-600);
    font-weight: 800;
    cursor: pointer;
}

.page-sections,
.section-block {
    padding: 56px 0;
}

.page-sections {
    display: grid;
    gap: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.gradient-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--warm-100), var(--primary-100));
}

.movie-card-large .movie-poster {
    height: 260px;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 58%);
    opacity: 0;
    transition: opacity .3s ease;
}

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

.movie-region {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    font-size: 12px;
    font-weight: 700;
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 34px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.play-hover::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    z-index: -1;
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: scale(1);
}

.movie-info {
    padding: 16px;
}

.movie-info h2 {
    margin: 0 0 9px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.movie-info h2 a:hover {
    color: var(--primary-600);
}

.movie-info p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 8px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 14px;
}

.movie-meta span:last-child {
    color: var(--primary-600);
    font-weight: 800;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 192px 1fr;
}

.movie-card-horizontal .movie-poster {
    height: 142px;
}

.movie-card-horizontal .movie-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.horizontal-list {
    display: grid;
    gap: 16px;
}

.elevated-section {
    padding: 32px;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-medium);
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

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

.category-card-main {
    display: block;
    min-height: 186px;
    padding: 22px;
    background: linear-gradient(135deg, #fff, var(--primary-50));
}

.category-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.category-card h2 {
    margin: 18px 0 10px;
    color: var(--gray-900);
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 16px 22px 22px;
}

.category-samples a {
    color: var(--gray-600);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-samples a:hover {
    color: var(--primary-600);
}

.ranking-entry {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--accent-50), var(--primary-50));
    box-shadow: var(--shadow-medium);
}

.ranking-copy h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.ranking-copy p {
    margin: 0 0 24px;
    color: var(--gray-600);
    line-height: 1.8;
}

.rank-list {
    display: grid;
    gap: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.rank-number {
    color: var(--primary-600);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 74px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-copy strong {
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 15%, rgba(238, 172, 7, .42), transparent 34%), linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.compact-hero {
    padding: 78px 0 74px;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero p {
    margin: 0;
}

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

.breadcrumb a:hover {
    color: #fff;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px 180px;
    gap: 12px;
    align-items: end;
}

.filter-search {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-search input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border-color: var(--gray-200);
    background: #fff;
}

.filter-search input:focus,
.filter-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(240, 105, 27, .12);
}

.empty-result {
    margin: 16px 0 0;
    color: var(--gray-500);
    text-align: center;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    color: #fff;
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
    opacity: .72;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .52) 52%, rgba(0, 0, 0, .22));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    padding: 40px 0 16px;
}

.detail-main {
    min-width: 0;
    display: grid;
    gap: 24px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    background: #000;
    box-shadow: var(--shadow-large);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    border: 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-play-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary-600);
    background: rgba(255, 255, 255, .94);
    font-size: 34px;
    box-shadow: var(--shadow-medium);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.25;
}

.player-cover em {
    max-width: 680px;
    color: rgba(255, 255, 255, .78);
    font-style: normal;
    line-height: 1.7;
}

.detail-card,
.side-card {
    padding: 28px;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

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

.detail-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 2;
}

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

.detail-side {
    position: sticky;
    top: 88px;
}

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

.poster-card h2 {
    margin: 0 0 18px;
    color: var(--gray-900);
    font-size: 22px;
}

.poster-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.poster-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.poster-card dt {
    color: var(--gray-500);
}

.poster-card dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 800;
    text-align: right;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--warm-200);
    background: linear-gradient(180deg, var(--warm-50), var(--warm-100));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 420px;
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-logo .brand-text {
    color: var(--gray-800);
    background: none;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 15px;
}

.footer-links a {
    color: var(--gray-600);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-600);
}

.footer-bottom {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--warm-200);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--gray-600);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-side {
        position: static;
    }
}

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

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

    .hero-carousel {
        height: 640px;
    }

    .hero-content {
        padding-bottom: 154px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        bottom: 64px;
    }

    .hero-control {
        top: auto;
        bottom: 18px;
        width: 42px;
        height: 42px;
        font-size: 32px;
    }

    .hero-prev {
        left: 16px;
        transform: none;
    }

    .hero-next {
        right: 16px;
        transform: none;
    }

    .hero-control:hover {
        transform: scale(1.04);
    }

    .hero-dots {
        bottom: 28px;
    }

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

    .ranking-entry {
        grid-template-columns: 1fr;
        padding: 24px;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-carousel {
        height: 680px;
    }

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

    .hero-badges,
    .detail-topline {
        gap: 8px;
    }

    .hero-badges a,
    .hero-badges span,
    .detail-topline span {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .movie-grid,
    .movie-grid-three,
    .category-grid,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 120px 1fr;
    }

    .movie-card-horizontal .movie-poster {
        height: 150px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 40px 64px 1fr;
    }

    .rank-item img {
        width: 64px;
        height: 48px;
    }

    .detail-card,
    .side-card,
    .elevated-section {
        padding: 20px;
    }

    .player-cover {
        padding: 18px;
    }

    .player-play-icon {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
