/* ═══════════════════════════════════════════════════
   DAPCITY TV — main.css
   Chatroomer.com light panel theme
═══════════════════════════════════════════════════ */
:root {
  --dc-bg:          #3d4a52;
  --dc-panel:       #f5f5f5;
  --dc-panel-alt:   #ebebeb;
  --dc-panel-hover: #e0e0e0;
  --dc-border:      #d8d8d8;
  --dc-border-light:#c8c8c8;
  --dc-red:         #c0392b;
  --dc-red-hover:   #e74c3c;
  --dc-red-glow:    rgba(192,57,43,0.12);
  --dc-text:        #2d2d2d;
  --dc-text-muted:  #666666;
  --dc-text-dim:    #999999;
  --dc-white:       #ffffff;
  --dc-username:    #1a1a1a;
  --dc-online:      #27ae60;
  --font-head: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
}

/* Chatroomer Stream App refresh */
:root {
  --stream-bg: #05070d;
  --stream-surface: rgba(13, 18, 31, 0.86);
  --stream-line: rgba(255,255,255,0.11);
  --stream-line-strong: rgba(84, 137, 255, 0.36);
  --stream-blue: #245bd7;
  --stream-orange: #FFA903;
  --stream-text: #f7f9ff;
  --stream-muted: rgba(247,249,255,0.68);
  --stream-dim: rgba(247,249,255,0.42);
}

body {
  background:
    radial-gradient(circle at 20% -10%, rgba(36,91,215,0.42), transparent 32%),
    radial-gradient(circle at 78% 4%, rgba(255,169,3,0.2), transparent 25%),
    linear-gradient(180deg, #090d18 0%, #05070d 42%, #03040a 100%) !important;
  color: var(--stream-text);
}

.site-header {
  background: rgba(5, 7, 13, 0.78) !important;
  border-bottom: 1px solid var(--stream-line);
  box-shadow: 0 18px 70px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px);
}

.header-top { max-width: 1760px; padding: 12px 0; }
.header-logo img { height: 58px !important; max-height: 58px !important; filter: drop-shadow(0 16px 32px rgba(36,91,215,0.32)); }

.now-playing-banner {
  min-width: min(720px, 42vw);
  justify-content: center;
  background: linear-gradient(90deg, rgba(36,91,215,0.18), rgba(255,169,3,0.14));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 40px rgba(0,0,0,0.22);
}

.now-playing-text,
.header-username,
.watching-header h2,
.epg-section-header h2,
.ticker-item { color: var(--stream-text); }

.now-playing-text span,
.panel-titlebar-label span,
.epg-section-header h2::before { color: var(--stream-orange); }

.header-btn,
.header-menu-toggle,
.remote-btn,
.dc-send-btn,
.dc-bar-btn { border-radius: 999px; }

.header-btn-primary,
.dc-send-btn {
  background: linear-gradient(135deg, var(--stream-orange), #FFC14A);
  box-shadow: 0 12px 28px rgba(255,169,3,0.24);
}

.header-btn-outline,
.header-menu-toggle {
  color: var(--stream-text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.header-menu {
  background: rgba(11,16,28,0.98);
  border-color: var(--stream-line);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.header-menu a,
.header-menu button { color: var(--stream-text); }
.header-menu a:hover,
.header-menu button:hover { background: rgba(92,145,255,0.16); color: #fff; }

.news-ticker-container {
  background: rgba(8,12,22,0.92);
  border-bottom: 1px solid var(--stream-line);
}

.ticker-label { background: linear-gradient(135deg, var(--stream-blue), var(--stream-orange)); }

.watching-section,
.main-grid,
.epg-section,
.member-channels-section { max-width: 1760px; }

.watching-section { margin-top: 16px; }
.watching-divider,
.epg-divider { background: linear-gradient(90deg, rgba(92,145,255,0.4), rgba(255,255,255,0.06)); }

.watching-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
  border: 1px solid var(--stream-line);
  color: var(--stream-text);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.28);
}

.watching-name,
.watching-show { color: var(--stream-text); }
.watching-channel,
.watching-count,
.watching-empty { color: var(--stream-muted); }

.main-grid { gap: 20px; margin-top: 18px; }

.video-wrapper,
.dc-chat {
  background: var(--stream-surface);
  border: 1px solid var(--stream-line);
  border-top: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 100px rgba(0,0,0,0.42);
}

.video-wrapper { flex: 1 1 auto; }
.dc-chat { flex: 0 0 min(420px, 31vw); }

.panel-titlebar,
.dc-chat-head {
  background: linear-gradient(90deg, rgba(36,91,215,0.2), rgba(255,255,255,0.03));
  border-bottom: 1px solid var(--stream-line);
}

.panel-titlebar-label,
.dc-chat-title,
.dap-epg-title,
.member-channel-name { color: var(--stream-text); }

.tv-remote {
  background: rgba(7, 11, 20, 0.94);
  border-top: 1px solid var(--stream-line);
  padding: 12px;
}

.remote-btn {
  min-height: 44px;
  background: rgba(255,255,255,0.08);
  color: var(--stream-text);
  border: 1px solid var(--stream-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.remote-btn:hover {
  background: rgba(92,145,255,0.18);
  border-color: var(--stream-line-strong);
}

.dc-chat-identity,
.dc-chat-bar {
  background: rgba(7,11,20,0.78);
  border-color: var(--stream-line);
}

.dc-chat-name-label,
.dc-chat-name-input,
.dc-chat-input,
.dc-chat-online { color: var(--stream-text); }

.dc-chat-name-input,
.dc-chat-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.13);
}

.dc-chat-name-input::placeholder,
.dc-chat-input::placeholder { color: var(--stream-dim); }

.dc-chat-messages {
  background: rgba(5,7,13,0.64);
  color: var(--stream-text);
}

.dc-msg { border-bottom-color: rgba(255,255,255,0.06); }
.dc-msg:hover { background: rgba(92,145,255,0.08); }
.dc-msg-name { color: #8fb3ff; }
.dc-msg-text { color: var(--stream-text); }

.dc-bar-btn {
  background: rgba(255,255,255,0.08);
  color: var(--stream-text);
  border-color: var(--stream-line);
}

.dap-epg-row {
  background: var(--stream-surface);
  border: 1px solid var(--stream-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.32);
}

.dap-epg-left {
  background: linear-gradient(90deg, rgba(36,91,215,0.22), rgba(255,169,3,0.08));
  border-bottom: 1px solid var(--stream-line);
}

.dap-epg-subtitle,
.program-desc,
.member-channel-host,
.member-channel-viewers { color: var(--stream-muted); }

.dap-epg-right { background: rgba(3,5,10,0.52); }

.program-item {
  flex-basis: 320px;
  height: 205px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #05070b;
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

.program-item:hover { border-color: rgba(255,169,3,0.72); }
.program-image-box img { opacity: 0.82; }
.program-content { background: linear-gradient(transparent, rgba(0,0,0,0.96) 58%); }
.program-time { color: #ffb56f; }
.program-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.75); }

.member-channel-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
}

.member-channel-card {
  flex: 0 0 clamp(240px, 22vw, 360px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #05070b !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  scroll-snap-align: start;
}

.member-channel-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255,169,3,0.78);
}

.member-channel-body {
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 10px;
  background: linear-gradient(180deg, rgba(9,13,24,0.98), #05070b);
  padding: 12px;
}

.member-channel-avatar {
  width: 42px;
  height: 42px;
  border-color: rgba(92,145,255,0.55);
}

.member-channel-current {
  grid-column: 2 / 4;
  font-size: 0.84rem;
  color: #dbe8ff;
  margin-top: -2px;
}

.member-channel-name { color: #fff !important; }

.member-channel-empty {
  min-width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--stream-muted);
  border-color: var(--stream-line);
  border-radius: 18px;
}

.dc-picker,
.modal-box,
#avatar-modal {
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.42);
}

@media (min-width: 1200px) {
  .video-wrapper { flex-basis: calc(100% - 450px); }
}

@media (max-width: 900px) {
  .now-playing-banner {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .header-top { flex-wrap: wrap; }
  .dc-chat { flex-basis: auto; }
  .program-item { flex-basis: 260px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--dc-bg);
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  color: var(--dc-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

#bg-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(0,0,0,0.55);
  transition: background 0.5s ease;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dc-panel-alt); }
::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dc-red); }

/* ── HEADER ── */
.site-header {
  background: rgba(30,38,44,0.97);
  border-bottom: 3px solid var(--dc-red);
  backdrop-filter: blur(8px);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky; top: 0; z-index: 100;
}

.header-top {
  width: 100%; max-width: 1600px;
  display: flex !important; align-items: center;
  justify-content: space-between;
  padding: 10px 0; gap: 12px; flex-wrap: nowrap;
}

.header-logo img { height: 62px !important; max-height: 62px !important; width: auto !important; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)); display: block; }
@media (min-width: 760px) { .header-logo img { height: 80px !important; max-height: 80px !important; } }

/* Auth buttons */
.header-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-user { display: flex; align-items: center; gap: 8px; position: relative; }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dc-red); }
.header-username { color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.header-menu-toggle {
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.header-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 178px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--dc-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16,24,40,0.18);
  z-index: 120;
}
.header-menu.open { display: flex; }
.header-menu a,
.header-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dc-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.header-menu a:hover,
.header-menu button:hover {
  background: var(--dc-panel-hover);
  color: #1746a2;
}

.header-btn {
  padding: 6px 14px; border-radius: 3px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; border: none;
  transition: background 0.15s, color 0.15s;
}
.header-btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.header-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.header-btn-primary { background: var(--dc-red); color: #fff; }
.header-btn-primary:hover { background: var(--dc-red-hover); }

/* ON AIR pill */
.now-playing-banner {
  background: var(--dc-red-glow); border: 1px solid var(--dc-red);
  padding: 5px 14px 5px 10px; border-radius: 3px;
  display: flex; align-items: center; gap: 8px;
}
.live-dot {
  width: 8px; height: 8px; background: var(--dc-red-hover);
  border-radius: 50%; animation: pulse 1.4s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%{transform:scale(.9);opacity:1} 100%{transform:scale(1.3);opacity:.4} }
.now-playing-text { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: #fff; text-transform: uppercase; }
.now-playing-text span { color: var(--dc-red-hover); margin-right: 6px; }

/* Ticker */
.news-ticker-container {
  width: 100%; background: #1a1a1a;
  border-top: 2px solid var(--dc-red);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 30px; display: flex; align-items: center; overflow: hidden;
}
.ticker-label {
  background: var(--dc-red); color: #fff; padding: 0 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.75rem;
  letter-spacing: 1px; text-transform: uppercase; height: 100%;
  display: flex; align-items: center; white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-content { display: inline-block; white-space: nowrap; animation: ticker-scroll 45s linear infinite; }
.ticker-item { color: #ffffff; text-decoration: none; font-size: 0.8rem; font-weight: 600; margin-right: 80px; display: inline-block; }
.ticker-item:hover { color: var(--dc-red-hover); }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── UTILITY: hidden (used by toggleChatArea) ── */
.hidden { display: none !important; }

/* ── MAIN GRID ── */
.main-grid {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 1600px; margin: 12px auto; padding: 0 10px;
}
@media (min-width: 760px) { .main-grid { flex-direction: row; align-items: flex-start; padding: 0 16px; } }

/* ── VIDEO PLAYER ── */
.video-container { cursor: pointer; }
.video-container video { width: 100%; height: 100%; display: block; background: #000; }

#vid-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.25s; z-index: 10;
}
.video-container:hover #vid-controls,
.video-container.ctrl-visible #vid-controls { opacity: 1; }

.vc-btn {
  background: none; border: none; cursor: pointer; color: #fff;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 0.15s, transform 0.15s; flex-shrink: 0;
}
.vc-btn:hover { opacity: 1; transform: scale(1.15); }
.vc-btn svg { width: 18px; height: 18px; fill: #fff; display: block; }

#vc-volume {
  -webkit-appearance: none; width: 70px; height: 3px;
  background: rgba(255,255,255,0.35); border-radius: 2px; outline: none; cursor: pointer; flex-shrink: 0;
}
#vc-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }

.vc-live {
  background: var(--dc-red); color: #fff; font-family: var(--font-head);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 2px; flex-shrink: 0;
}
.vc-spacer { flex: 1; }

.video-wrapper {
  background: var(--dc-panel); border: 1px solid var(--dc-border);
  border-top: 3px solid var(--dc-red); border-radius: 3px;
  padding: 0; flex: 7; width: 100%; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.panel-titlebar {
  background: var(--dc-panel-alt); border-bottom: 1px solid var(--dc-border);
  padding: 8px 12px; display: flex; align-items: center; gap: 8px;
}
.panel-titlebar-label { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dc-text); }
.panel-titlebar-label span { color: var(--dc-red); margin-right: 6px; }

.video-container { position: relative; width: 100%; background: #000; aspect-ratio: 16/9; overflow: hidden; display: block; }
.video-container #channel-iframe-player,
.video-container #channel-iframe-player-next { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border: 0 !important; background: #000; display: block; }

.video-wrapper.pip-mode {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  z-index: 300;
  box-shadow: 0 24px 70px rgba(16,24,40,0.35);
}

#cast-overlay {
  display: none; position: absolute; inset: 0; z-index: 20;
  background: #000; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
#cast-overlay.active { display: flex; }
#cast-overlay svg { width: 52px; height: 52px; fill: var(--dc-red); animation: castPulse 2s ease-in-out infinite; }
@keyframes castPulse { 0%,100%{opacity:1} 50%{opacity:0.25} }
#cast-overlay p { color:#fff; font-family:var(--font-head); font-size:1rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
#cast-overlay small { color:var(--dc-text-muted); font-size:0.75rem; }

/* Remote */
.tv-remote { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; background: var(--dc-panel-alt); border-top: 1px solid var(--dc-border); }
.remote-row { display: flex; gap: 6px; width: 100%; }
.remote-btn {
  flex: 1; min-width: 52px; background: var(--dc-white); color: var(--dc-text);
  border: 1px solid var(--dc-border); padding: 10px 4px; border-radius: 3px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.remote-btn:hover { background: var(--dc-red-glow); border-color: var(--dc-red); color: var(--dc-red); }
.remote-btn:active { background: var(--dc-red); color: #fff; border-color: var(--dc-red); }
.ch-btn { background: #e8e8e8; font-size: 0.82rem; padding: 13px 4px; border-color: var(--dc-border); }
#cast-btn { gap: 4px; }
#cast-btn.cast-on { border-color:var(--dc-red); color:var(--dc-red); background:var(--dc-red-glow); }
#cast-btn.cast-off { opacity:0.35; pointer-events:none; }

/* ── CHAT BOX ── */
/* ╔══════════════════════════════════════════════╗
   ║  CHAT — Complete rewrite                     ║
   ╚══════════════════════════════════════════════╝ */

.dc-chat {
  display: flex;
  flex-direction: column;
  flex: 3;
  min-height: 450px;
  max-height: 620px;
  width: 100%;
  background: var(--dc-panel);
  border: 1px solid var(--dc-border);
  border-top: 3px solid var(--dc-red);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: visible; /* pickers pop out above */
}
@media (min-width: 760px) { .dc-chat { height: 620px; } }

/* ── Header ── */
.dc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--dc-panel-alt);
  border-bottom: 1px solid var(--dc-border);
  flex-shrink: 0;
}
.dc-chat-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dc-text);
}
.dc-chat-online {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dc-online);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dc-chat-online::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--dc-online);
  border-radius: 50%;
  display: inline-block;
}

/* ── Identity row ── */
.dc-chat-collapse {
  margin-left: auto;
  margin-right: 10px;
  border: 1px solid var(--dc-border);
  background: var(--dc-white);
  color: var(--dc-blue);
  border-radius: 4px;
  padding: 5px 9px;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.dc-chat.dc-chat-collapsed {
  min-height: 0 !important;
  height: auto !important;
}
.dc-chat.dc-chat-collapsed .dc-chat-identity,
.dc-chat.dc-chat-collapsed .dc-chat-bar,
.dc-chat.dc-chat-collapsed .dc-chat-messages {
  display: none !important;
}

.dc-chat-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background: #2a2a2a;
  flex-shrink: 0;
  position: relative;
}
.dc-chat-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dc-border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.dc-chat-av:hover { border-color: var(--dc-red); }
.dc-chat-name-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.dc-chat-name-input {
  flex: 1;
  padding: 3px 7px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 3px;
  font-size: 0.84rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.dc-chat-name-input::placeholder { color: #555; }
.dc-chat-name-input:focus { border-color: var(--dc-red); }
.dc-chat-name-input[readonly] { background: #222; cursor: default; color: #aaa; }
.dc-chat-key {
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Messages area ── */
.dc-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
  padding: 4px 0 0;
}
.dc-chat-messages::-webkit-scrollbar { width: 4px; }
.dc-chat-messages::-webkit-scrollbar-track { background: #f5f5f5; }
.dc-chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.dc-chat-empty {
  padding: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.82rem;
}

/* ── Single message ── */
.dc-msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 36px 7px 12px; /* right pad for menu btn */
  border-bottom: 1px solid #f2f2f2;
  position: relative;
  transition: background 0.1s;
}
.dc-msg:hover { background: #fafafa; }
.dc-msg:last-child { border-bottom: none; }

.dc-msg-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--dc-border);
  background: #e5e5e5;
  margin-top: 1px;
}
.dc-msg-body {
  flex: 1;
  min-width: 0;
}
.dc-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.dc-msg-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1a1a1a;
}
.dc-msg-name::before { content: '@'; color: #aaa; font-weight: 400; }
.dc-msg-time {
  font-size: 0.68rem;
  color: #ccc;
  white-space: nowrap;
}
.dc-msg-text {
  font-size: 0.87rem;
  color: #2a2a2a;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
/* Smileys inline */
.dc-msg-text img.dc-smiley {
  height: 30px;
  width: auto;
  vertical-align: middle;
  display: inline;
  margin: 0 1px;
}
/* GIFs as block with max size */
.dc-msg-gif {
  display: block;
  margin-top: 6px;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--dc-border);
  cursor: pointer;
}
@media (max-width: 480px) { .dc-msg-gif { max-width: 180px; } }

/* ── 3-dot menu ── */
.dc-msg-menu-btn {
  position: absolute;
  top: 7px; right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 1rem;
  padding: 2px 5px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  line-height: 1;
}
.dc-msg:hover .dc-msg-menu-btn { opacity: 1; }
.dc-msg-menu-btn:hover { background: #eee; color: #555; }
.dc-msg-dropdown {
  position: absolute;
  top: 26px; right: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  min-width: 120px;
  overflow: hidden;
  display: none;
}
.dc-msg-dropdown.open { display: block; }
.dc-msg-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.83rem;
  color: #333;
  font-family: var(--font-body);
}
.dc-msg-dropdown button:hover { background: #f5f5f5; }
.dc-msg-dropdown button.delete { color: #c0392b; }

/* ── Input bar ── */
.dc-chat-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-top: 1px solid rgba(0,0,0,0.15);
  background: #2a2a2a;
  flex-shrink: 0;
}
.dc-chat-input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: #111;
  outline: none;
  transition: border-color 0.2s;
}
.dc-chat-input::placeholder { color: #aaa; }
.dc-chat-input:focus { border-color: var(--dc-red); }
.dc-bar-btn {
  flex-shrink: 0;
  padding: 6px 8px;
  background: #333;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  transition: all 0.15s;
  line-height: 1;
}
.dc-bar-btn:hover, .dc-bar-btn.active {
  background: var(--dc-red);
  border-color: var(--dc-red);
  color: #fff;
}
.dc-smiley-btn { padding: 3px 6px; }
.dc-smiley-btn img { width: 22px; height: 22px; display: block; }
.dc-send-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--dc-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
}
.dc-send-btn:hover { background: var(--dc-red-hover); }
.dc-send-btn:disabled { opacity: 0.5; cursor: wait; }

/* ── Pickers (GIF + Smiley) ── */
.dc-picker {
  position: absolute;
  top: 92px; /* below identity row + input bar */
  left: 0; right: 0;
  z-index: 150;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* GIF picker */
.dc-picker-search {
  padding: 8px;
  border-bottom: 1px solid var(--dc-border);
  background: #fafafa;
}
.dc-picker-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--dc-border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
}
.dc-picker-search input:focus { border-color: var(--dc-red); }
.dc-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.dc-gif-grid::-webkit-scrollbar { width: 4px; }
.dc-gif-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.dc-gif-item {
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: #eee;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
}
.dc-gif-item:hover { border-color: var(--dc-red); transform: scale(1.02); }
.dc-gif-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dc-gif-hint, .dc-gif-loading, .dc-gif-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 0.82rem;
}

/* Smiley picker */
.dc-smiley-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  max-height: 160px;
  overflow-y: auto;
}
.dc-smiley-grid img {
  height: 36px;
  width: auto;
  cursor: pointer;
  border-radius: 3px;
  transition: transform 0.1s;
}
.dc-smiley-grid img:hover { transform: scale(1.2); }





/* ── WATCHING + EPG (restored) ── */
.watching-section {
  width: 100%; max-width: 1600px;
  margin: 8px auto 0;
  padding: 0 10px;
}
@media (min-width: 760px) { .watching-section { padding: 0 16px; } }

.watching-header {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 8px; text-align: center; position: relative;
}
.watching-header h2 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  margin: 0; position: absolute; left: 50%; transform: translateX(-50%);
}
.watching-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--dc-online); border-radius: 50%;
  animation: pulse 1.5s infinite; flex-shrink: 0;
}
.watching-count {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
.watching-divider {
  flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}

/* Horizontal scrolling avatar strip */
.watching-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}
.watching-list::-webkit-scrollbar { display: none; }

