:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #f97316;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --green: #10b981;
    --teal: #14b8a6;
    --red: #ef4444;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: #f3d4db;
    --panel: #ffffff;
    --shadow: 0 18px 60px rgba(190, 18, 60, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 36%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(190, 18, 60, 0.08);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

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

.brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link,
.nav-button {
    padding: 10px 0;
    border: 0;
    color: #374151;
    background: transparent;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.dropdown-menu a:hover {
    color: var(--rose);
    background: #fff1f2;
}

.header-search {
    display: flex;
    align-items: center;
    width: 290px;
    flex-shrink: 0;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.search-panel select,
.filter-bar select {
    border: 1px solid #fecdd3;
    outline: none;
    background: #ffffff;
    color: var(--text);
}

.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px 0 0 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.search-panel select:focus,
.filter-bar select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.header-search button,
.mobile-search button,
.search-panel button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 0 999px 999px 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--rose);
    font-size: 26px;
}

.mobile-menu {
    border-top: 1px solid #ffe4e6;
    padding: 14px 22px 20px;
    background: #ffffff;
}

.mobile-search {
    display: flex;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px 0 0 999px;
}

.mobile-link,
.mobile-category-links a {
    display: block;
    padding: 10px 2px;
    color: #374151;
    font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover,
.mobile-category-links a:hover {
    color: var(--rose);
}

.mobile-category-title {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
}

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

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
}

.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-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.23;
    filter: saturate(1.25) contrast(1.08);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.32), transparent 24%),
        linear-gradient(90deg, rgba(159, 18, 57, 0.9) 0%, rgba(219, 39, 119, 0.74) 48%, rgba(249, 115, 22, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff1f2;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-kicker {
    color: var(--rose);
    background: #fff1f2;
    border-color: #ffe4e6;
}

.hero-content h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 690px;
    margin: 24px 0 0;
    color: #fff7ed;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.card-tags span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

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

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(159, 18, 57, 0.22);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(10px);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

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

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

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

.section-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 68px 22px;
}

.white-panel {
    max-width: 1180px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-more {
    color: var(--rose);
    font-weight: 900;
}

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

.category-card,
.category-large-card {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(190, 18, 60, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-large-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 24px 60px rgba(190, 18, 60, 0.24);
}

.category-card::after,
.category-large-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -32px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 36px;
}

.category-icon.large {
    font-size: 54px;
}

.category-card strong {
    display: block;
    font-size: 21px;
    font-weight: 900;
}

.category-card small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.category-card em {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.from-rose.to-pink,
.from-rose {
    background: linear-gradient(135deg, #fb7185, #ec4899);
}

.from-purple.to-indigo,
.from-purple {
    background: linear-gradient(135deg, #a78bfa, #6366f1);
}

.from-slate.to-cyan,
.from-slate {
    background: linear-gradient(135deg, #475569, #06b6d4);
}

.from-zinc.to-red,
.from-zinc {
    background: linear-gradient(135deg, #3f3f46, #ef4444);
}

.from-pink.to-orange,
.from-pink {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.from-yellow.to-orange,
.from-yellow {
    background: linear-gradient(135deg, #facc15, #f97316);
}

.from-blue.to-cyan,
.from-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.from-amber.to-stone,
.from-amber {
    background: linear-gradient(135deg, #f59e0b, #78716c);
}

.from-teal.to-green,
.from-teal {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.from-red.to-fuchsia,
.from-red {
    background: linear-gradient(135deg, #ef4444, #d946ef);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 205, 211, 0.75);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #fff1f2);
    box-shadow: 0 10px 32px rgba(190, 18, 60, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 22px 52px rgba(190, 18, 60, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    height: 252px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.card-duration {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.22s ease;
}

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

.card-content {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-meta a {
    color: var(--rose);
}

.movie-card h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

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

.card-tags span {
    color: var(--rose);
    background: #ffe4e6;
    font-size: 12px;
}

.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #fecdd3;
}

.compact-card {
    position: relative;
    display: block;
    flex: 0 0 280px;
    height: 178px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: #111827;
    scroll-snap-align: start;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.compact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.72));
}

.compact-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    font-size: 18px;
    line-height: 1.35;
}

.compact-card em {
    margin-top: 5px;
    color: #ffe4e6;
    font-size: 13px;
    font-style: normal;
}

.score-section {
    background: linear-gradient(90deg, #ffedd5, #ffe4e6, #fce7f3);
}

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

.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 78px 22px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
}

.page-hero > div {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 780px;
    color: #fff7ed;
    font-size: 19px;
    line-height: 1.8;
}

.slim-hero {
    min-height: 250px;
}

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

.category-large-card {
    min-height: 240px;
}

.category-main-link span {
    font-size: 44px;
}

.category-main-link h2 {
    margin: 12px 0 10px;
    font-size: 30px;
}

.category-main-link p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

.category-samples {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar,
.search-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
}

.filter-bar input,
.search-panel input {
    flex: 1;
}

.search-panel button {
    height: 44px;
    min-width: 110px;
    border-radius: 14px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) 110px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ffe4e6;
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(190, 18, 60, 0.1);
}

.ranking-rank {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 18px;
    font-weight: 900;
}

.ranking-poster {
    display: block;
    height: 118px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffe4e6;
}

.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info h3 a:hover {
    color: var(--rose);
}

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

.ranking-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ranking-info div a {
    color: var(--rose);
}

.ranking-score {
    text-align: right;
}

.ranking-score strong,
.ranking-score span {
    display: block;
}

.ranking-score strong {
    color: var(--orange);
    font-size: 28px;
    line-height: 1;
}

.ranking-score span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 22px 72px;
    background: linear-gradient(120deg, #9f1239, #db2777, #f97316);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.18;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.2);
    transform: scale(1.04);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(190, 18, 60, 0.5));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #ffe4e6;
    font-size: 14px;
    font-weight: 800;
}

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

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

.detail-poster {
    display: block;
    height: 390px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    background: #ffe4e6;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 62px);
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 22px;
}

.detail-tags a {
    color: #fff1f2;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.detail-stats span {
    padding: 10px 14px;
    border-radius: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.player-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.36), rgba(3, 7, 18, 0.72));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 36px);
}

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

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.detail-content article h2,
.info-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.detail-content article h2:not(:first-child) {
    margin-top: 34px;
}

.detail-content article p {
    margin: 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.info-card {
    align-self: start;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff1f2, #ffffff);
    border: 1px solid #ffe4e6;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--muted);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.info-card a {
    color: var(--rose);
}

.site-footer {
    margin-top: 30px;
    color: #ffe4e6;
    background: linear-gradient(135deg, #881337, #be185d, #c2410c);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
}

.footer-logo {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 520px;
    color: #ffe4e6;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

.footer-links a {
    color: #ffe4e6;
    font-weight: 800;
}

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

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 28px rgba(190, 18, 60, 0.26);
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-search {
        width: 230px;
    }

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        height: 560px;
    }

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .feature-grid,
    .score-grid,
    .related-grid,
    .content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .ranking-score {
        grid-column: 2 / -1;
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .filter-bar,
    .search-panel {
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select,
    .search-panel input,
    .search-panel select,
    .search-panel button {
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-carousel {
        height: 590px;
    }

    .hero-content,
    .section-wrap,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-actions,
    .compact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn,
    .ghost-btn {
        width: 100%;
    }

    .card-cover {
        height: 230px;
    }

    .compact-card {
        flex-basis: 240px;
    }

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

    .ranking-poster {
        display: none;
    }

    .ranking-score {
        grid-column: 1 / -1;
    }
}
