:root {
    --bg-0: #03060f;
    --bg-1: #071225;
    --bg-2: #102340;
    --bg-3: #32182f;
    --panel: rgba(9, 18, 35, 0.76);
    --panel-strong: rgba(6, 11, 24, 0.92);
    --panel-soft: rgba(17, 31, 54, 0.72);
    --line: rgba(149, 196, 255, 0.16);
    --line-strong: rgba(149, 223, 255, 0.34);
    --text: #edf5ff;
    --muted: #99adc6;
    --accent: #71efd9;
    --accent-strong: #c5fff4;
    --accent-warm: #ffb46f;
    --accent-blue: #6ed2ff;
    --danger: #ff8b90;
    --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.46);
    --shadow-md: 0 18px 52px rgba(0, 0, 0, 0.28);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shell-width: min(1280px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(113, 239, 217, 0.42) rgba(255, 255, 255, 0.06);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(103, 219, 255, 0.22), transparent 22%),
        radial-gradient(circle at 82% 10%, rgba(255, 173, 110, 0.18), transparent 22%),
        radial-gradient(circle at 50% 84%, rgba(113, 239, 217, 0.18), transparent 26%),
        linear-gradient(135deg, var(--bg-0), var(--bg-1) 38%, #142743 70%, var(--bg-3) 100%);
    overflow-x: hidden;
}

body::-webkit-scrollbar,
.cinema-modal::-webkit-scrollbar,
.filmstrip::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body::-webkit-scrollbar-track,
.cinema-modal::-webkit-scrollbar-track,
.filmstrip::-webkit-scrollbar-track,
.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.cinema-modal::-webkit-scrollbar-thumb,
.filmstrip::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(113, 239, 217, 0.72), rgba(110, 210, 255, 0.58));
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover,
.cinema-modal::-webkit-scrollbar-thumb:hover,
.filmstrip::-webkit-scrollbar-thumb:hover,
.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(197, 255, 244, 0.86), rgba(110, 210, 255, 0.76));
    background-clip: padding-box;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -3;
    background:
        radial-gradient(circle at 20% 24%, rgba(110, 226, 255, 0.22), transparent 28%),
        radial-gradient(circle at 78% 16%, rgba(255, 176, 123, 0.16), transparent 26%),
        radial-gradient(circle at 50% 86%, rgba(113, 239, 217, 0.14), transparent 28%);
    filter: blur(50px);
    animation: driftGlow 20s ease-in-out infinite alternate;
}

body::after {
    z-index: -2;
    opacity: 0.44;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 32%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.017) 0,
            rgba(255, 255, 255, 0.017) 1px,
            transparent 1px,
            transparent 46px
        );
    mix-blend-mode: soft-light;
}

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

iframe {
    width: 100%;
    border: 0;
}

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

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

button {
    cursor: pointer;
}

.page-shell {
    width: var(--shell-width);
    margin: 0 auto 86px;
    position: relative;
    z-index: 2;
}

.page-shell::before,
.page-shell::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(84px);
}

.page-shell::before {
    width: 320px;
    height: 320px;
    left: -90px;
    top: 22vh;
    background: radial-gradient(circle, rgba(110, 216, 255, 0.3), transparent 68%);
    animation: floatHalo 14s ease-in-out infinite alternate;
}

.page-shell::after {
    width: 280px;
    height: 280px;
    right: -80px;
    top: 58vh;
    background: radial-gradient(circle, rgba(255, 178, 119, 0.26), transparent 66%);
    animation: floatHalo 17s ease-in-out infinite alternate-reverse;
}

.page-shell-auth {
    min-height: calc(100vh - 220px);
    display: grid;
    align-items: center;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(24px);
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.92), rgba(5, 13, 26, 0.76));
    border-bottom: 1px solid rgba(138, 185, 240, 0.12);
}

.nav-inner {
    width: var(--shell-width);
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 0 1 auto;
}