/* Each viewer card — bigger, shows title + channel */
.watching-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 7px 12px 7px 8px;
  display: flex; align-items: center; gap: 9px;
  flex: 0 0 auto;
  min-width: 160px;
  max-width: 200px;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}
.watching-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
}
.watching-card--verified {
  background: rgba(30,100,200,0.18) !important;
  border-color: rgba(59,130,246,0.55) !important;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.18);
}
.watching-card--member {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.watching-card--guest {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.watching-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.watching-avatar.is-member  { border-color: rgba(255,255,255,0.3); }
.watching-avatar.is-verified { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.45); }
.watching-avatar-wrap { position: relative; flex-shrink: 0; width: 38px; height: 38px; }
.watching-verified-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #3b82f6; border: 2px solid rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #fff; font-weight: 900;
}
.watching-verified-badge.badge--admin    { background: #f39c12; }
.watching-verified-badge.badge--verified { background: #3b82f6; }
.watching-verified-badge.badge--guest    { background: #555; }

.watching-info { min-width: 0; flex: 1; }
.watching-name {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px; margin-bottom: 1px;
}
.watching-show {
  font-size: 0.68rem; color: rgba(255,255,255,0.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px; font-weight: 600;
}
.watching-channel {
  font-size: 0.65rem; color: rgba(255,255,255,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px; margin-top: 1px;
}
.watching-empty {
  color: rgba(255,255,255,0.4); font-size: 0.78rem; font-style: italic;
}

/* ── EPG SECTION ── */
.epg-section { max-width: 1600px; margin: 14px auto 40px; padding: 0 10px; }
@media (min-width: 760px) { .epg-section { padding: 0 16px; } }
.epg-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.epg-section-header h2 { font-family: var(--font-head); font-size: 1rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); border: none; padding: 0; }
.epg-section-header h2::before { content: '▍'; color: var(--dc-red); margin-right: 6px; }
.epg-divider { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
#epg-list { display: flex; flex-direction: column; gap: 10px; }
.epg-scroll-box { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 6px; }
.epg-scroll-box::-webkit-scrollbar { width: 8px; }
.epg-scroll-box::-webkit-scrollbar-thumb { background: rgba(255,169,3,.65); border-radius: 8px; }
.member-channels-section { max-width: 1600px; margin: 0 auto 42px; padding: 0 10px; }
@media (min-width: 760px) { .member-channels-section { padding: 0 16px; } }
.member-channel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member-channel-card { display: block; overflow: hidden; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: #05070b; color: #fff; text-decoration: none; transition: transform .15s, border-color .15s; }
.member-channel-card:hover { transform: translateY(-2px); border-color: rgba(192,57,43,0.65); }
.member-channel-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #111; }
.chatflix-auto-thumb{position:relative;overflow:hidden;display:block;}
.chatflix-auto-thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;}
.chatflix-auto-thumb canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;}
.chatflix-auto-thumb.ready canvas{display:block;}
.chatflix-auto-thumb span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-family:var(--font-head);font-weight:900;letter-spacing:1px;text-transform:uppercase;color:rgba(255,255,255,.7);}
.chatflix-auto-thumb.ready span{display:none;}
.member-channel-body { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; padding: 10px; }
.member-channel-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.22); }
.member-channel-name { font-family: var(--font-head); font-weight: 900; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-channel-current { grid-column: 2 / 3; color: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-channel-host { color: rgba(255,255,255,0.52); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-channel-viewers { font-family: var(--font-head); font-weight: 800; color: var(--dc-online); font-size: .78rem; white-space: nowrap; }
.member-channel-empty { grid-column: 1 / -1; margin: 0; padding: 18px; text-align: center; color: rgba(255,255,255,0.45); background: rgba(0,0,0,0.32); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; text-transform: lowercase; }
.dap-epg-row { background: var(--dc-panel); border: 1px solid var(--dc-border); border-top: 2px solid var(--dc-red); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.dap-epg-left { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--dc-border); background: var(--dc-panel-alt); }
.dap-epg-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 2px; }
.dap-epg-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; color: var(--dc-text); text-transform: uppercase; letter-spacing: 1px; }
.dap-epg-right { overflow-x: auto; padding: 14px; scroll-behavior: smooth; }
.dap-epg-track-inner { display: flex; gap: 12px; width: max-content; }

.program-item { flex: 0 0 280px; position: relative; background: var(--dc-panel); border-radius: 2px; overflow: hidden; border: 1px solid var(--dc-border); height: 210px; cursor: default; transition: border-color 0.2s; }
.program-item-link { display:block; color:inherit; text-decoration:none; cursor:pointer; }
.program-item:hover { border-color: var(--dc-red); }
.program-image-box { position: absolute; inset: 0; z-index: 1; }
.program-image-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.video-auto-thumb{position:relative;width:100%;height:100%;background:#05070b;overflow:hidden;}
.video-auto-thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;}
.video-auto-thumb canvas,.video-auto-thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.video-auto-thumb canvas{display:none;}
.video-auto-thumb.ready canvas{display:block;}
.video-auto-thumb.ready>img{display:none;}
.member-channel-thumb .video-auto-thumb{aspect-ratio:16/9;}
.program-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 14px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.97) 50%); z-index: 2; }
.program-time { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dc-red-hover); margin-bottom: 3px; }
.program-title { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px; margin-bottom: 4px; }
.program-desc { font-size: 0.72rem; color: rgba(255,255,255,0.7); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.08); z-index: 3; }
.live-progress-fill { height: 100%; background: var(--dc-red); }

/* ══════════════════════════════════════════════════
   AVATAR MODAL — full styles (were missing)
══════════════════════════════════════════════════ */
#avatar-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.avm-box {
  background: #1e1e1e; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.avm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.avm-header h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.avm-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.avm-close:hover { color: #fff; }
.avm-preview { display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 6px; }
.avm-preview-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--dc-red); }
.avm-preview-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.avm-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 18px; gap: 4px; }
.avm-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 14px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.45); cursor: pointer; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.avm-tab:hover { color: rgba(255,255,255,0.8); }
.avm-tab.active { color: #fff; border-bottom-color: var(--dc-red); }
.avm-panel { display: none; padding: 16px 18px; }
.avm-panel.active { display: block; }
.avm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avm-preset { position: relative; cursor: pointer; border-radius: 50%; border: 3px solid transparent; transition: border-color 0.15s; }
.avm-preset img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; }
.avm-preset:hover { border-color: rgba(255,255,255,0.4); }
.avm-preset.selected { border-color: var(--dc-red); }
.avm-check { position: absolute; bottom: 0; right: 0; width: 18px; height: 18px; background: var(--dc-red); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; font-weight: 900; }
.avm-preset.selected .avm-check { display: flex; }
.avm-guest-notice { background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.3); border-radius: 6px; padding: 8px 12px; font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.avm-upload-area { border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color 0.15s; position: relative; }
.avm-upload-area:hover { border-color: var(--dc-red); }
.avm-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.avm-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.avm-upload-label { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.avm-upload-hint { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.avm-upload-preview { display: none; align-items: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 6px; margin-top: 10px; }
.avm-upload-preview.visible { display: flex; }
.avm-upload-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avm-upload-info { flex: 1; min-width: 0; }
.avm-upload-filename { font-size: 0.78rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avm-upload-filesize { font-size: 0.68rem; color: rgba(255,255,255,0.45); }
.avm-upload-clear { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1rem; padding: 4px; }
.avm-upload-clear:hover { color: #fff; }
.avm-status { font-size: 0.78rem; margin-top: 8px; min-height: 18px; }
.avm-status.error { color: var(--dc-red-hover); }
.avm-status.success { color: var(--dc-online); }
.avm-status.loading { color: rgba(255,255,255,0.5); }
.avm-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.avm-btn { padding: 8px 18px; border-radius: 4px; border: none; font-family: var(--font-head); font-weight: 800; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 0.15s; }
.avm-btn-cancel { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.avm-btn-cancel:hover { background: rgba(255,255,255,0.14); color: #fff; }
.avm-btn-save { background: var(--dc-red); color: #fff; }
.avm-btn-save:hover { background: var(--dc-red-hover); }

/* inline avatar picker dropdown — hidden, modal handles it now */
.picker-window { display: none !important; }

/* ══════════════════════════════════════════════════
   LOGIN / JOIN / VERIFY MODALS
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  background: #fff; border-radius: 8px; width: 100%; max-width: 380px;
  padding: 28px 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #999; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-logo { text-align: center; margin-bottom: 16px; }
.modal-logo img { height: 44px; width: auto; }
.modal-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; text-align: center; color: var(--dc-text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.modal-sub { font-size: 0.82rem; color: var(--dc-text-muted); text-align: center; margin-bottom: 18px; }
.modal-footer { font-size: 0.8rem; color: var(--dc-text-muted); text-align: center; margin-top: 14px; }
.modal-footer a { color: var(--dc-red); font-weight: 600; text-decoration: none; }
.dc-login-form { display: flex; flex-direction: column; gap: 12px; }
.dc-form-group { display: flex; flex-direction: column; gap: 4px; }
.dc-form-group label { font-size: 0.78rem; font-weight: 700; color: var(--dc-text); text-transform: uppercase; letter-spacing: 0.5px; }
.dc-form-group input { padding: 9px 12px; border: 1px solid var(--dc-border); border-radius: 4px; font-size: 0.9rem; color: var(--dc-text); background: #fff; transition: border-color 0.15s; }
.dc-form-group input:focus { outline: none; border-color: var(--dc-red); }
.dc-login-error { padding: 8px 12px; background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.3); border-radius: 4px; font-size: 0.8rem; color: var(--dc-red); }
.dc-login-btn { padding: 11px; background: var(--dc-red); color: #fff; border: none; border-radius: 4px; font-family: var(--font-head); font-weight: 900; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 0.15s; }
.dc-login-btn:hover { background: var(--dc-red-hover); }

/* Chatroomer brand refresh */
:root {
  --dc-bg: #05070c;
  --dc-panel: #0f1422;
  --dc-panel-alt: #151d30;
  --dc-panel-hover: #1b2842;
  --dc-border: rgba(255,255,255,0.12);
  --dc-border-light: rgba(255,255,255,0.18);
  --dc-red: #FFA903;
  --dc-red-hover: #FFC14A;
  --dc-red-glow: rgba(255,169,3,0.18);
  --dc-text: #f8fbff;
  --dc-text-muted: rgba(248,251,255,0.68);
  --dc-text-dim: rgba(248,251,255,0.42);
  --dc-white: #ffffff;
  --dc-username: #ffffff;
  --dc-online: #2f7dff;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(47,125,255,0.22), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255,169,3,0.18), transparent 30%),
    #05070c;
}

#bg-overlay {
  background: linear-gradient(180deg, rgba(5,7,12,0.55), rgba(5,7,12,0.92));
}

.site-header {
  background: rgba(5,7,12,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.header-logo img {
  max-width: min(280px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(47,125,255,0.28));
}

.now-playing-banner,
.video-wrapper,
.dc-chat,
.dap-epg-row,
.member-channel-card,
.watching-card {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.32);
}

.video-wrapper,
.dc-chat,
.dap-epg-row {
  border-top-color: var(--dc-red);
}

.panel-titlebar,
.tv-remote,
.dc-chat-head,
.dap-epg-left {
  background: rgba(255,255,255,0.04);
}

.remote-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.14);
}

.remote-btn:hover {
  background: rgba(47,125,255,0.18);
  border-color: rgba(47,125,255,0.5);
  color: #fff;
}

.header-btn-primary,
.ticker-label,
.dc-send-btn,
.dc-login-btn,
.avm-btn-save,
.admin-btn {
  background: linear-gradient(135deg, #FFA903, #FFC14A);
  color: #fff;
}

.header-btn-outline,
.admin-link {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.news-ticker-container {
  background: #070a12;
  border-top-color: rgba(47,125,255,0.55);
}

.dc-chat-identity,
.dc-chat-bar {
  background: #0b1020;
  border-color: rgba(255,255,255,0.10);
}

.dc-chat-messages,
.modal-box {
  background: #ffffff;
  color: #111827;
}

.dc-chat-key {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.member-channel-card:hover {
  border-color: rgba(255,169,3,0.75);
}

.program-item {
  border-color: rgba(255,255,255,0.12);
}

/* Keep auth/verify modals readable on their white panels. */
.modal-box {
  background: #ffffff;
  color: #101827;
}

.modal-box .modal-title,
.modal-box .dc-form-group label {
  color: #101827;
}

.modal-box .modal-sub,
.modal-box .modal-footer {
  color: #667085;
}

.modal-box .dc-form-group input {
  background: #ffffff;
  color: #101827;
  border: 1px solid #cfd6e4;
}

.modal-box .dc-form-group input::placeholder {
  color: #98a2b3;
}

.modal-box .dc-login-error {
  color: #b42318;
  background: rgba(244, 63, 94, 0.08);
}

.modal-box a {
  color: #FFA903;
}

/* Chatroomer 2026 light TV-channel redesign */
:root {
  --dc-bg: #f4f7fb;
  --dc-panel: #ffffff;
  --dc-panel-alt: #f8fafc;
  --dc-panel-hover: #eef4ff;
  --dc-border: #dbe4f0;
  --dc-border-light: #edf2f7;
  --dc-red: #FFA903;
  --dc-red-hover: #FFC14A;
  --dc-red-glow: rgba(255,169,3,0.14);
  --dc-text: #111827;
  --dc-text-muted: #667085;
  --dc-text-dim: #98a2b3;
  --dc-white: #ffffff;
  --dc-username: #1746a2;
  --dc-online: #1f5fbf;
}

body {
  background: #f4f7fb !important;
  color: #111827;
}

#bg-overlay {
  display: none !important;
}

.site-header {
  background: rgba(255,255,255,0.96) !important;
  border-bottom: 1px solid #dbe4f0;
  box-shadow: 0 8px 30px rgba(16,24,40,0.08);
}

.header-logo img {
  filter: none;
}

.header-username,
.now-playing-text,
.ticker-item,
.watching-header h2,
.epg-section-header h2 {
  color: #111827;
  text-shadow: none;
}

.now-playing-banner {
  background: #fff3d1;
  border-color: #dbe7ff;
}

.news-ticker-container {
  background: #ffffff;
  border-top: 0;
  border-bottom: 1px solid #dbe4f0;
}

.ticker-label {
  color: #fff;
}

.main-grid {
  gap: 16px;
}

.video-wrapper,
.dc-chat,
.dap-epg-row,
.member-channel-card {
  background: #ffffff;
  border-color: #dbe4f0;
  border-top-color: #FFA903;
  box-shadow: 0 16px 40px rgba(16,24,40,0.08);
}

.panel-titlebar,
.tv-remote,
.dc-chat-head,
.dap-epg-left {
  background: #f8fafc;
  border-color: #e5edf6;
}

.panel-titlebar-label,
.dap-epg-title,
.dc-chat-title,
.member-channel-name {
  color: #111827;
}

.dap-epg-subtitle {
  margin-top: 2px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.remote-btn,
.ch-btn {
  background: #ffffff;
  color: #1f2937;
  border-color: #dbe4f0;
}

.remote-btn:hover {
  background: #eef4ff;
  color: #1746a2;
  border-color: #93b5ff;
}

.dc-chat-identity,
.dc-chat-bar {
  background: #f8fafc;
  border-color: #dbe4f0;
}

.dc-chat-name-label,
.dc-chat-name-input,
.dc-chat-input {
  color: #111827;
}

.dc-chat-name-input {
  background: #ffffff;
  border-color: #cfd6e4;
}

.dc-chat-messages {
  background: #ffffff;
}

.dc-msg {
  border-bottom-color: #edf2f7;
}

.dc-msg:hover {
  background: #f8fafc;
}

.dc-bar-btn {
  background: #ffffff;
  color: #344054;
  border-color: #cfd6e4;
}

.dc-send-btn,
.header-btn-primary {
  background: linear-gradient(135deg, #FFA903, #FFC14A);
}

.header-btn-outline {
  color: #1746a2;
  border-color: #c7d7fe;
  background: #ffffff;
}

.header-menu-toggle {
  color: #1746a2;
  border-color: #c7d7fe;
  background: #ffffff;
}

.video-container,
.video-container #channel-iframe-player,
.video-container #channel-iframe-player-next {
  background: #000;
}

.video-container #channel-iframe-player,
.video-container #channel-iframe-player-next {
  object-fit: contain;
}

.epg-section,
.member-channels-section,
.watching-section {
  color: #111827;
}

.watching-card {
  background: #ffffff;
  border-color: #dbe4f0;
}

.watching-name,
.watching-show,
.watching-channel {
  color: #111827;
}

.watching-count,
.watching-empty {
  color: #667085;
}

.epg-divider,
.watching-divider {
  background: #dbe4f0;
}

.program-item {
  background: #0b1020;
  border-color: #dbe4f0;
}

.program-content {
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 52%);
}

.program-time {
  color: #ffb36b;
}

.program-item .program-title,
.member-channel-card .member-channel-name {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

.member-channel-card .member-channel-host,
.member-channel-card .member-channel-viewers {
  color: rgba(255,255,255,0.82);
}

.member-channel-host {
  color: #667085;
}

.member-channel-empty {
  color: #667085;
  background: #ffffff;
  border-color: #dbe4f0;
}

.member-channel-card {
  background: #05070b !important;
  border-color: rgba(255,169,3,0.28);
}

.member-channel-body {
  background: #05070b;
}

.member-channel-empty {
  color: rgba(255,255,255,0.72);
  background: #05070b;
  border-color: rgba(255,169,3,0.22);
}

.dc-picker {
  background: #ffffff;
  border-color: #dbe4f0;
}

.dc-smiley-grid {
  display: flex;
  align-items: center;
}

.dc-emoji-smiley {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.dc-emoji-smiley:hover {
  background: #eef4ff;
  border-color: #93b5ff;
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 10px;
  }

  .header-top {
    display: grid !important;
    grid-template-columns: auto auto;
    gap: 8px;
    align-items: center;
  }

  .header-logo img {
    height: 48px !important;
    max-height: 48px !important;
  }

  .header-auth {
    justify-content: flex-end;
    min-width: 0;
  }

  .header-user {
    max-width: 100%;
    min-width: 0;
  }

  .header-username {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-menu {
    right: 0;
    min-width: 170px;
  }

  .now-playing-banner {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .now-playing-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 2026-05-20 AIM-style skin for auth modals and chat surfaces.
   This is intentionally CSS-only so the existing login/signup/chat logic stays intact. */
:root {
  --aim-blue: #0066e6;
  --aim-blue-dark: #0040a8;
  --aim-blue-light: #4aa4ff;
  --aim-cream: #eee9d4;
  --aim-cream-2: #f8f5e6;
  --aim-border: #0b57d0;
  --aim-text: #111827;
  --aim-link: #111fb8;
}

#login-modal.modal-overlay,
#join-modal.modal-overlay {
  background: rgba(13, 61, 150, .32) !important;
  backdrop-filter: blur(2px);
}

#login-modal .modal-box,
#join-modal .modal-box,
#forgot-modal .modal-box {
  position: relative;
  width: min(430px, calc(100vw - 28px)) !important;
  padding: 62px 18px 18px !important;
  background: var(--aim-cream) !important;
  color: var(--aim-text) !important;
  border: 4px solid var(--aim-border) !important;
  border-radius: 8px 8px 3px 3px !important;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.72),
    0 18px 54px rgba(0, 27, 80, .34) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

#login-modal .modal-box::before,
#join-modal .modal-box::before,
#forgot-modal .modal-box::before {
  content: "Sign On";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 64px 0 18px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 1px 1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#40a7ff 0%, #0973ef 48%, #0050c8 52%, #003d9f 100%);
  border-bottom: 2px solid rgba(0,0,0,.22);
}

#join-modal .modal-box::before {
  content: "Create Screen Name";
}

#forgot-modal .modal-box::before {
  content: "Forgot Password";
}

#login-modal .modal-close,
#join-modal .modal-close,
#forgot-modal .modal-close {
  top: 6px !important;
  right: 7px !important;
  width: 32px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 2px solid rgba(255,255,255,.85) !important;
  border-radius: 5px !important;
  background: linear-gradient(#ff9d84, #de4d34 48%, #bb2f1e) !important;
  color: #fff !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 0 rgba(0,0,0,.22) !important;
}

#login-modal .modal-logo,
#join-modal .modal-logo,
#forgot-modal .modal-logo {
  margin: -28px -4px 16px !important;
  padding: 18px !important;
  min-height: 150px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 65% 30%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #087bc0, #005a9f) !important;
  border: 4px solid #faf6df !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}

#login-modal .modal-logo img,
#join-modal .modal-logo img,
#forgot-modal .modal-logo img {
  height: 88px !important;
  max-width: 88% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.32));
}

#login-modal .modal-logo-aim img,
#join-modal .modal-logo-aim img,
#forgot-modal .modal-logo-aim img {
  height: 142px !important;
  max-height: 142px !important;
  max-width: 94% !important;
  object-fit: contain !important;
}

#login-modal .modal-title,
#join-modal .modal-title,
#forgot-modal .modal-title {
  margin: 0 0 4px !important;
  color: #16356f !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: 1px 1px 0 #fff;
}

