:root {
  --background: #07050d;
  --background-soft: #0c0814;
  --panel: #100b1b;
  --panel-strong: #151025;
  --panel-hover: #1b1230;
  --line: rgba(198, 152, 255, 0.15);
  --line-strong: rgba(203, 140, 255, 0.28);
  --text: #f7f3ff;
  --muted: #aaa2ba;
  --muted-strong: #c9c0d7;
  --purple: #9b4dff;
  --purple-light: #c06cff;
  --pink: #ff39bd;
  --cyan: #3fd9ff;
  --green: #23e58c;
  --red: #ff4c72;
  --orange: #ff9f4a;
  --header-height: 74px;
  --footer-height: 64px;
  --sidebar-width: 255px;
  --chat-width: 390px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(132, 48, 218, 0.14), transparent 26%),
    radial-gradient(circle at 100% 35%, rgba(220, 40, 170, 0.08), transparent 28%),
    var(--background);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.app-shell {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
  width: 100%;
  height: 100dvh;
  min-width: 1180px;
}

.app-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(610px, 1fr) auto;
  align-items: stretch;
  min-height: var(--header-height);
  background: rgba(7, 4, 13, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(135deg, var(--cyan), var(--purple) 50%, var(--pink));
  box-shadow:
    0 0 0 4px rgba(120, 66, 255, 0.12),
    0 0 26px rgba(82, 215, 255, 0.35);
}

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

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--pink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  overflow: hidden;
}

.navigation-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 160ms ease;
}

.navigation-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.navigation-item.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(141, 62, 225, 0.22), rgba(89, 38, 148, 0.16));
  border-color: rgba(190, 103, 255, 0.45);
}

.navigation-icon {
  color: #e6ddf2;
  font-size: 19px;
}

.live-label {
  position: absolute;
  top: -8px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-size: 8px;
  font-weight: 800;
}

.header-status {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.header-statistic {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 82px;
  padding: 0 13px;
  border-left: 1px solid var(--line);
}

.header-statistic > span:last-child {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.header-statistic strong {
  font-size: 15px;
  line-height: 1;
}

.header-statistic small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.header-icon-button {
  position: relative;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted-strong);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.header-icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.has-counter > span {
  position: absolute;
  top: 15px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  color: #fff;
  background: var(--pink);
  font-size: 9px;
  font-weight: 800;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.header-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-user-copy strong {
  font-size: 12px;
}

.header-user-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.header-user-copy i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.header-user-arrow {
  margin-left: auto;
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--chat-width);
  min-height: 0;
}

.library-sidebar,
.cinema-stage,
.chat-panel {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.library-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: rgba(10, 7, 17, 0.88);
}

.library-header {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.library-title {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.library-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184, 96, 255, 0.35);
  border-radius: 11px;
  color: #e8d5ff;
  background: rgba(138, 51, 203, 0.15);
  font-size: 20px;
}

.library-title h1 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.library-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.age-badge {
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
  background: var(--red);
  font-size: 8px;
  font-weight: 800;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 3, 10, 0.52);
}

.search-field span {
  color: var(--muted);
  font-size: 16px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 10px;
}

.search-field input::placeholder {
  color: #776f85;
}

.library-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.filter-button {
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  border-color: rgba(190, 103, 255, 0.45);
  background: rgba(139, 63, 203, 0.14);
}

.selected-movie-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.selected-poster {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 0.68;
  padding: 8px;
  border: 1px solid rgba(197, 110, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.selected-poster::before,
.movie-poster::before,
.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 18% 18% 0 40%;
  border-radius: 48% 48% 12% 12%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 183, 139, 0.9) 0 12%, transparent 13%),
    linear-gradient(180deg, transparent 0 26%, rgba(186, 84, 160, 0.48) 27% 100%);
  opacity: 0.72;
}

.selected-poster-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 5px;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  font-size: 7px;
  font-weight: 800;
}

.selected-poster strong {
  position: relative;
  z-index: 2;
  font-size: 9px;
}

.poster-theme-1 {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 95, 184, 0.22), transparent 25%),
    radial-gradient(circle at 27% 76%, rgba(91, 73, 255, 0.27), transparent 35%),
    linear-gradient(145deg, #321340, #0e0918 60%, #271127);
}

.poster-theme-2 {
  background:
    radial-gradient(circle at 72% 24%, rgba(62, 217, 255, 0.24), transparent 25%),
    linear-gradient(145deg, #10334d, #0b0c16 58%, #301745);
}

.poster-theme-3 {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 145, 72, 0.26), transparent 25%),
    linear-gradient(145deg, #4a2411, #100b16 58%, #491b38);
}

