:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(6, 182, 212, 0.35);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.18);
    --blue: #2563eb;
    --shadow: 0 24px 80px rgba(2, 8, 23, 0.46);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 8%, rgba(37, 99, 235, 0.18), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.brand-text {
    font-size: 18px;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    color: var(--muted-strong);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link {
    padding: 9px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.14);
}

.header-search {
    padding: 10px 18px;
    border: 1px solid rgba(6, 182, 212, 0.42);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search:hover {
    transform: translateY(-1px);
    background: rgba(6, 182, 212, 0.2);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.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);
    filter: saturate(1.1) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 34%, rgba(2, 6, 23, 0.18) 76%),
        linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #67e8f9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-kicker span {
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
}

.hero-content h1 {
    width: min(720px, 100%);
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    width: min(660px, 100%);
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.7;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span,
.detail-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.12);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    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: #02111a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.34);
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: #22d3ee;
}

.quick-search-section {
    position: relative;
    z-index: 6;
    margin-top: -38px;
}

.quick-search-section .container {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search,
.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.quick-search input,
.search-page-form input,
.category-filter {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
    padding: 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.search-page-form input:focus,
.category-filter:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.quick-search button,
.search-page-form button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    padding: 0 26px;
    color: #02111a;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
}

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

.quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.06);
}

.quick-links a:hover {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.16);
}

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

.alt-block {
    position: relative;
}

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
}

.section-heading > a {
    color: #67e8f9;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.48);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.86);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.82), transparent 52%);
}

.movie-year,
.movie-score {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.movie-year {
    left: 12px;
    background: rgba(2, 6, 23, 0.68);
}

.movie-score {
    right: 12px;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.48);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card h3 a:hover {
    color: #67e8f9;
}

.movie-card p {
    margin: 0 0 14px;
    min-height: 48px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #a5f3fc;
    font-size: 12px;
    background: rgba(6, 182, 212, 0.12);
}

.hero-tag-row {
    margin-bottom: 8px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.8);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transition: transform 0.5s ease;
}

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

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.2));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    margin-bottom: 8px;
    font-size: 20px;
}

.category-tile em {
    color: var(--muted-strong);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.rank-panel {
    padding-bottom: 76px;
}

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

.rank-row,
.ranking-line {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row {
    grid-template-columns: 64px 1fr auto;
    padding: 10px 14px 10px 10px;
}

.ranking-line {
    grid-template-columns: 54px 58px 1fr 200px 70px;
    padding: 10px 16px;
}

.rank-row:hover,
.ranking-line:hover {
    transform: translateX(4px);
    border-color: rgba(6, 182, 212, 0.42);
    background: rgba(15, 23, 42, 0.96);
}

.rank-row img,
.ranking-line img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row-text,
.ranking-main {
    display: grid;
    gap: 5px;
}

.rank-row-text strong,
.ranking-main strong {
    font-size: 16px;
}

.rank-row-text em,
.ranking-main em,
.ranking-genre {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

.ranking-index {
    color: #67e8f9;
    font-size: 20px;
    font-weight: 900;
}

.page-hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.22), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.95));
}

.small-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.small-hero p {
    width: min(720px, 100%);
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.category-toolbar {
    margin-top: 24px;
    width: min(520px, 100%);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
}

.category-cover {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

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

.category-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.84), transparent);
}

.category-overview-card > div {
    padding: 24px 24px 24px 0;
}

.category-overview-card h2 {
    margin: 0 0 12px;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted-strong);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.12);
    font-size: 13px;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.top-rank-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.85);
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.5s ease;
}

.top-rank-card:hover img {
    transform: scale(1.08);
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96), transparent 58%);
}

.top-rank-card strong,
.top-rank-card em,
.top-rank-number {
    position: relative;
    z-index: 1;
}

.top-rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #02111a;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee, #fde68a);
}

.top-rank-card strong {
    font-size: 24px;
    margin-bottom: 7px;
}

.top-rank-card em {
    color: var(--muted-strong);
    font-style: normal;
}

.search-page-form {
    width: min(720px, 100%);
    margin-top: 28px;
}

.search-status {
    min-height: 24px;
    margin-bottom: 22px;
    color: var(--muted-strong);
}

.detail-wrap {
    padding: 38px 0 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 0.86fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #02111a;
    font-size: 32px;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.42);
}

.play-overlay strong {
    font-size: 20px;
}

.detail-info {
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.lead-text {
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.text-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}

.text-panel + .text-panel {
    margin-top: 22px;
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-panel p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.side-poster,
.side-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
}

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

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: var(--muted-strong);
}

.side-card dd a:hover {
    color: #67e8f9;
}

.compact-rank .rank-row {
    grid-template-columns: 54px 1fr auto;
    padding: 8px;
}

.compact-rank .rank-row img {
    width: 48px;
    height: 64px;
}

.compact-rank .rank-row-score {
    display: none;
}

.related-section {
    padding-bottom: 76px;
}

.empty-state {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted-strong);
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    margin: 0;
}

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: minmax(220px, 0.35fr) 1fr;
    }

    .compact-rank {
        grid-column: 1 / -1;
    }
}

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

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

    .hero {
        height: 560px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58)),
            linear-gradient(0deg, #020617 0%, transparent 45%);
    }

    .movie-grid,
    .featured-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .ranking-line {
        grid-template-columns: 42px 52px 1fr 56px;
    }

    .ranking-genre {
        display: none;
    }

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

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

    .brand-text {
        font-size: 16px;
    }

    .hero {
        height: 620px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

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

    .hero-actions,
    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-search,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

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

    .category-overview-card > div {
        padding: 0 20px 22px;
    }

    .category-cover {
        min-height: 180px;
    }

    .detail-info,
    .side-card {
        padding: 20px;
    }

    .rank-row {
        grid-template-columns: 56px 1fr auto;
    }

    .ranking-line {
        grid-template-columns: 36px 48px 1fr;
    }

    .ranking-score {
        display: none;
    }
}