#login-modal .modal-sub,
#join-modal .modal-sub,
#forgot-modal .modal-sub,
#login-modal .modal-footer,
#join-modal .modal-footer,
#forgot-modal .modal-footer {
  color: #2d2b1f !important;
  font-size: .92rem !important;
}

#login-modal .dc-form-group label,
#join-modal .dc-form-group label,
#forgot-modal .dc-form-group label {
  color: #1e1a12 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#login-modal .dc-form-group input,
#join-modal .dc-form-group input,
#forgot-modal .dc-form-group input {
  height: 42px !important;
  background: #fff !important;
  color: #111 !important;
  border: 2px inset #d6d0b9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
}

#login-modal .dc-form-group input:focus,
#join-modal .dc-form-group input:focus,
#forgot-modal .dc-form-group input:focus {
  outline: 2px solid #7fb9ff !important;
  outline-offset: 1px;
}

#login-modal .dc-login-btn,
#join-modal .dc-login-btn,
#forgot-modal .dc-login-btn {
  align-self: flex-end;
  min-width: 140px;
  min-height: 46px;
  color: #05317b !important;
  background: linear-gradient(#fffdf1, #ddd6b9) !important;
  border: 2px outset #eee8cc !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

#login-modal .dc-login-btn::before,
#join-modal .dc-login-btn::before,
#forgot-modal .dc-login-btn::before {
  content: "● ";
  color: #20a344;
}

#login-modal a,
#join-modal a,
#forgot-modal a {
  color: var(--aim-link) !important;
  text-decoration: underline !important;
}

#login-modal .dc-login-error,
#join-modal .dc-login-error,
#forgot-modal .dc-login-error {
  background: #fff5c2 !important;
  border: 2px inset #d6d0b9 !important;
  color: #7b1408 !important;
}

#login-modal .auth-sound-toggle,
#join-modal .auth-sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  color: #1b1b17;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

#login-modal .auth-sound-toggle input,
#join-modal .auth-sound-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #0E3FA9;
}

.dc-chat,
.special-chat,
#yts-chat-panel,
.cf-watch-chat-panel,
.watch-hub-chat .dc-chat {
  background: var(--aim-cream) !important;
  color: var(--aim-text) !important;
  border: 4px solid var(--aim-border) !important;
  border-radius: 8px 8px 3px 3px !important;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.72),
    0 14px 30px rgba(0, 28, 92, .22) !important;
}

.dc-chat-head,
.special-chat-title,
#yts-chat-panel .yts-panel-head,
.cf-watch-chat-toggle,
.cf-watch-chat-panel > h3,
.watch-hub-chat .dc-chat-head {
  min-height: 42px !important;
  color: #fff !important;
  background: linear-gradient(#40a7ff 0%, #0973ef 48%, #0050c8 52%, #003d9f 100%) !important;
  border-bottom: 2px solid rgba(0,0,0,.22) !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.38) !important;
}

.dc-chat-title,
.special-chat-title,
#yts-chat-panel .yts-panel-title,
.cf-watch-chat-toggle,
.cf-watch-chat-panel h3,
.watch-hub-chat .dc-chat-title {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

.dc-chat-head::after,
.special-chat-title::after,
#yts-chat-panel .yts-panel-head::after {
  content: "_ □ X";
  margin-left: auto;
  color: rgba(255,255,255,.92);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: .18em;
}

.dc-chat-identity,
.dc-chat-bar,
.special-chat-id,
.special-chat-bar,
.yts-chat-id,
.yts-chat-bar,
.cf-watch-chat-id,
.cf-watch-chat-form,
.cf-watch-chat-tabs,
.special-chat-tabs,
.yts-chat-tabs {
  background: var(--aim-cream-2) !important;
  border-color: #d9d0ac !important;
}

.dc-chat-name-input,
.dc-chat-input,
.special-chat-id input,
.special-chat-bar input,
.yts-chat-input,
.cf-watch-chat-id input,
.cf-watch-chat-form input {
  background: #fff !important;
  color: #111 !important;
  border: 2px inset #d6d0b9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.dc-chat-name-input::placeholder,
.dc-chat-input::placeholder,
.special-chat-bar input::placeholder,
.yts-chat-input::placeholder,
.cf-watch-chat-form input::placeholder {
  color: #6b6657 !important;
}

.dc-chat-messages,
.special-chat-msgs,
.yts-chat-msgs,
.cf-watch-chat-messages {
  background: #fff !important;
  color: #111 !important;
  border-top: 2px inset #d6d0b9 !important;
  border-bottom: 2px inset #d6d0b9 !important;
}

.dc-msg,
.dc-message,
.chat-message,
.special-msg,
.yts-msg,
.cf-chat-message {
  background: transparent !important;
  color: #111 !important;
  border-bottom: 1px solid #eee8d0 !important;
  box-shadow: none !important;
}

.dc-msg:hover,
.dc-message:hover,
.chat-message:hover,
.special-msg:hover,
.yts-msg:hover,
.cf-chat-message:hover {
  background: #f6f3e4 !important;
}

.dc-msg-name,
.dc-message-name,
.chat-message strong,
.special-msg-name,
.yts-msg-name,
.cf-chat-message strong {
  color: var(--aim-link) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
}

.dc-msg-text,
.dc-message-text,
.chat-message,
.special-msg-text,
.yts-msg-text,
.cf-chat-message p {
  color: #111 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
}

.dc-send-btn,
.dc-send,
.special-chat-bar #special-chat-send,
.yts-chat-send,
.cf-watch-chat-form button {
  min-height: 42px !important;
  color: #05317b !important;
  background: linear-gradient(#fffdf1, #ddd6b9) !important;
  border: 2px outset #eee8cc !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .98rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.dc-send-btn::before,
.dc-send::before,
.special-chat-bar #special-chat-send::before,
.yts-chat-send::before,
.cf-watch-chat-form button::before {
  content: "✉ ";
  color: #6f6a55;
}

.dc-send-btn:hover,
.dc-send:hover,
.special-chat-bar #special-chat-send:hover,
.yts-chat-send:hover,
.cf-watch-chat-form button:hover {
  background: linear-gradient(#fff, #cfc6a3) !important;
  color: #001f66 !important;
}

.special-chat-tool,
.yts-chat-tool,
.dc-bar-btn {
  color: #05317b !important;
  background: linear-gradient(#fffdf1, #e8e2c8) !important;
  border: 2px outset #eee8cc !important;
  border-radius: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
}

.special-chat-tab,
.yts-chat-tab,
.cf-watch-chat-tab {
  color: #303030 !important;
  background: #e8e3cf !important;
  border-color: #d4cba8 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

.special-chat-tab.is-active,
.yts-chat-tab.is-active,
.cf-watch-chat-tab.is-active {
  color: #001f66 !important;
  background: #fff !important;
  box-shadow: inset 0 -4px 0 #ffa903 !important;
}

.dc-chat-collapse,
.special-chat-collapse,
.yts-chat-collapse,
.cf-watch-chat-toggle {
  color: #05317b !important;
  background: linear-gradient(#fffdf1, #ddd6b9) !important;
  border: 2px outset #eee8cc !important;
  border-radius: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.dc-chat-av,
.special-chat-id img,
.yts-chat-av,
.cf-watch-chat-id img,
.dc-msg-av,
.special-msg > img,
.special-msg > a > img,
.yts-msg-av,
.cf-chat-message > img,
.cf-chat-message > a > img {
  border: 2px solid #ffa903 !important;
  box-shadow: 0 0 0 2px #fff !important;
}

@media (max-width: 760px) {
  #login-modal .modal-logo,
  #join-modal .modal-logo {
    min-height: 118px;
  }

  .dc-chat,
  .special-chat,
  #yts-chat-panel,
  .cf-watch-chat-panel {
    border-width: 3px !important;
  }

  .dc-chat-head,
  .special-chat-title,
  #yts-chat-panel .yts-panel-head {
    min-height: 36px !important;
  }
}

/* Final light-streaming override: keep this as the last theme block. */
body {
  color: #152033 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(36,91,215,0.16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255,169,3,0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 42%, #ffffff 100%) !important;
}

#bg-overlay { display: none !important; }

.site-header,
.news-ticker-container,
.video-wrapper,
.dc-chat,
.watching-card,
.program-item,
.member-channel-card,
.chatflix-player-card,
.chatflix-episodes,
.admin-panel {
  color: #152033 !important;
  background: rgba(255,255,255,0.95) !important;
  border-color: #dbe7ff !important;
  box-shadow: 0 22px 60px rgba(36,91,215,0.12) !important;
}

.video-wrapper,
.dc-chat,
.chatflix-player-card,
.chatflix-episodes {
  border-top: 4px solid #FFA903 !important;
}

.panel-titlebar,
.dc-chat-head,
.dc-chat-identity,
.dc-chat-bar,
.tv-remote,
.member-channel-body {
  color: #152033 !important;
  background: #f7faff !important;
  border-color: #dbe7ff !important;
}

.now-playing-banner {
  color: #152033 !important;
  background: #fff3d1 !important;
  border-color: #0E3FA9 !important;
}

.now-playing-text,
.header-username,
.watching-header h2,
.epg-section-header h2,
.ticker-content,
.ticker-item,
.panel-titlebar-label,
.dc-chat-title,
.dc-chat-name-label,
.dc-chat-online,
.watching-name,
.watching-show,
.watching-channel,
.member-channel-name,
.program-title,
.room-name,
.viewer-name,
.dc-msg-name,
.dc-msg-text {
  color: #152033 !important;
  text-shadow: none !important;
}

.watching-count,
.watching-empty,
.member-channel-host,
.member-channel-viewers,
.member-channel-current,
.program-subtitle,
.room-meta,
.viewer-status,
.dc-msg-time {
  color: #63708a !important;
}

.ticker-label,
.news-label,
.remote-btn,
.ch-btn,
.video-controls button,
.control-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
  border-color: #FFA903 !important;
}

.header-menu-toggle,
.header-btn,
.dc-bar-btn,
.btn-primary,
.dc-send,
.dc-send-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #245bd7, #1746a2) !important;
  border-color: #245bd7 !important;
}

.dc-chat-messages,
.dc-chat input,
.dc-chat textarea,
.dc-chat select,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  color: #152033 !important;
  background: #ffffff !important;
  border-color: #c8d8f5 !important;
}

.dc-msg,
.dc-message,
.chat-message {
  color: #152033 !important;
  background: #f7faff !important;
  border-color: #e4edff !important;
}

.member-channel-empty,
.empty-state {
  color: #63708a !important;
  background: #ffffff !important;
  border-color: #dbe7ff !important;
}

/* Chatroomer Hulu-style light streaming pass */
body {
  color: #152033 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(36,91,215,0.16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255,169,3,0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 42%, #ffffff 100%) !important;
}

#bg-overlay {
  display: none !important;
}

.site-header {
  background: rgba(255,255,255,0.94) !important;
  border-bottom: 1px solid #dbe7ff !important;
  box-shadow: 0 14px 40px rgba(36,91,215,0.10) !important;
}

.now-playing-banner {
  color: #152033 !important;
  background: #fff3d1 !important;
  border-color: #0E3FA9 !important;
}

.now-playing-text,
.header-username,
.watching-header h2,
.epg-section-header h2,
.ticker-content,
.ticker-item {
  color: #152033 !important;
  text-shadow: none !important;
}

.news-ticker-container {
  background: #ffffff !important;
  border-top: 1px solid #dbe7ff !important;
  border-bottom: 1px solid #dbe7ff !important;
}

.ticker-label,
.news-label {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
}

.video-wrapper,
.dc-chat,
.watching-card,
.program-item,
.member-channel-card,
.chatflix-player-card,
.chatflix-episodes,
.admin-panel,
.room-controls,
.queue-panel,
.up-next {
  color: #152033 !important;
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid #dbe7ff !important;
  box-shadow: 0 22px 60px rgba(36,91,215,0.12) !important;
}

.video-wrapper,
.dc-chat,
.chatflix-player-card,
.chatflix-episodes {
  border-top: 4px solid #FFA903 !important;
  border-radius: 18px !important;
}

.panel-titlebar,
.dc-chat-head,
.dc-chat-identity,
.dc-chat-bar,
.tv-remote {
  color: #152033 !important;
  background: #f7faff !important;
  border-color: #dbe7ff !important;
}

.panel-titlebar-label,
.dc-chat-title,
.dc-chat-name-label,
.dc-chat-online,
.watching-name,
.watching-show,
.watching-channel,
.member-channel-name,
.program-title,
.room-name,
.viewer-name {
  color: #152033 !important;
  text-shadow: none !important;
}

.watching-count,
.watching-empty,
.member-channel-host,
.member-channel-viewers,
.member-channel-current,
.program-subtitle,
.room-meta,
.viewer-status {
  color: #63708a !important;
}

.dc-chat-messages {
  color: #152033 !important;
  background: #ffffff !important;
}

.dc-msg,
.dc-message,
.chat-message {
  color: #152033 !important;
  background: #f7faff !important;
  border-color: #e4edff !important;
}

.dc-msg-name,
.dc-msg-text {
  color: #152033 !important;
}

.dc-chat input,
.dc-chat textarea,
.dc-chat select,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  color: #152033 !important;
  background: #ffffff !important;
  border-color: #c8d8f5 !important;
}

.remote-btn,
.ch-btn,
.video-controls button,
.control-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
  border-color: #FFA903 !important;
}

.remote-btn:hover,
.ch-btn:hover,
.video-controls button:hover,
.control-btn:hover {
  background: linear-gradient(135deg, #245bd7, #1746a2) !important;
  border-color: #245bd7 !important;
}

.header-menu-toggle,
.header-btn,
.dc-bar-btn,
.btn-primary,
.dc-send,
.dc-send-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #245bd7, #1746a2) !important;
  border-color: #245bd7 !important;
}

.member-channel-card,
.program-item,
.chatflix-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.member-channel-body {
  background: #ffffff !important;
}

.chatflix-section {
  max-width: 1760px;
  margin: 26px auto;
  padding: 0 16px;
}

.chatflix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  margin-bottom: 18px;
}

.chatflix-player-card {
  position: relative;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08111f !important;
}

.chatflix-player,
.chatflix-player-card iframe,
.chatflix-player-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.chatflix-player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255,255,255,0.74);
  text-align: center;
  font-weight: 800;
}

.chatflix-episodes {
  max-height: 520px;
  overflow: auto;
  padding: 12px;
}

.chatflix-episode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #152033;
}

.chatflix-episode {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
  color: #152033;
  background: #f7faff;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.chatflix-episode:hover {
  border-color: #FFA903;
  background: #fff3d1;
}

.chatflix-episode strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatflix-episode a {
  color: #245bd7;
  font-weight: 900;
  text-decoration: none;
}

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

.chatflix-card {
  position: relative;
  min-height: 260px;
  padding: 0;
  border: 1px solid #dbe7ff;
  box-shadow: 0 18px 46px rgba(36,91,215,0.12);
  cursor: pointer;
  text-align: left;
}

.chatflix-card:hover {
  transform: translateY(-3px);
  border-color: #FFA903;
}

.chatflix-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #08111f;
  display: block;
}

.chatflix-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  color: #ffffff;
  background: #FFA903;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chatflix-title,
.chatflix-count {
  display: block;
  padding: 10px 12px 0;
}

.chatflix-title {
  color: #152033;
  font-weight: 900;
}

.chatflix-count {
  padding-top: 4px;
  color: #63708a;
  font-size: 13px;
  padding-bottom: 12px;
}

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

/* Final streaming-service skin. This intentionally stays last so older theme passes do not win. */
body {
  color: #f7f9ff !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(36,91,215,0.30), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255,169,3,0.22), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #0b1020 48%, #070a12 100%) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,13,0.90) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
}

.header-logo img,
.header-logo-img {
  max-height: 74px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}

.header-auth .btn,
.header-user,
.header-menu {
  color: #f7f9ff !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.header-auth .btn-primary,
.header-menu a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
  border-color: rgba(255,154,61,0.7) !important;
}

.now-playing-banner {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,169,3,0.42) !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.news-ticker,
.news-ticker-container {
  background: rgba(255,255,255,0.06) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.news-label,
.ticker-label {
  background: #FFA903 !important;
  color: #ffffff !important;
}

.news-marquee,
.news-marquee span,
.ticker-content,
.ticker-item {
  color: rgba(247,249,255,0.82) !important;
}

.watching-section,
.epg-section,
.member-channels-section,
.main-grid,
.main-content {
  background: transparent !important;
}

.section-title,
.watching-title,
.watching-header h2,
.epg-title,
.epg-section-header h2,
.member-channels-title {
  color: #ffffff !important;
  letter-spacing: 0.10em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.viewer-card,
.watching-card,
.room-card,
.program-item,
.member-channel-card,
.dc-chat,
.video-wrapper,
.room-controls,
.queue-panel,
.up-next,
.profile-card,
.admin-panel,
.modal-content {
  color: #f7f9ff !important;
  background: linear-gradient(180deg, rgba(18,24,39,0.92), rgba(8,12,22,0.96)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.38) !important;
}

.video-wrapper {
  overflow: hidden;
  border-top: 3px solid #FFA903 !important;
  border-radius: 16px !important;
}

.video-shell,
.video-frame,
.player-stage,
#player,
#youtube-player,
.youtube-player,
.yt-embed,
.direct-video-player,
.m3u8-video-player,
video {
  background: #000 !important;
}

.video-controls button,
.control-btn,
.dc-send,
.dc-gif-btn,
.dc-smiley-toggle,
.btn,
button {
  border-radius: 10px;
}

.video-controls button,
.control-btn,
.dc-send,
.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #245bd7, #163c9d) !important;
  border-color: rgba(84,137,255,0.55) !important;
}

.video-controls button:hover,
.control-btn:hover,
.dc-send:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
  border-color: rgba(255,154,61,0.7) !important;
}

.dc-chat {
  border-top: 3px solid #245bd7 !important;
  border-radius: 16px !important;
}

