:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #1e40af;
    --primary-700: #1e3a8a;
    --secondary-50: #f0fdf4;
    --secondary-600: #065f46;
    --accent-50: #fffbeb;
    --accent-100: #fde68a;
    --accent-600: #92400e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.09);
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.5;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    color: var(--primary-600);
    font-size: 1.22rem;
    font-weight: 800;
}

.logo-subtitle {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-bar input {
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--gray-900);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.header-search input {
    width: 210px;
    padding: 10px 12px;
    border-radius: 12px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: 750;
    border-radius: 12px;
    background: var(--primary-600);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--gray-700);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.mobile-search {
    margin-bottom: 12px;
}

.mobile-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-link {
    display: block;
    padding: 12px 4px;
    color: var(--gray-700);
    font-weight: 700;
    border-top: 1px solid var(--gray-100);
}

.hero-section {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700) 55%, var(--secondary-600));
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0 70px;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 36px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.eyebrow.dark {
    color: var(--primary-600);
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.hero-search {
    max-width: 620px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
}

.hero-search button,
.search-page-form button {
    padding: 14px 20px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-quick-links a {
    padding: 8px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 80px rgba(3, 7, 18, 0.35);
    background: #000;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24) 56%, rgba(0, 0, 0, 0.04));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 42px;
}

.hero-content h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.06;
}

.hero-content p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

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

.hero-tags {
    margin-top: 16px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 6px 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 13px 22px;
    color: var(--primary-600);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

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

.ghost-button {
    padding: 13px 22px;
    color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
    left: 16px;
}

.hero-control.next {
    right: 16px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

.section-wrap.no-pad {
    padding: 0;
}

.soft-section {
    padding: 62px 0;
    background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
}

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

.section-heading h2,
.panel-head h2,
.content-card h2,
.related-section h2,
.overview-body h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    line-height: 1.12;
}

.compact-heading {
    align-items: center;
    margin-bottom: 20px;
}

.section-link,
.text-button {
    color: var(--primary-600);
}

.section-link:hover,
.text-button:hover {
    color: var(--primary-700);
    transform: translateX(3px);
}

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gray-200);
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.card-badge {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    background: rgba(30, 64, 175, 0.86);
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-600), var(--primary-600));
}

.card-body {
    padding: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.card-body h2 {
    margin: 8px 0 0;
    color: var(--gray-900);
    font-size: 1rem;
    line-height: 1.25;
}

.card-body h2 a:hover {
    color: var(--primary-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.84rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    margin-top: 10px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--accent-600);
    background: var(--accent-50);
    font-size: 0.72rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 116px 1fr;
}

.compact-card .poster-link {
    aspect-ratio: 3 / 4;
}

.compact-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-grid,
.overview-grid {
    display: grid;
    gap: 24px;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    color: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
}

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

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

.category-tile span {
    font-size: 1.28rem;
    font-weight: 850;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.player-card,
.content-card,
.overview-card,
.filter-bar {
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.ranking-panel {
    padding: 24px;
}

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

.rank-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.rank-list li + li {
    border-top: 1px solid var(--gray-100);
}

.rank-list a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
}

.rank-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 10px;
    background: var(--primary-600);
    font-weight: 850;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: var(--gray-900);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info {
    color: var(--gray-500);
    font-size: 0.82rem;
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--secondary-600));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

.small-hero .page-hero-inner,
.category-hero .page-hero-inner,
.ranking-hero .page-hero-inner,
.search-hero .page-hero-inner {
    padding-top: 48px;
    padding-bottom: 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

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

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

.overview-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
}

.overview-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
    background: var(--gray-100);
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
}

.overview-body {
    padding: 24px;
}

.overview-body p {
    margin: 12px 0 18px;
    color: var(--gray-500);
}

.filter-bar {
    margin-bottom: 24px;
    padding: 18px;
}

.filter-bar input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
}

.filter-chips {
    margin-top: 12px;
}

.filter-chips button {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    background: var(--gray-50);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.filter-chips button:hover,
.filter-chips button.is-active {
    color: #fff;
    border-color: var(--primary-600);
    background: var(--primary-600);
}

.result-empty {
    display: none;
    margin: 20px 0 0;
    padding: 22px;
    text-align: center;
    color: var(--gray-500);
    border-radius: var(--radius-xl);
    background: #fff;
}

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

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

.detail-hero {
    position: relative;
    color: #fff;
    background: #020617;
    isolation: isolate;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.08);
    opacity: 0.34;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68));
}

.detail-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 56px;
}

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

.detail-poster-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.detail-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 780px;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

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

.detail-meta-grid span {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
}

.detail-tags {
    margin: 18px 0 22px;
}

.detail-tags a {
    padding: 7px 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-main {
    display: grid;
    gap: 28px;
}

.player-card,
.content-card {
    padding: 24px;
}

.video-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    background: #000;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 850;
    transition: opacity 0.25s ease;
}

.video-stage.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--primary-600);
    background: #fff;
    font-size: 1.55rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.content-card h2 + p {
    margin-top: 0;
}

.content-card p {
    color: var(--gray-700);
    font-size: 1.02rem;
}

.related-section {
    display: block;
}

.search-page-form {
    max-width: 760px;
    margin-top: 26px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    border-radius: 14px;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 850;
}

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
}

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

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

.footer-column a {
    color: #d1d5db;
}

.footer-column a:hover {
    color: #93c5fd;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-inner,
    .split-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 380px;
    }

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

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

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 780px) {
    .site-header-inner,
    .hero-inner,
    .section-wrap,
    .page-hero-inner,
    .detail-hero-inner,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

    .logo-subtitle {
        display: none;
    }

    .hero-inner {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .hero-search,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-carousel {
        min-height: 330px;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-control {
        display: none;
    }

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

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

    .movie-list-grid,
    .overview-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .overview-cover {
        min-height: 220px;
    }

    .detail-poster-card {
        width: min(260px, 76vw);
    }

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

    .rank-list a {
        grid-template-columns: 34px 1fr;
    }

    .rank-info {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .wide-grid,
    .ranking-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 104px 1fr;
    }

    .hero-carousel {
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.7rem;
    }

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