:root {
    --color-primary: 41 128 185;
    --color-primary-dark: 30 97 140;
    --color-primary-light: 93 173 226;
    --color-secondary: 52 152 219;
    --color-accent: 46 204 113;
    --color-neutral-50: 249 250 251;
    --color-neutral-100: 243 244 246;
    --color-neutral-200: 229 231 235;
    --color-neutral-300: 209 213 219;
    --color-neutral-400: 156 163 175;
    --color-neutral-500: 107 114 128;
    --color-neutral-600: 75 85 99;
    --color-neutral-700: 55 65 81;
    --color-neutral-800: 31 41 55;
    --color-neutral-900: 17 24 39;
    --radius-card: 18px;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: rgb(var(--color-neutral-900));
    background: rgb(var(--color-neutral-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin: 0;
}

p {
    line-height: 1.75;
}

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

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

.bg-white {
    background: #ffffff;
}

.bg-neutral {
    background: rgb(var(--color-neutral-100));
}

.bg-gradient-soft {
    background:
        radial-gradient(circle at 15% 0%, rgba(93, 173, 226, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(236, 253, 245, 0.9));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(209, 213, 219, 0.72);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgb(var(--color-neutral-900));
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-secondary)));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(41, 128, 185, 0.3);
}

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

.site-nav a {
    padding: 10px 16px;
    color: rgb(var(--color-neutral-600));
    border-radius: 999px;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: rgb(var(--color-primary));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: rgb(var(--color-neutral-800));
    background: rgb(var(--color-neutral-100));
    border: 0;
    border-radius: 12px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    min-height: 560px;
    overflow: hidden;
    background: rgb(var(--color-neutral-900));
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    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.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.12)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18), transparent);
}

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

.hero-text {
    max-width: 760px;
    color: #ffffff;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    color: #ffffff;
    background: rgb(var(--color-primary));
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-text h1 {
    margin-top: 18px;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-text p {
    max-width: 680px;
    margin-top: 18px;
    color: rgb(var(--color-neutral-200));
    font-size: 18px;
}

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

.btn-primary,
.btn-ghost,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary,
.home-search button {
    color: #ffffff;
    background: rgb(var(--color-primary));
    box-shadow: 0 16px 28px rgba(41, 128, 185, 0.28);
}

.btn-primary:hover,
.home-search button:hover {
    background: rgb(var(--color-primary-dark));
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

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

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-search {
    padding: 44px 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgb(var(--color-neutral-900)), rgb(var(--color-primary-dark)));
}

.quick-search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
    align-items: center;
    gap: 32px;
}

.quick-search h2 {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.quick-search p {
    margin-top: 12px;
    color: rgb(var(--color-neutral-200));
}

.home-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.home-search input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0 12px;
}

.home-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

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

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-head p {
    max-width: 720px;
    margin-top: 10px;
    color: rgb(var(--color-neutral-600));
}

.section-more,
.text-link {
    color: rgb(var(--color-primary));
    font-weight: 800;
}

.section-more:hover,
.text-link:hover {
    color: rgb(var(--color-primary-dark));
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
    border-color: rgba(41, 128, 185, 0.34);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgb(var(--color-neutral-800));
}

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

.movie-card:hover .movie-cover img,
.category-card:hover img,
.compact-card:hover img,
.overview-cover:hover img {
    transform: scale(1.06);
}

.movie-year,
.movie-score {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.movie-year {
    left: 12px;
    background: rgba(0, 0, 0, 0.62);
}

.movie-score {
    right: 12px;
    background: rgb(var(--color-accent));
}

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

.movie-kicker {
    margin-bottom: 8px;
    color: rgb(var(--color-primary));
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    min-height: 52px;
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.35;
}

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

.movie-line {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    color: rgb(var(--color-neutral-600));
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: rgb(var(--color-neutral-700));
    background: rgb(var(--color-neutral-100));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.horizontal-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 280px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scroll-snap-type: x proximity;
}

.compact-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 118px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
}

.compact-card img {
    width: 78px;
    height: 94px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.compact-info strong,
.compact-info em {
    display: block;
}

.compact-info strong {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.compact-info em {
    color: rgb(var(--color-neutral-500));
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22), transparent);
}

.category-content {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
}

.category-content strong,
.category-content em {
    display: block;
}

.category-content strong {
    font-size: 22px;
}

.category-content em {
    margin-top: 6px;
    color: rgb(var(--color-neutral-200));
    font-style: normal;
}

.sub-hero {
    padding: 74px 0;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(30, 97, 140, 0.86)),
        radial-gradient(circle at 76% 18%, rgba(46, 204, 113, 0.3), transparent 32%);
}