.dc-chat-head,
.dc-chat-identity,
.dc-chat-bar,
.panel-titlebar,
.tv-remote {
  color: #f7f9ff !important;
  background: rgba(8,12,22,0.92) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.dc-chat-messages {
  color: #f7f9ff !important;
  background: linear-gradient(180deg, rgba(5,7,13,0.96), rgba(10,15,27,0.94)) !important;
}

.dc-chat input,
.dc-chat textarea,
.dc-chat select,
.room-controls input,
.room-controls textarea,
.room-controls select,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

.dc-chat input::placeholder,
.dc-chat textarea::placeholder,
.room-controls input::placeholder,
.room-controls textarea::placeholder {
  color: rgba(255,255,255,0.50) !important;
}

.dc-msg,
.dc-message,
.chat-message {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

.dc-msg:hover {
  background: rgba(36,91,215,0.16) !important;
}

.dc-msg-name,
.dc-msg-text,
.dc-chat-title,
.dc-chat-name-label,
.dc-chat-online,
.panel-titlebar-label,
.header-username,
.now-playing-text,
.dc-message-name,
.chat-name,
.program-title,
.member-channel-name,
.room-name,
.viewer-name,
.watching-name,
.watching-show,
.watching-channel {
  color: #ffffff !important;
}

.dc-msg-time,
.dc-message-time,
.chat-time,
.program-subtitle,
.member-channel-host,
.member-channel-viewers,
.room-meta,
.viewer-status,
.watching-count,
.watching-empty {
  color: rgba(247,249,255,0.68) !important;
}

.header-menu-toggle,
.header-btn,
.dc-bar-btn,
.remote-btn,
.ch-btn {
  color: #f7f9ff !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.header-menu-toggle:hover,
.header-btn:hover,
.dc-bar-btn:hover,
.remote-btn:hover,
.ch-btn:hover {
  color: #ffffff !important;
  background: rgba(255,169,3,0.22) !important;
  border-color: rgba(255,169,3,0.58) !important;
}

.epg-list,
.program-grid,
.member-channel-list,
.rooms-grid {
  gap: 18px !important;
}

.program-item,
.member-channel-card,
.room-card {
  overflow: hidden;
  border-radius: 14px !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.program-item:hover,
.member-channel-card:hover,
.room-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,169,3,0.58) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.48) !important;
}

.program-thumb,
.member-channel-thumb,
.room-thumb,
.channel-thumb {
  background-color: #000 !important;
}

.program-time,
.live-badge,
.room-badge {
  color: #ffb36b !important;
}

.member-channel-empty,
.empty-state {
  color: rgba(247,249,255,0.70) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.dc-picker,
.emoji-picker,
.gif-picker {
  color: #f7f9ff !important;
  background: #101726 !important;
  border-color: rgba(255,255,255,0.14) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.45) !important;
}

.dc-emoji-smiley {
  color: #ffffff;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

.dc-emoji-smiley:hover {
  background: rgba(255,169,3,0.22) !important;
  border-color: rgba(255,169,3,0.52) !important;
}

@media (max-width: 960px) {
  .main-grid {
    display: block !important;
  }

  .dc-chat {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 8px 10px !important;
  }

  .header-logo img,
  .header-logo-img {
    max-height: 52px !important;
  }

  .now-playing-banner {
    border-radius: 12px !important;
  }

  .video-wrapper,
  .dc-chat,
  .viewer-card,
  .program-item,
  .member-channel-card,
  .room-card {
    border-radius: 12px !important;
  }
}

/* Absolute final light-streaming override. */
body {
  color: #152033 !important;
  background: radial-gradient(circle at 18% 0%, rgba(36,91,215,0.16), transparent 32%), radial-gradient(circle at 82% 8%, rgba(255,169,3,0.14), transparent 30%), linear-gradient(180deg, #ffffff 0%, #eef4ff 42%, #ffffff 100%) !important;
}
#bg-overlay { display: none !important; }
.site-header,.news-ticker-container,.video-wrapper,.dc-chat,.watching-card,.program-item,.member-channel-card,.chatflix-player-card,.chatflix-episodes,.admin-panel {
  color: #152033 !important;
  background: rgba(255,255,255,0.95) !important;
  border-color: #dbe7ff !important;
  box-shadow: 0 22px 60px rgba(36,91,215,0.12) !important;
}
.video-wrapper,.dc-chat,.chatflix-player-card,.chatflix-episodes { border-top: 4px solid #FFA903 !important; }
.panel-titlebar,.dc-chat-head,.dc-chat-identity,.dc-chat-bar,.tv-remote,.member-channel-body {
  color: #152033 !important;
  background: #f7faff !important;
  border-color: #dbe7ff !important;
}
.now-playing-banner { color: #152033 !important; background: #fff3d1 !important; border-color: #0E3FA9 !important; }
.now-playing-text,.header-username,.watching-header h2,.epg-section-header h2,.ticker-content,.ticker-item,.panel-titlebar-label,.dc-chat-title,.dc-chat-name-label,.dc-chat-online,.watching-name,.watching-show,.watching-channel,.member-channel-name,.program-title,.room-name,.viewer-name,.dc-msg-name,.dc-msg-text {
  color: #152033 !important;
  text-shadow: none !important;
}
.watching-count,.watching-empty,.member-channel-host,.member-channel-viewers,.member-channel-current,.program-subtitle,.room-meta,.viewer-status,.dc-msg-time { color: #63708a !important; }
.ticker-label,.news-label,.remote-btn,.ch-btn,.video-controls button,.control-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #FFA903, #FFC14A) !important;
  border-color: #FFA903 !important;
}
.header-menu-toggle,.header-btn,.dc-bar-btn,.btn-primary,.dc-send,.dc-send-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #245bd7, #1746a2) !important;
  border-color: #245bd7 !important;
}
.dc-chat-messages,.dc-chat input,.dc-chat textarea,.dc-chat select,.admin-panel input,.admin-panel textarea,.admin-panel select {
  color: #152033 !important;
  background: #ffffff !important;
  border-color: #c8d8f5 !important;
}
.dc-msg,.dc-message,.chat-message { color: #152033 !important; background: #f7faff !important; border-color: #e4edff !important; }
.member-channel-empty,.empty-state { color: #63708a !important; background: #ffffff !important; border-color: #dbe7ff !important; }

/* ChatFlix poster rail + watch page */
.chatflix-section {
  max-width: 1760px;
  margin: 28px auto;
  padding: 0 16px;
}

.chatflix-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 18px !important;
}

.chatflix-card {
  position: relative;
  display: block;
  min-height: 0 !important;
  aspect-ratio: 2 / 3;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 14px !important;
  background: #08111f !important;
  border: 1px solid #dbe7ff !important;
  box-shadow: 0 18px 46px rgba(36,91,215,0.14) !important;
  text-decoration: none;
}

.chatflix-card:hover {
  transform: translateY(-4px);
  border-color: #FFA903 !important;
}

.chatflix-poster {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.chatflix-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.82));
}

.chatflix-badge,
.chatflix-title,
.chatflix-count {
  position: absolute;
  z-index: 2;
}

.chatflix-badge {
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  color: #ffffff;
  background: #FFA903;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chatflix-title {
  left: 12px;
  right: 12px;
  bottom: 34px;
  padding: 0 !important;
  color: #ffffff !important;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.chatflix-count {
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 0 !important;
  color: rgba(255,255,255,0.78) !important;
  font-size: 13px;
}

.chatflix-watch {
  max-width: 1540px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.chatflix-watch-hero {
  min-height: 220px;
  display: flex;
  align-items: end;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid #dbe7ff;
  box-shadow: 0 22px 60px rgba(36,91,215,0.12);
}

.chatflix-kicker {
  margin: 0 0 8px;
  color: #FFA903;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chatflix-watch-copy h1 {
  margin: 0;
  color: #152033;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: .9;
  text-transform: uppercase;
}

.chatflix-watch-copy p {
  max-width: 720px;
  color: #63708a;
}

.chatflix-watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

.chatflix-player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  background: #000 !important;
  border-radius: 18px !important;
}

.chatflix-player,
.chatflix-player-card iframe,
.chatflix-player-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.chatflix-episodes {
  max-height: min(72vh, 680px);
  overflow: auto;
  padding: 12px;
  border-radius: 18px !important;
}

.chatflix-episode.is-current {
  border-color: #FFA903 !important;
  background: #fff3d1 !important;
}

@media (max-width: 900px) {
  .chatflix-watch-grid {
    grid-template-columns: 1fr;
  }

  .chatflix-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }
}

/* Keep tablet landscape in the desktop-style layout: player left, chat right. */
@media (min-width: 760px) {
  .main-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .video-wrapper {
    flex: 1 1 calc(100% - 420px) !important;
    min-width: 0 !important;
  }

  .dc-chat {
    flex: 0 0 clamp(320px, 30vw, 420px) !important;
    width: clamp(320px, 30vw, 420px) !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 759px) {
  .main-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .dc-chat {
    width: 100% !important;
    margin-top: 18px !important;
  }
}

#vid-wrap:fullscreen,
#vid-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: block !important;
  overflow: hidden !important;
}

#vid-wrap:fullscreen video,
#vid-wrap:fullscreen iframe,
#vid-wrap:fullscreen #channel-iframe-player,
#vid-wrap:fullscreen #channel-iframe-player-next,
#vid-wrap:-webkit-full-screen video,
#vid-wrap:-webkit-full-screen iframe,
#vid-wrap:-webkit-full-screen #channel-iframe-player,
#vid-wrap:-webkit-full-screen #channel-iframe-player-next {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  background: #000 !important;
  display: block !important;
}

html:fullscreen,
body:fullscreen {
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#vid-wrap:fullscreen #unmute-nudge,
#vid-wrap:-webkit-full-screen #unmute-nudge {
  z-index: 2147483647 !important;
}

.member-channel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.member-page-btn {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  background: #fff;
  color: #1746a2;
  font-weight: 900;
  cursor: pointer;
}

.member-page-btn.is-active,
.member-page-btn:hover {
  background: #FFA903;
  border-color: #FFA903;
  color: #fff;
}

@media (min-width: 640px), (orientation: landscape) and (min-width: 520px) {
  .yts-wrap,
  .room-grid {
    display: grid !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .yts-wrap {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 300px) !important;
  }

  .room-grid {
    grid-template-columns: minmax(0, 1fr) 360px !important;
  }

  .yts-side {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  #yts-chat-panel {
    order: -1 !important;
  }

  .yts-chat-msgs {
    height: min(58vh, 620px) !important;
  }

  .yts-chat-bar {
    gap: 5px !important;
  }

  .yts-chat-input {
    min-width: 0 !important;
  }
}

@media (max-width: 639px) and (orientation: portrait) {
  .yts-wrap,
  .room-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

.epg-section-header h2,
#guide-header,
.watching-header h2 {
  color: #152033 !important;
  text-shadow: none !important;
}

.dap-epg-title,
.panel-titlebar-label,
.dc-chat-title,
.dc-chat-name-label {
  color: #152033 !important;
  text-shadow: none !important;
}

.program-item .program-title,
.program-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75) !important;
}

.header-menu {
  right: 0 !important;
  left: auto !important;
  min-width: 250px !important;
  padding: 12px !important;
  gap: 4px !important;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 14px !important;
  box-shadow: 0 26px 70px rgba(16,24,40,0.18) !important;
  backdrop-filter: blur(16px);
}

.header-menu .header-btn,
.header-menu a,
.header-menu button {
  width: 100% !important;
  min-height: 52px !important;
  justify-content: flex-start !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #245bd7 !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  text-align: left !important;
  text-shadow: none !important;
}

.header-menu .header-btn:hover,
.header-menu a:hover,
.header-menu button:hover {
  background: #FFA903 !important;
  color: #ffffff !important;
}

.watching-header h2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255,255,255,.96) !important;
  color: #071227 !important;
  border: 1px solid rgba(38,93,196,.18) !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  box-shadow: 0 8px 22px rgba(12,28,62,.10) !important;
  text-shadow: none !important;
}

/* ChatFlix streaming-service home */
.cf-home {
  background: #07101f !important;
  color: #fff;
}

.cf-lock {
  overflow: hidden;
}

.cf-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(14,63,169,.34), transparent 34%),
    linear-gradient(180deg, #07101f 0%, #0e1d36 42%, #f7f9fc 42%, #f7f9fc 100%);
  padding-bottom: 56px;
}

.cf-hero,
.cf-empty-hero {
  min-height: min(72vh, 720px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: clamp(90px, 14vw, 180px) clamp(20px, 6vw, 86px) 56px;
  transition: background-image .35s ease;
}

.cf-empty-hero {
  background: linear-gradient(135deg, #07101f, #173a79);
}

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

.cf-kicker,
.cf-row-head h2 {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.cf-kicker {
  color: #FFA903;
  font-size: 1.1rem;
}

.cf-hero h1,
.cf-empty-hero h1 {
  margin: 8px 0 12px;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  line-height: .86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

.cf-hero p,
.cf-empty-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.cf-hero p {
  display: -webkit-box;
  max-height: 9em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.cf-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}

.cf-btn-primary {
  background: #FFA903;
  border-color: #FFA903;
  color: #fff;
}

.cf-btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: .82rem;
}

.cf-row {
  padding: 0 clamp(16px, 5vw, 76px);
  margin-top: 30px;
}

.cf-genre-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
  overflow-x: auto;
  padding: 20px clamp(16px, 5vw, 76px) 2px;
}

.cf-genre-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c8d8f5;
  border-radius: 999px;
  background: #fff;
  color: #0e3fa9;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15,33,61,.08);
}

.cf-genre-strip a.is-active {
  background: #ffa903;
  border-color: #ffa903;
  color: #06265d;
}

.cf-genre-strip span {
  color: inherit;
  opacity: .72;
  font-size: .82rem;
}

.cf-browse-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 22px clamp(16px, 5vw, 76px) 0;
}

.cf-browse-tile {
  min-height: 150px;
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 58px rgba(15,33,61,.2);
}

.cf-browse-tile::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.cf-browse-movies {
  background: linear-gradient(135deg, #0e3fa9, #07101f);
}

.cf-browse-tv {
  background: linear-gradient(135deg, #ffa903, #0e3fa9);
}

.cf-browse-submit {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,169,3,.92)),
    radial-gradient(circle at 90% 18%, rgba(14,63,169,.35), transparent 34%);
  border: 2px solid #0E3FA9;
  color: #06183f;
}

.cf-browse-airings {
  background:
    linear-gradient(135deg, rgba(6,24,63,.92), rgba(14,63,169,.88)),
    radial-gradient(circle at 85% 20%, rgba(255,169,3,.95), transparent 32%);
  border: 2px solid rgba(255,169,3,.82);
}

.cf-browse-commercials {
  background:
    linear-gradient(135deg, rgba(255,169,3,.96), rgba(255,193,74,.92)),
    radial-gradient(circle at 86% 18%, rgba(14,63,169,.35), transparent 34%);
  border: 2px solid rgba(14,63,169,.85);
  color: #06183f;
}

.cf-stats-row {
  padding: 20px clamp(16px, 5vw, 76px) 8px;
}

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

.cf-stat-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 3px solid #FFA903;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6,24,63,.98), rgba(14,63,169,.94)),
    radial-gradient(circle at 86% 16%, rgba(255,169,3,.45), transparent 36%);
  box-shadow: 0 22px 58px rgba(0,0,0,.22);
}

.cf-stat-tile::after {
  content: "";
  position: absolute;
  inset: auto -44px -70px auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.cf-stat-tile span,
.cf-stat-tile strong,
.cf-stat-tile small {
  position: relative;
  z-index: 1;
}

.cf-stat-tile span {
  display: block;
  color: #FFA903;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf-stat-tile strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: .86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cf-stat-tile small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.cf-stat-watchtime {
  background:
    linear-gradient(135deg, rgba(255,169,3,.98), rgba(255,215,104,.9)),
    radial-gradient(circle at 84% 16%, rgba(14,63,169,.42), transparent 36%);
  color: #06183f;
  border-color: #0E3FA9;
}

.cf-stat-watchtime span,
.cf-stat-watchtime small {
  color: #06183f;
}

.cf-decade-promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px clamp(16px, 5vw, 76px) 8px;
}

.cf-decade-card {
  min-height: 142px;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 58px rgba(15,33,61,.22);
}

.cf-decade-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,24,63,.88), rgba(6,24,63,.26));
  pointer-events: none;
}

.cf-decade-card span,
.cf-decade-card strong,
.cf-decade-card small {
  position: relative;
  z-index: 1;
}

.cf-decade-card span,
.cf-decade-card small {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cf-decade-card strong {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: .82;
  text-transform: uppercase;
}

.cf-decade-80s {
  background:
    linear-gradient(90deg, rgba(6,24,63,.9), rgba(20,16,48,.38)),
    url('../brand/decade-80s-car.png') center right 5% / contain no-repeat,
    radial-gradient(circle at 88% 20%, rgba(255,169,3,.58), transparent 30%),
    linear-gradient(135deg, #0b1020, #5b21b6);
}

.cf-decade-80s::after {
  background: linear-gradient(90deg, rgba(6,24,63,.94), rgba(6,24,63,.18));
}

.cf-decade-90s {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,24,63,.88), rgba(14,63,169,.46)),
    url('https://i.postimg.cc/Jn4hS7Xq/83775-removebg-preview-(1).png') center right 8% / contain no-repeat,
    linear-gradient(135deg, #0E3FA9, #FFA903);
}

.cf-decade-90s::after {
  background: linear-gradient(90deg, rgba(6,24,63,.92), rgba(6,24,63,.22));
}

.cf-decade-2000s {
  background:
    linear-gradient(90deg, rgba(6,24,63,.86), rgba(255,169,3,.22)),
    url('../brand/decade-2000s-person.png') center right 8% / contain no-repeat,
    radial-gradient(circle at 82% 22%, rgba(14,63,169,.72), transparent 32%),
    linear-gradient(135deg, #FFA903, #ef4444);
}

.cf-decade-2000s::after {
  background: linear-gradient(90deg, rgba(6,24,63,.88), rgba(6,24,63,.14));
}

.cf-channel-promo-wrap {
  padding: 20px clamp(16px, 5vw, 76px) 8px;
}

.cf-channel-promo-wrap .cf-channel-feature-card {
  min-height: 190px;
  max-width: 1180px;
}

.cf-channel-feature-card {
  background:
    linear-gradient(135deg, #FFA903 0%, #ffd45a 52%, #0E3FA9 100%);
  border: 3px solid #0E3FA9;
  color: #06183f;
  min-height: 170px;
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 58px rgba(15,33,61,.2);
}

.cf-channel-feature-card::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 120px;
  height: 78px;
  border: 8px solid rgba(255,255,255,.94);
  border-radius: 14px;
  box-shadow: inset 0 0 0 6px rgba(14,63,169,.38), 0 14px 30px rgba(0,0,0,.22);
}

.cf-channel-feature-card::after {
  content: "";
  position: absolute;
  right: 66px;
  top: 50px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 28px solid #FFA903;
  border-radius: 3px;
  background: transparent;
}

.cf-channel-feature-card strong {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  line-height: .9;
  text-transform: uppercase;
}

.cf-channel-feature-card span,
.cf-channel-feature-card small {
  position: relative;
  z-index: 1;
  color: #06183f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cf-channel-feature-card small {
  letter-spacing: 0;
  text-transform: none;
}

.cf-inline-promos {
  padding-top: 10px;
  padding-bottom: 4px;
}

.cf-inline-promos .cf-browse-tile {
  min-height: 132px;
}

.cf-browse-tile span,
.cf-browse-tile small {
  position: relative;
  z-index: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cf-browse-tile strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: .9;
  text-transform: uppercase;
}

.cf-browse-tile small {
  opacity: .9;
  letter-spacing: 0;
  text-transform: none;
}

.cf-library-search {
  padding: 22px clamp(16px, 5vw, 76px) 0;
}

.cf-search-box {
  position: relative;
  max-width: 760px;
}

.cf-search-box input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #0e3fa9;
  border-radius: 999px;
  background: #fff;
  color: #07101f;
  padding: 0 22px;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 18px 46px rgba(15,33,61,.14);
  outline: none;
}

.cf-search-box input:focus {
  border-color: #ffa903;
}

.cf-search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 460px;
  overflow-y: auto;
  border: 1px solid #c8d8f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(3,13,34,.24);
}

.cf-search-result {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  color: #132033;
  text-decoration: none;
  border-bottom: 1px solid #e5eefc;
}

.cf-search-result:last-child {
  border-bottom: 0;
}

.cf-search-result:hover {
  background: #f4f8ff;
}

.cf-search-result img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #07101f;
}

.cf-search-result strong,
.cf-search-result small {
  display: block;
}

.cf-search-result strong {
  color: #07101f;
  font-weight: 900;
  line-height: 1.15;
}

.cf-search-result small {
  margin-top: 5px;
  color: #53647c;
  line-height: 1.35;
}

.cf-search-empty {
  padding: 16px;
  color: #53647c;
  font-weight: 800;
}

.cf-row-head h2 {
  color: #122033;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  margin: 0 0 12px;
}