.brand-logo {
    width: clamp(138px, 12vw, 182px);
    height: auto;
    max-height: 42px;
    aspect-ratio: 736 / 174;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-title,
.hero-title,
.section-title,
.card-title,
.deck-title,
.modal-title,
.profile-title,
.auth-title {
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-sub {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    margin-left: auto;
}

.nav-link,
.nav-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #bad0e8;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-ghost:hover {
    transform: translateY(-1px);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #041b23;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 12px 30px rgba(113, 239, 217, 0.22);
}

.status-link {
    border-color: rgba(255, 178, 119, 0.26);
    background: rgba(255, 178, 119, 0.08);
}

.nav-ghost {
    border-color: rgba(142, 196, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.user-cluster {
    display: grid;
    min-width: 108px;
    padding: 8px 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.user-name {
    font-weight: 700;
}

.user-role {
    color: var(--muted);
    font-size: 0.84rem;
}

.logout-form {
    margin: 0;
}

.mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    align-items: center;
    justify-content: center;
}

.mobile-toggle-lines,
.mobile-toggle-lines::before,
.mobile-toggle-lines::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle-lines::before {
    transform: translateY(-6px);
}

.mobile-toggle-lines::after {
    transform: translateY(4px);
}

.mobile-toggle[aria-expanded='true'] .mobile-toggle-lines {
    transform: rotate(45deg);
}

.mobile-toggle[aria-expanded='true'] .mobile-toggle-lines::before {
    transform: translateY(0);
    opacity: 0;
}

.mobile-toggle[aria-expanded='true'] .mobile-toggle-lines::after {
    transform: translateY(-2px) rotate(-90deg);
}

.mobile-menu {
    display: none;
    width: var(--shell-width);
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(5, 12, 24, 0.94);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: #c4d7ec;
}

.mobile-link.active,
.mobile-link:hover {
    color: #041b23;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.flash-stack {
    width: var(--shell-width);
    margin: 20px auto 0;
    display: grid;
    gap: 10px;
}

.flash {
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.flash-success {
    border-color: rgba(113, 239, 217, 0.34);
    background: rgba(113, 239, 217, 0.12);
}

.flash-error {
    border-color: rgba(255, 139, 144, 0.34);
    background: rgba(255, 139, 144, 0.12);
}

.flash-info {
    border-color: rgba(110, 210, 255, 0.34);
    background: rgba(110, 210, 255, 0.12);
}

.ticker {
    padding-top: 18px;
}

.ticker-track {
    display: grid;
    align-items: center;
    min-height: 62px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 12px 24px;
    text-align: center;
    color: #d7e6f6;
    font-size: 0.97rem;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ticker-item[hidden] {
    display: none;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-grid,
.story-grid,
.feature-grid,
.profile-grid,
.auth-grid,
.studio-grid,
.studio-list-grid,
.chapter-grid,
.transmission-grid,
.news-grid,
.cards-grid,
.signal-grid {
    display: grid;
    gap: 22px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: start;
    padding-top: 34px;
}

.hero-grid-wide {
    grid-template-columns: minmax(0, 0.98fr) minmax(380px, 1.02fr);
}

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

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

.section {
    margin-top: 80px;
}

.kicker,
.section-kicker,
.card-eyebrow,
.modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(144, 206, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #bed5f1;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    justify-self: start;
    max-width: 100%;
    white-space: nowrap;
}

.hero-copy,
.showcase-stack,
.playlist-stack,
.studio-form,
.auth-form {
    display: grid;
    gap: 18px;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.9rem, 6vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-text,
.section-text,
.card-copy,
.deck-copy,
.modal-description,
.bio-copy,
.timeline-copy,
.playlist-caption,
.player-tip,
.auth-copy p {
    color: var(--muted);
    line-height: 1.76;
}

.hero-text,
.section-text,
.deck-copy,
.strip-copy,
.cinema-topbar-note {
    max-width: 68ch;
}

.hero-actions,
.card-actions,
.profile-links,
.modal-actions,
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #051d25;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px rgba(113, 239, 217, 0.2);
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button::after {
    content: '';
    position: absolute;
    inset: 1px auto 1px -34%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 38px rgba(113, 239, 217, 0.24);
}

.button:hover::after,
.button:focus-visible::after {
    transform: translateX(360%) skewX(-18deg);
}

.button-secondary {
    border: 1px solid rgba(144, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: none;
}

.button-warm {
    background: linear-gradient(135deg, var(--accent-warm), #ffd7ac);
    color: #2c1405;
    box-shadow: 0 16px 34px rgba(255, 180, 111, 0.22);
}

.button-compact {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 18px;
}

.card-actions .button,
.hero-actions .button,
.profile-links .button {
    flex: 1 1 180px;
}

.glass-card,
.content-card,
.timeline-card,
.deck-card,
.profile-panel,
.cinema-card {
    --float-y: 0px;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(17, 31, 53, 0.72), rgba(8, 15, 29, 0.88)),
        radial-gradient(circle at top left, rgba(113, 239, 217, 0.08), transparent 32%);
    box-shadow: var(--shadow-lg);
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, var(--float-y), 0);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.glass-card::before,
.content-card::before,
.timeline-card::before,
.deck-card::before,
.profile-panel::before,
.cinema-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 72%, rgba(255, 179, 115, 0.08));
}

.glass-card:hover,
.content-card:hover,
.timeline-card:hover,
.deck-card:hover,
.profile-panel:hover {
    --float-y: -6px;
    border-color: var(--line-strong);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.44);
}

.glass-card,
.deck-card,
.profile-panel {
    padding: 24px;
}

.content-card img,
.studio-entry-media img {
    transition: transform 0.35s ease;
}

.content-card:hover img,
.studio-entry:hover img {
    transform: scale(1.04);
}

.hero-preview,
.player-surface,
.card-media,
.profile-media,
.studio-entry-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #01050d;
}

.hero-preview {
    aspect-ratio: 16 / 9;
}

.hero-preview img,
.hero-preview video,
.player-surface iframe,
.card-media img,
.profile-media img,
.studio-entry-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-preview-large {
    min-height: 0;
    aspect-ratio: 16 / 8.6;
    max-height: 448px;
}

.preview-overlay,
.player-surface-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(3, 8, 18, 0.94), rgba(3, 8, 18, 0.22) 24%, rgba(3, 8, 18, 0.06) 42%, rgba(3, 8, 18, 0));
}

.preview-hud,
.player-badge-row {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 2;
}

.player-badge-row {
    right: 18px;
    z-index: 6;
}

.preview-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    min-width: 148px;
    box-shadow: 0 18px 36px rgba(113, 239, 217, 0.2);
}

.hud-chip,
.pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(144, 205, 255, 0.16);
    background: rgba(5, 14, 29, 0.72);
    color: #d7ebff;
    font-size: 0.83rem;
}

