:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --rose-500: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 25px 55px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--amber-50), var(--green-50) 45%, var(--blue-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(240, 253, 244, 0.96));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.brand .icon,
.footer-logo .icon {
    width: 34px;
    height: 34px;
    color: var(--amber-600);
    transition: transform 0.3s ease;
}

.brand:hover .icon {
    transform: rotate(12deg) scale(1.04);
}

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

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: var(--amber-600);
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header-search input {
    width: 210px;
    border: 0;
    padding: 10px 8px 10px 16px;
    outline: none;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    background: var(--amber-500);
    color: var(--white);
    padding: 10px 16px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--amber-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--gray-700);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
    background: var(--amber-100);
    color: var(--amber-700);
}

.mobile-search {
    display: flex;
    margin-top: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.mobile-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 12px 16px;
}

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-background,
.hero-background img,
.hero-background .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(20, 83, 45, 0.88));
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 70px 0 110px;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    color: var(--amber-400);
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon .icon {
    width: 64px;
    height: 64px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero-lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: #fffbeb;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.7;
}

.hero-tags,
.detail-tags-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tags span,
.hero-tags a,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    background: var(--amber-500);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.primary-button:hover {
    background: var(--amber-600);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.42);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 16px 22px;
    background: transparent;
    color: var(--gray-800);
}

.hero-search button {
    border: 0;
    padding: 0 28px;
    background: linear-gradient(90deg, var(--amber-500), var(--green-600));
    color: var(--white);
    font-weight: 800;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    height: 90px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: var(--amber-50);
}

.section-wrap {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 70px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.small {
    margin-bottom: 18px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading h2 .icon {
    color: var(--amber-600);
}

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

.split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.split-heading > a {
    color: var(--amber-600);
    font-weight: 800;
    white-space: nowrap;
}

.split-heading > a:hover {
    color: var(--amber-700);
}

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

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--green-100));
}

.movie-card.compact .movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-cover img,
.wide-cover img,
.related-mini img,
.detail-poster,
.category-thumbs img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-cover img,
.wide-cover img {
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.wide-card:hover .wide-cover img {
    transform: scale(1.1);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.cover-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: var(--amber-500);
    color: var(--white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.play-bubble {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.82);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-bubble .icon {
    width: 28px;
    height: 28px;
    transform: translateX(2px);
}

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

.cover-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cover-meta span,
.rating,
.wide-meta span,
.rank-score span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card:hover .movie-card-body h3 {
    color: var(--amber-600);
}

.movie-card-body p {
    min-height: 42px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.rating {
    color: var(--amber-600);
}

.rating .icon,
.wide-meta .icon,
.rank-score .icon {
    fill: currentColor;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 7px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
}

.soft-band {
    background: linear-gradient(90deg, var(--amber-100), var(--green-100));
}

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

.wide-card {
    display: flex;
    min-height: 190px;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wide-cover {
    position: relative;
    flex: 0 0 36%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--green-100));
}

.wide-cover span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wide-body {
    flex: 1;
    padding: 22px;
}

.wide-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wide-title-row h3 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.wide-title-row em {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.wide-card:hover h3 {
    color: var(--green-600);
}

.wide-body p {
    margin: 12px 0 22px;
    color: var(--gray-600);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wide-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

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

.category-card,
.category-overview-card {
    display: block;
    overflow: hidden;
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs,
.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 92px;
    margin-bottom: 16px;
}

.category-thumbs img,
.category-cover-stack img {
    min-width: 0;
    border-radius: 12px;
    background: var(--amber-100);
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    min-height: 42px;
    margin: 0 0 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.category-card span,
.category-overview-card strong {
    color: var(--amber-600);
    font-weight: 900;
}

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

.ranking-panel,
.sticky-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.sticky-box {
    position: sticky;
    top: 96px;
}

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

.rank-list.large {
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 38px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: var(--gray-50);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 900;
}

.rank-number.gold {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: var(--white);
}

.rank-number.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: var(--white);
}

.rank-number.bronze {
    background: linear-gradient(135deg, #f97316, #b45309);
    color: var(--white);
}

.rank-item img {
    width: 74px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--amber-100);
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.related-mini strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info span,
.rank-score small,
.related-mini span {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    text-align: right;
    color: var(--amber-600);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    color: var(--white);
    padding: 72px 0;
}

.page-hero.amber-green {
    background: linear-gradient(90deg, var(--amber-600), var(--green-600));
}

.page-hero.green-blue {
    background: linear-gradient(90deg, var(--green-600), var(--blue-500));
}

.page-hero-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: #fffbeb;
    font-size: 19px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

.catalog-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.filter-panel,
.search-panel,
.content-card,
.player-card,
.prose-card,
.faq-grid article {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.filter-panel {
    position: sticky;
    top: 96px;
}

.filter-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 20px;
}

.filter-panel label,
.search-panel label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select,
.catalog-toolbar select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.reset-filter,
.search-panel button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    background: linear-gradient(90deg, var(--amber-500), var(--green-600));
    color: var(--white);
    font-weight: 900;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-toolbar p {
    margin: 0;
    color: var(--gray-600);
}

.catalog-toolbar strong {
    color: var(--amber-600);
}

.catalog-toolbar select {
    width: auto;
    min-width: 150px;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--radius-lg);
}

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

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

.ranking-column {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.ranking-column h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(140px, 1fr)) 150px;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}

.search-panel label {
    margin-bottom: 0;
}

.search-panel button {
    height: 48px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.detail-bg,
.detail-bg img,
.detail-bg div {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.06);
    transform: scale(1.03);
}

.detail-bg div {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.86));
}

.detail-hero-inner {
    position: relative;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 52px 0 70px;
}

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

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: var(--amber-100);
}

.detail-copy p:not(.eyebrow) {
    max-width: 820px;
    margin: 22px 0 0;
    color: #fffbeb;
    font-size: 19px;
    line-height: 1.75;
}

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

.detail-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

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

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

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #030712;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    background: rgba(245, 158, 11, 0.94);
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.42);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start .icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

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

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: var(--white);
    font-size: 13px;
}