.submit-page {
  max-width: 1120px;
  margin: 0 auto 70px;
  padding: 24px clamp(16px, 5vw, 54px);
  color: #06183f;
}
.submit-hero {
  border-radius: 22px;
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(14,63,169,.96), rgba(6,24,63,.94)),
    radial-gradient(circle at 90% 20%, rgba(255,169,3,.9), transparent 30%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(6,24,63,.22);
}
.submit-hero span,
.submit-label,
.submit-step-head span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.submit-hero span { color: #FFA903; }
.submit-hero h1 {
  margin: 6px 0 8px;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .86;
  text-transform: uppercase;
}
.submit-hero p { max-width: 620px; margin: 0; font-size: 1.05rem; color: rgba(255,255,255,.86); }
.submit-alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.submit-ok { background: #ecfdf3; border: 1px solid #8ee0b3; color: #05603a; }
.submit-err { background: #fff1f0; border: 1px solid #ffb4ae; color: #b42318; }
.submit-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.submit-mode {
  min-height: 132px;
  border: 2px solid #dbe7ff;
  border-radius: 18px;
  background: #fff;
  color: #06183f;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(15,33,61,.10);
}
.submit-mode strong {
  display: block;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: .9;
  text-transform: uppercase;
}
.submit-mode span { display: block; margin-top: 9px; color: #516078; font-weight: 700; }
.submit-mode.is-active {
  background: #FFA903;
  border-color: #0E3FA9;
  box-shadow: 0 0 0 4px rgba(14,63,169,.14), 0 22px 60px rgba(255,169,3,.25);
}
.submit-card {
  margin-top: 18px;
  border: 1px solid #dbe7ff;
  border-top: 5px solid #FFA903;
  border-radius: 18px;
  background: #fff;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 22px 70px rgba(15,33,61,.12);
}
.submit-step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe7ff;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.submit-step-head strong {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 2rem;
  text-transform: uppercase;
}
.submit-step-head span { color: #64748b; font-size: .75rem; }
.submit-label { display: block; margin: 14px 0 6px; color: #334155; font-size: .78rem; }
.submit-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.submit-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #bcd0f4;
  border-radius: 10px;
  background: #fff;
  color: #06183f;
  padding: 0 13px;
  font-size: 1rem;
}
.submit-btn {
  min-height: 46px;
  border: 2px solid #0E3FA9;
  border-radius: 10px;
  background: #FFA903;
  color: #0E3FA9;
  padding: 0 18px;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.submit-btn:disabled { opacity: .45; cursor: not-allowed; }
.submit-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.submit-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #06183f;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
.submit-result:hover { border-color: #0E3FA9; box-shadow: 0 0 0 3px rgba(14,63,169,.12); }
.submit-result img,
.submit-selected img {
  width: 58px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5eefc;
}
.submit-result strong,
.submit-selected strong { display: block; font-weight: 900; }
.submit-result small,
.submit-selected span { display: block; color: #0E3FA9; font-weight: 900; font-size: .78rem; margin-top: 2px; }
.submit-result em { display: block; color: #64748b; font-style: normal; font-size: .83rem; margin-top: 4px; line-height: 1.28; }
.submit-hint { grid-column: 1 / -1; color: #64748b; font-weight: 800; }
.submit-form { margin-top: 16px; }
.submit-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #0E3FA9;
  background: #eef5ff;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
}
.submit-final { margin-top: 16px; width: 100%; }

@media (max-width: 720px) {
  .cf-browse-tiles {
    grid-template-columns: 1fr;
  }
  .cf-decade-promo-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .cf-decade-card {
    scroll-snap-align: start;
  }
  .cf-stats-grid {
    grid-template-columns: 1fr;
  }
  .cf-stat-tile {
    min-height: 124px;
  }
  .submit-mode-grid,
  .submit-search-row,
  .submit-step-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .submit-btn { width: 100%; }
}

.cf-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 230px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 4px 18px;
  scroll-snap-type: x proximity;
}

.cf-card {
  scroll-snap-align: start;
  border: 1px solid rgba(13,34,68,.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #132033;
  box-shadow: 0 18px 44px rgba(15,33,61,.16);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.cf-row,
.cf-channel-promo-wrap,
.cf-auth-promo-grid,
.cf-browse-tiles,
.cf-decade-promo-row,
.cf-genre-strip {
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}

.cf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(15,33,61,.22);
}

.cf-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.cf-genre-page {
  margin-bottom: 64px;
}

.cf-genre-page .cf-row-head {
  margin-bottom: 18px;
}

.cf-genre-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 220px));
  align-items: start;
  justify-content: start;
  overflow: visible;
}

@media (max-width: 680px) {
  .cf-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cf-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #0c1322;
  contain: paint;
}

.cf-row-continue .cf-rail {
  grid-auto-columns: minmax(260px, 380px);
}

.cf-row-continue .cf-row-head-with-action {
  align-items: center;
}

.cf-continue-clear,
.cf-continue-remove {
  border: 2px solid #06183f;
  border-radius: 999px;
  background: #FFA903;
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cf-continue-clear {
  min-height: 38px;
  padding: 0 15px;
  font-size: .95rem;
  box-shadow: 0 10px 24px rgba(255, 169, 3, .22);
}

.cf-continue-card {
  position: relative;
}

.cf-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cf-continue-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(6, 24, 63, .88);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  box-shadow: 0 10px 24px rgba(6, 24, 63, .28);
}

.cf-continue-clear:hover,
.cf-continue-remove:hover {
  background: #0E3FA9;
  color: #ffffff;
}

.cf-continue-clear:disabled,
.cf-continue-remove:disabled {
  opacity: .58;
  cursor: wait;
}

.cf-row-continue .cf-card img {
  aspect-ratio: 16 / 9;
}

.cf-row-latest .cf-rail {
  grid-auto-columns: minmax(280px, 400px);
}

.cf-row-latest .cf-card img {
  aspect-ratio: 16 / 9;
}

.cf-latest-card .cf-card-body {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cf-latest-card .cf-card-body p {
  margin: 0;
  color: #334155;
  font-size: .9rem;
  line-height: 1.28;
}

.cf-latest-card .cf-upload-date {
  color: #0E3FA9;
  font-weight: 900;
}

.cf-latest-card .cf-upload-play {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: #FFA903;
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: .9rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255,169,3,.22);
}

.cf-live-tv-row .cf-rail {
  grid-auto-columns: minmax(260px, 360px);
}

.cf-live-card img {
  aspect-ratio: 16 / 9;
}

.cf-live-card em {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffedbf;
  color: #0e3fa9;
  font-style: normal;
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cf-card-body {
  padding: 11px 12px 13px;
}

.cf-card-body strong,
.cf-card-body span {
  display: block;
}

.cf-card-body strong {
  color: #111827;
  font-weight: 900;
  line-height: 1.16;
}

.cf-card-body span {
  margin-top: 4px;
  color: #64748b;
  font-size: .88rem;
}

.cf-empty-list {
  padding: 22px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #fff;
  color: #516173;
  box-shadow: 0 14px 32px rgba(15,33,61,.08);
}

.cf-progress {
  height: 5px;
  background: #dce6f3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.cf-progress i {
  display: block;
  height: 100%;
  background: #FFA903;
}

.cf-resume-chip {
  border: 0;
  border-radius: 999px;
  background: #ffa903;
  color: #06265d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cf-modal[hidden] {
  display: none;
}

.cf-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.cf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,8,18,.82);
}

.cf-watch {
  position: absolute;
  inset: clamp(10px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 14px;
}

.cf-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111827;
  font-weight: 900;
  padding: 9px 13px;
  cursor: pointer;
}

.cf-player-box {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.36);
  min-height: min(72vh, 760px);
}

.cf-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.nk-cast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 2px solid #0E3FA9;
  border-radius: 10px;
  background: #FFA903;
  color: #0E3FA9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}

.nk-cast-btn[hidden] {
  display: none !important;
}

.nk-cast-btn.is-casting {
  opacity: .72;
}

.cf-cast-strip,
.cf-player-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #dbe7ff;
}

.cf-player-btn,
.cf-cast-btn {
  min-height: 40px;
  border: 2px solid #0E3FA9;
  border-radius: 10px;
  background: #ffffff;
  color: #0E3FA9;
  padding: 8px 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: none;
  cursor: pointer;
}

.cf-player-btn:hover,
.cf-player-btn:focus {
  background: #eef5ff;
}

.cf-btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  fill: currentColor;
  flex: 0 0 auto;
}

.cf-cast-btn {
  background: #FFA903;
  color: #0E3FA9;
  display: inline-flex;
  gap: 2px;
}

.cf-player-wait {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf-watch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.cf-show-hero {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 18px;
  box-shadow: 0 24px 80px rgba(15,23,42,.22);
}

.cf-show-hero h1 {
  margin: 0 0 8px;
  max-width: 760px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .9;
  text-transform: uppercase;
}

.cf-show-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
}

.cf-episode-detail {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  color: #122033;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.cf-episode-detail h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  color: #122033;
  font-size: clamp(1.7rem, 4vw, 3rem);
  text-transform: uppercase;
}

.cf-episode-detail p {
  color: #536174;
  line-height: 1.5;
}

.cf-episode-detail-poster {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.cf-episode-detail-poster img,
.cf-episode-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-watch-desc {
  margin: 0;
  padding: 0 18px 14px;
  color: #5f6c7b;
  line-height: 1.45;
}

.cf-episode-panel {
  min-height: 0;
  border-radius: 14px;
  background: #fff;
  color: #122033;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cf-episode-top {
  padding: 16px;
  border-bottom: 1px solid #e5edf7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cf-episode-top h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #122033;
}

.cf-episodes {
  overflow: auto;
  padding: 10px;
}

.cf-episode {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f8fc;
  color: #152033;
  text-align: left;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.cf-episode-card {
  grid-template-columns: 92px auto 1fr auto;
}

.cf-episode-card img {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #0f172a;
}

.cf-episode.is-current {
  background: #fff3d1;
  border-color: #FFA903;
}

.cf-episode strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-episode a {
  color: #1f57c8;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 860px) {
  .cf-watch,
  .cf-watch-page {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .cf-episode-detail {
    grid-template-columns: 1fr;
  }
  .cf-player-box {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
  .cf-episode-panel {
    min-height: 280px;
  }
}

/* Final readability pass for white admin/content panels. */
.admin-page,
.admin-shell,
.admin-panel,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-panel p,
.admin-panel label,
.admin-panel small,
.admin-panel summary,
.admin-row,
.import-review-card,
.import-review-card h2,
.import-review-card p {
  color: #152033 !important;
}

.admin-panel,
.admin-row,
.import-review-card {
  background: #ffffff !important;
  border-color: #dbe7ff !important;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-input,
.admin-textarea,
.admin-select {
  background: #ffffff !important;
  color: #152033 !important;
  border-color: #c8d8f5 !important;
}

.admin-label,
.admin-help,
.import-status {
  color: #63708a !important;
}

.admin-btn,
.admin-del.admin-approve,
.cf-btn-primary {
  color: #ffffff !important;
}

.admin-del {
  color: #ffffff !important;
}

.admin-import-start .admin-help,
.admin-panel code {
  color: #344054 !important;
}

.import-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.import-review-card {
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.import-review-card > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.admin-flix-panel {
  grid-column: 1 / -1;
}

.admin-maintenance-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe7ff;
}

.admin-maintenance-actions form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid #e4edff;
  border-radius: 12px;
  background: #f7faff;
}

.admin-add-flix {
  border: 1px solid #c8d8f5;
  border-radius: 14px;
  background: #ffffff;
  overflow: visible;
  margin-bottom: 14px;
}

.admin-add-flix > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0e3fa9 !important;
  list-style: none;
}

.admin-add-flix > summary::-webkit-details-marker {
  display: none;
}

.admin-add-flix > summary::before {
  content: '+ ';
  color: #ffa903;
}

.admin-add-flix[open] > summary::before {
  content: '- ';
}

.admin-add-flix > form {
  display: grid;
  gap: 9px;
  padding: 0 16px 16px;
}

.admin-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 12px;
  align-items: end;
  margin: 16px 0 10px;
  padding: 12px;
  border: 1px solid #e4edff;
  border-radius: 14px;
  background: #f7faff;
}

.admin-library-head h3 {
  margin: 0 0 3px;
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-compact-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  align-items: start;
  gap: 14px !important;
  max-height: 82vh;
  overflow: auto;
  padding-right: 6px;
}

.admin-compact-list:has(.admin-compact-item[open]),
.admin-compact-list.has-open-item {
  max-height: none;
  overflow: visible;
}

.admin-compact-item {
  display: block !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 14px !important;
}

.admin-compact-item[open] {
  grid-column: 1 / -1;
  overflow: visible;
}

.admin-compact-summary {
  position: relative;
  cursor: pointer;
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  background: #07111f;
  border-radius: 14px;
  overflow: hidden;
}

.admin-compact-summary::-webkit-details-marker {
  display: none;
}

.admin-compact-summary::before {
  content: 'Edit';
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #0e3fa9;
  color: #fff;
  font-weight: 900;
  font-size: .68rem;
  text-transform: uppercase;
}

.admin-compact-item[open] .admin-compact-summary::before {
  content: 'Close';
  background: #ffa903;
  color: #07111f;
}

.admin-flix-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #dbe7ff;
}

.admin-flix-tile-copy {
  display: grid;
  gap: 3px;
  padding: 9px;
  min-height: 62px;
  background: #fff;
}

.admin-compact-summary span:first-child,
.admin-flix-tile-copy {
  min-width: 0;
}

.admin-compact-summary strong,
.admin-compact-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-compact-summary strong {
  font-size: .86rem;
  color: #152033 !important;
}

.admin-compact-summary small {
  font-size: .74rem;
  color: #63708a !important;
}

.admin-compact-body {
  border-top: 1px solid #dbe7ff;
  padding: 14px;
}

.admin-compact-body > form {
  grid-template-columns: 1fr !important;
}

.admin-episode-scroll {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.tmdb-picker {
  position: relative;
}

.tmdb-results {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #c8d8f5;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(14,63,169,.18);
  padding: 8px;
}

.tmdb-results.is-open {
  display: grid;
  gap: 8px;
}

.tmdb-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  width: 100%;
  border: 1px solid #e4edff;
  border-radius: 10px;
  background: #f7faff;
  color: #152033;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.tmdb-result:hover {
  border-color: #0e3fa9;
  background: #eef5ff;
}

.tmdb-result img {
  width: 46px;
  height: 68px;
  object-fit: cover;
  border-radius: 7px;
  background: #dbe7ff;
}

.tmdb-result strong,
.tmdb-result span,
.tmdb-result small {
  color: #152033 !important;
}

.tmdb-result small {
  display: block;
  color: #63708a !important;
  margin-top: 2px;
}

.tmdb-result-empty {
  padding: 10px;
  color: #63708a;
  font-weight: 800;
}

@media (max-width: 720px) {
  .admin-maintenance-actions,
  .admin-library-head {
    grid-template-columns: 1fr;
  }

  .admin-add-flix > summary {
    padding: 12px;
  }

  .admin-add-flix > form {
    padding: 0 12px 12px;
  }

  .admin-compact-list {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    max-height: 74vh;
  }

  .admin-compact-list:has(.admin-compact-item[open]),
  .admin-compact-list.has-open-item {
    max-height: none;
    overflow: visible;
  }

  .admin-compact-summary {
    align-items: flex-start;
  }

  .admin-compact-pill {
    display: none;
  }
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-ai-categories {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin: 0 0 16px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #f7faff;
}

.admin-ai-categories h3,
.admin-ai-card h3 {
  margin: 0 0 5px;
  color: #0E3FA9 !important;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-ai-categories p,
.admin-ai-card p {
  margin: 0;
  color: #536174 !important;
}

.admin-ai-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.admin-ai-mode {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7df;
  color: #132033 !important;
  font-weight: 900;
}

.admin-ai-card {
  padding: 12px;
  border: 1px solid #c8d8f5;
  border-top: 4px solid #FFA903;
  border-radius: 14px;
  background: #ffffff;
}

.admin-ai-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.admin-ai-title-list span {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #132033;
  font-size: .78rem;
  font-weight: 800;
}
.admin-ai-title-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  background: #eef5ff;
  overflow: hidden;
}
.admin-ai-title-chip span {
  background: transparent;
  border-radius: 0;
  padding-right: 6px;
}
.admin-ai-title-chip button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #c8d8f5;
  background: #fff;
  color: #0E3FA9;
  font-weight: 900;
  cursor: pointer;
  padding: 0 9px;
}
.admin-ai-title-chip button:hover {
  background: #fee2e2;
  color: #b42318;
}

.admin-ai-prompt-editor {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #ffffff;
  color: #132033;
}

.admin-ai-prompt-editor summary {
  cursor: pointer;
  color: #0E3FA9 !important;
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-ai-prompt-editor p,
.admin-ai-prompt-editor small {
  color: #536174 !important;
}

.admin-ai-prompt-textarea {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
}

.admin-ai-reset-form {
  margin-top: 10px;
}

/* 90's Kid domain brand pass: Blockbuster blue/yellow + white. */
:root {
  --kid-blue: #0E3FA9;
  --kid-yellow: #FFA903;
  --kid-white: #ffffff;
  --dc-red: #FFA903;
  --dc-red-hover: #ffc14a;
  --dc-red-glow: rgba(255,169,3,.18);
  --stream-blue: #0E3FA9;
  --stream-orange: #FFA903;
}

body,
.cf-home {
  background:
    radial-gradient(circle at 18% -8%, rgba(14,63,169,.46), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(14,63,169,.52), transparent 32%),
    linear-gradient(180deg, #06183f 0%, #0E3FA9 42%, #06183f 100%) !important;
}

.site-header {
  background: #ffffff !important;
  border-bottom: 5px solid #FFA903 !important;
  color: #0E3FA9 !important;
}

.header-logo img,
#header-logo-img {
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.28)) !important;
}

.now-playing-banner {
  background: #FFA903 !important;
  color: #06183f !important;
  border: 2px solid #0E3FA9 !important;
  box-shadow: 0 12px 30px rgba(255,169,3,.28) !important;
}

.now-playing-text,
.now-playing-text span {
  color: #06183f !important;
  text-shadow: none !important;
}

.now-playing-text a,
.now-playing-text a:visited,
.now-playing-text a:hover,
.now-playing-text a:focus {
  color: #06183f !important;
  text-decoration-color: #0E3FA9 !important;
}

.now-playing-text {
  font-family: "Barlow", Arial, sans-serif !important;
  font-size: clamp(.82rem, 1.15vw, 1rem) !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  line-height: 1.25 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing-text span {
  font-weight: 900 !important;
  margin-right: 8px;
}

.live-dot,
.watching-dot,
.cf-progress i {
  background: #FFA903 !important;
}

.ticker-label,
.admin-btn,
.cf-btn-primary,
.header-btn-primary,
.dc-send-btn,
.remote-btn:hover,
.remote-btn:active {
  background: #FFA903 !important;
  color: #0E3FA9 !important;
  border-color: #FFA903 !important;
}

.header-btn-outline,
.header-menu-toggle,
.cf-btn,
.admin-link {
  border-color: rgba(14,63,169,.35) !important;
}

.header-btn-outline,
.header-menu-toggle {
  color: #0E3FA9 !important;
  background: #ffffff !important;
}

.header-username,
.header-user-badge,
.header-user-badge span {
  color: #0E3FA9 !important;
}

.header-menu {
  background: #ffffff !important;
  color: #0E3FA9 !important;
}

.header-menu a,
.header-menu button {
  color: #0E3FA9 !important;
}

.header-menu a:hover,
.header-menu button:hover {
  background: #FFA903 !important;
  color: #0E3FA9 !important;
}

.header-menu.open {
  border-top: 5px solid #FFA903 !important;
}

.cf-card:hover,
.member-channel-card:hover,
.program-item:hover,
.cf-episode.is-current {
  border-color: #FFA903 !important;
}

.cf-row-head h2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding: 8px 14px !important;
  background: #ffffff !important;
  color: #0E3FA9 !important;
  border-left: 6px solid #FFA903 !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.18) !important;
}

.cf-kicker,
.cf-row-head h2::before,
.epg-section-header h2::before,
.program-time,
.chatflix-kicker {
  color: #FFA903 !important;
}

.cf-card,
.cf-episode-panel,
.cf-episode-detail,
.admin-panel,
.admin-row,
.import-review-card,
.watching-card,
.dc-chat {
  border-top-color: #FFA903 !important;
}

.cf-show-hero,
.cf-hero,
.cf-empty-hero {
  border: 2px solid rgba(255,169,3,.38) !important;
}

.video-js.vjs-90skid,
.video-js.vjs-90skid .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
}

.video-js.vjs-90skid .vjs-tech {
  object-fit: contain !important;
}

.video-js.vjs-90skid .vjs-poster img {
  object-fit: contain !important;
  background: #000 !important;
}

.video-js.vjs-90skid .vjs-control-bar {
  background: linear-gradient(90deg, rgba(14,63,169,.96), rgba(8,40,105,.96)) !important;
  color: #ffffff !important;
}

.video-js.vjs-90skid .vjs-play-progress,
.video-js.vjs-90skid .vjs-volume-level,
.video-js.vjs-90skid .vjs-slider-bar {
  background: #FFA903 !important;
}

.video-js.vjs-90skid .vjs-load-progress,
.video-js.vjs-90skid .vjs-slider {
  background: rgba(255,255,255,.22) !important;
}

.video-js.vjs-90skid .vjs-big-play-button {
  width: 78px !important;
  height: 78px !important;
  line-height: 76px !important;
  border-radius: 999px !important;
  border: 3px solid #0E3FA9 !important;
  background: #FFA903 !important;
  color: #0E3FA9 !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.34) !important;
}

.video-js.vjs-90skid:hover .vjs-big-play-button,
.video-js.vjs-90skid .vjs-big-play-button:focus {
  background: #ffc14a !important;
  color: #0E3FA9 !important;
}

.video-js.vjs-90skid .vjs-time-control,
.video-js.vjs-90skid .vjs-control {
  color: #ffffff !important;
}

.cf-season-hero {
  display: grid !important;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) !important;
  gap: clamp(18px, 4vw, 34px) !important;
  align-items: end !important;
}

.cf-season-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  border: 3px solid rgba(255,169,3,.85);
  background: #07101f;
}

.cf-season-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cf-season-meta span,
.cf-season-meta .cf-resume-chip,
.cf-season-facts span,
.cf-season-rating {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #0E3FA9;
  font-weight: 900;
  font-size: .88rem;
}

.cf-season-player {
  position: relative;
  min-height: 0;
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 86px rgba(3,13,34,.38);
}

.cf-video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.cf-video-stage > iframe,
.cf-video-stage > .cf-player,
.cf-video-stage > .video-js,
.cf-video-stage video,
.cf-video-stage .vjs-tech {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  background: #000 !important;
}

.cf-video-stage > iframe {
  display: block !important;
}

.cf-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 24px;
}

.cf-watch-chat {
  margin: 0;
  background: #ffffff;
  color: #132033;
  border: 1px solid #dbe7ff;
  border-top: 5px solid #FFA903;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,33,61,.12);
}

.cf-watch-chat-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #ffffff;
  color: #0E3FA9;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cf-watch-chat-toggle small {
  color: #64748b;
  font-weight: 900;
}

.cf-watch-chat-panel {
  border-top: 1px solid #dbe7ff;
  padding: 14px;
}

.cf-watch-chat-id,
.cf-watch-chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cf-watch-chat-id img,
.cf-chat-message img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #dbe7ff;
}

.cf-watch-chat-id input,
.cf-watch-chat-form input {
  flex: 1;
  min-height: 42px;
  border: 1px solid #c8d8f5;
  border-radius: 10px;
  background: #ffffff;
  color: #132033;
  padding: 0 12px;
}

