* {
    box-sizing: border-box;
}

:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --green: #10b981;
    --purple: #8b5cf6;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
    font-size: 1.15rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 6px;
    color: #374151;
    font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 24px 0;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
    color: var(--pink-dark);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 300px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.24s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a,
.mobile-category-grid a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    background: #ffffff;
    transition: 0.2s ease;
}

.nav-dropdown-panel a:hover,
.mobile-category-grid a:hover {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.top-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 8px 12px;
    background: transparent;
}

.top-search button,
.primary-button,
.secondary-button,
.filter-button,
.search-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.22s ease;
}

.top-search button,
.primary-button,
.search-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.22);
}

.top-search button {
    padding: 8px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.top-search button:hover,
.search-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.3);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

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

.mobile-panel.is-open {
    display: block;
}

.mobile-panel > a {
    display: block;
    padding: 12px 4px;
    font-weight: 700;
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.hero {
    position: relative;
    min-height: 640px;
    color: #ffffff;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(236, 72, 153, 0.42), transparent 32%),
        radial-gradient(circle at 82% 30%, rgba(59, 130, 246, 0.46), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.52fr);
    align-items: center;
    gap: 42px;
    padding: 92px 0 126px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    font-weight: 700;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span,
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #374151;
    background: #f3f4f6;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-side-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-poster {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.6), rgba(59, 130, 246, 0.72));
}

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

.hero-side-card h2 {
    margin: 16px 0 8px;
    font-size: 1.25rem;
}

.hero-side-card p {
    margin: 0;
    font-size: 0.95rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 4;
    width: min(1200px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 68px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.hero-arrow-row {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

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

.section {
    padding: 68px 0;
}

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

.section-title-wrap {
    display: grid;
    gap: 10px;
}

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 5px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pink), var(--blue));
}

.section-desc {
    margin: 0;
    max-width: 660px;
    color: var(--muted);
}

.text-link {
    color: var(--pink-dark);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.32);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.poster-link {
    display: block;
}

.poster {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.36), transparent 30%),
        linear-gradient(135deg, #dbeafe, #fce7f3 52%, #eef2ff);
}

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

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

.poster img.is-hidden,
.hero-poster img.is-hidden,
.detail-cover img.is-hidden,
.category-card-preview img.is-hidden {
    display: none;
}

.poster-year,
.rank-number {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.poster-year {
    right: 12px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.rank-number {
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.poster-play {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.3);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-meta-row,
.movie-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.category-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: #fdf2f8;
    font-weight: 700;
}

.movie-card h3 {
    min-height: 3.2em;
    margin: 12px 0 8px;
    font-size: 1.08rem;
    line-height: 1.45;
}

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

.movie-card p {
    min-height: 4.8em;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.94rem;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 15%, rgba(255, 255, 255, 0.34), transparent 28%),
        linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 52px rgba(236, 72, 153, 0.24);
}

.category-tile span {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.6rem;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
}

.ranking-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 34%),
        #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.ranking-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    font-weight: 800;
}

.ranking-item h3 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.ranking-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.ranking-score {
    color: var(--pink-dark);
    font-weight: 800;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(236, 72, 153, 0.42), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.42), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #312e81 48%, #be185d 100%);
}

.page-hero-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px 170px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    outline: 0;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus {
    border-color: rgba(236, 72, 153, 0.52);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.category-page-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
}

.sidebar-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 8px;
    align-self: start;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.sidebar-panel h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.sidebar-panel a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
    transition: 0.2s ease;
}

.sidebar-panel a:hover,
.sidebar-panel a.is-current {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-button {
    padding: 0 24px;
}

.search-status {
    margin: 18px 0 0;
    color: var(--muted);
}

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

.category-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    transition: 0.24s ease;
}

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

.category-card-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

.category-card-preview figure {
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
}

.category-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.category-card-body {
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
}

.detail-hero {
    color: #ffffff;
    background-position: center;
    background-size: cover;
    background-color: #020617;
}

.detail-hero-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.42), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.56));
}

.detail-hero-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.detail-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-info-row .info-chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.content-panel,
.related-panel {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.content-panel {
    padding: 26px;
}

.content-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.content-panel p {
    margin: 0 0 18px;
    color: #374151;
}

.player-box {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
    transition: 0.25s ease;
}

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

.player-play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 22px 50px rgba(236, 72, 153, 0.36);
    cursor: pointer;
    font-size: 2rem;
    transition: 0.22s ease;
}

.player-play-button:hover {
    transform: scale(1.06);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: none;
    padding: 9px 12px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
}

.player-message.is-visible {
    display: block;
}

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

.detail-fact {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid var(--line);
}

.detail-fact span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.detail-fact strong {
    display: block;
    margin-top: 3px;
}

.related-panel {
    align-self: start;
    position: sticky;
    top: 92px;
    padding: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: 0.2s ease;
}

.related-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.related-card .poster {
    border-radius: 12px;
}

.related-card h3 {
    margin: 0 0 4px;
    font-size: 0.96rem;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.pagination-note {
    margin-top: 22px;
    color: var(--muted);
}

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 20px;
    color: var(--muted);
    background: #ffffff;
}

.empty-state.is-visible {
    display: block;
}

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

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

    .detail-layout,
    .ranking-panel,
    .category-page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-panel,
    .related-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-side-card,
    .detail-cover {
        max-width: 340px;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .container,
    .page-hero-inner,
    .hero-inner,
    .hero-controls,
    .detail-hero-inner,
    .mobile-panel {
        width: min(100% - 24px, 1200px);
    }

    .hero {
        min-height: 760px;
    }

    .hero-inner {
        padding-top: 58px;
        padding-bottom: 136px;
    }

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

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

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

    .filter-panel,
    .search-panel,
    .detail-facts {
        grid-template-columns: 1fr;
    }

    .search-button {
        min-height: 46px;
    }

    .content-panel {
        padding: 18px;
    }

    .hero-controls {
        align-items: flex-start;
        flex-direction: column;
    }
}