.poster-theme-4 {
  background:
    radial-gradient(circle at 72% 24%, rgba(146, 255, 194, 0.2), transparent 25%),
    linear-gradient(145deg, #123b30, #0a0c13 58%, #2c1641);
}

.poster-theme-5 {
  background:
    radial-gradient(circle at 72% 24%, rgba(201, 123, 255, 0.24), transparent 25%),
    linear-gradient(145deg, #42205e, #0b0913 58%, #151d49);
}

.poster-theme-6 {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 91, 121, 0.22), transparent 25%),
    linear-gradient(145deg, #5a1e30, #0b0910 58%, #2a153e);
}

.selected-movie-copy {
  min-width: 0;
}

.selected-movie-copy h2 {
  margin: 0;
  font-size: 12px;
}

.selected-movie-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.selected-progress {
  height: 4px;
  margin-top: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.selected-progress span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e41ff, #ef40c4);
}

.selected-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 7px;
}

.primary-button,
.secondary-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #7540ff, #c33eff);
  border: 0;
  box-shadow: 0 8px 22px rgba(145, 54, 225, 0.2);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
}

.full-width {
  width: 100%;
  margin-top: 9px;
}

.movie-library {
  min-height: 0;
  padding: 11px 12px 12px;
  overflow: hidden;
}

.movie-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.movie-library-heading h2 {
  margin: 0;
  color: #f067d7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.movie-library-heading span {
  color: var(--muted);
  font-size: 8px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(151, 76, 220, 0.45) transparent;
}

.movie-card {
  min-width: 0;
}

.movie-poster {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 0.7;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: 160ms ease;
}

.movie-poster:hover,
.movie-card.is-selected .movie-poster {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 57, 189, 0.18);
}

.movie-poster > * {
  position: relative;
  z-index: 2;
}

.poster-flags {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
}

.poster-flag {
  padding: 3px 4px;
  border-radius: 4px;
  color: #fff;
  background: rgba(7, 5, 12, 0.68);
  font-size: 6px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.poster-flag.new {
  color: #ff8edd;
}

.poster-flag.popular {
  color: #ffc27b;
}

.movie-poster strong {
  font-size: 8px;
  line-height: 1.3;
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 7px;
}

.cinema-stage {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  padding: 0 14px 14px;
  background:
    radial-gradient(circle at 50% 43%, rgba(128, 46, 190, 0.11), transparent 31%),
    rgba(8, 5, 14, 0.95);
}

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

.stage-heading-copy {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stage-heading-copy > div {
  display: flex;
  flex-direction: column;
}

.stage-heading strong {
  font-size: 13px;
  text-transform: uppercase;
}

.stage-heading small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.stage-heading-actions {
  display: flex;
  gap: 7px;
}

.ondemand-arena {
  position: relative;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 102px;
  grid-template-rows: 104px minmax(0, 1fr) 104px;
  gap: 10px 12px;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(127, 46, 187, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(20, 11, 33, 0.96), rgba(8, 5, 13, 0.98));
  overflow: hidden;
}

.ondemand-arena.is-cams-hidden .cinema-cam-row,
.ondemand-arena.is-cams-hidden .side-cam {
  opacity: 0;
  pointer-events: none;
}

.arena-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 62, 229, 0.18), transparent 72%);
  transform: translate(-50%, -50%);
  filter: blur(25px);
}

.top-cams,
.bottom-cams {
  grid-column: 1 / 4;
}

.top-cams {
  grid-row: 1;
}

.bottom-cams {
  grid-row: 3;
}

.cinema-cam-row {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  transition: 180ms ease;
}

.cinema-cam,
.side-cam {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(72px, 6.7vw, 96px);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid rgba(189, 105, 255, 0.42);
  border-radius: 50%;
  background: #120b1c;
  box-shadow:
    0 0 0 6px rgba(136, 57, 205, 0.035),
    0 0 24px rgba(137, 57, 205, 0.18);
  overflow: hidden;
  cursor: pointer;
  transition: 170ms ease;
}

.cinema-cam:hover,
.side-cam:hover,
.cinema-cam.is-speaking,
.side-cam.is-speaking {
  border-color: var(--pink);
  transform: scale(1.06);
  box-shadow:
    0 0 0 7px rgba(255, 57, 189, 0.07),
    0 0 30px rgba(255, 57, 189, 0.25);
}

.cam-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  background:
    radial-gradient(circle at 50% 28%, rgba(221, 152, 107, 0.82) 0 10%, transparent 11%),
    linear-gradient(160deg, #552072, #140d26 55%, #22113b);
}