.cf-watch-chat-form button {
  min-height: 42px;
  border: 2px solid #0E3FA9;
  border-radius: 10px;
  background: #FFA903;
  color: #0E3FA9;
  padding: 0 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.cf-watch-chat-messages {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px), (orientation: landscape) and (min-width: 520px) {
  .cf-watch-layout {
    grid-template-columns: minmax(0, 1fr) clamp(230px, 34vw, 390px);
    gap: clamp(10px, 2vw, 16px);
  }

  .cf-watch-layout.is-chat-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-watch-layout .cf-season-player {
    margin: 0;
    min-width: 0;
  }

  .cf-watch-layout .cf-watch-chat {
    align-self: stretch;
    min-height: 100%;
    min-width: 0;
  }

  .cf-watch-layout.is-chat-collapsed .cf-watch-chat {
    align-self: start;
    justify-self: end;
    width: min(300px, 100%);
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .cf-watch-layout.is-chat-collapsed .cf-watch-chat-toggle {
    min-height: 42px;
    border: 2px solid #0E3FA9;
    border-radius: 999px;
    background: #FFA903;
    color: #0E3FA9;
    box-shadow: 0 12px 30px rgba(14, 63, 169, .18);
  }

  .cf-watch-layout .cf-watch-chat-toggle {
    cursor: pointer;
    min-height: 44px;
    padding: 9px 12px;
  }

  .cf-watch-layout .cf-watch-chat-toggle small {
    display: inline;
  }

  .cf-watch-layout .cf-watch-chat-panel {
    display: flex !important;
    flex-direction: column;
    padding: 10px;
  }

  .cf-watch-layout .cf-watch-chat-panel[hidden] {
    display: none !important;
  }

  .cf-watch-layout .cf-watch-chat-messages {
    flex: 1 1 auto;
    min-height: min(420px, 48vh);
    max-height: min(58vh, 620px);
  }
}

@media (min-width: 640px) and (max-width: 820px), (orientation: landscape) and (max-width: 820px) {
  .cf-watch-layout .cf-watch-chat-id,
  .cf-watch-layout .cf-watch-chat-form {
    gap: 6px;
    margin-bottom: 8px;
  }

  .cf-watch-layout .cf-watch-chat-id input,
  .cf-watch-layout .cf-watch-chat-form input {
    min-height: 36px;
    padding: 0 9px;
  }

  .cf-watch-layout .cf-watch-chat-form button {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: .74rem;
  }

  .cf-watch-layout .cf-chat-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .cf-watch-layout .cf-watch-chat-id img,
  .cf-watch-layout .cf-chat-message img {
    width: 30px;
    height: 30px;
  }
}

.cf-chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e4edff;
  border-radius: 12px;
  background: #f7faff;
}

.cf-chat-message strong {
  color: #0E3FA9;
}

.cf-chat-message p {
  margin: 4px 0 0;
  color: #132033;
}

.cf-chat-gif {
  width: min(240px, 100%);
  height: auto;
  border-radius: 10px;
}

.cf-chat-empty {
  padding: 12px;
  color: #64748b;
  font-weight: 800;
}

.cf-season-page {
  background: #ffffff;
  color: #132033;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 24px 70px rgba(15,33,61,.14);
  border-top: 5px solid #FFA903;
}

.cf-season-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dbe7ff;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.cf-season-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-season-select-form {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0E3FA9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cf-season-select-form select {
  min-height: 36px;
  border: 2px solid rgba(14,63,169,.32);
  border-radius: 8px;
  background: #ffffff;
  color: #0E3FA9;
  font-weight: 900;
  padding: 0 34px 0 10px;
}

.cf-season-heading h2 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .9;
  color: #0a1220;
  text-transform: uppercase;
}

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

.cf-season-episode {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #f8fbff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cf-season-episode:hover,
.cf-season-episode.is-current {
  border-color: #FFA903;
  box-shadow: 0 16px 42px rgba(14,63,169,.12);
}

.cf-season-thumb {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #07101f;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.cf-season-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-season-thumb span {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #FFA903;
  color: #0E3FA9;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
}

.cf-season-thumb::after {
  content: "▶";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,169,3,.94);
  color: #0E3FA9;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .15s ease;
}

.cf-season-thumb:hover::after {
  opacity: 1;
}

.cf-season-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cf-season-title-row h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.cf-season-title-row h3 span {
  color: #64748b;
  margin-right: 8px;
}

.cf-season-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.cf-season-facts span {
  min-height: 26px;
  background: #edf4ff;
  color: #344054;
  font-size: .82rem;
}

.cf-season-rating {
  flex: 0 0 auto;
  background: #0E3FA9;
  color: #ffffff;
}

.cf-season-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.cf-season-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cf-season-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dbe7ff;
}

.cf-season-page-count {
  color: #344054;
  font-weight: 900;
}

.cf-season-page .cf-btn,
.cf-watch-page .cf-btn,
.cf-episode-panel .cf-btn,
.cf-episode-detail .cf-btn,
.cf-card .cf-btn,
.admin-panel .cf-btn,
.import-review-card .cf-btn {
  background: #ffffff !important;
  color: #0E3FA9 !important;
  border: 2px solid rgba(14,63,169,.32) !important;
  text-shadow: none !important;
}

.cf-season-page .cf-btn:hover,
.cf-watch-page .cf-btn:hover,
.cf-episode-panel .cf-btn:hover,
.cf-episode-detail .cf-btn:hover,
.cf-card .cf-btn:hover,
.admin-panel .cf-btn:hover,
.import-review-card .cf-btn:hover {
  background: #eaf1ff !important;
  color: #0E3FA9 !important;
  border-color: #0E3FA9 !important;
}

.cf-season-page .cf-btn-primary,
.cf-watch-page .cf-btn-primary,
.cf-episode-panel .cf-btn-primary,
.cf-episode-detail .cf-btn-primary,
.admin-panel .cf-btn-primary,
.import-review-card .cf-btn-primary {
  background: #0E3FA9 !important;
  color: #ffffff !important;
  border-color: #0E3FA9 !important;
}

.cf-season-page .cf-btn-primary:hover,
.cf-watch-page .cf-btn-primary:hover,
.cf-episode-panel .cf-btn-primary:hover,
.cf-episode-detail .cf-btn-primary:hover,
.admin-panel .cf-btn-primary:hover,
.import-review-card .cf-btn-primary:hover {
  background: #082b74 !important;
  color: #ffffff !important;
  border-color: #082b74 !important;
}

.cf-season-page a:not(.cf-btn),
.cf-watch-page a:not(.cf-btn),
.cf-episode-panel a:not(.cf-btn),
.cf-episode-detail a:not(.cf-btn),
.admin-panel a:not(.cf-btn),
.import-review-card a:not(.cf-btn) {
  color: #0E3FA9 !important;
  text-shadow: none !important;
}

.cf-btn-disabled,
.cf-btn-disabled:hover {
  background: #eef3fb !important;
  color: #536174 !important;
  border-color: #d7e2f3 !important;
  cursor: default !important;
}

@media (max-width: 760px) {
  .cf-player-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-player-btn,
  .cf-cast-btn {
    width: 100%;
  }

  .cf-season-hero {
    grid-template-columns: 1fr !important;
  }

  .cf-season-poster {
    max-width: 170px;
  }

  .cf-video-stage {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .cf-season-episode {
    grid-template-columns: 1fr;
  }
}

/* Watch Party hub: keep every public room tile image horizontal.
   Portrait uploads are center-cropped so the grid stays uniform. */
.watch-hub-grid .watch-hub-card {
  min-height: 0 !important;
}

.watch-hub-grid .watch-hub-card-art {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  background: #000 !important;
}

.watch-hub-grid .watch-hub-card-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Keep playback controls attached directly to the video surface. */
.cf-season-player,
.room-media-column {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
}

.cf-season-player .cf-video-stage,
.room-media-column .room-shell,
.yts-main .yts-player-wrap {
  flex: 0 0 auto !important;
}

.cf-season-player .cf-player-controls,
.room-media-column .room-video-controls,
.yts-main .yts-sync-bar {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
}

.yts-room-controls-panel {
  order: 1 !important;
}

.yts-queue-panel {
  order: 2 !important;
}

#yts-chat-panel {
  order: 3 !important;
}

/* 2026-05-16 shared app navigation/search */
.site-search-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 42px 18px;
  background: #ffffff;
  border-bottom: 1px solid #dbe7ff;
}

.site-global-search {
  position: relative;
  width: 100%;
}

.site-global-search input,
.live-tv-filter input {
  width: 100%;
  height: 46px;
  border: 2px solid #c7d7f4;
  border-radius: 999px;
  background: #ffffff;
  color: #071225;
  padding: 0 18px;
  font: 800 1rem/1 "Barlow", sans-serif;
  box-shadow: 0 12px 28px rgba(14, 63, 169, .08);
}

.site-global-search input::placeholder,
.live-tv-filter input::placeholder {
  color: #64748b;
}

.site-search-results {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
}

.site-nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
  white-space: nowrap;
}

.site-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(14,63,169,.18);
  border-radius: 999px;
  background: #ffffff;
  color: #0E3FA9 !important;
  font: 900 .92rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-nav-links a:hover {
  background: #FFA903;
  color: #071225 !important;
  border-color: #FFA903;
}

.site-mobile-appbar {
  display: none;
}

.cf-home-watching {
  margin: 26px auto;
  max-width: 1180px;
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  padding: 18px;
}

.live-tv-filter {
  max-width: 520px;
  margin: 0 0 18px;
}

.live-tv-chatflix-section .chatflix-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  grid-template-columns: none !important;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.live-tv-chatflix-section .chatflix-card {
  scroll-snap-align: start;
}

@media (max-width: 780px) {
  body {
    padding-bottom: 76px;
  }

  .site-search-nav { display: none !important; }

  .site-nav-links {
    display: none;
  }

  .site-global-search input,
  .live-tv-filter input {
    height: 42px;
    border-radius: 14px;
    font-size: .95rem;
  }

  .site-mobile-appbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid #dbe7ff;
    box-shadow: 0 -10px 30px rgba(7,18,37,.16);
  }

  .site-mobile-appbar a,
  .site-mobile-appbar button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #0E3FA9 !important;
    text-decoration: none;
    font: 900 .7rem/1 "Barlow", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .site-mobile-appbar img {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(14, 63, 169, .18));
  }

  .cf-home .site-mobile-appbar img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  .site-mobile-appbar a:active,
  .site-mobile-appbar a:hover,
  .site-mobile-appbar button:active,
  .site-mobile-appbar button:hover {
    background: #fff3d1;
  }

  .mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(7,18,37,.62);
    display: grid;
    align-items: start;
    padding: 22px 14px 90px;
  }

  .mobile-search-overlay[hidden] {
    display: none !important;
  }

  .mobile-search-panel {
    width: min(100%, 520px);
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #0E3FA9;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(7,18,37,.28);
    padding: 14px;
  }

  .mobile-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #06183f;
    font: 900 1.2rem/1 "Barlow Condensed", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-search-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #FFA903;
    color: #06183f;
    font-size: 1.3rem;
    font-weight: 900;
  }

  #mobile-search-input {
    width: 100%;
    height: 44px;
    border: 2px solid #c7d7f4;
    border-radius: 14px;
    padding: 0 14px;
    color: #071225;
    font: 800 1rem/1 "Barlow", sans-serif;
  }

  .mobile-search-results {
    position: static !important;
    display: block;
    margin-top: 10px;
    max-height: min(60vh, 440px);
    overflow: auto;
  }

  .cf-home-watching {
    margin: 18px 12px;
    padding: 14px;
    border-radius: 14px;
  }
}

/* 90sKid final theme pass */
.watching-section[hidden],
.cf-home-watching[hidden] {
  display: none !important;
}

.cf-live-tv-row {
  background: #FFA903 !important;
  border: 3px solid #0E3FA9 !important;
  border-radius: 22px;
  padding: 18px !important;
  box-shadow: 0 18px 44px rgba(14, 63, 169, .18);
}

.cf-live-tv-row .cf-row-head h2 {
  color: #06183f !important;
}

.cf-row-head-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cf-row-head-with-action h2 {
  margin-bottom: 0 !important;
}

.cf-row-action-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid #06183f;
  border-radius: 999px;
  background: #0E3FA9;
  color: #ffffff !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(14, 63, 169, .25);
  white-space: nowrap;
}

.cf-row-action-blue:hover {
  background: #06183f;
}

@media (max-width: 640px) {
  .cf-row-head-with-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Community playlists */
.cf-home .cf-community-row {
  max-width: min(1880px, calc(100% - 48px));
  margin-inline: auto;
  padding: 24px;
  border: 4px solid #0e3fa9;
  border-radius: 24px;
  background: linear-gradient(135deg,#ffa903,#ffd76f);
  box-shadow: 0 22px 48px rgba(5, 18, 50, .22);
}

.cf-home .cf-community-row .cf-row-head h2 {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #06183f;
}

.cf-community-row .cf-rail {
  align-items: stretch;
}

.cf-community-card {
  position: relative;
  flex: 0 0 280px;
  min-height: 255px;
  background: #fff;
  color: #06183f;
  overflow: hidden;
}

.cf-community-card .cf-card-link {
  display: flex;
  flex-direction: column;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.cf-community-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cf-community-card .cf-card-body {
  background: #fff;
  color: #06183f;
  padding-bottom: 10px;
}

.cf-community-card .cf-card-body strong {
  color: #06183f;
}

.cf-community-card .cf-card-body span {
  color: #42526c;
}

.cf-community-card .cf-community-meta,
.cf-community-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #0e3fa9 !important;
  font-weight: 900;
}

.cf-community-card .cf-community-meta img,
.cf-community-meta img {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #ffa903;
}

.cf-community-save-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #06183f !important;
  font-weight: 900;
}

.cf-community-card .cf-card-body p {
  margin: 8px 0 0;
  color: #24324a;
  font-size: .92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.7em;
  overflow: hidden;
}

.cf-community-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  background: #fff;
}

.cf-community-actions form {
  margin: 0;
}

.cf-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 2px solid #ffa903;
  border-radius: 999px;
  background: #ffa903;
  color: #06183f;
  font-family: var(--font-head, Arial, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.cf-mini-danger,
.cf-btn-danger {
  border-color: #c62828 !important;
  background: #c62828 !important;
  color: #fff !important;
}

.cf-mini-action[disabled] {
  opacity: .65;
  cursor: default;
}

.cf-community-card .cf-play-action {
  min-width: 86px;
  box-shadow: 0 8px 18px rgba(255,169,3,.28);
}

.cf-playlists-shell,
.cf-playlist-watch-shell {
  padding-top: 34px;
}

.cf-playlists-hero,
.cf-playlist-hero {
  max-width: 1380px;
  margin: 0 auto 28px;
  padding: 34px;
  border: 3px solid #ffa903;
  border-radius: 22px;
  background: linear-gradient(135deg,#08275f,#0e3fa9);
  color: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.25);
}

.cf-playlists-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cf-playlists-hero h1,
.cf-playlist-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-head, Arial, sans-serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: .88;
  text-transform: uppercase;
}

.cf-playlists-hero p,
.cf-playlist-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.86);
  font-size: 1.08rem;
  line-height: 1.45;
}

.cf-playlist-creator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-family: var(--font-head, Arial, sans-serif);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cf-playlist-creator img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #ffa903;
}

.cf-playlist-creator strong {
  color: #ffa903;
}

.cf-playlist-create,
.cf-playlist-owner-panel {
  max-width: 1380px;
  margin: 0 auto 28px;
  padding: 24px;
  border: 2px solid rgba(14,63,169,.35);
  border-radius: 18px;
  background: #fff;
  color: #06183f;
}

.cf-playlist-create h2,
.cf-playlist-owner-panel h2,
.cf-playlist-side h2 {
  margin: 0 0 16px;
  font-family: var(--font-head, Arial, sans-serif);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cf-playlist-form {
  display: grid;
  gap: 14px;
}

.cf-playlist-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cf-playlist-form input,
.cf-playlist-form textarea {
  width: 100%;
  border: 2px solid rgba(14,63,169,.28);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #06183f;
  background: #fff;
}

.cf-playlist-form textarea {
  min-height: 96px;
  resize: vertical;
}

.cf-checkline {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  text-transform: none !important;
}

.cf-checkline input {
  width: auto;
}

.cf-alert {
  max-width: 1380px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #06183f;
  font-weight: 800;
}

.cf-alert-error {
  background: #ffe5e5;
  color: #8b0f0f;
}

.cf-playlist-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.cf-playlist-watch-grid {
  max-width: 1380px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,390px);
  gap: 18px;
  align-items: start;
}

.cf-community-player {
  position: relative;
  min-height: 420px;
  border: 3px solid #ffa903;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #000;
}

.cf-community-player img,
.cf-community-player video,
.cf-community-player .video-js {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
}

.cf-community-player.cf-community-player-poster img,
.cf-community-player > img {
  object-fit: cover;
}

.cf-community-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 112px;
  min-height: 112px;
  border: 4px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background: #ffa903;
  color: #06183f;
  font-family: var(--font-head, Arial, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  cursor: pointer;
}

.cf-community-player-controls {
  border-radius: 0 0 16px 16px;
  margin: 0;
}

.cf-playlist-side {
  max-height: 720px;
  overflow: auto;
  border: 3px solid #ffa903;
  border-radius: 16px;
  background: #fff;
  color: #06183f;
  padding: 16px;
}

.cf-playlist-track-list {
  display: grid;
  gap: 10px;
}

.cf-playlist-track {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 2px solid rgba(14,63,169,.16);
  border-radius: 12px;
  background: #f6f9ff;
  cursor: pointer;
}

.cf-playlist-track.is-active {
  border-color: #ffa903;
  background: #fff4d9;
}

.cf-playlist-track img {
  width: 86px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.cf-playlist-track strong {
  display: block;
  font-weight: 900;
  line-height: 1.1;
}

.cf-playlist-track span {
  color: #64748b;
  font-size: .9rem;
}

.cf-track-remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mc-community-import {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid rgba(14,63,169,.14);
}

.cf-playlist-delete-form {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .cf-playlists-hero {
    display: grid;
  }

  .cf-playlist-watch-grid {
    grid-template-columns: 1fr;
  }

  .cf-community-player,
  .cf-community-player img,
  .cf-community-player video,
  .cf-community-player .video-js {
    min-height: 280px;
  }

  .cf-playlist-side {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .cf-home .cf-community-row {
    max-width: calc(100% - 24px);
    padding: 16px;
  }

  .cf-community-card {
    flex-basis: 240px;
  }

  .cf-community-big-play {
    min-width: 86px;
    min-height: 86px;
  }
}

.cf-live-tv-row .cf-card,
.cf-live-tv-row .cf-live-card {
  background: #06183f !important;
  border-color: rgba(255,255,255,.55) !important;
  color: #ffffff !important;
}

.cf-live-tv-row .cf-card-body {
  background: #06183f !important;
}

.cf-live-tv-row .cf-card-body strong,
.cf-live-tv-row .cf-card-body span,
.cf-live-tv-row .cf-card-body em {
  color: #ffffff !important;
  text-shadow: none !important;
}

.remote-btn,
.member-page-btn,
.dc-send-btn,
.yts-chat-send,
.yts-load-btn,
.special-loop-btn,
.special-shuffle-btn.on,
.cf-btn-primary,
.header-btn-primary,
.site-nav-links a:hover,
.mobile-search-head button {
  background: #FFA903 !important;
  border-color: #0E3FA9 !important;
  color: #06183f !important;
}

.remote-btn:hover,
.remote-btn:active,
.member-page-btn.is-active,
.dc-send-btn:hover,
.yts-chat-send:hover,
.yts-load-btn:hover,
.cf-btn-primary:hover,
.header-btn-primary:hover {
  background: #FFC14A !important;
  color: #06183f !important;
}

.cf-channel-promo-wrap > .cf-channel-feature-card,
.cf-home .cf-channel-promo-wrap > .cf-channel-feature-card {
  background: #FFA903 !important;
  background-image:
    radial-gradient(circle at 88% 20%, rgba(14,63,169,.18), transparent 28%),
    linear-gradient(135deg, #FFA903 0%, #FFD76A 58%, #FFA903 100%) !important;
  border: 3px solid #0E3FA9 !important;
  color: #06183f !important;
}

.cf-channel-promo-wrap,
.cf-home .cf-channel-promo-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  clear: both !important;
  float: none !important;
  grid-column: 1 / -1 !important;
  flex: 0 0 100% !important;
  box-sizing: border-box !important;
  margin: 18px 0 10px !important;
}

.cf-channel-promo-wrap > .cf-channel-feature-card,
.cf-home .cf-channel-promo-wrap > .cf-channel-feature-card {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.cf-channel-promo-wrap + .cf-inline-promos,
.cf-home .cf-channel-promo-wrap + .cf-inline-promos {
  display: grid !important;
  width: 100% !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  margin-top: 10px !important;
}

.cf-channel-promo-wrap > .cf-channel-feature-card strong,
.cf-channel-promo-wrap > .cf-channel-feature-card span,
.cf-channel-promo-wrap > .cf-channel-feature-card small {
  color: #06183f !important;
  text-shadow: none !important;
}

/* TV page readability + create CTA */
.watch-party-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border: 3px solid #06183f;
  border-radius: 999px;
  background: #FFA903;
  color: #06183f !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.18rem, 3vw, 1.8rem);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none !important;
  box-shadow: 0 14px 30px rgba(255,169,3,.28);
}

.watch-party-create-btn:hover {
  background: #FFC14A;
  transform: translateY(-1px);
}

.watch-party-create-top {
  min-height: 50px;
  padding: 0 24px;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.cf-home .watching-list .watching-card:nth-of-type(n+5) {
  display: none !important;
}

.tv-page .watching-header h2,
.tv-page .epg-section-header h2,
.tv-page #guide-header,
.tv-page .dap-epg-title,
.tv-page .member-channel-name,
.tv-page .member-channel-current,
.tv-page .program-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.75) !important;
}

.tv-page .member-channel-host,
.tv-page .member-channel-viewers,
.tv-page .program-subtitle {
  color: rgba(255,255,255,.78) !important;
}

.tv-page .watch-party-create-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 16px;
  border: 2px solid #FFA903;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,63,169,.96), rgba(6,24,63,.96));
  box-shadow: 0 20px 44px rgba(6,24,63,.28);
}

