:root {
    --bg: #fff7fb;
    --bg-soft: #f8f0ff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.28);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(88, 28, 135, 0.15);
    --shadow-soft: 0 14px 36px rgba(88, 28, 135, 0.12);
    --pink: #ec4899;
    --rose: #f43f5e;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --green: #10b981;
    --slate: #475569;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
        linear-gradient(135deg, #fff7fb 0%, #faf5ff 50%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(22, 12, 36, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
    color: #ffffff;
    font-size: 15px;
}

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

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    padding: 9px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #160c24;
}

.hero-stage {
    position: relative;
    height: 540px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

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

.hero-slide.poster-fallback,
.poster-fallback {
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.88), rgba(139, 92, 246, 0.88)),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), transparent 18rem);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(88, 28, 135, 0.94), rgba(109, 40, 217, 0.68), rgba(15, 23, 42, 0.66)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 50%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: clamp(24px, 6vw, 88px);
    max-width: 680px;
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    margin: 20px 0 0;
    max-width: 760px;
}

.hero-tags,
.detail-tags,
.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.detail-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    backdrop-filter: blur(14px);
}

.hero-actions,
.detail-title-row .primary-button {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    padding: 13px 22px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.ghost-button {
    color: #ffffff;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(88, 28, 135, 0.18);
}

.hero-control-panel {
    position: absolute;
    left: clamp(24px, 6vw, 88px);
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.hero-control-panel button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 26px;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 12px !important;
    height: 12px !important;
    padding: 0;
    font-size: 0 !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.hero-dot.is-active {
    width: 30px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
}

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-mini-card {
    min-height: 110px;
    padding: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.hero-mini-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-mini-card span {
    color: #fbcfe8;
    font-weight: 900;
}

.hero-mini-card strong,
.hero-mini-card small {
    display: block;
}

.hero-mini-card strong {
    margin-top: 6px;
    font-size: 17px;
}

.hero-mini-card small {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

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

.white-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.section-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.20);
}

.section-more,
.text-link {
    color: var(--pink);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(88, 28, 135, 0.22);
}

.poster-frame,
.horizontal-poster,
.poster-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 6rem),
        linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(139, 92, 246, 0.85));
}

.poster-frame {
    aspect-ratio: 3 / 4;
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.movie-type,
.movie-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
}