.hud-chip.live::before,
.pill.live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(113, 239, 217, 0.14);
}

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

.section-head > * {
    min-width: 0;
}

.section-head-tight {
    align-items: start;
    margin-bottom: 18px;
}

.section-head-switcher {
    margin-bottom: 18px;
}

.section-title {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

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

.cards-grid--featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 0.84fr);
    align-items: start;
}

.content-card {
    display: grid;
}

.card-media {
    aspect-ratio: 16 / 10;
}

.card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(2, 7, 15, 0.86), transparent);
}

.card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
    align-content: start;
}

.card-title {
    margin: 0;
    font-size: 1.44rem;
}

.card-copy,
.deck-copy {
    margin: 0;
}

.card-meta,
.aside-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #c1d6ec;
    font-size: 0.88rem;
}

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

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

.stat-grid-wide {
    margin-top: 8px;
}

.stat-card,
.signal-card,
.profile-stat-card,
.studio-entry {
    border-radius: var(--radius-md);
    border: 1px solid rgba(149, 205, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.stat-card,
.signal-card,
.profile-stat-card {
    padding: 16px;
}

.stat-label,
.signal-label,
.timeline-label,
.profile-stat-card span {
    color: #bfd5ee;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.stat-value,
.signal-value,
.profile-stat-card strong {
    margin-top: 10px;
    display: block;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
}

.stat-value {
    font-size: 1.72rem;
}

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

.library-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.library-search {
    flex: 1 1 260px;
}

.library-search input {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid rgba(144, 205, 255, 0.18);
    background: rgba(4, 10, 21, 0.74);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.library-search input:focus {
    outline: none;
    border-color: rgba(113, 239, 217, 0.46);
    box-shadow: 0 0 0 4px rgba(113, 239, 217, 0.08);
}

.library-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #d7ebff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(113, 239, 217, 0.34);
    background: linear-gradient(135deg, rgba(113, 239, 217, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.library-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.92rem;
}

.library-empty {
    margin: 18px 0 0;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    line-height: 1.7;
}

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

.signal-value {
    font-size: 1.3rem;
}

.signal-copy {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.showcase-panel,
.signal-board,
.studio-side-note {
    display: grid;
    gap: 16px;
}

.showcase-panel {
    padding: 18px;
    gap: 18px;
}

.preview-meta {
    display: grid;
    gap: 14px;
    padding: 0 4px 2px;
}

.studio-anchor-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-link {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pill-link:hover,
.pill-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(113, 239, 217, 0.3);
    background: rgba(113, 239, 217, 0.12);
}

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

.studio-guide-card {
    align-content: start;
    gap: 14px;
    min-height: 0;
}

.studio-callout {
    align-content: start;
    align-self: start;
    min-height: 0;
}

.auth-panel,
.auth-copy,
.studio-form-card,
.studio-list {
    height: 100%;
}

.auth-form,
.studio-form {
    gap: 16px;
}

.form-intro {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: #d6e8fb;
    line-height: 1.72;
}

.form-note {
    margin: -2px 0 0;
    color: var(--muted);
    line-height: 1.68;
    font-size: 0.94rem;
}

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

.field-grid-compact {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: #d6e8fb;
    font-weight: 600;
}

.field-help {
    margin-top: -2px;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.84rem;
}

.field input[type='text'],
.field input[type='password'],
.field input[type='url'],
.field input[type='datetime-local'],
.field input[type='file'],
.field textarea,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(144, 205, 255, 0.18);
    background: rgba(4, 10, 21, 0.74);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(113, 239, 217, 0.46);
    box-shadow: 0 0 0 4px rgba(113, 239, 217, 0.08);
}

.field-checkbox {
    min-height: 50px;
    padding: 12px 14px;
    grid-template-columns: auto 1fr;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(144, 205, 255, 0.18);
    background: rgba(4, 10, 21, 0.74);
}

.field-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.studio-entry-stack {
    display: grid;
    gap: 14px;
}

.studio-entry {
    display: grid;
    gap: 14px;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    padding: 14px;
}

.studio-entry-news {
    grid-template-columns: minmax(0, 1fr);
}

.studio-entry-media {
    aspect-ratio: 1 / 0.72;
    max-width: 88px;
}

.studio-entry-copy {
    display: grid;
    gap: 8px;
}

.studio-entry-copy strong {
    font-size: 1.18rem;
    line-height: 1.14;
}

.studio-entry-copy span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.studio-entry-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    grid-column: 2;
    padding-top: 2px;
}

.studio-entry-news .studio-entry-actions {
    grid-column: 1;
}

.studio-entry-actions form {
    margin: 0;
}

.studio-entry-actions .button,
.studio-entry-actions form .button {
    width: auto;
    min-width: 104px;
}

.studio-list .section-title {
    font-size: clamp(1.95rem, 2.5vw, 2.75rem);
    line-height: 0.98;
}

.profile-grid {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.profile-grid-featured {
    align-items: stretch;
}

.profile-panel {
    display: grid;
    gap: 18px;
}

.profile-media {
    aspect-ratio: 1 / 1.05;
}

.profile-media-tall {
    aspect-ratio: 0.92 / 1.08;
}

.profile-subtitle,
.playlist-item span {
    color: var(--muted);
}

.feature-identity {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(149, 205, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.feature-identity strong {
    font-size: 1.05rem;
}

.feature-identity span {
    color: var(--muted);
}

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

.badge-row,
.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #dbebff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    font-weight: 700;
}

.social-chip:hover,
.social-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(113, 239, 217, 0.38);
    background: rgba(113, 239, 217, 0.09);
}

.social-chip-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.social-chip-icon svg {
    width: 100%;
    height: 100%;
}

.social-chip-label {
    line-height: 1;
}

.social-chip[data-platform='youtube'] {
    border-color: rgba(255, 92, 92, 0.34);
    background: rgba(255, 92, 92, 0.1);
}

.social-chip[data-platform='discord'] {
    border-color: rgba(125, 137, 255, 0.36);
    background: rgba(125, 137, 255, 0.12);
}

.social-chip[data-platform='instagram'] {
    border-color: rgba(255, 128, 193, 0.3);
    background: rgba(255, 128, 193, 0.12);
}

.social-chip[data-platform='x'],
.social-chip[data-platform='github'] {
    border-color: rgba(214, 231, 248, 0.24);
    background: rgba(214, 231, 248, 0.08);
}

.social-chip[data-platform='steam'] {
    border-color: rgba(110, 210, 255, 0.34);
    background: rgba(110, 210, 255, 0.1);
}

.social-chip[data-platform='tiktok'],
.social-chip[data-platform='twitch'],
.social-chip[data-platform='telegram'] {
    border-color: rgba(113, 239, 217, 0.28);
    background: rgba(113, 239, 217, 0.1);
}

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

.creator-card {
    display: grid;
    gap: 18px;
}

.creator-avatar {
    width: 100%;
    aspect-ratio: 1 / 0.9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.creator-copy {
    display: grid;
    gap: 10px;
}

.creator-copy h3 {
    margin: 0;
    font-size: 1.38rem;
}

.creator-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.creator-headline {
    color: #d8ebff;
    font-weight: 600;
}

.timeline-card {
    padding: 20px;
}

.timeline-title {
    margin: 12px 0 10px;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    font-size: 1.28rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s ease var(--reveal-delay, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.cinema-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-items: start;
    justify-items: center;
    overflow-y: auto;
    padding: 20px;
    background: rgba(1, 3, 8, 0.82);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.cinema-modal.active {
    opacity: 1;
    visibility: visible;
}

.cinema-card {
    width: min(1320px, 100%);
    padding: 22px;
    margin: auto 0;
}

.cinema-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.22fr) 300px;
    align-items: start;
}

.cinema-topbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.cinema-topbar-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.cinema-topbar-note {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.65;
}

.cinema-topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cinema-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.cinema-frame {
    position: relative;
}

.player-surface {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.modal-video,
.modal-embed {
    width: 100%;
    height: 100%;
    background: #000;
}

.modal-video {
    object-fit: contain;
}

.modal-embed {
    display: none;
}

.player-surface.is-external .modal-video {
    display: none;
}

.player-surface.is-external .modal-embed {
    display: block;
}

.player-surface.is-external .player-badge-row,
.player-surface.is-external .player-surface-overlay {
    display: none;
}

.modal-close,
.player-button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 10, 21, 0.78);
    color: var(--text);
}

.modal-close {
    min-height: 38px;
    padding: 8px 16px;
    backdrop-filter: blur(18px);
}

.player-controls {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 16px;
    width: min(780px, calc(100% - 44px));
    transform: translateX(-50%);
    z-index: 5;
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
    border: 1px solid rgba(143, 199, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(8, 18, 33, 0.68), rgba(5, 11, 22, 0.9)),
        radial-gradient(circle at top left, rgba(255, 180, 111, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(113, 239, 217, 0.1), transparent 34%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px);
}

.player-controls.is-hidden {
    display: none;
}

.player-controls::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.player-button {
    min-height: 40px;
    padding: 8px 14px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.player-button:hover,
.player-button:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(113, 239, 217, 0.34);
    background: rgba(10, 21, 37, 0.94);
}

.player-button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #041c24;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(113, 239, 217, 0.22);
}

.player-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.player-toolbar-copy,
.player-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-toolbar-copy {
    display: grid;
    gap: 2px;
    max-width: 280px;
}

.player-toolbar-copy .card-eyebrow {
    display: none;
}

.player-toolbar-copy strong {
    font-size: 0.94rem;
    line-height: 1.15;
    color: #dceeff;
}

.pill-compact {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.control-cluster {
    display: grid;
    gap: 8px;
    align-items: center;
}

.control-cluster-main .player-button {
    width: 100%;
}

.control-cluster-main {
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.control-cluster-right {
    grid-template-columns: auto minmax(150px, 1fr) auto auto auto;
    justify-content: stretch;
}

.control-cluster-right .player-button {
    min-width: 0;
}

.timeline-shell {
    display: grid;
    gap: 8px;
    align-items: center;
}

.timeline-stack {
    display: grid;
    gap: 8px;
    position: relative;
}

.timeline-rail {
    position: relative;
}

.timeline-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

.timeline-preview {
    --preview-x: 0%;
    position: absolute;
    left: var(--preview-x);
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    width: 132px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(4, 10, 21, 0.92);
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.timeline-preview[hidden] {
    display: none !important;
}

.timeline-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
}

.timeline-preview-copy {
    display: grid;
    gap: 2px;
}

.timeline-preview-copy strong {
    font-size: 0.9rem;
}

.timeline-preview-copy span {
    color: var(--muted);
    font-size: 0.8rem;
}

.timeline-chapter-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.chapter-mark {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(4, 10, 21, 0.92);
    background: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(255, 180, 111, 0.18);
    pointer-events: auto;
}

.chapter-mark:hover,
.chapter-mark:focus-visible {
    background: #ffe4c3;
    box-shadow: 0 0 0 4px rgba(255, 180, 111, 0.24);
}

.player-time-part {
    color: #dbe8f7;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}

.volume-shell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #dbe8f7;
}

.volume-shell span {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.volume-shell strong {
    min-width: 42px;
    font-size: 0.85rem;
    text-align: right;
    color: #d7ebff;
}

.volume-shell .volume-range {
    min-width: 86px;
}

.player-select-shell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #dbe8f7;
}

.player-select-shell span {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-select {
    border: 0;
    background: transparent;
    color: var(--text);
    min-height: 32px;
    min-width: 64px;
    outline: none;
}

.studio-entry-avatar {
    aspect-ratio: 1 / 1;
}

.timeline-range,
.volume-range {
    width: 100%;
    accent-color: var(--accent);
}

.timeline-range {
    --timeline-progress: 0%;
    appearance: none;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0 var(--timeline-progress), rgba(255, 255, 255, 0.12) var(--timeline-progress) 100%);
    outline: none;
}

.timeline-range::-webkit-slider-thumb,
.volume-range::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f4ffff;
    border: 2px solid rgba(4, 10, 21, 0.84);
    box-shadow: 0 0 0 4px rgba(113, 239, 217, 0.18);
}

.timeline-range::-moz-range-thumb,
.volume-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f4ffff;
    border: 2px solid rgba(4, 10, 21, 0.84);
    box-shadow: 0 0 0 4px rgba(113, 239, 217, 0.18);
}

.cinema-strip {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(5, 11, 22, 0.8), rgba(8, 16, 29, 0.72)),
        radial-gradient(circle at top left, rgba(110, 216, 255, 0.08), transparent 34%);
}

.tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-soft {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(143, 199, 255, 0.16);
}

.pill-live {
    border-color: rgba(255, 180, 111, 0.3);
    background: rgba(255, 180, 111, 0.12);
    color: #ffd7b2;
}

.strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.strip-copy {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.filmstrip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 320px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
}

.filmstrip::-webkit-scrollbar {
    height: 10px;
}

.filmstrip::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(143, 199, 255, 0.22);
}

.strip-item {
    display: grid;
    gap: 8px;
    padding: 9px;
    border-radius: 20px;
    border: 1px solid rgba(143, 199, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    scroll-snap-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.strip-item:hover,
.strip-item:focus-visible,
.strip-item.is-active {
    transform: translateY(-2px);
    border-color: rgba(113, 239, 217, 0.42);
    background: linear-gradient(180deg, rgba(16, 31, 51, 0.92), rgba(8, 16, 28, 0.86));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
}

.strip-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    position: relative;
}

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

.strip-runtime {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(4, 10, 21, 0.8);
    color: #eff7ff;
    font-size: 0.76rem;
}

.strip-status {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 180, 111, 0.84);
    color: #2e1405;
    font-size: 0.73rem;
    font-weight: 800;
}

.strip-meta {
    display: grid;
    gap: 4px;
}

.strip-meta strong {
    font-size: 0.95rem;
}

.strip-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.cinema-aside {
    min-height: 100%;
    min-width: 0;
}

.aside-stack {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 14, 28, 0.8), rgba(4, 10, 21, 0.86)),
        radial-gradient(circle at top right, rgba(255, 180, 111, 0.1), transparent 32%);
}

.aside-stack > * {
    min-width: 0;
}

.chapter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chapter-row[hidden] {
    display: none;
}

.chapter-chip {
    display: inline-grid;
    gap: 2px;
    min-width: 132px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: left;
}

.chapter-chip span {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chapter-chip strong {
    font-size: 0.9rem;
}

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

.studio-sort-card {
    padding: 22px;
}

.studio-sort-form {
    display: grid;
    gap: 14px;
}

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

.studio-sort-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    cursor: grab;
}

.studio-sort-item.is-dragging {
    opacity: 0.45;
}

.studio-sort-copy {
    display: grid;
    gap: 4px;
}

.studio-sort-copy span {
    color: var(--muted);
    font-size: 0.88rem;
}

.drag-handle {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(4, 10, 21, 0.72);
    color: var(--text);
}

.aside-poster-shell {
    display: grid;
    gap: 14px;
}

.aside-poster {
    aspect-ratio: 16 / 9.4;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(143, 199, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-md);
}

.player-aside-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-aside-stat {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(143, 199, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.player-aside-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-aside-stat strong {
    font-size: 1rem;
    line-height: 1.35;
}

.modal-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.02;
}

.modal-actions-stack {
    align-items: stretch;
}

.modal-actions-stack .button {
    flex: 1 1 100%;
}

.aside-summary {
    color: #d6e7f8;
    line-height: 1.72;
}

.player-tip {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.94rem;
}

.footer {
    padding: 30px 16px 48px;
    text-align: center;
    color: var(--muted);
}

.footer p {
    margin: 0;
}

.player-open {
    overflow: hidden;
}

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

@keyframes driftGlow {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 2%, 0) scale(1.06);
    }
}

