:root {
    --primary: #06b6d4;
    --primary-dark: #0284c7;
    --secondary: #2563eb;
    --accent: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 42%, #ecfeff 100%);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(10px);
}

body::before {
    top: -160px;
    left: -140px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 68%);
}

body::after {
    right: -170px;
    bottom: 18%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    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: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48));
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
}

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

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

.brand-text,
.footer-brand strong {
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.24);
    transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.03);
}

.brand-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.brand-icon span {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
    margin-left: 3px;
}

.brand-icon.small span {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
}

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

.nav-links a,
.mobile-links a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
    color: var(--primary);
}

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

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 46px 0 18px;
}

.header-search button {
    position: absolute;
    right: 4px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
    background: #ffffff;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 88vw);
    max-height: 430px;
    overflow-y: auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.88);
    padding: 8px;
    display: none;
}

.search-suggest.is-visible {
    display: block;
}

.search-suggest a {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
}

.search-suggest a:hover {
    background: #f8fafc;
}

.search-suggest strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.search-suggest small {
    color: var(--muted);
}

.search-suggest .poster-frame {
    height: 48px;
    border-radius: 10px;
}

.search-empty {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #0f172a;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.mobile-search {
    position: relative;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    padding: 11px 14px;
}

.mobile-search button {
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mobile-links {
    display: grid;
    gap: 10px;
}

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: min(1220px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    padding-top: 106px;
}

.hero-slides {
    position: relative;
    min-height: 600px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: center;
    padding: 70px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.86) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.28) 100%),
        radial-gradient(circle at 24% 26%, rgba(6, 182, 212, 0.44), transparent 34%);
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.07em;
    color: #ffffff;
    max-width: 760px;
}

.hero-content p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.30);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.small-actions .btn {
    min-height: 42px;
    padding: 0 18px;
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #0891b2;
    background: rgba(236, 254, 255, 0.92);
    border: 1px solid rgba(103, 232, 249, 0.60);
    font-size: 12px;
    font-weight: 750;
}

.hero-poster {
    justify-self: end;
    width: min(100%, 340px);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    isolation: isolate;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.poster-frame.is-fallback img {
    opacity: 0;
}

.poster-fallback-title {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.35;
    opacity: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.32), transparent 34%),
        linear-gradient(135deg, #f8fafc, #dbeafe 52%, #cffafe);
}

.poster-frame.is-fallback .poster-fallback-title {
    opacity: 1;
}

.hero-poster-image {
    height: 440px;
    border: 8px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
}

.hero-poster:hover .hero-poster-image img,
.movie-poster-link:hover .movie-poster img,
.category-tile:hover img,
.category-cover-link:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.hero-controls > button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: #cbd5e1;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 26px;
    background: var(--primary);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.orb-one {
    width: 220px;
    height: 220px;
    right: 6%;
    top: 102px;
    background: rgba(6, 182, 212, 0.20);
}

.orb-two {
    width: 170px;
    height: 170px;
    left: 4%;
    bottom: 80px;
    background: rgba(37, 99, 235, 0.16);
}

.stats-strip {
    width: min(1080px, calc(100% - 32px));
    margin: -24px auto 54px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.stats-strip div {
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    background: #ffffff;
}

.stats-strip strong {
    display: block;
    font-size: 30px;
    color: var(--primary-dark);
}

.stats-strip span {
    color: var(--muted);
    font-size: 13px;
}

.content-section,
.detail-content-section,
.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 72px;
}

.content-section.soft-panel {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

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

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

.section-heading p,
.page-hero p,
.text-card p {
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    flex: none;
    color: var(--primary-dark);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.78);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster-link {
    position: relative;
    display: block;
}

.movie-poster {
    height: 280px;
    border-radius: 0;
}

.poster-play,
.poster-rating {
    position: absolute;
    z-index: 4;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.88);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.86);
    box-shadow: 0 18px 32px rgba(6, 182, 212, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-rating {
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
}

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

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

.pill-link {
    color: #0891b2;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-tile-poster {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%);
}

.category-tile strong,
.category-tile small {
    position: absolute;
    z-index: 3;
    left: 18px;
}

.category-tile strong {
    bottom: 40px;
    font-size: 24px;
}

.category-tile small {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

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

.ranking-panel {
    border-radius: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.80);
}

.ranking-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.ranking-title span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 70px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.rank-number {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 950;
}

.rank-poster {
    height: 48px;
    border-radius: 10px;
}

.rank-info strong,
.rank-info small {
    display: block;
}

.rank-info strong {
    font-size: 14px;
    line-height: 1.35;
}

.rank-info small {
    color: var(--muted);
    margin-top: 3px;
}

.rank-score {
    color: #f59e0b;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 54px;
    padding-top: 120px;
}

.compact-hero,
.category-hero,
.search-hero {
    padding: 142px 46px 52px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86));
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(40px, 6vw, 68px);
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 160px 160px 160px auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.filter-bar.sticky-filter {
    position: sticky;
    top: 88px;
    z-index: 20;
}

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

