
:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #1e293b;
    --panel-soft: rgba(30, 41, 59, 0.64);
    --line: #334155;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --muted-deep: #64748b;
    --cyan: #06b6d4;
    --cyan-bright: #22d3ee;
    --blue: #2563eb;
    --yellow: #eab308;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links > a,
.nav-dropdown > a {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 180ms ease;
}

.nav-links > a:hover,
.nav-dropdown:hover > a {
    color: var(--cyan-bright);
}

.nav-dropdown {
    position: relative;
    padding: 22px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 172px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 180ms ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.dropdown-menu a:hover {
    color: var(--cyan-bright);
    background: rgba(51, 65, 85, 0.8);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #0f172a;
}

.nav-search input {
    width: 210px;
    padding: 9px 14px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search button {
    padding: 9px 14px;
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--bg);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.25) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 44%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    color: var(--cyan-bright);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.page-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button,
.search-panel button {
    color: white;
    border: 0;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.24);
}

.primary-button:hover,
.search-panel button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(203, 213, 225, 0.28);
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    border-color: rgba(34, 211, 238, 0.55);
    color: var(--cyan-bright);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: white;
    border: 1px solid rgba(203, 213, 225, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 32px;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 22px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: #475569;
    cursor: pointer;
    transition: all 180ms ease;
}

.hero-dot.is-active {
    width: 44px;
    background: var(--cyan);
}

.section {
    padding: 72px 0;
}

.section-gradient {
    background: linear-gradient(180deg, var(--bg-soft), #1e293b);
}

.section-gradient.reverse {
    background: linear-gradient(180deg, #1e293b, var(--bg-soft));
}

.section-flat {
    background: #1e293b;
}

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

.section-heading h2,
.panel-heading h2,
.detail-sidebar h2,
.more-related h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.66);
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.16);
    transform: translateY(-4px);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.featured-large:hover img,
.featured-small:hover img,
.ranking-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 65%);
}

.rating-badge,
.meta-badge {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    color: white;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
}

.rating-badge {
    top: 10px;
    right: 10px;
    color: #fde68a;
}

.meta-badge {
    right: 10px;
    bottom: 10px;
}

.movie-info {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.movie-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .movie-info strong,
.compact-card:hover strong,
.rank-item:hover strong,
.ranking-card:hover strong {
    color: var(--cyan-bright);
}

.movie-info small,
.movie-info em,
.ranking-content small,
.ranking-content em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    -webkit-box-orient: vertical;
}

.movie-info em {
    -webkit-line-clamp: 2;
}

.scroll-shell {
    position: relative;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 28px;
}

.scroll-button.left {
    left: -14px;
}

.scroll-button.right {
    right: -14px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 36%),
        #1e293b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
    border-color: rgba(34, 211, 238, 0.64);
    transform: translateY(-3px);
}

.category-tile span,
.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile span {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.category-tile strong {
    margin: 12px 0;
    color: var(--cyan-bright);
    font-size: 38px;
    line-height: 1;
}

.category-tile small {
    color: var(--muted);
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.8fr);
    gap: 34px;
    align-items: start;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
}

.featured-large,
.featured-small,
.compact-card,
.rank-item,
.ranking-card {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    background: #1e293b;
    transition: border-color 180ms ease, transform 180ms ease;
}

.featured-large,
.featured-small {
    position: relative;
    border-radius: 20px;
}

.featured-large {
    min-height: 430px;
}

.featured-large img,
.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.featured-copy,
.featured-small span {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 8px;
    padding: 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.featured-copy small,
.featured-small small {
    color: var(--cyan-bright);
    font-weight: 800;
}

.featured-copy strong {
    font-size: 28px;
    line-height: 1.15;
}

.featured-copy em,
.featured-small em {
    color: #cbd5e1;
    font-style: normal;
}

.featured-side {
    display: grid;
    gap: 20px;
}

.featured-small {
    min-height: 130px;
}

.featured-small strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading a {
    color: var(--cyan-bright);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
}

.rank-no {
    color: var(--cyan-bright);
    font-size: 22px;
    font-weight: 900;
}

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

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

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

.rank-copy small,
.rank-item em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-item em,
.ranking-score {
    color: #fde68a;
    font-weight: 900;
}

.page-hero {
    padding: 88px 0;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34%),
        linear-gradient(180deg, #020617, #0f172a);
}

.compact-page-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 5vw, 58px);
}