@keyframes floatHalo {
    from {
        transform: translate3d(0, 0, 0) scale(0.98);
    }
    to {
        transform: translate3d(20px, -18px, 0) scale(1.08);
    }
}

@keyframes buttonPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(113, 239, 217, 0.12);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(113, 239, 217, 0);
    }
}

@media (max-width: 1180px) {
    .cinema-layout {
        grid-template-columns: 1fr;
    }

    .aside-stack {
        position: static;
    }

    .cards-grid--featured,
    .news-grid,
    .auth-grid,
    .studio-grid,
    .studio-guide-grid,
    .studio-sort-grid,
    .studio-list-grid,
    .studio-list-grid-wide,
    .profile-grid,
    .creator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .hero-grid-wide,
    .cards-grid,
    .signal-grid,
    .field-grid,
    .field-grid-compact,
    .news-grid,
    .stat-grid,
    .profile-stat-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .user-cluster,
    .nav-ghost,
    .logout-form {
        display: none;
    }

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

    .studio-entry,
    .studio-entry-news {
        grid-template-columns: 1fr;
    }

    .studio-entry-actions,
    .studio-entry-news .studio-entry-actions {
        grid-column: auto;
    }

    .mobile-menu .logout-form {
        display: block;
    }

    .mobile-menu .nav-ghost {
        display: inline-flex;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .page-shell,
    .nav-inner,
    .mobile-menu,
    .flash-stack {
        width: min(100% - 24px, 100%);
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: clamp(122px, 36vw, 164px);
        max-height: 34px;
    }

    .brand-sub {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .button,
    .nav-ghost {
        width: 100%;
    }

    .studio-anchor-row,
    .cinema-topbar,
    .cinema-topbar-actions,
    .hero-actions,
    .card-actions,
    .profile-links,
    .modal-actions,
    .form-actions {
        flex-direction: column;
    }

    .player-toolbar,
    .player-toolbar-copy,
    .player-toolbar-meta,
    .timeline-hint {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .hero-grid-wide {
        padding-top: 22px;
    }

    .hero-preview-large {
        aspect-ratio: 16 / 10;
        max-height: none;
    }

    .library-tools,
    .library-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .library-count {
        margin-left: 0;
    }

    .cinema-modal {
        padding: 10px;
    }

    .cinema-card {
        padding: 16px;
    }

    .player-badge-row {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .control-cluster,
    .control-cluster-right {
        justify-content: stretch;
    }

    .control-cluster .player-button,
    .control-cluster-right .player-button,
    .volume-shell,
    .player-select-shell {
        width: 100%;
    }

    .control-cluster-main,
    .control-cluster-right {
        grid-template-columns: 1fr;
    }

    .timeline-shell {
        gap: 12px;
    }

    .filmstrip {
        grid-auto-columns: minmax(220px, 78vw);
    }

    .player-controls {
        left: 50%;
        right: auto;
        bottom: 12px;
        width: calc(100% - 24px);
        transform: translateX(-50%);
        padding: 14px;
    }

    .player-aside-stats {
        grid-template-columns: 1fr;
    }

    .filmstrip {
        grid-auto-columns: minmax(220px, 86vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
