:root {
    --color-primary: #e11d48;
    --color-primary-dark: #be123c;
    --color-primary-soft: #fff1f2;
    --color-secondary: #db2777;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #f9fafb;
    --color-card: #ffffff;
    --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 60px rgba(225, 29, 72, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

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

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

.header-inner {
    width: min(1220px, calc(100% - 32px));
    min-height: var(--header-height);
    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;
    letter-spacing: -0.03em;
}

.brand.compact {
    color: #ffffff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.brand-name {
    font-size: clamp(18px, 2vw, 24px);
    background: linear-gradient(135deg, #e11d48, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand.compact .brand-name {
    color: #ffffff;
    background: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary-soft);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-primary);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: linear-gradient(135deg, #881337, #be185d 55%, #e11d48);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide.cover-missing {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(135deg, #881337, #be185d, #111827);
}

.hero-slide img.is-hidden,
.poster img.is-hidden,
.detail-backdrop img.is-hidden {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    min-height: 610px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1220px;
    padding: 80px 0;
    color: #ffffff;
}

.hero-content > * {
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    margin-bottom: 16px;
    color: #fff1f2;
    background: rgba(225, 29, 72, 0.82);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
}

.tag,
.info-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 700;
}

.hero-content .tag,
.page-hero .tag,
.detail-copy .tag,
.info-chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions,
.detail-copy .btn {
    margin-top: 10px;
}

.btn,
.home-search button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary,
.home-search button,
.search-panel button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
    margin-left: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn.small {
    padding: 10px 16px;
    font-size: 14px;
}

.btn:hover,
.home-search button:hover,
.search-panel button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.34);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hero-control.prev {
    left: 28px;
}

.hero-control.next {
    right: 28px;
}

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

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

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

.quick-search-panel,
.content-section {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 10;
    margin-top: -56px;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.quick-search-inner h2,
.section-head h2,
.update-panel h2,
.rank-table-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.quick-search-inner p,
.section-head p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.home-search {
    display: flex;
    gap: 10px;
}

.home-search input,
.filter-toolbar input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--color-text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-toolbar input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

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

.rose-section {
    padding: 76px 24px 34px;
    margin-top: 76px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

.section-head .eyebrow,
.quick-search-inner .eyebrow {
    color: var(--color-primary-dark);
    background: #ffe4e6;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(225, 29, 72, 0.28);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #9f1239, #db2777 45%, #111827);
}

.poster.cover-missing::after {
    content: attr(data-fallback);
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.type-badge,
.rank-badge,
.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    background: rgba(225, 29, 72, 0.9);
}

.rank-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    background: rgba(17, 24, 39, 0.78);
}

.card-body {
    padding: 16px;
}

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

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.card-category {
    display: inline-flex;
    margin-top: 12px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: stretch;
}

.movie-card.compact .poster {
    aspect-ratio: auto;
    min-height: 132px;
}

.movie-card.compact .card-tags {
    display: none;
}

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

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

.category-tile {
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile .category-count {
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.category-tile h3,
.category-overview-copy h2 {
    margin: 18px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p,
.category-tile small {
    color: var(--color-muted);
    line-height: 1.7;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.ranking-list,
.mini-card-list,
.rank-table-panel,
.update-panel,
.story-card,
.info-card,
.search-panel,
.category-overview-block {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.ranking-list,
.mini-card-list {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.update-panel,
.rank-table-panel {
    padding: 22px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%), linear-gradient(135deg, #881337, #be185d 60%, #111827);
}

.page-hero {
    padding: 90px 0 86px;
}

.page-hero-copy {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 850px;
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero,
.sitemap-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
}

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

.category-overview-block {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    padding: 24px;
}

.category-overview-copy .category-count {
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

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

.filter-toolbar,
.search-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
}

.filter-toolbar span,
.search-status {
    color: var(--color-muted);
    font-weight: 800;
}

.detail-hero {
    min-height: 620px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(2px);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44)), linear-gradient(0deg, #111827, transparent 70%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

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

.detail-poster {
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy {
    max-width: 820px;
}

.detail-copy h1 {
    font-size: clamp(42px, 6vw, 72px);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta-grid span {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.detail-main {
    margin-top: -54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #030712;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(0, 0, 0, 0.62));
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 20px 48px rgba(225, 29, 72, 0.36);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 30px;
}

.story-card,
.info-card {
    padding: 28px;
}

.story-card h2,
.info-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 900;
}

.story-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.info-card dl {
    margin: 0;
}

.info-card dt {
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 6px 0 0;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.6;
}

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

.search-app {
    padding-bottom: 80px;
}

.search-panel {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    margin-bottom: 22px;
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 800;
}

.rank-table {
    display: grid;
    gap: 8px;
}

.rank-row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    color: #374151;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #fff1f2;
    transform: translateX(3px);
}

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

.rank-title {
    font-weight: 900;
}

.rank-type,
.rank-score {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.sitemap-list {
    display: grid;
    gap: 24px;
    padding-bottom: 80px;
}

.sitemap-block {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.sitemap-block h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
}

.sitemap-links {
    columns: 4 220px;
    column-gap: 24px;
}

.sitemap-links a {
    display: block;
    break-inside: avoid;
    padding: 6px 0;
    color: #374151;
    font-size: 14px;
}

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

.site-footer {
    margin-top: 86px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 1fr;
    gap: 36px;
    padding: 52px 0 34px;
}

.footer-brand p {
    max-width: 620px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-column a:hover {
    color: #ffffff;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

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

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

    .two-column-layout,
    .detail-content-grid,
    .category-overview-block,
    .search-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--color-border);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-control {
        display: none;
    }

    .quick-search-inner,
    .home-search,
    .detail-layout,
    .detail-meta-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .home-search {
        display: grid;
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .related-grid,
    .mini-card-list.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card.compact {
        grid-template-columns: 78px 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

    .footer-inner {
        gap: 26px;
    }
}

@media (max-width: 520px) {
    .featured-grid,
    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.compact {
        grid-template-columns: 92px 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn.ghost {
        margin-left: 0;
        margin-top: 10px;
    }
}