.movie-type {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.movie-duration {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-hover {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-title {
    display: block;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta-line,
.movie-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 9px;
}

.movie-meta-line a {
    color: var(--pink);
    font-weight: 800;
}

.movie-one-line {
    color: #4b5563;
    min-height: 44px;
    margin: 10px 0 0;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 160px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: var(--shadow-soft);
}

.category-card h3,
.category-overview-card h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 950;
}

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

.category-card span,
.category-overview-card span {
    display: inline-flex;
    margin-top: 10px;
    color: #ffffff;
    font-weight: 900;
}

.category-icon {
    font-size: 34px;
}

.category-posters,
.category-cover {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 120px;
}

.category-posters img,
.category-cover img {
    width: 54px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    margin-left: -18px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    color: #ffffff;
}

.category-cover {
    justify-content: center;
    min-height: 150px;
}

.category-cover img {
    width: 72px;
    height: 108px;
}

.accent-rose,
.category-page-hero.accent-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.accent-violet,
.category-page-hero.accent-violet {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.accent-blue,
.category-page-hero.accent-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.accent-orange,
.category-page-hero.accent-orange {
    background: linear-gradient(135deg, #ea580c, #ef4444);
}

.accent-pink,
.category-page-hero.accent-pink {
    background: linear-gradient(135deg, #ec4899, #fb7185);
}

.accent-slate,
.category-page-hero.accent-slate {
    background: linear-gradient(135deg, #0f172a, #64748b);
}

.accent-indigo,
.category-page-hero.accent-indigo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.accent-green,
.category-page-hero.accent-green {
    background: linear-gradient(135deg, #059669, #14b8a6);
}

.accent-cyan,
.category-page-hero.accent-cyan {
    background: linear-gradient(135deg, #0891b2, #3b82f6);
}

.accent-amber,
.category-page-hero.accent-amber {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.9fr);
    gap: 32px;
    align-items: start;
}

.ranking-preview,
.sidebar-card,
.detail-info-card,
.detail-text-card,
.player-card,
.poster-panel,
.filter-panel,
.text-page {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.86);
}

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

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

.horizontal-card {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.horizontal-poster {
    width: 96px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.horizontal-info p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 14px;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    min-height: 340px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    padding: clamp(30px, 6vw, 70px);
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(88, 28, 135, 0.92));
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 280px;
}

.ranking-hero {
    background: linear-gradient(135deg, #f97316, #be123c, #581c87);
}

.search-hero {
    background: linear-gradient(135deg, #0891b2, #7c3aed, #ec4899);
}

.filter-panel {
    padding: 18px;
    margin-bottom: 28px;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.filter-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: #ffffff;
    color: #334155;
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 30px auto 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 800;
}

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

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

.player-card {
    overflow: hidden;
    padding: 0;
    background: #050816;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.24), transparent 18rem),
        linear-gradient(135deg, #050816, #1e1b4b);
}

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

.video-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-start span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.video-shell.is-playing .video-start {
    opacity: 0;
    visibility: hidden;
}

.video-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
}

.detail-info-card,
.detail-text-card {
    padding: clamp(22px, 3vw, 32px);
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.detail-category {
    display: inline-flex;
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
    margin-bottom: 12px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: var(--muted);
    font-size: 18px;
    margin: 12px 0 0;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-meta-grid span {
    color: var(--muted);
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fafc;
}

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

.detail-tags span,
.detail-chip {
    color: #64748b;
    background: #f1f5f9;
}

.detail-text-card h2,
.sidebar-card h2,
.text-page h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.detail-text-card p,
.text-page p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 92px;
}

.poster-panel {
    padding: 14px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
}

.full-button {
    width: 100%;
    margin-top: 14px;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-ranking .horizontal-card {
    grid-template-columns: auto 70px minmax(0, 1fr);
    padding: 8px;
}

.sidebar-ranking .horizontal-poster {
    width: 70px;
}

.sidebar-ranking .horizontal-info p,
.sidebar-ranking .movie-meta-line {
    display: none;
}

.related-section {
    width: 100%;
    padding: 20px 0 0;
}

.sitemap-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sitemap-categories a {
    color: var(--pink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

.sitemap-list {
    columns: 4 260px;
    column-gap: 28px;
    padding-left: 22px;
}

.sitemap-list li {
    break-inside: avoid;
    margin: 0 0 8px;
    color: #475569;
}

.text-page {
    padding: clamp(24px, 4vw, 42px);
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #581c87, #111827);
    margin-top: 50px;
}

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.72);
}

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

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

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 16px;
}

[data-search-card].is-hidden {
    display: none !important;
}

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

    .two-column-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .ranking-preview,
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }

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

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

    .hero-stage {
        height: 620px;
    }

    .hero-content {
        top: 46%;
        left: 22px;
        right: 22px;
        max-width: none;
    }

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

    .section-heading,
    .detail-title-row {
        align-items: start;
        flex-direction: column;
    }

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

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

    .filter-controls,
    .detail-meta-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .video-shell {
        min-height: 240px;
    }
}

@media (max-width: 560px) {
    .hero,
    .page-hero,
    .content-section,
    .detail-layout,
    .footer-shell {
        width: min(100% - 20px, 1280px);
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .search-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        height: 580px;
    }

    .hero-control-panel {
        left: 22px;
        bottom: 18px;
    }

    .page-hero {
        min-height: 260px;
        border-radius: 24px;
    }

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

    .horizontal-card .ranking-number {
        display: none;
    }

    .horizontal-poster {
        width: 70px;
    }
}
