
:root {
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.62);
    --bg-card-strong: rgba(30, 41, 59, 0.86);
    --border: rgba(51, 65, 85, 0.72);
    --border-bright: rgba(6, 182, 212, 0.45);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #f97316;
    --shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.18), transparent 28%), linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan-strong));
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

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

.brand-copy strong,
.footer-brand {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: rgba(51, 65, 85, 0.62);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.6);
    color: white;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav {
    display: grid;
    gap: 8px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
}

.hero {
    position: relative;
    min-height: 700px;
    height: 72vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg,
.hero-bg img,
.hero-shadow,
.hero-bottom {
    position: absolute;
    inset: 0;
}

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

.hero-shadow {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82) 45%, rgba(2, 6, 23, 0.12));
}

.hero-bottom {
    background: linear-gradient(0deg, var(--bg-deep), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
    padding-top: 18px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.16);
    font-size: 0.92rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2,
.page-hero h1 {
    margin: 0;
    color: white;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
    max-width: 780px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.55);
}

.hero-actions,
.focus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

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

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

.btn.primary {
    color: white;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 16px 38px rgba(6, 182, 212, 0.26);
}

.btn.primary:hover {
    box-shadow: 0 20px 46px rgba(6, 182, 212, 0.42);
}

.btn.ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.hero-poster:hover img {
    transform: scale(1.08);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(6, 182, 212, 0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.35);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 136px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.rail-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(12px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover,
.rail-button:hover {
    background: var(--cyan-strong);
    transform: scale(1.08);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    transform: translateX(-50%);
}

.search-strip {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(16px);
}

.search-strip label {
    padding-left: 14px;
    color: var(--cyan);
    font-weight: 800;
    white-space: nowrap;
}

.search-strip input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
    color: white;
    background: rgba(15, 23, 42, 0.72);
}

.search-strip input {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
}

.search-strip button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: white;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    font-weight: 800;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hero-links a {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-links a:hover {
    color: white;
    border-color: var(--border-bright);
}

.section {
    padding: 72px 0;
}

.section.tinted {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.42));
}

.section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.section-line {
    display: block;
    width: 5px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-head.orange .section-line {
    background: linear-gradient(180deg, #fb923c, #ef4444);
}

.section-head.green .section-line {
    background: linear-gradient(180deg, #4ade80, #10b981);
}

.section-head h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.library-grid {
    margin-top: 28px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-bright);
    box-shadow: 0 26px 70px rgba(6, 182, 212, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #020617;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.12);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18) 52%, transparent);
    transition: opacity 0.3s ease;
}

.poster-badge,
.poster-duration {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    font-size: 0.76rem;
    font-weight: 760;
    backdrop-filter: blur(10px);
}

.poster-badge {
    left: 12px;
    top: 12px;
    background: rgba(6, 182, 212, 0.86);
}

.poster-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.72);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(6, 182, 212, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.card-body strong {
    overflow: hidden;
    color: white;
    font-size: 1.1rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.movie-card:hover .card-body strong {
    color: var(--cyan);
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(6, 182, 212, 0.26);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.5);
    font-size: 0.78rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.rail-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 22px;
    overflow-x: auto;
    padding: 8px 2px 20px;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

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

.editor-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.editor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.48);
    box-shadow: 0 24px 60px rgba(34, 197, 94, 0.12);
}

.editor-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #020617;
}

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

.editor-card:hover img {
    transform: scale(1.1);
}

.editor-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(34, 197, 94, 0.9);
    font-size: 0.75rem;
    font-weight: 760;
}

.editor-body {
    display: grid;
    align-content: start;
    gap: 9px;
}

.editor-body strong {
    color: white;
    font-size: 1.18rem;
}

.editor-body em,
.editor-body span,
.editor-body small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.editor-body span:not(.card-tags) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.focus-band {
    background: radial-gradient(circle at 25% 20%, rgba(34, 211, 238, 0.2), transparent 32%), linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(8, 145, 178, 0.16));
}

.center-copy {
    text-align: center;
}

.center-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.04em;
}

.center-copy p {
    max-width: 740px;
    margin: 18px auto 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.8;
}

