* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --pink: #ec4899;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --yellow: #f59e0b;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(239, 246, 255, 0.96), rgba(240, 253, 244, 0.96));
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    font-size: 21px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

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

.brand-text strong {
    font-size: 24px;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 280px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: #fdf2f8;
    color: var(--pink);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 10px 16px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.hero-search button,
.btn-primary,
.ranking-action {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.btn-primary:hover,
.ranking-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.30);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 600;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(236, 72, 153, 0.26), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.10));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 720px;
}

.hero-eyebrow {
    margin-bottom: 14px;
    color: #f9a8d4;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.hero-tags,
.card-tags,
.tag-cloud,
.ranking-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span,
.detail-meta span,
.ranking-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 11px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.btn-primary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    font-weight: 800;
}

.btn-soft {
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: all 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 80px;
    z-index: 3;
    display: flex;
    gap: 10px;
    width: min(620px, calc(100% - 32px));
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
}

.content-section {
    padding: 60px 0;
}

.soft-band {
    background: linear-gradient(90deg, #fdf2f8, #eff6ff, #ecfdf5);
}

.white-band {
    background: #ffffff;
}

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

.heading-main {
    display: flex;
    align-items: center;
    gap: 13px;
}

.heading-main h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.heading-line {
    display: inline-block;
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pink), var(--blue));
}

.heading-line.orange {
    background: linear-gradient(180deg, var(--orange), var(--red));
}

.heading-line.yellow {
    background: linear-gradient(180deg, var(--yellow), var(--orange));
}

.heading-line.green {
    background: linear-gradient(180deg, var(--green), #14b8a6);
}

.heading-line.blue {
    background: linear-gradient(180deg, var(--blue), #06b6d4);
}

.section-more {
    color: var(--pink);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 34px;
    background: rgba(0, 0, 0, 0.0);
    opacity: 0;
    transition: all 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.34);
}

.card-category,
.card-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.card-category {
    top: 10px;
    left: 10px;
    background: var(--pink);
}

.card-duration {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

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

.card-tags span {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.movie-card-horizontal .card-poster {
    aspect-ratio: auto;
    height: 100%;
    min-height: 180px;
}

.movie-card-compact .card-body {
    padding: 12px;
}

.movie-card-compact .card-title {
    min-height: 42px;
    font-size: 15px;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 22px;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card img {
    position: absolute;
    right: -20px;
    bottom: -24px;
    width: 110px;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 0.20;
    transform: rotate(8deg);
}

.category-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
    font-size: 28px;
    background: linear-gradient(135deg, #f9a8d4, #93c5fd);
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.category-card strong {
    margin-bottom: 8px;
    font-size: 19px;
}

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

.page-hero {
    padding: 70px 0;
    color: #ffffff;
}

.gradient-hero {
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
}

.dark-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.32), transparent 32%),
        linear-gradient(135deg, #020617, #111827 45%, #1e3a8a);
}

.page-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    font-size: 22px;
}

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

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

.category-mini-links {
    display: grid;
    gap: 7px;
}

.category-mini-links a {
    color: var(--pink);
    font-weight: 700;
}

.category-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
}

.category-sidebar {
    position: sticky;
    top: 98px;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.category-sidebar h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.side-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
}

.side-link:hover,
.side-link.is-current {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--blue));
}

.filter-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
}

.filter-panel select {
    padding: 11px 16px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 120px 62px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.ranking-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

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

.ranking-num {
    font-size: 34px;
    font-weight: 900;
    text-align: center;
    color: var(--orange);
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--muted);
}

.ranking-meta span,
.detail-meta span {
    background: #f3f4f6;
    color: #4b5563;
}

.player-top {
    padding: 24px 0 34px;
    background: #020617;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #d1d5db;
    font-size: 14px;
}

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

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

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(236, 72, 153, 0.28), transparent 28%),
        rgba(0, 0, 0, 0.44);
    font-size: 18px;
    font-weight: 800;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.large-play {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.30);
    font-size: 34px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.detail-main,
.detail-box {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.detail-main {
    padding: 30px;
}

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

.detail-main h2 {
    margin: 28px 0 12px;
    font-size: 22px;
}

.detail-main p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.detail-lead {
    margin: 18px 0 16px !important;
    color: #111827 !important;
    font-size: 19px !important;
    font-weight: 700;
}

.tag-cloud {
    margin: 18px 0 4px;
}

.tag-cloud span {
    background: #fdf2f8;
    color: var(--pink);
    font-weight: 700;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-box {
    padding: 22px;
}

.detail-box h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.detail-box dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.detail-box dt {
    color: var(--muted);
}

.detail-box dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.search-results {
    padding-top: 48px;
}

.site-footer {
    background: #111827;
    color: #e5e7eb;
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 460px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-block;
    }

    .mobile-nav.is-open {
        display: block;
    }

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

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

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

    .category-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 76px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.42));
    }

    .hero-search {
        bottom: 86px;
        flex-direction: column;
        border-radius: 24px;
    }

    .section-heading,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.three,
    .horizontal-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .card-poster {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

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

    .ranking-item {
        grid-template-columns: 84px 42px 1fr;
    }

    .ranking-action {
        grid-column: 3;
        width: max-content;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .movie-grid.three,
    .horizontal-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 48px 0;
    }

    .detail-main {
        padding: 22px;
    }
}
