/* ═══════════════════════════════════════════════════
   DAPCITY TV — main.css
   DapCity.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;
}

*, *::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; }
.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-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: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.1);
  height: 28px; 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: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.8rem; font-weight: 600; margin-right: 80px; display: inline-block; }
.ticker-item:hover { color: #fff; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── 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; }

#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 — prominent name bar at top ── */
.dc-chat-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--dc-border);
  background: #f8f8f8;
  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: var(--dc-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.dc-chat-name-input {
  flex: 1;
  padding: 3px 7px;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 3px;
  font-size: 0.84rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dc-text);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.dc-chat-name-input:focus { border-color: var(--dc-red); }
.dc-chat-name-input[readonly] { background: #f0f0f0; cursor: default; }
.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 var(--dc-border);
  background: var(--dc-white);
  flex-shrink: 0;
}
.dc-chat-input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  background: var(--dc-bg);
  border: 1px solid var(--dc-border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--dc-text);
  outline: none;
  transition: border-color 0.2s;
}
.dc-chat-input:focus { border-color: var(--dc-red); }
.dc-bar-btn {
  flex-shrink: 0;
  padding: 6px 8px;
  background: none;
  border: 1px solid var(--dc-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dc-text-muted);
  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;
  bottom: 56px;
  left: 0; right: 0;
  z-index: 150;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  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 {
  aspect-ratio: 4/3;
  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.03); }
.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;
  gap: 10px; margin-bottom: 8px;
}
.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;
}
.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 = bigger pill badge */
.watching-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 6px 16px 6px 6px;
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  min-width: 160px;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}
.watching-card:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
}

.watching-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.watching-avatar.is-member  { border-color: var(--dc-red); }
.watching-avatar.is-verified { border-color: #f39c12; box-shadow: 0 0 0 1px #f39c12; }
.watching-avatar-wrap { position: relative; flex-shrink: 0; width: 36px; height: 36px; }
.watching-verified-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #f39c12; border: 1.5px 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-info { min-width: 0; }
.watching-name {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}
.watching-show {
  font-size: 0.7rem; color: rgba(255,255,255,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}

.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; }
.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: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; }
.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); }