.focus-actions {
    justify-content: center;
}

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

.small-poster {
    display: grid;
    gap: 10px;
}

.small-poster span {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #020617;
}

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

.small-poster:hover img {
    transform: scale(1.1);
}

.small-poster strong {
    display: -webkit-box;
    overflow: hidden;
    color: white;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.small-poster em {
    color: var(--muted-2);
    font-size: 0.86rem;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.28), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
}

.compact-hero {
    padding: 82px 0 70px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.2);
}

.filter-panel label,
.filter-search {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 760;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-strip input:focus {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.library-card.is-hidden {
    display: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
    transform: translateX(6px);
    border-color: var(--border-bright);
    background: var(--bg-card-strong);
}

.rank-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    font-size: 1.1rem;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #020617;
}

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

.rank-copy {
    display: grid;
    gap: 7px;
}

.rank-copy strong {
    color: white;
    font-size: 1.15rem;
}

.rank-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-copy small,
.rank-views {
    color: var(--muted-2);
}

.rank-views {
    white-space: nowrap;
}

.detail-shell {
    padding: 32px 0 80px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted);
    transition: color 0.25s ease, transform 0.25s ease;
}

.back-link:hover {
    color: var(--cyan);
    transform: translateX(-4px);
}

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

.player-card,
.detail-card,
.side-card,
.text-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
}

.player-card {
    margin-bottom: 24px;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

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

.player-cover,
.player-loading,
.player-error,
.player-controls {
    position: absolute;
}

.player-cover {
    inset: 0;
    display: grid;
    gap: 14px;
    place-items: center;
    align-content: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(2, 6, 23, 0.42));
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-player.is-playing .player-cover,
.video-player.is-ready .player-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.38);
}

.player-cover strong {
    font-size: 1.1rem;
}

.player-loading {
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-error {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: white;
    text-align: center;
    background: rgba(2, 6, 23, 0.86);
}

.player-controls {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-player:hover .player-controls,
.video-player.is-playing .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.control-group {
    display: flex;
    gap: 10px;
}

.control-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(6, 182, 212, 0.9);
    transition: background 0.25s ease, transform 0.25s ease;
}

.control-button:hover {
    background: var(--blue);
    transform: scale(1.08);
}

.detail-card,
.side-card,
.text-card {
    padding: 26px;
    margin-bottom: 24px;
}

.detail-card h1,
.detail-card h2,
.side-card h2,
.text-card h2 {
    margin: 0 0 18px;
    color: white;
    letter-spacing: -0.02em;
}

.detail-card h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.detail-card h2,
.side-card h2 {
    font-size: 1.55rem;
}

.tag-cloud {
    margin: 20px 0;
}

.share-button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: white;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    font-weight: 800;
}

.article-card p,
.text-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.9;
    white-space: pre-line;
}

.article-card .lead {
    color: white;
    font-weight: 750;
}

.detail-side {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 98px;
}

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

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

.related-item:hover {
    background: rgba(51, 65, 85, 0.42);
}

.related-item span:first-child {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: #020617;
}

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

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: white;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item em {
    grid-column: 2;
    color: var(--muted-2);
    font-size: 0.8rem;
    font-style: normal;
}

.detail-more {
    padding-bottom: 0;
}

.text-page {
    max-width: 920px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 34px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 30px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 0.92rem;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-slide {
        align-items: flex-start;
        padding-top: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(260px, 62vw);
    }

    .hero-controls {
        bottom: 162px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        bottom: 24px;
    }

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

    .movie-grid,
    .editor-grid,
    .poster-grid,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .editor-card {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 54px 110px minmax(0, 1fr);
    }

    .rank-views {
        grid-column: 3;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .brand-copy em {
        display: none;
    }

    .hero h1,
    .hero h2,
    .page-hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .search-strip,
    .filter-panel {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .search-strip label {
        padding-left: 0;
    }

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

    .rail-wrap {
        grid-template-columns: 1fr;
    }

    .rail-button {
        display: none;
    }

    .movie-rail {
        grid-auto-columns: minmax(250px, 84vw);
    }

    .rank-row {
        grid-template-columns: 48px 90px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