.filter-count {
    color: var(--muted);
    white-space: nowrap;
}

.filter-count strong {
    color: var(--primary-dark);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.category-overview-poster {
    height: 260px;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    font-size: 30px;
}

.mini-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
}

.mini-list span {
    color: #f59e0b;
    font-weight: 900;
}

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

.full-panel .ranking-row {
    grid-template-columns: 42px 62px 1fr;
}

.full-panel .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 13px;
}

.big-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 760px;
    margin-top: 26px;
}

.big-search input {
    min-height: 56px;
    padding: 0 20px;
    font-size: 17px;
}

.big-search button {
    border: none;
    border-radius: 999px;
    padding: 0 28px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.detail-hero {
    width: 100%;
    min-height: 620px;
    margin-bottom: 0;
    padding: 118px 0 64px;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0f172a;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.56;
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.36), rgba(15, 23, 42, 0.90)),
        radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.38), transparent 32%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 26px;
    font-size: 14px;
}

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

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

.detail-cover {
    height: 430px;
    border: 8px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.player-section {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

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

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: none;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(6, 182, 212, 0.30), transparent 22%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-player.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.32);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: rgba(255, 255, 255, 0.72);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

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

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

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

.text-card,
.info-card {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.80);
}

.text-card h2,
.info-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.text-card p {
    font-size: 16px;
    white-space: pre-line;
}

.accent-card {
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(239, 246, 255, 0.95));
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
    position: sticky;
    top: 96px;
}

.info-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.info-card dl div:last-child {
    border-bottom: none;
}

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

.info-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

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

.sidebar-related a {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.sidebar-poster {
    height: 70px;
    border-radius: 12px;
}

.sidebar-related strong,
.sidebar-related small {
    display: block;
}

.sidebar-related strong {
    line-height: 1.4;
}

.sidebar-related small {
    margin-top: 4px;
    color: var(--muted);
}

.narrow-section {
    max-width: 860px;
}

.site-footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(241, 245, 249, 0.96));
    border-top: 1px solid rgba(226, 232, 240, 0.88);
}

.footer-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
    display: block;
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

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

.is-hidden-by-filter {
    display: none !important;
}

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
        padding: 48px;
    }

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

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

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

    .detail-sidebar {
        position: static;
    }
}

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

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

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

    .hero-carousel {
        min-height: auto;
        padding-top: 92px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 34px;
    }

    .hero-poster {
        justify-self: start;
        width: 230px;
    }

    .hero-poster-image {
        height: 300px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .category-overview-poster,
    .detail-cover {
        height: 360px;
    }

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

    .filter-count {
        grid-column: 1 / -1;
    }

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

@media (max-width: 560px) {
    .nav-wrap {
        width: min(100% - 20px, 1220px);
        height: 68px;
    }

    .brand-text {
        font-size: 22px;
    }

    .hero-carousel,
    .content-section,
    .detail-content-section,
    .player-section,
    .page-hero {
        width: min(100% - 20px, 1220px);
    }

    .hero-slides {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-content h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-content p,
    .detail-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .stats-strip,
    .movie-grid,
    .large-grid,
    .compact-grid,
    .filter-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section.soft-panel,
    .compact-hero,
    .category-hero,
    .search-hero,
    .text-card,
    .info-card {
        padding: 22px;
        border-radius: 22px;
    }

    .compact-hero,
    .category-hero,
    .search-hero {
        padding-top: 108px;
    }

    .movie-poster {
        height: 240px;
    }

    .detail-hero {
        padding-top: 92px;
    }

    .detail-cover {
        height: 340px;
    }

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