.tv-page .watch-party-create-wrap span {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: none !important;
}

@media (max-width: 820px) {
  .cf-home .watching-header,
  .tv-page .watching-header {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cf-home .watching-header h2,
  .tv-page .watching-header h2 {
    position: static !important;
    transform: none !important;
    order: 1;
  }

  .cf-home .watching-count,
  .tv-page .watching-count {
    order: 2;
  }

  .cf-home .watching-divider,
  .tv-page .watching-divider {
    flex-basis: 100%;
    order: 3;
  }

  .cf-home .watch-party-create-top,
  .tv-page .watch-party-create-top {
    order: 4;
  }
}

@media (max-width: 640px) {
  .watch-party-create-btn {
    width: 100%;
  }

  .tv-page .watch-party-create-wrap {
    align-items: stretch;
  }
}

/* Keep Who's Watching as a single horizontal rail on every viewport. */
.watching-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 8px !important;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.watching-list::-webkit-scrollbar {
  display: block !important;
  height: 8px;
}

.watching-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}

.watching-list::-webkit-scrollbar-thumb {
  background: #FFA903;
  border-radius: 999px;
}

.watching-card {
  flex: 0 0 238px !important;
  width: 238px !important;
  max-width: 238px !important;
  scroll-snap-align: start;
}

@media (max-width: 520px) {
  .watching-card {
    flex-basis: 218px !important;
    width: 218px !important;
    max-width: 218px !important;
  }
}

/* 90sKid usability patch: compact admin, clean watch-party CTA, promos. */
.admin-compact-item[hidden],
.admin-quick-item[hidden] {
  display: none !important;
}

.admin-panel-collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-panel-collapse-head > h1,
.admin-panel-collapse-head > h2,
.admin-panel-collapse-head > h3 {
  margin: 0 !important;
}

.admin-panel-collapse-btn {
  border: 2px solid #0E3FA9;
  border-radius: 999px;
  background: #FFA903;
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-panel.is-admin-collapsed > :not(.admin-panel-collapse-head) {
  display: none !important;
}

.cf-watch-party-cta-strip {
  display: flex;
  justify-content: center;
  margin: 18px auto 22px;
  max-width: 1180px;
  padding: 0 18px;
}

.watching-section .watching-list,
.watching-section .watching-count,
.watching-section .watching-header h2,
.watching-section .watching-divider {
  display: none !important;
}

.watching-section .watching-header {
  justify-content: center !important;
}

.cf-live-tv-row .cf-card-body em,
.cf-live-tv-row .cf-live-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0E3FA9 !important;
  color: #ffffff !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: none !important;
}

.cf-auth-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 34px auto 54px;
  padding: 0 18px;
}

.cf-auth-promo {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  border: 3px solid #0E3FA9;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFA903 0%, #FFD76A 58%, #FFA903 100%);
  color: #06183f !important;
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(14,63,169,.26);
}

.cf-auth-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 18%, rgba(14,63,169,.20), transparent 32%);
  pointer-events: none;
}

.cf-auth-promo img {
  position: absolute;
  right: clamp(12px, 4vw, 34px);
  top: 50%;
  transform: translateY(-50%) rotate(3deg);
  width: min(34vw, 260px);
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(6,24,63,.26));
}

.cf-auth-promo span,
.cf-auth-promo strong,
.cf-auth-promo small {
  position: relative;
  z-index: 1;
  max-width: 58%;
  color: #06183f !important;
  text-shadow: none !important;
}

.cf-auth-promo span {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cf-auth-promo strong {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .9;
  text-transform: uppercase;
}

.cf-auth-promo small {
  font-weight: 900;
}

.cf-auth-promo-signin {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(234,241,255,.88) 48%, rgba(234,241,255,.46) 100%),
    url('https://i.postimg.cc/Jn4hS7Xq/83775-removebg-preview-(1).png') center right 7% / contain no-repeat,
    linear-gradient(135deg, #ffffff 0%, #eaf1ff 58%, #ffffff 100%);
}

.cf-auth-promo-signin img {
  display: none !important;
}

.cf-auth-promo-join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,169,3,.98) 0%, rgba(255,196,57,.94) 45%, rgba(255,196,57,.70) 67%, rgba(255,196,57,.32) 100%),
    radial-gradient(circle at 88% 32%, rgba(255,255,255,.34), transparent 34%);
  pointer-events: none;
}

/* Keep the desktop search/navigation in the main header row now that the On Air pill is gone. */
@media (min-width: 761px) {
  .site-header .header-top {
    display: grid !important;
    grid-template-columns: auto minmax(460px, 920px) auto !important;
    align-items: center !important;
    gap: 18px !important;
    max-width: 1760px !important;
    padding: 12px 0 !important;
  }

  .site-header .site-search-nav {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) max-content !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header .site-global-search input {
    height: 44px !important;
  }

  .site-header .header-auth {
    justify-self: end !important;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .site-header .header-top {
    grid-template-columns: auto minmax(320px, 1fr) auto !important;
    gap: 12px !important;
  }

  .site-header .site-search-nav {
    grid-template-columns: minmax(220px, 1fr) max-content !important;
    gap: 8px !important;
  }

  .site-nav-links a {
    padding: 0 10px !important;
  }
}

/* Watch Party Hub */
.watch-hub-page {
  background: linear-gradient(135deg, #06183f 0%, #0E3FA9 52%, #06183f 100%) !important;
  color: #ffffff;
}

.watch-hub-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 22px;
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 34px) 44px;
}

.watch-hub-main,
.watch-hub-chat {
  min-width: 0;
}

.watch-hub-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.watch-hub-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  color: #FFA903;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.watch-hub-toolbar h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .88;
  text-transform: uppercase;
}

.watch-hub-toolbar p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 1.02rem;
  line-height: 1.35;
}

.watch-hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.watch-hub-actions input {
  width: min(34vw, 420px);
  min-width: 230px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #06183f;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

.watch-hub-count {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,169,3,.16);
  color: #ffffff;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.watch-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.watch-hub-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(255,169,3,.52);
  border-radius: 18px;
  background: #071225;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 22px 54px rgba(0,0,0,.28);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.watch-hub-card:hover {
  transform: translateY(-3px);
  border-color: #FFA903;
  box-shadow: 0 28px 68px rgba(0,0,0,.36);
}

.watch-hub-card[hidden] {
  display: none !important;
}

/* Watch Party Guide EPG */
.watch-guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 22px;
  width: min(100%, 1840px);
}

.watch-guide-main {
  min-width: 0;
}

.watch-guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.watch-guide-row {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border: 2px solid rgba(255, 169, 3, .58);
  border-radius: 18px;
  background: #061225;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .30);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.watch-guide-row:hover {
  transform: translateY(-2px);
  border-color: #FFA903;
  box-shadow: 0 30px 68px rgba(0, 0, 0, .36);
}

.watch-guide-row[hidden] {
  display: none !important;
}

.watch-guide-room {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 13px;
  align-content: start;
  padding: 16px;
  border-right: 1px solid rgba(255, 169, 3, .28);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 169, 3, .22), transparent 38%),
    linear-gradient(150deg, #071b42 0%, #061225 100%);
}

.watch-guide-room-avatar {
  width: 66px;
  height: 66px;
  border: 3px solid #FFA903;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.watch-guide-room-copy strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

.watch-guide-room-copy span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: .96rem;
  line-height: 1.25;
}

.watch-guide-room-copy p {
  display: -webkit-box;
  margin: 9px 0 12px;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  font-size: .94rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.watch-guide-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-guide-room-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFA903;
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.watch-guide-epg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 290px);
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  scrollbar-color: #FFA903 rgba(255, 255, 255, .24);
}

.watch-guide-program {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: #ffffff;
  color: #06183f;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.watch-guide-program.is-current {
  outline: 3px solid #FFA903;
  outline-offset: -3px;
}

.watch-guide-program img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: cover;
  object-position: center;
}

.watch-guide-program-copy {
  padding: 10px 11px 12px;
}

.watch-guide-program-copy span {
  display: block;
  margin-bottom: 5px;
  color: #0E3FA9;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.watch-guide-program-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #061225;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.watch-guide-program-copy em {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #526174;
  font-size: .82rem;
  font-style: normal;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.watch-hub-card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  background: #000;
  overflow: hidden;
}

.watch-hub-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  max-width: none;
  max-height: none;
}

.watch-hub-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.58));
  pointer-events: none;
}

.watch-hub-viewers {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,169,3,.95);
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.watch-hub-card-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  flex: 0 0 auto;
  min-height: 156px;
}

.watch-hub-host-avatar {
  width: 52px;
  height: 52px;
  border: 3px solid #FFA903;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.watch-hub-card-body strong,
.watch-hub-card-body span,
.watch-hub-card-body em {
  display: block;
}

.watch-hub-card-body strong {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.05;
}

.watch-hub-card-body span {
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  line-height: 1.25;
}

.watch-hub-card-body em {
  margin-top: 10px;
  color: #FFA903;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.watch-hub-chat {
  position: sticky;
  top: 112px;
  align-self: start;
}

.watch-hub-chat .dc-chat {
  width: 100%;
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  border: 2px solid #FFA903;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.32);
}

.watch-hub-chat .dc-chat-head {
  background: #ffffff;
  color: #06183f;
}

.cf-watchlist-actions {
  margin-top: 16px;
}

.cf-watchlist-actions .cf-btn:disabled,
.cf-hero-actions .cf-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.cf-playlist-add-menu[hidden] {
  display: none !important;
}

.cf-playlist-add-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 8, 22, .46);
}

.cf-playlist-add-card {
  width: min(520px, 100%);
  padding: 18px;
  border: 4px solid #0E3FA9;
  border-radius: 18px;
  background: #ffffff;
  color: #06183f;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

.cf-playlist-add-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.cf-playlist-add-head span {
  display: block;
  color: #FFA903;
  font-family: var(--font-head, Arial, sans-serif);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cf-playlist-add-head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.3rem;
}

#cf-playlist-add-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #c62828;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.cf-playlist-add-card label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #06183f;
  font-family: var(--font-head, Arial, sans-serif);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cf-playlist-add-card select,
.cf-playlist-add-card input {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(14,63,169,.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: #06183f;
  font: inherit;
  text-transform: none;
}

.cf-playlist-add-card .cf-checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-playlist-add-card .cf-checkline input {
  width: auto;
  min-height: 0;
}

.cf-playlist-add-status {
  min-height: 24px;
  margin: 8px 0 12px;
  color: #0E3FA9;
  font-weight: 900;
}

.cf-playlist-add-status a {
  color: #0E3FA9;
  text-decoration: underline;
}

.cf-playlist-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cf-community-cancel {
  border-color: #0E3FA9;
  background: #0E3FA9;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(14, 63, 169, .24);
}

.site-disclaimer {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #475569;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 760px) {
  .site-disclaimer {
    width: calc(100% - 24px);
    margin-bottom: 108px;
    border-radius: 14px;
    font-size: 9px;
  }
}

.watch-hub-chat .dc-chat-title {
  color: #06183f;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.watch-hub-chat .dc-smiley-picker {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #dbe7ff;
  background: #ffffff;
}

.watch-hub-chat .dc-smiley-picker button {
  min-height: 34px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
  font-size: 1.1rem;
}

.watch-hub-empty {
  padding: 42px;
  border: 2px dashed rgba(255,169,3,.65);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  text-align: center;
}

.watch-hub-empty h2 {
  color: #ffffff;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
}

.watch-hub-empty p {
  margin: 8px 0 18px;
  color: rgba(255,255,255,.82);
}

@media (max-width: 980px) {
  .watch-hub-shell {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .watch-guide-shell {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .watch-hub-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch-hub-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .watch-hub-actions input {
    width: 100%;
  }

  .watch-hub-chat {
    position: static;
  }

  .watch-hub-chat .dc-chat {
    min-height: 520px;
    max-height: 680px;
  }
}

@media (max-width: 640px) {
  .watch-hub-grid {
    grid-template-columns: 1fr;
  }

  .watch-hub-card {
    min-height: 0;
  }

  .watch-guide-row {
    grid-template-columns: minmax(142px, 40vw) minmax(0, 1fr);
    min-height: 0;
    border-radius: 16px;
  }

  .watch-guide-room {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    border-right: 1px solid rgba(255, 169, 3, .28);
    border-bottom: 0;
    padding: 10px;
  }

  .watch-guide-room-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .watch-guide-room-copy strong {
    font-size: 1.12rem;
  }

  .watch-guide-room-copy span {
    margin-top: 4px;
    font-size: .76rem;
  }

  .watch-guide-room-copy p {
    display: none;
  }

  .watch-guide-room-meta {
    gap: 5px;
    margin-top: 7px;
  }

  .watch-guide-room-meta b {
    min-height: 24px;
    padding: 5px 7px;
    font-size: .72rem;
  }

  .watch-guide-epg {
    grid-auto-columns: minmax(150px, 64vw);
    padding: 8px;
  }

  .watch-guide-program-copy {
    padding: 8px;
  }

  .watch-guide-program-copy span {
    font-size: .78rem;
  }

  .watch-guide-program-copy strong {
    font-size: .88rem;
  }
}

@media (orientation: landscape) and (min-width: 700px) and (max-width: 1180px) {
  .watch-hub-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36vw);
    gap: 14px;
    padding: 18px clamp(10px, 2vw, 22px) 28px;
  }

  .watch-guide-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36vw);
    gap: 14px;
    padding: 18px clamp(10px, 2vw, 22px) 28px;
  }

  .watch-guide-row {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .watch-guide-epg {
    grid-auto-columns: minmax(190px, 240px);
  }

  .watch-hub-toolbar {
    align-items: flex-end;
    flex-direction: row;
    gap: 12px;
  }

  .watch-hub-actions input {
    min-width: 180px;
    width: min(28vw, 300px);
  }

  .watch-hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
  }

  .watch-hub-chat {
    position: sticky;
    top: 86px;
  }

  .watch-hub-chat .dc-chat {
    min-height: calc(100vh - 108px);
    max-height: calc(100vh - 108px);
  }
}

@media (max-width: 760px) {
  .cf-watch-chat-form,
  .special-chat-bar,
  .yts-chat-bar,
  .dc-chat-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px minmax(56px, auto) !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  .cf-watch-chat-form input,
  .special-chat-bar input,
  .yts-chat-input,
  .dc-chat-input {
    min-width: 0 !important;
    width: 100% !important;
  }

  .cf-watch-chat-form button,
  .special-chat-tool,
  .special-chat-bar #special-chat-send,
  .yts-chat-tool,
  .yts-chat-send,
  .dc-bar-btn,
  .dc-send-btn {
    min-width: 0 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: .72rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .cf-watch-chat-form,
  .special-chat-bar,
  .yts-chat-bar,
  .dc-chat-bar {
    grid-template-columns: minmax(0, 1fr) 36px 36px 50px !important;
    gap: 4px !important;
  }
}

@media (min-width: 760px), (orientation: landscape) and (min-width: 680px) {
  .yts-side {
    width: clamp(220px, 18vw, 300px) !important;
  }

  .yts-chat-is-collapsed .yts-side {
    width: clamp(120px, 9vw, 170px) !important;
  }

  .yts-chat-is-collapsed #yts-chat-panel {
    min-height: 0 !important;
  }
}

@media (orientation: landscape) and (min-width: 520px) and (max-width: 1180px) {
  body.yts-page .yts-wrap {
    grid-template-columns: minmax(0, 1fr) clamp(180px, 24vw, 240px) !important;
    gap: 10px !important;
    padding-left: clamp(8px, 1.4vw, 18px) !important;
    padding-right: clamp(8px, 1.4vw, 18px) !important;
  }

  body.yts-page .yts-side {
    width: clamp(180px, 24vw, 240px) !important;
  }
}

@media (orientation: landscape) and (max-width: 1600px) and (max-height: 920px) {
  body.yts-page .yts-wrap {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 210px) !important;
    gap: 8px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.yts-page .yts-side {
    width: clamp(150px, 18vw, 210px) !important;
  }

  body.yts-page .yts-chat-bar {
    grid-template-columns: minmax(0, 1fr) 30px 30px 44px !important;
    gap: 3px !important;
  }
}

/* YT sync chat top now mirrors the TV hub chat applet.
   The only extra row is the Room/Global switcher. */
body.yts-page #yts-chat-panel .yts-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  background: linear-gradient(#2fb2ff 0%, #0066d8 46%, #004aad 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #7fc8ff !important;
}

body.yts-page #yts-chat-panel .yts-panel-title {
  color: #ffffff !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif) !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.35) !important;
}

body.yts-page #yts-chat-panel .yts-chat-online {
  color: #06183f !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.yts-page #yts-chat-panel .yts-chat-id {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 50px !important;
  padding: 8px 10px !important;
  background: #f1ecd9 !important;
  border-bottom: 1px solid #d7cfb7 !important;
}

body.yts-page #yts-chat-panel .yts-chat-name-label {
  display: inline-flex !important;
  color: #071225 !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif) !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.yts-page #yts-chat-panel .yts-chat-name-input,
body.yts-page #yts-chat-panel #guest-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 2px inset #b7b7b7 !important;
  border-radius: 0 !important;
  color: #111827 !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
}

body.yts-page #yts-chat-panel .yts-chat-who {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #071225 !important;
  font-weight: 900 !important;
}

body.yts-page #yts-chat-panel .yts-chat-collapse {
  margin-left: auto !important;
  border: 2px outset #e7ddbd !important;
  border-radius: 0 !important;
  background: #f8f1d9 !important;
  color: #0E3FA9 !important;
  box-shadow: none !important;
}

body.yts-page #yts-chat-panel .yts-chat-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  background: #f1ecd9 !important;
  border-bottom: 1px solid #d7cfb7 !important;
}

body.yts-page #yts-chat-panel .yts-chat-tab {
  min-height: 42px !important;
  border: 0 !important;
  border-right: 1px solid #d7cfb7 !important;
  border-radius: 0 !important;
  background: #f7f2e2 !important;
  color: #6b7280 !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.yts-page #yts-chat-panel .yts-chat-tab.is-active {
  background: #ffffff !important;
  color: #0E3FA9 !important;
  box-shadow: inset 0 -4px 0 #FFA903 !important;
}