.cam-visual.style-2 {
  background:
    radial-gradient(circle at 50% 28%, rgba(199, 132, 92, 0.85) 0 10%, transparent 11%),
    linear-gradient(160deg, #164a72, #160c22 55%, #35154f);
}

.cam-visual.style-3 {
  background:
    radial-gradient(circle at 50% 28%, rgba(226, 160, 116, 0.85) 0 10%, transparent 11%),
    linear-gradient(160deg, #712b53, #190c22 55%, #42163f);
}

.cam-visual.style-4 {
  background:
    radial-gradient(circle at 50% 28%, rgba(176, 116, 76, 0.85) 0 10%, transparent 11%),
    linear-gradient(160deg, #583014, #130b1d 55%, #301740);
}

.cam-visual.style-5 {
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 148, 106, 0.85) 0 10%, transparent 11%),
    linear-gradient(160deg, #244c72, #0d1020 55%, #25133b);
}

.cam-visual::after {
  content: "";
  position: absolute;
  inset: auto 22% 0;
  height: 56%;
  border-radius: 48% 48% 12% 12%;
  background: linear-gradient(180deg, rgba(255, 181, 132, 0.8), rgba(105, 47, 127, 0.72));
}

.cam-visual > span {
  position: relative;
  z-index: 2;
}

.cam-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 88%;
  padding: 4px 7px;
  border-radius: 10px;
  color: #fff;
  background: rgba(6, 4, 10, 0.72);
  font-size: 7px;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.cam-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(35, 229, 140, 0.9);
}

.side-cam {
  align-self: center;
  justify-self: center;
  width: 90px;
}

.side-cam-left {
  grid-column: 1;
}

.side-cam-right {
  grid-column: 3;
}

.side-cam-left-top,
.side-cam-right-top {
  grid-row: 2;
  align-self: start;
  margin-top: 14%;
}

.side-cam-left-bottom,
.side-cam-right-bottom {
  grid-row: 2;
  align-self: end;
  margin-bottom: 14%;
}

.ondemand-screen-wrap {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  min-width: 0;
  min-height: 0;
}

.ondemand-screen {
  position: relative;
  z-index: 2;
  min-height: 0;
  border: 2px solid rgba(205, 126, 255, 0.47);
  border-radius: 14px;
  background: #050407;
  box-shadow:
    0 0 0 7px rgba(136, 57, 205, 0.04),
    0 0 42px rgba(153, 62, 222, 0.24),
    0 25px 55px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.ondemand-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050407;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  box-shadow: inset 0 -180px 160px rgba(0, 0, 0, 0.58);
}

.video-placeholder > * {
  position: relative;
  z-index: 2;
}

.placeholder-age {
  position: absolute;

  top: clamp(16px, 2%, 28px);
  left: clamp(16px, 2%, 28px);

  display: flex;
  align-items: center;
  justify-content: center;

  width: clamp(52px, 4.2vw, 82px);
  height: clamp(52px, 4.2vw, 82px);

  border: 3px solid rgba(255,255,255,.95);
  border-radius: 14px;

  background: rgba(170, 22, 38, .92);

  color: #fff;

  font-size: clamp(22px, 1.8vw, 36px);
  font-weight: 900;

  line-height: 1;

  box-shadow:
    0 0 14px rgba(0,0,0,.45),
    0 0 18px rgba(255,60,60,.18);

  user-select: none;
  pointer-events: none;
}

:fullscreen .placeholder-age,
:-webkit-full-screen .placeholder-age {
  width: clamp(68px, 4vw, 96px);
  height: clamp(68px, 4vw, 96px);

  font-size: clamp(28px, 2vw, 42px);
}

.video-placeholder small {
  display: block;
  color: #f085da;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.video-placeholder strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(25px, 3vw, 44px);
  letter-spacing: -0.04em;
}

.video-placeholder p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 11px;
}

.player-topbar {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
}

.ondemand-pill,
.quality-pill {
  position: absolute;

  top: 18px;
  right: 188px;

  z-index: 60;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  height: 34px;

  padding: 0 11px;

  border:
    2px solid rgba(255, 255, 255, 0.22);

  border-radius: 999px;

  color: #ffffff;

  background:
    rgba(13, 10, 17, 0.9);

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.48);

  font-size: 17px;
  font-weight: 900;
  line-height: 1;

  pointer-events: none;
  user-select: none;

  backdrop-filter: blur(7px);
}


