:root {
    --page-bg: #f6f8f7;
    --surface: #ffffff;
    --surface-soft: #ecfdf5;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #059669;
    --brand-dark: #047857;
    --brand-soft: rgba(5, 150, 105, 0.12);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32rem),
        linear-gradient(180deg, #f8fffc 0%, var(--page-bg) 34%, #eef5f2 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(260px, 360px) auto;
    gap: 22px;
    align-items: center;
    max-width: 1320px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32);
}

.brand-text {
    font-size: 1.35rem;
}

.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.header-search,
.hero-search,
.local-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-search input,
.hero-search input,
.local-search input,
.filter-bar input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input,
.hero-search input,
.local-search input {
    padding: 8px 10px 8px 16px;
}

.header-search button,
.hero-search button,
.local-search button,
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.hero-search button,
.local-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.26);
}

.header-search button:hover,
.hero-search button:hover,
.local-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-1px);
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #064e3b;
    background: #d1fae5;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
}

.hero-slider {
    position: relative;
    max-width: 1320px;
    min-height: 680px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 36px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 42px;
    align-items: center;
    min-height: 680px;
    padding: 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(16, 185, 129, 0.34), transparent 28rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 54%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-list span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-card {
    align-self: center;
    justify-self: end;
    width: min(100%, 390px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-card span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(4, 120, 87, 0.86);
    font-weight: 900;
}

.hero-bottom {
    position: absolute;
    right: 32px;
    bottom: 28px;
    left: 32px;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(260px, 440px) 1fr auto;
    gap: 18px;
    align-items: center;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

.section-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.section-soft {
    margin-top: 72px;
    padding-top: 0;
}

.section-title,
.panel-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-title h2,
.panel-title h2,
.detail-content h2,
.detail-side h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-title a,
.panel-title a {
    color: var(--brand-dark);
    font-weight: 900;
}

.compact-title {
    align-items: center;
}

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

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

.featured-grid .movie-card:first-child {
    grid-row: span 2;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

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

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

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

.poster-type,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 0.75rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-type {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-play {
    position: absolute;
    inset: auto 14px 14px auto;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.9);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: var(--brand-dark);
}

.movie-meta,
.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
}

.movie-meta {
    font-size: 0.84rem;
    -webkit-line-clamp: 1;
}

.movie-desc {
    min-height: 3.2em;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
}

.tag-list {
    margin-top: 12px;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 168px;
}

.movie-card-compact .movie-poster {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-compact .movie-info {
    padding: 14px;
}

.movie-card-compact .movie-title {
    min-height: auto;
    font-size: 0.98rem;
}

.movie-card-compact .movie-desc,
.movie-card-compact .tag-list,
.movie-card-compact .poster-play {
    display: none;
}

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

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #ecfdf5);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(5, 150, 105, 0.16);
}

.category-card strong {
    position: relative;
    z-index: 2;
    font-size: 1.42rem;
    letter-spacing: -0.04em;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 10px 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.category-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    filter: blur(2px);
}

.category-thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    min-height: 74px;
}

.category-thumbs img {
    width: 56px;
    height: 74px;
    margin-right: -12px;
    border: 3px solid #ffffff;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

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

.ranking-panel,
.detail-side {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ecfdf5;
    transform: translateX(3px);
}

.rank-num {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: #0f172a;
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

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

.rank-text strong,
.rank-text em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-text strong {
    font-size: 0.95rem;
}

.rank-text em {
    color: var(--muted);
    font-size: 0.8rem;
    font-style: normal;
}

.page-hero,
.detail-hero {
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 54px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 24rem),
        linear-gradient(135deg, #ffffff, #ecfdf5);
    box-shadow: var(--shadow);
}

.page-hero h1,
.detail-intro h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.page-hero p,
.detail-one-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.85;
}

.local-search {
    max-width: 560px;
    margin-top: 28px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #f8fafc;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button {
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-weight: 800;
    cursor: pointer;
}

.narrow-wrap {
    max-width: 980px;
}

.wide-rank-list .rank-item {
    grid-template-columns: 48px 72px minmax(0, 1fr);
}

.wide-rank-list .rank-item img {
    width: 72px;
    height: 94px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    background:
        radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.24), transparent 24rem),
        linear-gradient(135deg, #ffffff, #f0fdf4);
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.2);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 28px;
}

.watch-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 12px;
    place-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.64));
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 18px 42px rgba(5, 150, 105, 0.36);
    font-size: 2rem;
}

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

.detail-content {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
    margin-top: 0;
    font-size: 1.7rem;
}

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

.detail-content p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 88px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px;
    color: #64748b;
}

.footer-brand {
    color: var(--ink);
    font-size: 1.2rem;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .header-search {
        justify-self: end;
        width: min(100%, 360px);
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-nav.is-open {
        display: flex;
        flex-wrap: wrap;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 54px;
    }

    .hero-card {
        display: none;
    }

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

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

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

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 780px) {
    .header-inner {
        display: flex;
        height: auto;
        min-height: 68px;
        padding: 12px 16px;
    }

    .brand-text {
        font-size: 1.08rem;
    }

    .header-search {
        display: none;
    }

    .hero-slider {
        min-height: 620px;
        margin: 16px 12px 0;
        border-radius: 26px;
    }

    .hero-slide {
        min-height: 620px;
        padding: 38px 24px 200px;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .hero-bottom {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .hero-links {
        display: none;
    }

    .section-wrap,
    .watch-section {
        padding: 50px 14px 0;
    }

    .section-title,
    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .featured-grid .movie-card:first-child {
        grid-row: auto;
    }

    .movie-card-compact {
        display: block;
    }

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

    .movie-card-compact .movie-desc,
    .movie-card-compact .tag-list {
        display: flex;
    }

    .page-hero,
    .detail-hero {
        margin: 16px 12px 0;
        padding: 32px 22px;
        border-radius: 26px;
    }

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

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

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

    .detail-content {
        padding: 24px;
    }
}

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

    .hero-search,
    .local-search {
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button,
    .local-search button {
        width: 100%;
    }

    .rank-item,
    .wide-rank-list .rank-item {
        grid-template-columns: 34px 54px minmax(0, 1fr);
    }

    .wide-rank-list .rank-item img {
        width: 54px;
        height: 72px;
    }
}
