:root {
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --blue: #3b82f6;
    --blue-soft: #dbeafe;
    --purple: #8b5cf6;
    --purple-soft: #ede9fe;
    --rose: #fb7185;
    --rose-soft: #ffe4e6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
    --soft-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 650;
    transition: color 0.25s ease;
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav-link {
    padding: 12px 14px;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 14px;
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    background: linear-gradient(120deg, #f9a8d4 0%, #c4b5fd 48%, #93c5fd 100%);
}

.hero-stage {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 48px;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -80px -80px 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.15);
    opacity: 0.55;
    transform: scale(1.08);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 12px 34px rgba(15, 23, 42, 0.22);
}

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

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
}

.hero-tags,
.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.tag {
    color: #4b5563;
    background: #f3f4f6;
}

.tag.pink {
    color: #be185d;
    background: var(--pink-soft);
}

.tag.blue {
    color: #1d4ed8;
    background: var(--blue-soft);
}

.tag.purple {
    color: #6d28d9;
    background: var(--purple-soft);
}

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

.primary-btn,
.ghost-btn,
.sub-hero-actions a,
.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(236, 72, 153, 0.26);
}

.ghost-btn,
.sub-hero-actions a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.primary-btn:hover,
.ghost-btn:hover,
.sub-hero-actions a:hover,
.pill-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    display: block;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
    transform: rotate(2deg);
}

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

.hero-poster span,
.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 48px;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22), rgba(15, 23, 42, 0.02) 60%);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