:fullscreen .quality-pill {
  top: 26px;
  right: 205px;

  min-width: 70px;
  height: 40px;

  padding: 0 13px;

  font-size: 21px;
}


:-webkit-full-screen .quality-pill {
  top: 26px;
  right: 205px;

  min-width: 70px;
  height: 40px;

  padding: 0 13px;

  font-size: 21px;
}

.ondemand-pill {
  color: #dc95ff;
}

.player-center-control {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.player-center-control button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding-left: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 6, 14, 0.62);
  font-size: 23px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.player-bottombar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(7, 5, 11, 0.73);
  backdrop-filter: blur(14px);
}

.player-copy {
  display: flex;
  flex-direction: column;
}

.player-copy strong {
  font-size: 12px;
}

.player-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.player-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.volume-control {
  display: flex;
  width: 70px;
}

.volume-control input {
  width: 100%;
  accent-color: var(--pink);
}

.player-progress {
  grid-column: 1 / 3;
}

.player-progress-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.player-progress-track span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7d42ff, #f33fc5);
}

.player-time {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.movie-status-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.movie-status-strip > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.movie-status-strip > div:last-child {
  border-right: 0;
}

.movie-strip-icon {
  color: #c77eff;
  font-size: 17px;
}

.movie-status-strip > div > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.movie-status-strip strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.movie-status-strip small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 0 12px 13px;
  background: rgba(11, 7, 18, 0.94);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title-icon {
  font-size: 28px;
}

.chat-title h1 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.chat-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.chat-tools {
  display: flex;
  gap: 7px;
}

.small-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
}

.moderator-notice {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  min-height: 47px;
  margin-bottom: 7px;
  padding: 0 11px;
  border: 1px solid rgba(173, 75, 228, 0.16);
  border-radius: 8px;
  background: rgba(89, 32, 117, 0.18);
}

.moderator-notice > span {
  color: #df52ef;
  font-size: 18px;
}

.moderator-notice p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 9px;
}

.moderator-notice button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.messages {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(151, 76, 220, 0.45) transparent;
}

.chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 3px;
  border-bottom: 1px solid rgba(194, 146, 235, 0.08);
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(205, 136, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #4d2663, #171427 65%);
}

.avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #120b1c;
  border-radius: 50%;
  background: var(--green);
}

.avatar-small {
  width: 30px;
  height: 30px;
}