/* Compact YT Sync chat: tabs + Hide Chat share the first row to save mobile space. */
body.yts-page #yts-chat-panel.yts-chat-compact {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #f1ecd9 !important;
  border: 3px solid #0E3FA9 !important;
  border-top: 5px solid #0E3FA9 !important;
  border-radius: 4px !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-panel-head {
  display: none !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-dead-chat-head,
body.yts-page #yts-chat-panel.yts-chat-compact .yts-dead-chat-collapse,
body.yts-page #yts-chat-panel.yts-chat-compact .yts-dead-chat-tabs {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-topline {
  order: 1 !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 6px !important;
  background: #f1ecd9 !important;
  border-bottom: 1px solid #d7cfb7 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-tabs {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  background: #f1ecd9 !important;
  border-bottom: 0 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-tab {
  min-height: 42px !important;
  padding: 6px 8px !important;
  color: #303030 !important;
  background: #e8e3cf !important;
  border: 0 !important;
  border-right: 1px solid #d7cfb7 !important;
  border-radius: 0 0 10px 0 !important;
  box-shadow: none !important;
  font-size: .9rem !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-tab.is-active {
  color: #0E3FA9 !important;
  background: #ffffff !important;
  box-shadow: inset 0 -4px 0 #FFA903 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-topline .yts-chat-collapse {
  position: static !important;
  z-index: 4 !important;
  flex: 0 0 102px !important;
  width: 102px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  font-size: .86rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-id {
  order: 2 !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  background: #f1ecd9 !important;
  border-bottom: 1px solid #d7cfb7 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-name-label {
  display: none !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-bar {
  order: 3 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-msgs {
  order: 4 !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-tabs {
  display: grid !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-id {
  display: block !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-id .yts-chat-av,
body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-id .yts-chat-name-label,
body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-id #guest-name,
body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-id .yts-chat-who {
  display: none !important;
}

body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-bar,
body.yts-page #yts-chat-panel.yts-chat-compact.is-collapsed .yts-chat-msgs {
  display: none !important;
}

@media (max-width: 899px) {
  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-topline {
    gap: 4px !important;
    padding: 4px !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-tabs {
    width: auto !important;
    min-height: 36px !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-tab {
    min-height: 36px !important;
    padding: 4px 5px !important;
    font-size: .7rem !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-topline .yts-chat-collapse {
    flex-basis: 80px !important;
    width: 80px !important;
    min-height: 36px !important;
    padding: 4px 5px !important;
    font-size: .66rem !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-id {
    min-height: 42px !important;
    padding: 6px 7px !important;
  }
}

.cf-auth-promo-join img {
  opacity: .34;
  filter: saturate(.92) contrast(.94);
}

.cf-auth-promo-join span,
.cf-auth-promo-join strong,
.cf-auth-promo-join small {
  z-index: 2;
  max-width: 66%;
}

@media (max-width: 760px) {
  .cf-auth-promo-grid {
    grid-template-columns: 1fr;
  }
  .cf-auth-promo {
    min-height: 220px;
  }
  .cf-auth-promo img {
    width: 190px;
    opacity: .86;
  }
  .cf-auth-promo span,
  .cf-auth-promo strong,
  .cf-auth-promo small {
    max-width: 68%;
  }
}

/* Compact mobile playback controls so video and chat stay visible. */
@media (max-width: 760px) {
  .cf-player-controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cf-player-controls::-webkit-scrollbar {
    display: none;
  }

  .cf-player-btn,
  .cf-cast-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 5px 4px !important;
    border-radius: 8px !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: center !important;
  }

  .cf-cast-btn {
    justify-content: center !important;
    gap: 1px !important;
  }

  .cf-cast-btn .cf-btn-icon {
    width: 13px !important;
    height: 13px !important;
    margin-right: 1px !important;
  }

  .tv-remote {
    padding: 6px !important;
  }

  .remote-row {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .remote-row::-webkit-scrollbar {
    display: none;
  }

.remote-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 5px 4px !important;
    border-radius: 8px !important;
    font-size: .68rem !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: center !important;
  }
}

/* 2026-05-20 cropped AIM smiley sprites in every chat picker/message. */
#dc-smiley-picker,
.dc-smiley-picker,
.dc-smiley-grid,
.special-smiley-grid,
.yts-smiley-grid,
.cf-chat-smiley-grid {
  gap: 7px !important;
}

#dc-smiley-picker button,
.dc-smiley-picker button {
  display: grid !important;
  place-items: center !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 3px !important;
}

#dc-smiley-picker img,
.dc-smiley-picker img,
.dc-smiley-grid img,
.special-smiley-grid img,
.yts-smiley-grid img,
.cf-chat-smiley-grid img,
.dc-smiley,
.special-smiley,
.yts-smiley,
.cf-chat-smiley {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  image-rendering: auto;
  vertical-align: middle !important;
}

.dc-msg-text .dc-smiley,
.special-msg-text .special-smiley,
.yts-msg-text .yts-smiley,
.cf-chat-message .cf-chat-smiley {
  margin: 0 2px !important;
}

.dc-chat-tool.smiley-trigger,
.special-chat-tool.smiley-trigger,
.yts-chat-tool.smiley-trigger,
.cf-chat-tool.smiley-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  width: 42px !important;
  flex: 0 0 42px !important;
  padding: 4px !important;
  overflow: hidden !important;
}

.dc-chat-tool.smiley-trigger img,
.special-chat-tool.smiley-trigger img,
.yts-chat-tool.smiley-trigger img,
.cf-chat-tool.smiley-trigger img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none;
}

/* Posted GIFs and smileys should appear as the media itself, not framed avatars/cards. */
.dc-msg-text img.dc-smiley,
.special-msg-text img.special-smiley,
.yts-msg-text img.yts-smiley,
.cf-chat-message img.cf-chat-smiley,
.dc-msg-gif,
.special-chat-gif,
.yts-msg-gif,
.cf-chat-gif {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.dc-msg-text img.dc-smiley,
.special-msg-text img.special-smiley,
.yts-msg-text img.yts-smiley,
.cf-chat-message img.cf-chat-smiley {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  min-width: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

.dc-msg-text img.dc-msg-gif,
.special-msg-text img.special-chat-gif,
.yts-msg-text img.yts-msg-gif,
.cf-chat-message img.cf-chat-gif {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 360px) !important;
  max-height: 320px !important;
  min-width: 0 !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  display: block !important;
}

/* 2026-05-22 Direct-link/YT special rooms: compact chat top row. */
.special-chat {
  background: var(--aim-cream-2, #f1ecd9) !important;
  border: 3px solid #0E3FA9 !important;
  border-top: 5px solid #0E3FA9 !important;
  overflow: hidden !important;
}

.special-chat .special-chat-title {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.special-chat .special-chat-title::after {
  content: none !important;
  display: none !important;
}

.special-chat-topline {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 6px !important;
  background: var(--aim-cream-2, #f1ecd9) !important;
  border-bottom: 1px solid #d7cfb7 !important;
}

.special-chat-topline .special-chat-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border-bottom: 0 !important;
  background: var(--aim-cream-2, #f1ecd9) !important;
}

.special-chat-topline .special-chat-collapse {
  position: static !important;
  z-index: 4 !important;
  flex: 0 0 102px !important;
  width: 102px !important;
  min-height: 42px !important;
  margin: 0 !important;
  align-self: stretch !important;
  padding: 5px 8px !important;
  color: #05317b !important;
  background: linear-gradient(#fffdf1, #ddd6b9) !important;
  border: 2px outset #eee8cc !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.special-chat .special-chat-id input {
  flex: 0 1 80% !important;
  width: 80% !important;
  max-width: 80% !important;
  min-width: 0 !important;
}

.special-chat .special-chat-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px 42px 68px !important;
  align-items: center !important;
  gap: 6px !important;
}

.special-chat .special-chat-bar input {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.special-chat .special-chat-bar button {
  min-width: 0 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.special-chat.is-collapsed .special-chat-topline {
  display: flex !important;
}

.special-chat.is-collapsed .special-chat-tabs {
  display: grid !important;
}

@media (max-width: 759px) {
  .special-chat-topline {
    gap: 4px !important;
    padding: 4px !important;
  }

  .special-chat-topline .special-chat-collapse {
    flex-basis: 82px !important;
    width: 82px !important;
    min-height: 36px !important;
    padding: 4px 5px !important;
    font-size: .66rem !important;
  }

  .special-chat-topline .special-chat-tab {
    min-height: 36px !important;
    padding: 4px 5px !important;
    font-size: .7rem !important;
  }
}

/* 2026-05-22 Special-room responsive width: smaller chat, larger video. */
.room-page:has(.special-chat) {
  max-width: 1760px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: clamp(8px, 1.6vw, 18px) !important;
  padding-right: clamp(8px, 1.6vw, 18px) !important;
}

.room-page:has(.special-chat) .room-grid {
  grid-template-columns: minmax(0, 1fr) clamp(319px, 27vw, 464px) !important;
  gap: clamp(8px, 1.4vw, 18px) !important;
}

.room-page:has(.special-chat) .special-chat-msgs {
  height: clamp(260px, 42vh, 460px) !important;
}

@media (orientation: landscape) and (min-width: 520px) and (max-width: 1180px) {
  .room-page:has(.special-chat) {
    padding: 8px !important;
  }

  .room-page:has(.special-chat) .room-grid {
    grid-template-columns: minmax(0, 1fr) clamp(248px, 34.5vw, 350px) !important;
    gap: 8px !important;
  }

  .room-page:has(.special-chat) .special-chat {
    min-height: 0 !important;
  }

  .room-page:has(.special-chat) .special-chat-msgs {
    height: clamp(140px, 34vh, 280px) !important;
  }

  .room-page:has(.special-chat) .special-chat-id {
    padding: 6px 7px !important;
  }

  .room-page:has(.special-chat) .special-chat-id input {
    flex-basis: 80% !important;
    width: 80% !important;
    max-width: 80% !important;
  }

  .room-page:has(.special-chat) .special-chat-bar {
    padding: 6px !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) 32px 32px 50px !important;
  }

  .room-page:has(.special-chat) .special-chat-tool,
  .room-page:has(.special-chat) .special-chat-bar button {
    padding: 4px !important;
    font-size: .64rem !important;
  }
}

@media (max-width: 759px) and (orientation: portrait) {
  .room-page:has(.special-chat) .room-grid {
    grid-template-columns: 1fr !important;
  }

  .room-page:has(.special-chat) .special-chat {
    min-height: 0 !important;
  }

  .room-page:has(.special-chat) .special-chat-msgs {
    height: clamp(150px, 28vh, 240px) !important;
  }
}

/* 2026-05-23 Tumblr auth buttons. */
.tumblr-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 12px 0 16px;
  border: 2px solid #001935;
  border-radius: 4px;
  background: #001935;
  color: #ffffff !important;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(0,0,0,.18);
}

.tumblr-auth-btn:hover {
  background: #0e3fa9;
  color: #fff !important;
}

.cf-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-row-action-outline {
  background: #ffffff !important;
  color: #0E3FA9 !important;
}

.cf-row-action-outline:hover {
  background: #eef4ff !important;
  color: #06183f !important;
}

/* 2026-05-23 Tumblr button readability override. */
.modal-box .tumblr-auth-btn,
.modal-box .tumblr-auth-btn:link,
.modal-box .tumblr-auth-btn:visited,
.modal-box a.tumblr-auth-btn,
.modal-box a.tumblr-auth-btn:link,
.modal-box a.tumblr-auth-btn:visited {
  background: #001935 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

.modal-box .tumblr-auth-btn:hover,
.modal-box .tumblr-auth-btn:focus,
.modal-box a.tumblr-auth-btn:hover,
.modal-box a.tumblr-auth-btn:focus {
  background: #0e3fa9 !important;
  color: #ffffff !important;
}

/* 2026-05-23 Top Performers strip and performer pages. */
.cf-top-performers {
  margin-top: 24px;
}

.cf-performer-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: #ffa903 rgba(255,255,255,.25);
}

.cf-performer-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  border: 3px solid #ffa903;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,169,3,.28), transparent 44%),
    linear-gradient(135deg, #06183f 0%, #0e3fa9 55%, #071329 100%);
  box-shadow: 0 16px 28px rgba(0,0,0,.22);
  scroll-snap-align: start;
  color: #fff;
}

.cf-performer-photo {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #ffa903;
  background: #001a45;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.cf-performer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-performer-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cf-performer-name {
  color: #fff !important;
  font-size: 1.45rem;
  line-height: .95;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
}

.cf-performer-info span {
  color: rgba(255,255,255,.74);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-performer-title {
  color: #ffa903 !important;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performer-shell {
  padding-top: 34px;
}

.performer-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 34px;
  padding: 28px;
  border: 3px solid #ffa903;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,169,3,.24), transparent 40%),
    linear-gradient(135deg, #0e3fa9, #06183f 70%);
  color: #fff;
}

.performer-hero img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 999px;
  border: 5px solid #ffa903;
  background: #001a45;
}

.performer-hero span {
  color: #ffa903;
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.performer-hero h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .85;
}

.performer-hero p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
}

.performer-title-row {
  margin-top: 0;
}

@media (max-width: 700px) {
  .cf-performer-rail {
    grid-auto-columns: minmax(238px, 82vw);
  }

  .cf-performer-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 13px;
  }

  .cf-performer-photo {
    width: 78px;
    height: 78px;
  }

  .performer-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px;
  }

  .performer-hero img {
    width: 140px;
    height: 140px;
  }
}

/* Decade year filters and compact chat sending */
.cf-year-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 24px 18px;
  margin: -6px auto 18px;
  max-width: 1400px;
  scrollbar-color: #ffa903 rgba(255,255,255,.35);
}

.cf-year-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid rgba(14,63,169,.35);
  border-radius: 999px;
  background: #fff;
  color: #0e3fa9;
  font-family: var(--font-head, Arial, sans-serif);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.cf-year-strip a span {
  color: #5f6f8b;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

.cf-year-strip a.is-active,
.cf-year-strip a:hover {
  border-color: #ffa903;
  background: #ffa903;
  color: #06183f;
}

.cf-year-strip a.is-active span,
.cf-year-strip a:hover span {
  color: #06183f;
}

.dc-chat-bar,
.special-chat-bar,
.yts-chat-bar,
.cf-watch-chat-form {
  grid-template-columns: minmax(0,1fr) 38px 38px 44px !important;
}

.dc-chat-bar input,
.special-chat-bar input,
.yts-chat-input,
#cf-chat-input {
  min-width: 0 !important;
  width: 100% !important;
}

.dc-send-btn,
.special-chat-bar #special-chat-send,
.yts-chat-send,
#cf-chat-send {
  min-width: 0 !important;
  width: 44px !important;
  max-width: 44px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  font-size: 0 !important;
  white-space: nowrap !important;
}

.dc-send-btn::before,
.special-chat-bar #special-chat-send::before,
.yts-chat-send::before,
#cf-chat-send::before {
  content: "\2708";
  font-size: 16px !important;
  line-height: 1 !important;
}

body.yts-page .yts-wrap {
  grid-template-columns: minmax(0,1fr) clamp(360px,35vw,560px) !important;
}

@media (max-width: 640px) {
  .cf-year-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dc-chat-bar,
  .special-chat-bar,
  .yts-chat-bar,
  .cf-watch-chat-form {
    grid-template-columns: minmax(0,1fr) 32px 32px 40px !important;
    gap: 5px !important;
  }

  .dc-send-btn,
  .special-chat-bar #special-chat-send,
  .yts-chat-send,
  #cf-chat-send {
    width: 40px !important;
    max-width: 40px !important;
  }
}

/* YT sync mobile room-chat width + default-room layout patch */
@media (orientation: landscape) and (min-width: 640px) and (max-width: 1180px) {
  body.yts-page .yts-wrap {
    grid-template-columns: minmax(0,1fr) clamp(315px,36vw,440px) !important;
    gap: 10px !important;
  }

  body.yts-page .yts-side {
    width: auto !important;
    min-width: 315px !important;
    max-width: 440px !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact {
    min-width: 315px !important;
  }

  body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-msgs {
    height: clamp(180px,42vh,360px) !important;
  }
}

@media (orientation: portrait) and (max-width: 899px) {
  body.yts-page #yts-chat-panel.yts-chat-compact {
    width: 100% !important;
    max-width: none !important;
  }

body.yts-page #yts-chat-panel.yts-chat-compact .yts-chat-msgs {
    height: clamp(155px,27vh,240px) !important;
  }
}

/* The Million Dollar Question: 90s Edition */
.trivia-page {
  background: radial-gradient(circle at 20% 0%, rgba(255,169,3,.22), transparent 34%), linear-gradient(135deg,#061734 0%,#0E3FA9 52%,#061734 100%);
  color: #fff;
}
.trivia-page,
.trivia-page main,
.trivia-shell,
.trivia-layout,
.trivia-hero,
.trivia-game-card,
.trivia-side,
.trivia-admin {
  color: #fff;
}
.trivia-page h1,
.trivia-page h2,
.trivia-page h3,
.trivia-page p,
.trivia-page label {
  color: inherit;
}
.trivia-page a {
  color: #FFA903;
}
.trivia-page .site-header,
.trivia-page .site-header a,
.trivia-page .site-header button,
.trivia-page .site-header input {
  color: #0b1738;
}
.trivia-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 96px;
}
.trivia-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,320px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.trivia-hero > div,
.trivia-game-card,
.trivia-side > section,
.trivia-admin {
  border: 3px solid #FFA903;
  border-radius: 18px;
  background: rgba(2,14,34,.82);
  box-shadow: 0 24px 55px rgba(0,0,0,.32);
}
.trivia-hero > div:first-child {
  padding: clamp(22px,4vw,46px);
  background:
    linear-gradient(90deg,rgba(2,14,34,.92),rgba(14,63,169,.72)),
    url("https://i.postimg.cc/Jn4hS7Xq/83775-removebg-preview-(1).png") right center / contain no-repeat;
}
.trivia-kicker {
  display: inline-block;
  color: #FFA903;
  font-family: var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}
.trivia-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-family: var(--font-head);
  font-size: clamp(2.4rem,7vw,6.8rem);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.trivia-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  line-height: 1.55;
}
.trivia-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.trivia-btn,
.trivia-lifelines button,
.trivia-chat-send button {
  border: 2px solid #061734;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 900;
  cursor: pointer;
}
.trivia-btn-main,
.trivia-lifelines button:not(:disabled),
.trivia-chat-send button {
  background: #FFA903;
  color: #061734;
}
.trivia-btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.trivia-btn:disabled,
.trivia-lifelines button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.trivia-score-card {
  padding: 24px;
  display: grid;
  align-content: center;
  text-align: center;
}
.trivia-score-card span,
.trivia-current span,
.trivia-board h2,
.trivia-chat-head strong,
.trivia-admin h2 {
  font-family: var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 900;
}
.trivia-score-card strong {
  display: block;
  color: #FFA903;
  font-family: var(--font-head);
  font-size: clamp(2rem,5vw,4rem);
}
.trivia-score-card small {
  color: rgba(255,255,255,.72);
}
.trivia-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,420px);
  gap: 18px;
  align-items: start;
}
.trivia-game-card {
  padding: clamp(16px,3vw,28px);
}
.trivia-game-top {
  display: grid;
  grid-template-columns: minmax(0,1fr) 150px;
  gap: 16px;
  align-items: start;
}
#trivia-category {
  color: #FFA903;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#trivia-question {
  margin: 8px 0 0;
  font-size: clamp(1.45rem,3.6vw,3.2rem);
  line-height: 1.08;
}
.trivia-current {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.trivia-current strong {
  display: block;
  color: #FFA903;
  font-size: 1.4rem;
}
.trivia-current small {
  color: rgba(255,255,255,.78);
}
.trivia-answers {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 24px 0;
}
.trivia-answer {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid rgba(255,169,3,.55);
  background: #fff;
  color: #061734;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}
.trivia-answer b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0E3FA9;
  color: #FFA903;
  font-family: var(--font-head);
}
.trivia-answer:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
}
.trivia-answer.is-correct {
  border-color: #22c55e;
  background: #dcfce7;
}
.trivia-answer.is-wrong {
  border-color: #ef4444;
  background: #fee2e2;
}
.trivia-answer.is-removed {
  opacity: .28;
  pointer-events: none;
}
.trivia-lifelines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trivia-result {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef4ff;
  color: #061734;
  border-left: 6px solid #FFA903;
  font-weight: 800;
}
.trivia-result.is-correct {
  border-left-color: #22c55e;
}
.trivia-result.is-wrong {
  border-left-color: #ef4444;
}
.trivia-ladder {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 6px;
  margin-top: 18px;
}
.trivia-ladder span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  font-size: .82rem;
}
.trivia-ladder .is-current {
  background: #FFA903;
  color: #061734;
  font-weight: 900;
}
.trivia-side {
  display: grid;
  gap: 14px;
}
.trivia-chat,
.trivia-board {
  overflow: hidden;
}
.trivia-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  background: linear-gradient(#2aa8ff,#0346b9);
  color: #fff;
}
.trivia-chat-head span {
  font-size: .82rem;
  color: rgba(255,255,255,.78);
}
.trivia-chat-name,
.trivia-chat-send {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
  background: #f3eedb;
  border-bottom: 1px solid #c9c2a6;
}
.trivia-chat-name img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FFA903;
}
.trivia-chat-name input,
.trivia-chat-send input,
.trivia-admin input,
.trivia-admin textarea,
.trivia-admin select {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #9aa3b2;
  background: #fff;
  color: #061734;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
.trivia-chat-send {
  grid-template-columns: minmax(0,1fr) 74px;
}
.trivia-chat-send button {
  padding: 10px 8px;
  border-radius: 6px;
}
.trivia-chat-messages {
  height: 440px;
  overflow: auto;
  padding: 12px;
  background: #fff;
}
.trivia-chat-msg {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.trivia-chat-msg > img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #FFA903;
}
.trivia-chat-msg span {
  display: block;
  background: #eef4ff;
  color: #061734;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 9px 11px;
}
.trivia-chat-msg b {
  color: #0E3FA9;
}
.trivia-chat-msg small {
  margin-left: 8px;
  color: #64748b;
}
.trivia-chat-msg em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.trivia-gif {
  max-width: 100%;
  border-radius: 8px;
}
.trivia-board {
  padding: 16px;
}
.trivia-board h2 {
  margin: 0 0 10px;
  color: #FFA903;
}
.trivia-board,
.trivia-board h2,
.trivia-board strong,
.trivia-mini-row b {
  color: #fff;
}
.trivia-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.trivia-mini-row span,
.trivia-board p {
  color: rgba(255,255,255,.76);
}
.trivia-admin {
  margin-top: 20px;
  padding: 20px;
}
.trivia-admin h2 {
  margin: 0 0 12px;
  color: #FFA903;
}
.trivia-admin label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}
.trivia-admin textarea {
  min-height: 74px;
  resize: vertical;
}
.trivia-admin-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
#trivia-admin-status {
  margin-top: 10px;
  color: #FFA903;
  font-weight: 900;
}
.trivia-admin input,
.trivia-admin textarea,
.trivia-admin select,
.trivia-chat-name input,
.trivia-chat-send input {
  color: #061734 !important;
}
.trivia-chat,
.trivia-chat * {
  color: initial;
}
.trivia-chat-head,
.trivia-chat-head * {
  color: #fff !important;
}
.trivia-chat-msg span,
.trivia-chat-msg em,
.trivia-chat-msg small {
  color: #061734;
}
.trivia-chat-msg b {
  color: #0E3FA9;
}
@media (max-width: 980px) {
  .trivia-hero,
  .trivia-layout,
  .trivia-game-top {
    grid-template-columns: 1fr;
  }
  .trivia-current {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .trivia-shell {
    width: min(100% - 18px, 560px);
    padding-top: 16px;
  }
  .trivia-hero > div:first-child {
    background-size: 240px auto;
    background-position: right bottom;
  }
  .trivia-answers,
  .trivia-admin-grid {
    grid-template-columns: 1fr;
  }
  .trivia-answer {
    min-height: 64px;
  }
  .trivia-ladder {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .trivia-chat-messages {
    height: 300px;
  }
}