.sub-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.08;
}

.sub-hero p {
    max-width: 760px;
    margin-top: 16px;
    color: rgb(var(--color-neutral-200));
    font-size: 18px;
}

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

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.overview-cover {
    display: block;
    overflow: hidden;
    height: 150px;
    border-radius: 16px;
    background: rgb(var(--color-neutral-800));
}

.overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-overview-card h2 {
    margin-top: 7px;
    font-size: 26px;
}

.category-overview-card p {
    margin: 8px 0 12px;
    color: rgb(var(--color-neutral-600));
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    background: rgb(var(--color-neutral-100));
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 999px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
}

.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 999px;
    outline: 0;
}

.result-count {
    margin: 0;
    color: rgb(var(--color-neutral-600));
    font-weight: 800;
    white-space: nowrap;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 70px minmax(0, 1fr) 120px 120px 100px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgb(var(--color-primary));
    border-radius: 999px;
    font-weight: 900;
}

.rank-poster img {
    width: 58px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-main strong,
.rank-main em {
    display: block;
}

.rank-main strong {
    margin-bottom: 6px;
    font-size: 17px;
}

.rank-main strong a:hover {
    color: rgb(var(--color-primary));
}

.rank-main em,
.rank-metric {
    color: rgb(var(--color-neutral-500));
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.detail-hero {
    padding: 42px 0 72px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.9)),
        radial-gradient(circle at 85% 12%, rgba(41, 128, 185, 0.36), transparent 30%);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

.player-panel {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.28);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #000000;
    border: 0;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.player-cover:hover img {
    opacity: 0.58;
    transform: scale(1.04);
}

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

.play-symbol {
    position: absolute;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: rgba(41, 128, 185, 0.92);
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(41, 128, 185, 0.35);
    font-size: 36px;
    transform: translateX(3px);
}

.detail-info h1 {
    margin-top: 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin-top: 16px;
    color: rgb(var(--color-neutral-200));
    font-size: 17px;
}

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

.detail-meta div {
    padding: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
}

.detail-meta dt {
    color: rgb(var(--color-neutral-300));
    font-size: 12px;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

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

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

.detail-content article {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.detail-content h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.detail-content p + h2 {
    margin-top: 28px;
}

.detail-content p {
    color: rgb(var(--color-neutral-700));
    font-size: 17px;
}

.side-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 10px;
    padding: 20px;
    background: rgb(var(--color-neutral-100));
    border: 1px solid rgb(var(--color-neutral-200));
    border-radius: 20px;
}

.side-panel h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.side-panel a {
    padding: 12px 14px;
    color: rgb(var(--color-neutral-700));
    background: #ffffff;
    border-radius: 14px;
    font-weight: 700;
}

.side-panel a:hover {
    color: #ffffff;
    background: rgb(var(--color-primary));
}

.site-footer {
    padding: 42px 0;
    color: rgb(var(--color-neutral-300));
    background: rgb(var(--color-neutral-900));
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
}

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

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

.footer-links a:hover {
    color: #ffffff;
    background: rgb(var(--color-primary));
}

[hidden] {
    display: none !important;
}

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

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

    .rank-row {
        grid-template-columns: 54px 64px minmax(0, 1fr) 92px;
    }

    .rank-row .rank-metric:nth-last-child(-n + 2) {
        display: none;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #ffffff;
        border: 1px solid rgb(var(--color-neutral-200));
        border-radius: 22px;
        box-shadow: var(--shadow-card);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .quick-search-inner,
    .detail-grid,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 560px;
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .overview-cover {
        height: 220px;
    }

    .side-panel {
        position: static;
    }

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

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

    .section-spacing {
        padding: 52px 0;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

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

    .hero-text h1 {
        font-size: 36px;
    }

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

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

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }

    .hero-dots {
        bottom: 38px;
    }

    .quick-search {
        padding: 34px 0;
    }

    .home-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

    .home-search input {
        min-height: 44px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 14px;
    }

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

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

    .movie-card h3 {
        min-height: auto;
        font-size: 16px;
    }

    .movie-line {
        min-height: auto;
        font-size: 13px;
    }

    .rank-row {
        grid-template-columns: 42px 56px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-metric {
        display: none;
    }

    .rank-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .rank-poster img {
        width: 48px;
        height: 62px;
    }

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

    .detail-content article {
        padding: 20px;
    }
}

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

    .category-card,
    .category-card img {
        min-height: 190px;
    }
}