.avatar-mike {
  background: linear-gradient(145deg, #4d2663, #171427 65%);
}

.avatar-eric {
  background: linear-gradient(145deg, #194e7b, #1a1229 65%);
}

.message-copy {
  min-width: 0;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.origin-badge {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.origin-gb {
  color: #92ffc0;
  background: rgba(21, 155, 84, 0.16);
}

.origin-gz {
  color: #dfb0ff;
  background: rgba(155, 77, 255, 0.17);
}

.origin-cam {
  color: #81efff;
  background: rgba(63, 217, 255, 0.13);
}

.origin-c24 {
  color: #ff9de4;
  background: rgba(255, 57, 189, 0.13);
}

.origin-on {
  color: #ffc88e;
  background: rgba(255, 156, 61, 0.13);
}

.message-meta strong {
  color: #e1a3ff;
  font-size: 10px;
}

.message-meta span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-copy p {
  margin: 6px 0 0;
  color: #e7e1ef;
  font-size: 10px;
  line-height: 1.42;
}

.message-time {
  color: var(--muted);
  font-size: 8px;
}

.chat-composer {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 5px;
  min-height: 50px;
  margin-top: 8px;
  padding: 4px 5px 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 5, 13, 0.88);
}

.chat-composer input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.chat-composer input::placeholder {
  color: #776f85;
}

.composer-icon {
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--muted-strong);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.send-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #853dff, #f03fc5);
  box-shadow: 0 0 18px rgba(227, 57, 202, 0.32);
  cursor: pointer;
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr 1fr 1.1fr 1fr;
  border-top: 1px solid var(--line);
  background: rgba(7, 4, 13, 0.98);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.status-item > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status-item strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-item small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-icon {
  color: #c383ff;
  font-size: 20px;
}

.status-accent {
  background: rgba(164, 53, 205, 0.07);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot-green {
  background: var(--green);
  box-shadow: 0 0 10px rgba(35, 229, 140, 0.8);
}

.status-dot-pink {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 57, 189, 0.75);
}

.status-dot-purple {
  background: var(--purple-light);
  box-shadow: 0 0 10px rgba(192, 108, 255, 0.75);
}

.available-text {
  color: var(--green) !important;
}

.live-pill {
  padding: 4px 6px;
  border-radius: 5px;
  color: #6ff2b2;
  background: rgba(35, 229, 140, 0.14);
  font-size: 8px;
  font-weight: 800;
}

.profile-popover {
  position: fixed;
  z-index: 100;
  width: 260px;
  padding: 14px;
  border: 1px solid rgba(192, 103, 255, 0.36);
  border-radius: 12px;
  background: rgba(17, 10, 28, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.profile-popover-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.profile-popover-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(205, 136, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4d2663, #171427 65%);
  font-size: 20px;
  font-weight: 800;
}

.profile-popover-copy {
  margin-top: 10px;
}

.profile-popover-copy h3 {
  margin: 8px 0 0;
  font-size: 15px;
}

.profile-popover-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.profile-popover-actions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 120;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 240px;
  padding: 11px 13px;
  border: 1px solid rgba(189, 102, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: rgba(22, 12, 34, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

@media (max-width: 1450px) {
  :root {
    --sidebar-width: 235px;
    --chat-width: 360px;
  }

  .navigation-item {
    padding: 0 10px;
  }

  .ondemand-arena {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    grid-template-rows: 92px minmax(0, 1fr) 92px;
  }

  .side-cam {
    width: 78px;
  }

  .cinema-cam {
    width: clamp(66px, 6vw, 84px);
  }
}


/* =========================================================
   GAYZZEE RESPONSIVE CINEMA ON DEMAND
   ========================================================= */

.mobile-player-controls,
.mobile-activity-bar,
.mobile-bottom-nav,
.mobile-library-sheet,
.mobile-profile-sheet,
.mobile-sheet-backdrop {
  display: none;
}

@media (max-width: 1279px) {
  :root {
    --sidebar-width: 82px;
    --chat-width: 350px;
  }

  .app-shell {
    min-width: 0;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand-copy {
    display: none;
  }

  .library-sidebar .library-title > div,
  .library-sidebar .age-badge,
  .library-sidebar .search-field,
  .library-sidebar .library-filters,
  .library-sidebar .selected-movie-copy,
  .library-sidebar .movie-library-heading {
    display: none;
  }

  .library-sidebar {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .library-header {
    padding: 12px 8px;
  }

  .library-title {
    display: flex;
    justify-content: center;
  }

  .selected-movie-card {
    display: block;
    padding: 10px 8px;
  }

  .selected-poster {
    width: 100%;
  }

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

  .movie-card-meta {
    display: none;
  }

  .header-statistic {
    display: none;
  }

  .navigation-item {
    padding: 0 10px;
  }

  .ondemand-arena {
    grid-template-columns: 84px minmax(0, 1fr) 84px;
    grid-template-rows: 90px minmax(0, 1fr) 90px;
  }

  .side-cam {
    width: 74px;
  }

  .cinema-cam {
    width: clamp(62px, 5.7vw, 80px);
  }
}

@media (max-width: 979px) {
  :root {
    --header-height: 58px;
    --footer-height: 0px;
  }

  html,
  body {
    overflow: hidden;
  }

  body {
    overscroll-behavior: none;
  }

  .app-shell {
    display: grid;
    grid-template-rows: var(--header-height) minmax(0, 1fr);
    height: 100dvh;
    min-width: 0;
    padding-bottom: 152px;
  }

  .app-header {
    grid-template-columns: 58px minmax(0, 1fr) 64px;
    min-height: 58px;
  }

  .brand {
    width: 58px;
    border-right: 0;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 21px;
  }

  .main-navigation,
  .header-statistic,
  .header-icon-button {
    display: none;
  }

  .header-status {
    grid-column: 3;
  }

  .header-user {
    min-width: 64px;
    padding: 0 10px;
    border-left: 0;
  }

  .header-user-copy,
  .header-user-arrow {
    display: none;
  }

  .header-user .avatar {
    width: 36px;
    height: 36px;
  }

  .workspace {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .library-sidebar,
  .cinema-stage,
  .chat-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    border-right: 0;
  }

  .library-sidebar,
  .chat-panel {
    display: none;
  }

  .cinema-stage {
    display: grid;
    grid-template-rows: 48px minmax(0, 1fr);
    padding: 0 8px 8px;
  }

  body[data-mobile-tab="chat"] .cinema-stage,
  body[data-mobile-tab="more"] .cinema-stage {
    display: none;
  }

  body[data-mobile-tab="chat"] .chat-panel {
    display: grid;
  }

  body[data-mobile-tab="more"] .library-sidebar {
    display: grid;
    overflow-y: auto;
    background: rgba(10, 7, 17, 0.99);
  }

  .library-sidebar .library-title > div,
  .library-sidebar .age-badge,
  .library-sidebar .search-field,
  .library-sidebar .library-filters,
  .library-sidebar .selected-movie-copy,
  .library-sidebar .movie-library-heading {
    display: initial;
  }

  .library-header {
    padding: 14px;
  }

  .library-title {
    display: grid;
    justify-content: initial;
  }

  .selected-movie-card {
    display: grid;
    padding: 12px 14px;
  }

  .selected-poster {
    width: auto;
  }

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

  .movie-card-meta {
    display: flex;
  }

  .stage-heading {
    min-height: 48px;
  }

  .stage-heading-copy {
    min-width: 0;
  }

  .stage-heading strong {
    font-size: 11px;
  }

  .stage-heading small {
    display: none;
  }

  .stage-heading-actions {
    gap: 5px;
  }

  .stage-heading-actions .secondary-button {
    min-height: 31px;
    padding: 0 9px;
    font-size: 8px;
  }

  #toggleCamsButton {
    display: none;
  }

  .ondemand-arena {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 92px;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    overflow: hidden;
  }

  .arena-glow,
  .side-cam {
    display: none !important;
  }

  .top-cams {
    display: none;
  }

  .ondemand-screen-wrap {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: minmax(0, 1fr) 48px;
  }

  .ondemand-screen {
    border-radius: 11px;
  }

  .video-placeholder {
    padding: 22px;
  }

  .video-placeholder strong {
    font-size: clamp(24px, 8vw, 38px);
  }

  .player-center-control button {
    width: 56px;
    height: 56px;
  }

  .player-bottombar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 9px;
  }

  .player-copy strong {
    font-size: 10px;
  }

  .player-copy small {
    font-size: 7px;
  }

  .player-controls {
    gap: 5px;
  }

  .player-controls button {
    width: 28px;
    height: 28px;
  }

  .volume-control {
    display: none;
  }

  .movie-status-strip {
    gap: 0;
    padding-top: 5px;
  }

  .movie-status-strip > div {
    padding: 0 6px;
  }

  .movie-status-strip strong {
    font-size: 7px;
  }

  .movie-status-strip small {
    font-size: 6px;
  }

  .bottom-cams {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bottom-cams::-webkit-scrollbar {
    display: none;
  }

  .cinema-cam {
    flex: 0 0 74px;
    width: 74px;
    scroll-snap-align: center;
  }

  .cam-label {
    font-size: 7px;
  }

  .chat-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 0 9px 9px;
    background: rgba(11, 7, 18, 0.99);
  }

  .panel-heading {
    min-height: 52px;
  }

  .chat-title h1 {
    font-size: 12px;
  }

  .chat-title p {
    font-size: 7px;
  }

  .moderator-notice {
    min-height: 43px;
  }

  .chat-message {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 10px 2px;
  }

  .chat-message .avatar {
    width: 38px;
    height: 38px;
  }

  .message-copy p {
    font-size: 11px;
  }

  .chat-composer {
    grid-template-columns: 34px minmax(0, 1fr) 42px;
    min-height: 48px;
  }

  .chat-composer .composer-icon:nth-of-type(2) {
    display: none;
  }

  .status-bar {
    display: none;
  }

  .mobile-player-controls {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 108px;
    z-index: 72;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    min-height: 50px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(10, 6, 17, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
  }

  body[data-mobile-tab="chat"] .mobile-player-controls,
  body[data-mobile-tab="more"] .mobile-player-controls {
    display: none;
  }

  .mobile-player-controls button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.025);
  }

  .mobile-player-controls button span {
    font-size: 15px;
  }

  .mobile-player-controls button strong {
    font-size: 7px;
  }

  .mobile-player-controls button.is-primary {
    color: #fff;
    border-color: rgba(208, 100, 255, 0.42);
    background: linear-gradient(135deg, #7540ff, #c33eff);
  }

  .mobile-activity-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 5, 14, 0.97);
    backdrop-filter: blur(18px);
  }

  .mobile-activity-bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
  }

  .mobile-activity-bar strong {
    color: #fff;
    font-size: 9px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(7, 4, 13, 0.99);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    border: 0;
    color: #82798e;
    background: transparent;
    cursor: pointer;
  }

  .mobile-nav-button > span {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-nav-button strong {
    font-size: 8px;
  }

  .mobile-nav-button small {
    position: absolute;
    top: 8px;
    left: calc(50% + 8px);
    display: grid;
    place-items: center;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 10px;
    color: #fff;
    background: var(--pink);
    font-size: 7px;
  }

  .mobile-nav-button.is-active {
    color: #fff;
  }

  .mobile-nav-button.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    box-shadow: 0 0 11px rgba(255, 57, 189, 0.65);
  }

  .mobile-nav-live > span {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    margin-top: -20px;
    border: 4px solid #090611;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #7842ff, #e43fc6);
    box-shadow: 0 0 22px rgba(205, 57, 201, 0.36);
  }

  .mobile-library-sheet,
  .mobile-profile-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 102;
    display: block;
    max-height: min(88dvh, 800px);
    padding: 9px 14px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(135, 56, 205, 0.16), transparent 28%),
      rgba(14, 8, 24, 0.99);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(105%);
    transition: transform 220ms ease;
  }

  body.mobile-library-open .mobile-library-sheet,
  body.mobile-profile-open .mobile-profile-sheet {
    transform: translateY(0);
  }

  .mobile-sheet-handle {
    width: 44px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: #50465e;
  }

  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-sheet-header small {
    color: var(--pink);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-sheet-header h2 {
    margin: 5px 0 0;
    font-size: 18px;
  }

  .mobile-sheet-header button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 20px;
  }

  .mobile-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-top: 14px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  .mobile-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
  }

  .mobile-filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 9px;
  }

  .mobile-filter-row button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-filter-row button.is-active {
    color: #fff;
    border-color: rgba(190, 103, 255, 0.45);
    background: rgba(139, 63, 203, 0.14);
  }

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

  .mobile-movie-card {
    min-width: 0;
  }

  .mobile-movie-poster {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 0.7;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    overflow: hidden;
  }

  .mobile-movie-card.is-selected .mobile-movie-poster {
    border-color: var(--pink);
    box-shadow: 0 0 22px rgba(255, 57, 189, 0.18);
  }

  .mobile-movie-poster strong {
    position: relative;
    z-index: 2;
    font-size: 9px;
  }

  .mobile-movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 7px;
  }

  .mobile-profile-hero {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 17px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .mobile-profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }

  .mobile-profile-hero > div {
    display: flex;
    flex-direction: column;
  }

  .mobile-profile-hero strong {
    font-size: 15px;
  }

  .mobile-profile-hero span {
    margin-top: 5px;
    color: var(--muted-strong);
    font-size: 10px;
  }

  .mobile-profile-hero small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: var(--green);
    font-size: 8px;
  }

  .mobile-profile-info {
    display: grid;
    gap: 9px;
    margin-top: 11px;
  }

  .mobile-profile-info article {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
  }

  .mobile-profile-info span {
    color: var(--pink);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-profile-info p {
    margin: 6px 0 0;
    color: var(--muted-strong);
    font-size: 10px;
    line-height: 1.45;
  }

  .mobile-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
  }

  .mobile-profile-actions .primary-button {
    grid-column: 1 / 3;
  }

  .mobile-profile-actions button {
    min-height: 41px;
  }

  .mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    background: rgba(2, 1, 5, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-library-open .mobile-sheet-backdrop,
  body.mobile-profile-open .mobile-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .toast-region {
    right: 10px;
    bottom: 112px;
    left: 10px;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 479px) {
  .ondemand-arena {
    grid-template-rows: minmax(0, 1fr) 84px;
  }

  .cinema-cam {
    flex-basis: 68px;
    width: 68px;
  }

  .mobile-player-controls {
    left: 6px;
    right: 6px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 979px) {
  .app-shell {
    padding-bottom: 64px;
  }

  .mobile-activity-bar {
    display: none;
  }

  .mobile-player-controls {
    left: auto;
    right: 8px;
    bottom: 70px;
    width: 330px;
  }

  .cinema-stage {
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .ondemand-arena {
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-rows: minmax(0, 1fr);
  }

  .ondemand-screen-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .bottom-cams {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    overflow-y: auto;
  }
}


/* ==========================================================
   CINEMA ON DEMAND
   REAL MEDIA FIX
   2026-08-08
========================================================== */

/*
 * De cataloguskaarten worden door cinemaon.js als buttons
 * opgebouwd. Browser-default button styling mag hier nooit
 * zichtbaar zijn.
 */

.poster-grid > .movie-card {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.poster-grid > .movie-card:focus-visible {
  outline: 2px solid rgba(232, 73, 211, 0.72);
  outline-offset: 3px;
  border-radius: 10px;
}

.poster-grid > .movie-card .movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  padding: 0;
  background-color: #0b0710;
}

.poster-grid > .movie-card .movie-poster.has-image::before {
  display: none;
}

.poster-grid > .movie-card .movie-poster img {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

.poster-grid > .movie-card .movie-poster .selected-poster-badge {
  z-index: 4;
}

.poster-grid > .movie-card .movie-card-meta {
  min-width: 0;
  margin-top: 6px;
  padding: 0 2px;
  background: transparent;
}

.poster-grid > .movie-card .movie-card-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #f5edf9;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-grid > .movie-card .movie-card-meta span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
}

/*
 * De oude grafische nepfiguur is alleen bedoeld voor een
 * lege placeholder. Niet boven echte afbeeldingen tekenen.
 */

.selected-poster.has-image::before,
.movie-poster.has-image::before {
  display: none;
}

/*
 * Echte filmvideo.
 */

.ondemand-screen #ondemandVideo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ondemand-screen #ondemandVideo[hidden] {
  display: none !important;
}

/*
 * Placeholder alleen gebruiken wanneer JS hem werkelijk
 * zichtbaar laat. De bestaande .video-placeholder-regel
 * had display:flex en kon anders het hidden-attribuut visueel
 * tegenwerken.
 */

.video-placeholder[hidden] {
  display: none !important;
}

.video-placeholder {
  z-index: 2;
}

.video-placeholder.has-image::before {
  display: none;
}

/*
 * Playerlagen blijven boven de video.
 */

.player-topbar {
  z-index: 7;
}

.player-center-control {
  z-index: 6;
}

.player-bottombar {
  z-index: 7;
}



/* ==========================================================
   CINEMA ON DEMAND
   PLAYER CONTROL BAR FIX
========================================================== */

.player-center-control {
  display: none !important;
}

.player-controls #playPauseButton {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  cursor: pointer;
}

.player-controls #playPauseButton:hover {
  border-color: rgba(224, 89, 215, 0.55);
  background: rgba(224, 89, 215, 0.12);
}

