:root {
    --primary: #0284c7;
    --primary-light: #0ea5e9;
    --secondary: #14b8a6;
    --secondary-dark: #0f766e;
    --accent: #f97316;
    --ink: #171717;
    --muted: #737373;
    --line: #e7e5e4;
    --soft: #f5f5f4;
    --white: #ffffff;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 36%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    color: #111827;
}

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

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

.desktop-nav a {
    color: #3f3f46;
    font-weight: 700;
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--primary);
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.header-search input {
    width: 220px;
    border: 0;
    background: transparent;
    outline: 0;
    padding: 8px 8px 8px 14px;
}

.header-search button,
.primary-button,
.big-search button,
.rank-action,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
    padding: 8px 16px;
}

.header-search button:hover,
.primary-button:hover,
.big-search button:hover,
.rank-action:hover,
.filter-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
    filter: saturate(1.08);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    padding: 0 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-brand {
    font-weight: 900;
    color: var(--primary);
}

.mobile-panel a {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
}

.mobile-panel a.is-active {
    color: var(--primary);
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}

.mobile-panel button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--primary);
    font-weight: 800;
}

.hero-slider {
    min-height: 82vh;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1s ease;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

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

.hero-content {
    width: min(760px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding: 0 0 88px;
    color: var(--white);
}

.hero-kicker,
.detail-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 900px;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-row,
.detail-meta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta-card span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 900;
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-tools {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
}

.hero-tools button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-size: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--white);
}

.hero-side-list {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 92px;
    width: 318px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 12px;
    z-index: 4;
}

.side-title {
    color: var(--white);
    font-weight: 900;
}

.hero-side-list a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    color: var(--white);
}

.hero-side-list img {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-side-list strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-side-list small {
    color: rgba(255, 255, 255, 0.68);
}

.section-wrap,
.page-main .section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-raised {
    margin-top: -34px;
    position: relative;
    z-index: 8;
    border-radius: 34px 34px 0 0;
    background: linear-gradient(180deg, #ffffff, #fafafa);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading span,
.page-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.search-panel h2,
.related-box h2,
.detail-main-copy h1,
.detail-main-copy h2 {
    margin: 0 0 12px;
    color: #111827;
    line-height: 1.16;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.section-heading p,
.page-hero p,
.search-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

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

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

.movie-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(14, 165, 233, 0.35);
}

.poster-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-card img,
.rank-cover img,
.detail-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-card img {
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.play-chip,
.poster-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
}

.poster-rank {
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #ef4444);
}

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

.movie-card-title {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card-title:hover {
    color: var(--primary);
}

.movie-meta {
    margin: 8px 0;
    color: #78716c;
    font-size: 13px;
    font-weight: 700;
}

.movie-desc {
    min-height: 46px;
    margin: 0 0 12px;
    color: #525252;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    color: var(--secondary-dark);
    background: #ccfbf1;
    backdrop-filter: none;
}

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

.category-card {
    min-height: 180px;
    padding: 26px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    filter: saturate(1.08);
}

.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 78px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-num {
    font-size: 22px;
    font-weight: 950;
    color: var(--primary);
    text-align: center;
}

.rank-cover {
    width: 78px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
}

.rank-title {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.rank-content p {
    margin: 6px 0;
    color: #525252;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-content span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rank-action {
    padding: 10px 18px;
    white-space: nowrap;
}

.search-panel {
    position: sticky;
    top: 104px;
    padding: 34px;
    border-radius: 30px;
    color: #111827;
    background: linear-gradient(135deg, #f0f9ff, #f0fdfa);
    box-shadow: var(--shadow);
}

.big-search {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.big-search input {
    min-width: 0;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 999px;
    padding: 14px 18px;
    outline: 0;
}

.big-search button {
    padding: 14px 22px;
}

.quick-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.quick-links a,
.text-link {
    color: var(--primary);
    font-weight: 900;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 92px 24px 36px;
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
    min-height: 280px;
    display: flex;
    align-items: end;
}

.category-preview {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.filter-shell {
    padding-top: 32px;
}

.filter-bar {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px 14px;
    outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus,
.big-search input:focus,
.header-search input:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.filter-bar button {
    padding: 12px 18px;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.empty-state.is-visible {
    display: block;
}

.detail-page {
    background: #ffffff;
}

.detail-hero {
    min-height: 760px;
    padding-top: 76px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: stretch;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    cursor: pointer;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-large {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    font-size: 30px;
    padding-left: 5px;
}

.player-cover strong {
    font-size: clamp(22px, 3vw, 36px);
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.detail-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.detail-side img {
    aspect-ratio: 3 / 4.1;
    border-radius: 24px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
    background: #111827;
}

.detail-meta-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

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

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

.detail-main-copy h1 {
    margin-top: 18px;
    font-size: clamp(30px, 4vw, 48px);
}

.detail-main-copy h2 {
    margin-top: 34px;
    font-size: 26px;
}

.detail-main-copy p {
    color: #3f3f46;
    font-size: 17px;
    line-height: 1.9;
}

.lead-text {
    font-size: 20px;
    color: #27272a;
    font-weight: 700;
}

.large-tags {
    margin: 22px 0;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.info-list div {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.info-list dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 900;
}

.related-box {
    position: sticky;
    top: 104px;
}

.related-box h2 {
    font-size: 26px;
}

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

.movie-card-small .movie-card-title {
    font-size: 16px;
}

.movie-card-small .movie-desc {
    display: none;
}

.site-footer {
    margin-top: 48px;
    background: #111827;
    color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    display: flex;
    gap: 16px;
    max-width: 640px;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 8px;
}

.footer-brand p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

    .hero-side-list {
        display: none;
    }

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        height: 68px;
    }

    .hero-slider {
        min-height: 78vh;
    }

    .hero-content {
        margin-left: 24px;
        padding-bottom: 82px;
    }

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

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

    .detail-side {
        grid-template-columns: 180px 1fr;
        align-items: start;
    }

    .related-box,
    .search-panel {
        position: static;
    }

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

    .rank-row {
        grid-template-columns: 48px 66px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        text-align: center;
    }

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

@media (max-width: 620px) {
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 20px;
    }

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

    .hero-actions,
    .big-search,
    .mobile-panel form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .section-wrap,
    .page-main .section-wrap,
    .category-preview {
        padding: 46px 18px;
    }

    .page-hero {
        padding: 74px 18px 20px;
    }

    .detail-inner {
        padding: 20px 18px 42px;
    }

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

    .detail-side img {
        max-width: 220px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