.page-count {
    margin: 0 0 22px;
    color: var(--muted);
    text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    padding: 9px 13px;
    border-radius: 12px;
    text-align: center;
    background: #1e293b;
    color: #cbd5e1;
}

.pagination .active {
    color: white;
    background: var(--cyan);
}

.pagination .disabled {
    opacity: 0.45;
}

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

.category-overview-block .section-heading {
    margin-bottom: 18px;
}

.ranking-list-large {
    display: grid;
    gap: 14px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 70px 170px minmax(0, 1fr) 90px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
}

.ranking-card img {
    width: 170px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 300ms ease;
}

.ranking-number {
    color: var(--cyan-bright);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.ranking-content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.ranking-content em {
    -webkit-line-clamp: 1;
}

.ranking-score {
    text-align: right;
    font-size: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: min(860px, 100%);
    margin-top: 30px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(15, 23, 42, 0.82);
}

.filter-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.filter-row label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
    text-align: center;
}

.detail-page {
    padding: 34px 0 72px;
    background: linear-gradient(180deg, #0f172a, #1e293b 45%, #0f172a);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.8fr);
    gap: 32px;
    align-items: start;
}

.detail-main,
.detail-sidebar,
.narrow-copy {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: white;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
    font-size: 30px;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.detail-copy {
    margin-top: 28px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.detail-score {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 14px;
    background: rgba(234, 179, 8, 0.1);
    font-size: 22px;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span,
.tag-list span {
    padding: 7px 11px;
    color: #cbd5e1;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.72);
    font-size: 13px;
}

.tag-list span {
    color: var(--cyan-bright);
    background: rgba(6, 182, 212, 0.12);
}

blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    color: #e2e8f0;
    border-left: 4px solid var(--cyan);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.06));
    font-size: 18px;
    font-style: italic;
}

.copy-block {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(51, 65, 85, 0.66);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.copy-block h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 24px;
}

.copy-block p {
    margin: 0;
    color: #cbd5e1;
}

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

.detail-sidebar h2 {
    margin-bottom: 18px;
}

.compact-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
}

.compact-card img {
    width: 116px;
    height: 66px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 300ms ease;
}

.compact-card span {
    display: grid;
    min-width: 0;
}

.compact-card strong,
.compact-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.more-related {
    margin-top: 56px;
}

.more-related h2 {
    margin-bottom: 22px;
}

.narrow-copy {
    max-width: 900px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
    padding: 44px 0;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: #cbd5e1;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin-top: 8px;
}

.footer-grid a:hover {
    color: var(--cyan-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

@media (min-width: 768px) {
    .hero {
        height: 80vh;
    }
}

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

    .movie-grid-three,
    .two-column-layout,
    .featured-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 0 0 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-dropdown {
        padding: 0;
    }

    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        margin-top: 8px;
        box-shadow: none;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        min-height: 600px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 8px;
    }

    .movie-grid,
    .movie-grid-three,
    .category-grid,
    .filter-row,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-card {
        grid-template-columns: 48px 110px minmax(0, 1fr);
    }

    .ranking-card img {
        width: 110px;
        height: 70px;
    }

    .ranking-score {
        grid-column: 3;
        text-align: left;
    }

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

@media (max-width: 560px) {
    .container,
    .nav-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

    .section {
        padding: 52px 0;
    }

    .movie-grid,
    .movie-grid-three,
    .category-grid,
    .filter-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item em {
        grid-column: 3;
    }

    .compact-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .compact-card img {
        width: 100px;
        height: 60px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