.player-controls #playPauseButton:disabled {
  opacity: 0.42;
  cursor: default;
}

/* ==========================================================
   CINEMA ON DEMAND · LIVEKIT CAMS
========================================================== */

.cinema-cam {
  overflow: hidden;
}

.cinema-cam-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
}

.cinema-cam-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cinema-cam-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.cinema-cam .cam-label {
  position: absolute;
  left: 50%;
  bottom: 5px;
  z-index: 4;
  max-width: 82%;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 3, 10, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

.header-icon-button[aria-label="Webcam"].is-active {
  color: #fff;
  border-color: rgba(255, 72, 194, 0.55);
  background: rgba(255, 72, 194, 0.16);
}


/* ==========================================================
   CINEMA ON DEMAND
   STANDAARD TV BACKGROUND
========================================================== */

#ondemandScreen #videoPlaceholder {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;

  background:
    #050407
    url("../images/tvbackground.png")
    center center
    / cover
    no-repeat !important;

  box-shadow:
    inset 0 -150px 140px rgba(0, 0, 0, 0.34) !important;
}


/* Oude gegenereerde placeholder-afbeeldingen uitschakelen */
#ondemandScreen #videoPlaceholder::before,
#ondemandScreen #videoPlaceholder::after {
  display: none !important;
}


