:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --rose-50: #fff1f2;
    --rose-300: #fda4af;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(217, 119, 6, 0.16);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(146, 64, 14, 0.15);
    --radius-lg: 28px;
    --radius-md: 18px;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(244, 63, 94, 0.14), transparent 30rem),
        linear-gradient(135deg, var(--amber-50), #ffffff 48%, var(--rose-50));
}

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(245, 158, 11, 0.16);
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 241, 242, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500), var(--amber-300));
    box-shadow: 0 14px 26px rgba(245, 158, 11, 0.28);
    position: relative;
    overflow: hidden;
}

.brand-mark::after,
.movie-card .card-cover::after,
.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.brand:hover .brand-mark::after,
.movie-card:hover .card-cover::after,
.hero-poster:hover::after {
    transform: translateX(120%);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--amber-600), var(--rose-500), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #7c2d12;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
    border-radius: 9px;
}

.hero-section {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    isolation: isolate;
    padding: 78px 0 120px;
}

.hero-bg-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 82%;
    z-index: -1;
    background:
        radial-gradient(circle at 70% 40%, rgba(244, 63, 94, 0.25), transparent 30rem),
        radial-gradient(circle at 28% 30%, rgba(245, 158, 11, 0.28), transparent 28rem);
    filter: blur(4px);
}

.hero-slide {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    position: absolute;
    left: 50%;
    translate: -50% 0;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-copy {
    padding: 34px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.62));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-kicker {
    display: inline-flex;
    padding: 8px 14px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.9);
}

.hero-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #92400e, var(--rose-600), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 720px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 237, 213, 0.92);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 16px 30px rgba(244, 63, 94, 0.2);
}

.ghost-btn {
    color: #9a3412;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(255, 255, 255, 0.7);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(146, 64, 14, 0.16);
}

.primary-btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 40px 80px rgba(146, 64, 14, 0.22);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 76px;
    translate: -50% 0;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 20px;
    translate: -50% 0;
    width: min(720px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 14px;
    outline: none;
    padding: 0 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
}

.hero-search input {
    min-height: 48px;
}

.hero-search button,
.filter-panel button {
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    padding: 0 18px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
    cursor: pointer;
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.category-strip-section {
    padding-top: 24px;
}

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

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-chip strong {
    color: #7c2d12;
}

.category-chip span {
    color: var(--rose-600);
    font-weight: 800;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 237, 213, 0.9);
    box-shadow: 0 12px 24px rgba(146, 64, 14, 0.1);
}

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

.section-title p {
    margin: 5px 0 0;
    color: var(--muted);
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: 24px;
}

.featured-main .movie-card .card-cover img {
    aspect-ratio: 16 / 10;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-card a {
    display: block;
    height: 100%;
}

.card-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(244, 63, 94, 0.12));
}

.card-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    color: #9a3412;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta span {
    min-height: 24px;
    font-size: 12px;
}

.movie-card-horizontal a {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card-horizontal .card-cover img {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
}

.movie-card-horizontal .card-body p {
    min-height: auto;
}

.movie-card-compact .card-body p {
    display: none;
}

.rank-entry {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 36px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7c2d12, #9f1239 60%, #92400e);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-entry-copy span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.rank-entry-copy h2 {
    margin: 18px 0 10px;
    font-size: clamp(30px, 5vw, 56px);
}

.rank-entry-copy p {
    color: #ffedd5;
    line-height: 1.8;
}

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

.rank-mini-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-mini-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.18);
}

.rank-mini-item span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

.rank-mini-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-mini-item em {
    color: #fed7aa;
    font-style: normal;
    font-size: 13px;
}

.section-more {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 38px;
}

.page-hero-slim {
    padding-bottom: 16px;
}

.page-hero span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.85);
    font-weight: 800;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.filter-panel input {
    min-height: 48px;
}

.filter-panel-large input {
    min-height: 56px;
    font-size: 18px;
}

.empty-result {
    display: none;
    padding: 28px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

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

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

.category-overview-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.08);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.category-overview-head a {
    align-self: start;
    padding: 10px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
    font-weight: 800;
    white-space: nowrap;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 152px minmax(0, 1fr) 180px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(146, 64, 14, 0.08);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    display: grid;
    gap: 7px;
    justify-items: end;
    color: var(--muted);
}

.rank-meta strong {
    color: var(--rose-600);
    font-size: 20px;
}

.rank-meta a {
    color: #9a3412;
    font-weight: 800;
}

.detail-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-info-card,
.sidebar-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    background: #111827;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    font-size: 30px;
}

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

.detail-info-card {
    padding: 26px;
}

.detail-info-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.detail-one-line {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin: 18px 0;
}

.prose-block h2 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.prose-block p {
    margin: 0;
    color: #374151;
    line-height: 2;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card h2 {
    margin: 0 0 14px;
}

.sidebar-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

.side-hot-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-hot-item img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.side-hot-item span {
    font-weight: 800;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    color: #ffedd5;
    background: linear-gradient(135deg, #78350f, #881337 55%, #92400e);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 6px 0;
}

.footer-links {
    columns: 2;
}

.footer-copy {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 237, 213, 0.18);
    text-align: center;
}

@media (max-width: 1080px) {
    .site-nav {
        gap: 16px;
        font-size: 14px;
    }

    .hero-slide,
    .featured-grid,
    .rank-entry,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 520px;
        margin: 0 auto;
    }

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

    .rank-row {
        grid-template-columns: 48px 130px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 3;
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: var(--amber-50);
    }

    .hero-section {
        min-height: auto;
        padding: 34px 0 130px;
    }

    .hero-slide {
        gap: 24px;
    }

    .hero-copy {
        padding: 22px;
    }

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

    .hero-search button,
    .filter-panel button {
        min-height: 44px;
    }

    .hero-controls {
        bottom: 94px;
    }

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

    .movie-card-horizontal a {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .rank-mini-item,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .rank-info h2 {
        font-size: 18px;
    }

    .rank-info p,
    .rank-info .tag-list {
        display: none;
    }

    .category-overview-head {
        display: grid;
    }

    .footer-links {
        columns: 1;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 18px;
    }

    .content-section,
    .page-hero,
    .detail-wrap {
        width: min(100% - 22px, 1240px);
    }

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

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

    .detail-info-card,
    .sidebar-card {
        padding: 18px;
    }
}
