:root {
    --color-pink: #ec4899;
    --color-pink-dark: #db2777;
    --color-sky: #38bdf8;
    --color-sky-dark: #0284c7;
    --color-emerald: #34d399;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fdf2f8;
    --color-border: #e5e7eb;
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 60px rgba(236, 72, 153, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.55), #ffffff 36%, rgba(240, 249, 255, 0.70));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.20));
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.16);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 21px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-sky), var(--color-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #4b5563;
    font-weight: 600;
}

.main-nav a {
    padding: 8px 0;
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--color-pink);
}

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

.nav-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid transparent;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
    background: #ffffff;
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-pink), var(--color-sky));
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    font-size: 24px;
    cursor: pointer;
}

.hero-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.45;
    z-index: -2;
}

.hero-bg-one {
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.55), rgba(236, 72, 153, 0));
}

.hero-bg-two {
    right: -160px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55), rgba(52, 211, 153, 0));
}

.floating-icons span {
    position: absolute;
    font-size: clamp(26px, 5vw, 54px);
    opacity: 0.16;
    animation: float 15s ease-in-out infinite;
    z-index: -1;
}

.floating-icons span:nth-child(1) { left: 12%; top: 18%; animation-delay: 0s; }
.floating-icons span:nth-child(2) { right: 18%; top: 16%; animation-delay: 1.5s; }
.floating-icons span:nth-child(3) { left: 44%; bottom: 14%; animation-delay: 3s; }
.floating-icons span:nth-child(4) { right: 8%; bottom: 24%; animation-delay: 4.5s; }
.floating-icons span:nth-child(5) { left: 7%; bottom: 18%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-28px) rotate(8deg); }
}

.hero-container {
    position: relative;
    padding: 72px 0 56px;
}

.hero-slide {
    display: none;
    align-items: center;
    gap: 52px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    animation: fadeIn 0.55s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-pink-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--color-pink), var(--color-sky), var(--color-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 42px);
    color: #111827;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 680px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-pink), var(--color-sky));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.btn-light {
    color: #374151;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
}

.btn.wide {
    width: 100%;
    margin-top: 18px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
    box-shadow: var(--shadow-hover);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-poster::after,
.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(15, 23, 42, 0.62));
    pointer-events: none;
}

.hero-play,
.card-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    color: var(--color-pink);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    font-size: 30px;
    line-height: 1;
    color: #374151;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d5db;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-sky));
}

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

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

.section-heading h2,
.ranking-panel h2,
.story-card h2,
.player-header h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-heading p,
.ranking-panel p,
.story-card p,
.player-message {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.80);
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.30);
    box-shadow: var(--shadow-hover);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
}

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

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

.card-play {
    width: 52px;
    height: 52px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-category,
.card-duration,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-category {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--color-pink);
}

.card-duration {
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, var(--color-pink));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.24);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.38;
}

.card-body h3 a:hover,
.horizontal-body h3 a:hover,
.category-overview-card a:hover {
    color: var(--color-pink);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-meta,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span,
.tag-row span,
.player-source {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    background: rgba(236, 72, 153, 0.10);
    color: var(--color-pink-dark);
}

.category-band {
    padding: 64px 0;
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.62), rgba(224, 242, 254, 0.62), rgba(209, 250, 229, 0.52));
}

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

.category-tile,
.category-overview-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

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

.category-tile span {
    font-size: 34px;
}

.category-tile strong {
    font-size: 18px;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.player-card,
.story-card,
.filter-panel,
.search-summary {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.80);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-sky));
    font-weight: 900;
}

.horizontal-poster {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.16));
}

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

.horizontal-body h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.horizontal-body p {
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.55;
}

.page-hero {
    padding: 78px 0;
    background: linear-gradient(120deg, rgba(252, 231, 243, 0.9), rgba(224, 242, 254, 0.82), rgba(209, 250, 229, 0.72));
}

.page-hero h1 {
    color: #111827;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.category-overview-card {
    padding: 22px;
}

.category-overview-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.category-overview-head span {
    font-size: 34px;
}

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

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

.category-overview-head strong {
    color: var(--color-pink-dark);
    white-space: nowrap;
}

.category-overview-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #4b5563;
    line-height: 1.9;
}

.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 16px;
}

.filter-panel input {
    flex: 1;
}

.filter-result,
.search-summary {
    color: var(--color-muted);
    font-weight: 700;
}

.filter-result {
    margin: 0 0 22px;
}

.search-summary {
    padding: 18px 20px;
    margin-bottom: 22px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 24px;
}

.hero-search input {
    flex: 1;
    background: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 66px;
    background: #111827;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.45));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-bottom: 32px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(56, 189, 248, 0.25));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.40);
}

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

.detail-info h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.82);
}

.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-meta-grid span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
}

.detail-meta-grid strong {
    color: #fbbf24;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.player-card {
    padding: 24px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-pink);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.player-start strong {
    font-size: 18px;
}

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

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

.story-card {
    padding: 26px;
}

.story-card p {
    color: #374151;
    font-size: 16px;
}

.ranking-subsection {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 38px;
}

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

.wide-list .horizontal-card {
    grid-template-columns: auto 120px minmax(0, 1fr);
}

.site-footer {
    margin-top: 52px;
    padding: 52px 0;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.78), rgba(224, 242, 254, 0.78), rgba(209, 250, 229, 0.62));
    border-top: 1px solid rgba(229, 231, 235, 0.70);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 36px;
}

.site-footer p {
    color: var(--color-muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: #4b5563;
}

.footer-links.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

[data-movie-card].is-hidden {
    display: none;
}

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

    .hero-slide.is-active,
    .split-section,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 340px;
    }

    .hero-poster img {
        min-height: 340px;
    }

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
        flex-wrap: wrap;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 8px 0 18px;
    }

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

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding: 48px 0 36px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-actions,
    .hero-search,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .compact-grid,
    .all-grid,
    .category-grid,
    .category-overview-grid,
    .wide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .horizontal-card,
    .wide-list .horizontal-card {
        grid-template-columns: auto 86px minmax(0, 1fr);
    }

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

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

    .movie-grid,
    .compact-grid,
    .all-grid,
    .category-grid,
    .category-overview-grid,
    .wide-list {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 260px;
    }

    .detail-layout {
        gap: 22px;
    }

    .detail-poster {
        max-width: 260px;
    }

    .player-card,
    .story-card {
        padding: 18px;
    }
}