/* Tekst onderaan leesbaar houden boven de afbeelding */
#ondemandScreen #videoPlaceholder > div {
  position: relative;
  z-index: 3;

  padding: 6px 8px;

  border-radius: 10px;

  background:
    rgba(5, 3, 9, 0.42);

  backdrop-filter:
    blur(5px);
}


/* De oude losse 18+ IN de placeholder niet tonen.
   De permanente 18+ bij het TV-logo blijft staan.
*/
#ondemandScreen #videoPlaceholder .placeholder-age {
  display: none !important;
}


/* Wanneer de echte film speelt */
#ondemandScreen #ondemandVideo:not([hidden]) + #videoPlaceholder {
  display: none !important;
}


/* ==========================================================
   CINEMA ON DEMAND
   TV-style auto-hide player controls

   Zelfde principe als Cinema 24/7:
   - normaal volledig filmbeeld
   - bediening zichtbaar bij hover
   - bediening zichtbaar bij keyboard focus
   ========================================================== */

.ondemand-screen .player-bottombar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}


.ondemand-screen:hover .player-bottombar,
.ondemand-screen:focus-within .player-bottombar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/*
 * Op touchscreens bestaat echte hover niet.
 * Daar blijft de bediening bruikbaar.
 */

@media (hover: none), (pointer: coarse) {

    .ondemand-screen .player-bottombar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

}

