:root {
    --primary-50: #fef9ee;
    --primary-100: #fdf2d7;
    --primary-200: #fae1ae;
    --primary-400: #f3a844;
    --primary-500: #f08d1f;
    --primary-600: #e17015;
    --primary-700: #bb5413;
    --primary-800: #954217;
    --secondary-50: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #fef9ee 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700), var(--primary-600));
    box-shadow: 0 12px 30px rgba(149, 66, 23, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    color: var(--primary-700);
    background: var(--primary-100);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.brand-copy strong {
    font-size: 22px;
    letter-spacing: 0.05em;
}

.brand-copy small {
    color: var(--primary-100);
    font-size: 12px;
    font-weight: 600;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #ffffff;
    font-weight: 650;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-100);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 58%);
}

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

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: #f5f5f5;
    font-weight: 700;
}

.hero-rating span:first-child {
    color: #facc15;
    font-size: 24px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.hero-tags span,
.chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-actions,
.quick-search-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 14px 30px rgba(225, 112, 21, 0.28);
}

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.btn-outline {
    color: var(--primary-700);
    background: #ffffff;
    border-color: var(--primary-200);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.quick-search-band {
    padding: 28px 0;
    background: linear-gradient(90deg, var(--primary-50), #ffffff);
    border-bottom: 1px solid var(--line);
}

.quick-search-inner {
    justify-content: space-between;
    margin-top: 0;
}

.quick-search-inner h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.section-warm {
    background: linear-gradient(90deg, var(--primary-50), var(--secondary-50));
}

.section-soft {
    background: linear-gradient(180deg, #f3f4f6, #f9fafb);
}

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

.section-title-row h2,
.panel-head h2,
.side-panel h2,
.detail-card h2,
.category-overview-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-more {
    color: var(--primary-600);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background: #111827;
}

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

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

.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(225, 112, 21, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.score,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

.score {
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
}

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

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

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 9px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.chip-row {
    margin-top: 12px;
}

.chip-row span {
    color: var(--primary-700);
    background: var(--primary-100);
}

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

.ranking-panel,
.side-panel,
.detail-card,
.category-overview-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 36px 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--soft);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--primary-50);
    transform: translateX(4px);
}

.rank-row b {
    color: var(--primary-600);
}

.rank-row img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row span {
    display: grid;
    gap: 3px;
}

.rank-row small {
    color: var(--muted);
}

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

.category-tile {
    display: grid;
    min-height: 220px;
    align-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(225, 112, 21, 0.16);
    border-radius: var(--radius);
    color: var(--ink);
    background: linear-gradient(135deg, #ffffff, var(--primary-50));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
    color: var(--primary-600);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.category-tile em {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-style: normal;
}

.category-tile em a {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-size: 12px;
    font-weight: 800;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    padding: 92px 0 78px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--primary-800), var(--primary-700), var(--primary-600));
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.detail-content .breadcrumb {
    margin: 0 0 20px;
    color: var(--muted);
}

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

.detail-content .breadcrumb a:hover {
    color: var(--primary-600);
}

.overview-stack {
    display: grid;
    gap: 26px;
    padding: 48px 0 78px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    padding: 28px;
}

.category-overview-copy p {
    color: var(--muted);
}

.mini-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.single-column {
    grid-template-columns: 1fr;
}

.mini-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--soft);
    font-weight: 800;
}

.mini-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

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

.filter-bar-section {
    position: sticky;
    top: 72px;
    z-index: 50;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

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

.filter-bar input,
.filter-bar select,
.search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(243, 168, 68, 0.18);
}

.category-list-section {
    padding-top: 46px;
}

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

.player-section {
    padding: 36px 0;
    background: #050505;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 18px;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(225, 112, 21, 0.28), transparent 36%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.player-overlay.hidden {
    display: none;
}

.player-trigger {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 18px 40px rgba(225, 112, 21, 0.42);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-trigger:hover {
    background: var(--primary-700);
    transform: scale(1.06);
}

.player-trigger span {
    margin-left: 5px;
    font-size: 34px;
}

.player-overlay strong {
    display: block;
    font-size: 24px;
}

.player-overlay small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    padding: 42px 0 78px;
}

.detail-card {
    margin-bottom: 24px;
    padding: 28px;
}

.hero-detail-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.detail-poster {
    width: 220px;
    aspect-ratio: 3 / 4.15;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-weight: 800;
    font-size: 13px;
}

.lead-text,
.detail-card p {
    color: #374151;
    font-size: 17px;
}

.detail-card p {
    margin: 0;
}

.detail-sidebar {
    position: sticky;
    top: 106px;
    align-self: start;
}

.side-panel {
    margin-bottom: 22px;
    padding: 24px;
}

.side-panel p {
    color: var(--muted);
}

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

.related-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--soft);
}

.related-card:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.related-card img {
    width: 86px;
    height: 116px;
    border-radius: 13px;
    object-fit: cover;
}

.related-card span {
    display: grid;
    gap: 6px;
}

.related-card small {
    color: var(--muted);
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.search-panel.open {
    display: block;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(4px);
}

.search-dialog {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 72px));
    margin: 36px auto 0;
    padding: 22px;
    overflow: auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.search-head h2 {
    margin: 0;
}

.search-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.search-result-link {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--soft);
}

.search-result-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.search-result-link img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-link span {
    display: grid;
    gap: 3px;
}

.search-result-link small {
    color: var(--muted);
}

.site-footer {
    padding: 48px 0 24px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, #2b160c, #4d210c, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.footer-grid p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.hidden-by-filter {
    display: none;
}

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

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

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

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

    .ranking-panel,
    .detail-sidebar,
    .filter-bar-section {
        position: static;
    }
}

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

    .nav-shell {
        min-height: 64px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

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

    .hero-content {
        align-items: flex-end;
        padding-bottom: 78px;
    }

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

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

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .hero-dots {
        bottom: 28px;
    }

    .quick-search-inner,
    .section-title-row,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .detail-poster {
        width: 100%;
        max-width: 260px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid,
    .related-grid,
    .mini-link-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-poster {
        aspect-ratio: auto;
        min-height: 156px;
    }

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