.hero-thumbs {
    position: relative;
    z-index: 5;
    width: min(980px, calc(100% - 32px));
    margin: -66px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.hero-thumb img {
    width: 44px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 800;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 92px;
    background: radial-gradient(130% 110% at 50% -40%, transparent 58%, #ffffff 59%);
}

.home-search-band,
.category-showcase,
.content-section,
.split-section,
.overview-grid,
.ranking-featured,
.ranking-table,
.filter-panel,
.detail-layout,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: center;
    margin-top: 72px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 32px;
    box-shadow: var(--soft-shadow);
}

.home-search-band h2,
.section-heading h2,
.sub-hero h1,
.filter-heading h2,
.detail-card h1,
.detail-card h2,
.side-panel h2,
.ranking-table h2 {
    margin: 0;
    color: #111827;
    line-height: 1.18;
}

.home-search-band h2 {
    font-size: clamp(24px, 3vw, 36px);
}

.home-search-band p {
    margin: 12px 0 0;
    color: var(--muted);
}

.home-search-form {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.home-search-form input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.home-search-form input {
    padding: 0 14px;
}

.home-search-form button {
    min-width: 102px;
    height: 44px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.category-showcase,
.content-section,
.split-section,
.overview-grid,
.ranking-featured,
.ranking-table,
.filter-panel,
.detail-layout {
    margin-top: 76px;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 40px);
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 20px;
}

.section-heading.compact span {
    font-size: 22px;
    font-weight: 900;
}

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

.category-card,
.category-overview-card,
.highlight-panel,
.ranking-card,
.detail-card,
.side-panel,
.cover-panel,
.player-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.category-card {
    position: relative;
    min-height: 210px;
    padding: 28px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-hero-card:hover,
.ranking-row:hover,
.mini-movie:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -52px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    opacity: 0.22;
    background: currentColor;
}

.category-card.pink,
.category-overview-card.pink {
    color: var(--pink);
    background: linear-gradient(135deg, #fff1f2, #fce7f3);
}

.category-card.blue,
.category-overview-card.blue {
    color: var(--blue);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.category-card.purple,
.category-overview-card.purple {
    color: var(--purple);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.category-card.rose,
.category-overview-card.rose {
    color: var(--rose);
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

.category-icon {
    display: block;
    margin-bottom: 18px;
    font-size: 34px;
}

.category-card strong {
    display: block;
    color: #111827;
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card em,
.category-card small {
    display: block;
    color: #4b5563;
    font-style: normal;
}

.category-card small {
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.movie-card:hover img,
.ranking-hero-card:hover img,
.mini-movie:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    opacity: 0;
    font-size: 38px;
    transition: opacity 0.25s ease;
}

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

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.tag-row .tag {
    padding: 4px 8px;
    font-size: 11px;
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

.ranking-card,
.highlight-panel {
    padding: 24px;
}

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

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

.mini-movie {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f9fafb;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mini-movie:hover {
    background: #ffffff;
}

.mini-movie img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.mini-movie strong,
.mini-movie small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.mini-movie strong {
    color: #111827;
    -webkit-line-clamp: 2;
}

.mini-movie small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
}

.rank-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    border-radius: 12px;
    font-weight: 900;
    font-size: 13px;
}

.gradient-cta {
    width: min(980px, calc(100% - 32px));
    margin: 86px auto 0;
    padding: 54px 30px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(139, 92, 246, 0.28);
}

.gradient-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
}

.gradient-cta p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.gradient-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    color: var(--pink);
    background: #ffffff;
    border-radius: 999px;
    font-weight: 900;
}

.sub-hero {
    padding: 82px max(16px, calc((100vw - 1180px) / 2)) 76px;
    color: #ffffff;
    background: linear-gradient(120deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.sub-hero.pink {
    background: linear-gradient(120deg, #f472b6, #c084fc, #60a5fa);
}

.sub-hero.blue {
    background: linear-gradient(120deg, #60a5fa, #a78bfa, #f9a8d4);
}

.sub-hero.purple {
    background: linear-gradient(120deg, #a78bfa, #f0abfc, #93c5fd);
}

.sub-hero.rose {
    background: linear-gradient(120deg, #fb7185, #f9a8d4, #93c5fd);
}

.sub-hero.gradient-soft {
    background: linear-gradient(120deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.sub-hero h1 {
    max-width: 860px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 58px);
}

.sub-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

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

.category-overview-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.category-overview-head {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

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

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

.category-overview-head p {
    margin: 0;
    color: #4b5563;
}

.pill-link {
    margin-top: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.filter-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 30px;
    box-shadow: var(--soft-shadow);
}

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

.filter-heading p {
    margin: 0;
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.filter-controls label {
    display: grid;
    gap: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    height: 48px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.empty-state {
    margin: 18px 0 0;
    padding: 18px;
    color: var(--muted);
    text-align: center;
    background: #f9fafb;
    border-radius: 18px;
}

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

.ranking-hero-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 430px;
    border-radius: 30px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.ranking-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
}

.ranking-medal,
.ranking-hero-card strong,
.ranking-hero-card em {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
}

.ranking-medal {
    top: 22px;
    width: max-content;
    padding: 7px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ranking-hero-card strong {
    bottom: 72px;
    color: #ffffff;
    font-size: 24px;
}

.ranking-hero-card em {
    bottom: 24px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-table {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr) minmax(240px, 0.85fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-num.wide {
    width: 44px;
    height: 44px;
}

.ranking-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-row-main strong,
.ranking-row-main small,
.ranking-row-desc {
    display: block;
}

.ranking-row-main strong {
    color: #111827;
    font-size: 17px;
}

.ranking-row-main small,
.ranking-row-desc {
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

.player-card {
    padding: 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(2, 6, 23, 0.42));
    border: 0;
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.big-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.28);
    font-size: 34px;
}

.detail-card,
.side-panel,
.cover-panel {
    padding: 24px;
}

.detail-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #be185d;
    background: var(--pink-soft);
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.detail-card h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.detail-card h2 {
    margin-top: 26px;
    margin-bottom: 12px;
    font-size: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.detail-meta span {
    padding: 7px 12px;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.lead-text {
    color: #374151;
    font-size: 18px;
    font-weight: 650;
}

.detail-card p {
    margin: 0 0 14px;
    color: #4b5563;
}

.review-card {
    background: linear-gradient(135deg, #eff6ff, #fdf2f8);
}

.detail-side {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 20px;
}

.cover-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 18px;
}

.primary-btn.full {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.side-panel dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

.side-panel dt {
    color: #9ca3af;
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: #374151;
}

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

.related-section {
    margin-top: 54px;
}

.compact-card .movie-desc {
    -webkit-line-clamp: 2;
}

.site-footer {
    margin-top: 90px;
    padding: 56px 0 26px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

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

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: var(--muted);
    font-size: 14px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #111827;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

    .detail-side {
        position: static;
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-stage {
        min-height: 660px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
        padding: 32px 0 80px;
    }

    .hero-poster {
        width: min(270px, 72vw);
        margin: 0 auto;
        order: -1;
    }

    .hero-thumbs {
        display: none;
    }

    .home-search-band,
    .filter-heading,
    .section-heading {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

    .home-search-form {
        border-radius: 22px;
    }

    .category-grid,
    .overview-grid,
    .ranking-featured,
    .highlight-wrap,
    .footer-grid,
    .filter-controls,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 44px 64px minmax(0, 1fr);
    }

    .ranking-row-desc {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        min-height: 64px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-copy p,
    .sub-hero p {
        font-size: 16px;
    }

    .movie-grid,
    .listing-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-search-band,
    .filter-panel,
    .category-card,
    .detail-card,
    .side-panel,
    .cover-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .home-search-form {
        display: grid;
    }

    .home-search-form button {
        width: 100%;
    }

    .sub-hero {
        padding-top: 58px;
        padding-bottom: 54px;
    }

    .mini-movie {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .mini-movie .rank-num {
        display: none;
    }
}