.content-card h2,
.sticky-box h2,
.prose-card h2,
.faq-grid h2 {
    margin: 0 0 14px;
    color: var(--gray-800);
    font-size: 24px;
}

.content-card p,
.prose-card p,
.faq-grid p {
    margin: 0 0 16px;
    color: var(--gray-700);
    line-height: 1.85;
    white-space: pre-line;
}

.review-card {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(240, 253, 244, 0.96));
    border: 2px solid rgba(245, 158, 11, 0.18);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.info-list div {
    padding: 14px;
    border-radius: 14px;
    background: var(--gray-50);
}

.info-list dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    color: var(--gray-800);
    font-weight: 800;
}

.info-list a {
    color: var(--amber-600);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span {
    color: var(--gray-700);
    background: linear-gradient(90deg, var(--amber-100), var(--green-100));
    border: 0;
}

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

.related-mini {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-mini:hover {
    background: var(--gray-50);
}

.related-mini img {
    height: 68px;
    border-radius: 10px;
    background: var(--amber-100);
}

.related-mini small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: var(--amber-600);
    font-weight: 900;
}

.prose-card {
    max-width: 880px;
}

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

.site-footer {
    background: linear-gradient(90deg, var(--gray-800), var(--gray-900));
    color: var(--gray-300);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 34px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.footer-col h3 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 17px;
}

.footer-col p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    margin: 9px 0;
    color: #d1d5db;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.64;
        transform: scale(0.96);
    }
}

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .four-cols,
    .wide-grid,
    .two-column-block,
    .catalog-layout,
    .ranking-page,
    .detail-layout,
    .footer-inner,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .sticky-box {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-wrap {
        height: 64px;
    }

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

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

    .hero-content {
        padding: 56px 0 118px;
    }

    .hero-actions,
    .hero-search,
    .split-heading,
    .catalog-toolbar,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        border-radius: 24px;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

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

    .wide-card {
        flex-direction: column;
    }

    .wide-cover {
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }

    .rank-item {
        grid-template-columns: 34px 64px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

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

    .detail-poster {
        width: min(72vw, 260px);
    }

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