/* ==========================================================================
   BIG BROTHER VIP KOSOVA - ULTRA MODERN PRO THEME
   Dark Glassmorphism & Cinema Streaming Experience
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-heavy: rgba(10, 15, 26, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(239, 68, 68, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);
  
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-glow: rgba(239, 68, 68, 0.45);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.35);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --success: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables (optional switch) */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #94a3b8;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #b91c1c);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  color: #fff;
}

.brand-logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-indicator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #b91c1c);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px var(--primary-glow);
  animation: pulse-border 2s infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  padding: 6px;
}

/* ==========================================================================
   ALERT / ANNOUNCEMENT TICKER
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #1e1b4b, #31102f, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ticker-badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.ticker-text {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   STREAM / PLAYER SECTION (CINEMA VIEW)
   ========================================================================== */
.player-section {
  padding: 1.5rem 0 2.5rem;
}

.stream-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

.cinema-mode .stream-grid {
  grid-template-columns: 1fr;
}

.cinema-mode .chat-sidebar {
  display: none;
}

.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Player Overlays */
.player-overlay-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.live-stat-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-stat-badge .live-dot {
  background: #ef4444;
}

.viewer-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.player-tools {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.tool-btn {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.tool-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Multi-Camera Selector Toolbar */
.camera-selector-bar {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.camera-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.camera-tabs::-webkit-scrollbar { display: none; }

.cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.cam-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.cam-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(139, 92, 246, 0.15));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.server-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-selector label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.server-select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.server-select:focus {
  border-color: var(--primary);
}

/* Stream Meta & Reactions */
.stream-meta-box {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.stream-title-group h1 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.stream-title-group p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.reactions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  user-select: none;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.reaction-btn:active {
  transform: scale(0.92);
}

/* Floating Reaction Animation */
.floating-reaction {
  position: fixed;
  bottom: 80px;
  right: 50px;
  font-size: 2rem;
  pointer-events: none;
  animation: floatUp 1.8s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
  z-index: 9999;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-220px) scale(1.4); opacity: 0; }
}

/* ==========================================================================
   LIVE CHAT SIDEBAR
   ========================================================================== */
.chat-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.chat-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.chat-author {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 400;
}

.chat-text {
  color: #cbd5e1;
  word-break: break-word;
}

.chat-footer {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.chat-send-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   FEATURED SECTIONS (EDICIONET, VOTING POLL, LAJMET, FITUESIT)
   ========================================================================== */
.section-wrapper {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.section-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.view-all-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-all-link:hover {
  gap: 10px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edition-card, .news-card, .winner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.edition-card:hover, .news-card:hover, .winner-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.edition-card:hover .card-media img,
.news-card:hover .card-media img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-red { background: var(--primary); }
.tag-gold { background: var(--accent); color: #000; }
.tag-purple { background: var(--secondary); }

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

/* ==========================================================================
   INTERACTIVE VOTING POLL WIDGET
   ========================================================================== */
.poll-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.poll-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.poll-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.poll-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.35), rgba(139, 92, 246, 0.35));
  width: 0%;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
  z-index: 1;
}

.poll-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-layout {
  padding: 2.5rem 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.admin-nav-item.active, .admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.admin-content-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .stream-grid {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    height: 450px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .camera-selector-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .camera-tabs {
    width: 100%;
  }
  .stream-meta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================================================
   V9 — Premium server controls, persistent light theme & mobile 2-column
   ====================================================================== */
:root{--mobile-post-columns:2}
[data-theme="light"]{
  --bg-primary:#f4f6f9;
  --bg-secondary:#ffffff;
  --bg-card:rgba(255,255,255,.92);
  --bg-card-hover:#ffffff;
  --bg-glass:rgba(255,255,255,.78);
  --bg-glass-heavy:rgba(248,250,252,.90);
  --border-subtle:rgba(15,23,42,.10);
  --border-glass:rgba(15,23,42,.12);
  --text-main:#101827;
  --text-muted:#536174;
  --text-dark:#8390a2;
  --shadow-sm:0 2px 10px rgba(15,23,42,.08);
  --shadow-md:0 10px 28px rgba(15,23,42,.10);
  --shadow-lg:0 18px 45px rgba(15,23,42,.13);
}
[data-theme="light"] body::before{background:radial-gradient(circle,rgba(245,158,11,.10),rgba(139,92,246,.05) 42%,transparent 72%)}
[data-theme="light"] .header-nav{background:rgba(255,255,255,.9)}
[data-theme="light"] .nav-link:hover,[data-theme="light"] .nav-link.active{background:rgba(15,23,42,.06)}
[data-theme="light"] .player-card{background:#0a0d13;border-color:#252b36;color:#fff}
[data-theme="light"] .player-card .stream-meta-box,[data-theme="light"] .player-card .server-switcher-wrap{color:#fff}
[data-theme="light"] .player-card .stream-title-group p{color:#aab3c2}
[data-theme="light"] .player-card .reaction-btn{color:#e7ebf2}
[data-theme="light"] .chat-sidebar{background:#fff}

.tool-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle{position:relative;overflow:hidden}
.theme-toggle .theme-icon{position:absolute;transition:transform .25s ease,opacity .25s ease}
html:not([data-theme="light"]) .theme-icon-moon{opacity:1;transform:scale(1) rotate(0)}
html:not([data-theme="light"]) .theme-icon-sun{opacity:0;transform:scale(.55) rotate(-50deg)}
html[data-theme="light"] .theme-icon-sun{opacity:1;transform:scale(1) rotate(0)}
html[data-theme="light"] .theme-icon-moon{opacity:0;transform:scale(.55) rotate(50deg)}

.server-switcher-wrap{padding:14px 16px 16px;background:linear-gradient(180deg,#111621,#0b0f16);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.07)}
.server-switcher-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#919bac;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.server-health{display:flex;align-items:center;gap:7px;color:#61d8ae;font-size:10px}.server-health i{display:block;width:7px;height:7px;border-radius:50%;background:#35d59d;box-shadow:0 0 0 4px rgba(53,213,157,.10),0 0 14px rgba(53,213,157,.55)}
.server-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.server-btn{min-width:0;display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:13px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));color:#c5cbd5;text-align:left;position:relative;overflow:hidden}
.server-btn::after{content:"";position:absolute;inset:auto 12% -22px;height:35px;background:#e6ad45;filter:blur(24px);opacity:0;transition:.25s}
.server-btn:hover{border-color:rgba(239,181,74,.38);transform:translateY(-1px);color:#fff}
.server-btn.active{border-color:rgba(239,181,74,.65);background:linear-gradient(135deg,rgba(239,181,74,.18),rgba(255,255,255,.045));box-shadow:inset 0 0 0 1px rgba(255,219,147,.08),0 7px 22px rgba(0,0,0,.25);color:#fff}
.server-btn.active::after{opacity:.22}
.server-number{width:29px;height:29px;flex:0 0 29px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-size:10px;font-weight:900;color:#eab54e;border:1px solid rgba(255,255,255,.08)}
.server-btn.active .server-number{background:#e6ad45;color:#17120a;border-color:#f5cc79}
.server-copy{min-width:0;display:grid;line-height:1.15}.server-copy b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.03em}.server-copy small{margin-top:4px;color:#7f899a;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-btn.active .server-copy small{color:#c5b58f}

/* player chrome remains dark/cinematic in both themes */
.video-wrapper{background:radial-gradient(circle at 50% 42%,#151b26,#05070a 70%)}
.video-element{background:transparent}
.player-overlay-top .tool-btn{width:38px;height:38px;background:rgba(8,11,16,.72);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 22px rgba(0,0,0,.25)}
.player-overlay-top .tool-btn:hover{background:#e3aa42;color:#171108;border-color:#f0c66e}

@media (max-width:700px){
  .container{padding-left:10px;padding-right:10px}
  .player-section{padding-top:10px}
  .server-switcher-wrap{padding:11px 10px 12px}
  .server-switcher-head{margin-bottom:8px}
  .server-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .server-btn{display:grid;justify-items:center;gap:5px;padding:8px 4px;text-align:center;border-radius:11px}
  .server-number{width:26px;height:26px;flex-basis:26px;border-radius:8px}
  .server-copy b{font-size:9px;max-width:74px}.server-copy small{display:none}
  .player-overlay-top{top:9px;left:9px;right:9px}.live-stat-badge{padding:5px 9px;font-size:.68rem}.viewer-count{display:none}
  .player-tools{gap:5px}.player-overlay-top .tool-btn{width:32px;height:32px}.tool-btn svg{width:15px;height:15px}

  /* Requested: exactly 2 content posts/cards per row on phones */
  .cards-grid{grid-template-columns:repeat(var(--mobile-post-columns),minmax(0,1fr))!important;gap:10px!important}
  .edition-card,.news-card,.winner-card{border-radius:13px;min-width:0}
  .card-media{aspect-ratio:16/10;min-height:0!important}
  .card-body{padding:11px!important}
  .card-body h3{font-size:.88rem!important;line-height:1.25;margin-bottom:6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .card-body p{font-size:.72rem!important;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .card-footer{font-size:.66rem!important;gap:5px;align-items:flex-start!important;flex-direction:column}
  .view-all-link{font-size:.68rem}.card-tag{font-size:.58rem!important;padding:3px 6px!important}
}

/* Public layout: full-width player and compact mobile footer. */
.stream-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 768px) {
  .main-footer { padding: 2rem 0 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-bottom: 1.5rem; }
  .footer-col { min-width: 0; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
  .footer-col h4 { margin-bottom: .65rem; font-size: .95rem; }
  .footer-links a { display: inline-block; padding: .2rem 0; overflow-wrap: anywhere; }
  .footer-bottom { padding-top: 1rem; font-size: .8rem; }
}

#externalPlayer{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.video-wrapper.youtube-mode .player-overlay-top{display:none}
.video-element[hidden]{display:none!important}

.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:620px;margin:0 auto 18px;padding:10px;border:1px solid var(--border-subtle);border-radius:16px;background:var(--bg-card)}
.channel-link{min-width:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 18px;border:1px solid #57449d;border-radius:10px;background:linear-gradient(135deg,#342080,#1b124e);color:#fff;box-shadow:0 4px 12px #0003;transition:transform .18s,border-color .18s,box-shadow .18s}
.channel-link:hover{transform:translateY(-2px);border-color:#b3a0ff;color:#fff}
.channel-link.active{border-color:#ad98ff;background:linear-gradient(135deg,#5434b0,#2b176f);box-shadow:0 0 0 2px #9575ef30,0 5px 18px #40248140}
.channel-link:focus-visible{outline:3px solid #bbaaff;outline-offset:3px}
.channel-button-brand{font-size:28px;font-weight:950;letter-spacing:-1.5px;line-height:1;white-space:nowrap}.channel-button-brand>span{color:#ff454f}
.channel-button-copy{display:grid;gap:3px;line-height:1.1;white-space:nowrap}.channel-button-copy strong{font-size:13px;font-weight:900;letter-spacing:1px}.channel-button-copy small{font-size:8px;font-weight:800;letter-spacing:1.7px;color:#d5caff}
.channel-button-play{font-size:10px;color:#dfd5ff;margin-left:auto}.channel-link.active .channel-button-play{color:#fff}
@media(max-width:600px){.channel-grid{gap:8px;padding:7px;margin-bottom:12px;border-radius:12px}.channel-link{gap:7px;padding:12px 8px;border-radius:8px}.channel-button-brand{font-size:23px}.channel-button-copy strong{font-size:10px;letter-spacing:.6px}.channel-button-copy small{font-size:7px;letter-spacing:1px}.channel-button-play{display:none}}



.home-index{padding-top:70px;padding-bottom:48px;max-width:1160px;scroll-margin-top:90px}.home-intro{position:relative;text-align:center;max-width:870px;margin:0 auto 64px}.channel-eyebrow{font-size:.68rem;letter-spacing:.17em;font-weight:800;color:var(--text-muted)}.home-intro>.channel-eyebrow{display:inline-block;border:1px solid rgba(239,68,68,.3);background:rgba(239,68,68,.07);color:var(--primary);padding:8px 16px;border-radius:40px}.home-intro h1{font-size:clamp(2.3rem,5.8vw,4.5rem);line-height:1.07;letter-spacing:-.045em;margin:26px 0}.home-intro h1 span{display:block;font-size:.54em;letter-spacing:-.02em;margin-top:18px;background:linear-gradient(100deg,#ef4444,#ec4899,#a78bfa);background-clip:text;-webkit-background-clip:text;color:transparent}.home-intro p{max-width:650px;margin:auto;color:var(--text-muted);font-size:1.03rem;line-height:1.85}.hero-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:24px}.hero-tags span{font-size:.73rem;color:var(--text-muted);border:1px solid var(--border-subtle);border-radius:30px;padding:6px 12px}.hero-tags span:before{content:'✓';color:var(--primary);margin-right:7px}.channels-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px;gap:20px}.channels-heading h2{font-size:1.7rem;letter-spacing:-.03em;margin-top:5px}.channels-heading>span{font-size:.8rem;color:var(--text-muted)}.home-channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.home-channel{display:block;position:relative;overflow:hidden;border:1px solid var(--border-subtle);border-radius:24px;background:var(--bg-card);color:var(--text-main);transition:transform .2s,border-color .2s,box-shadow .2s}.home-channel>.channel-eyebrow{position:absolute;top:22px;left:24px;z-index:2;color:#dedbe8;font-size:.62rem}.channel-art{position:relative;display:flex;align-items:center;justify-content:center;height:240px;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#ab254a88,transparent 65%),linear-gradient(130deg,#29101e,#15101d 65%,#35213f)}.home-channel:nth-child(2) .channel-art{background:radial-gradient(ellipse at 50% 70%,#7038c988,transparent 65%),linear-gradient(130deg,#16162e,#181123 65%,#231f50)}.channel-art:before,.channel-art:after{content:'';position:absolute;width:270px;height:270px;border:1px solid #ffffff12;border-radius:50%;transform:scaleY(.65) rotate(-25deg)}.channel-art:after{width:380px;height:380px}.channel-art img{z-index:1;width:116px;height:116px;filter:drop-shadow(0 8px 24px #ec489955);transform:rotate(-6deg)}.home-channel:nth-child(2) .channel-art img{transform:rotate(6deg)}.channel-number{position:absolute;right:18px;bottom:-35px;font-size:11rem;line-height:1;font-weight:900;letter-spacing:-.07em;color:#fff;opacity:.07}.channel-details{padding:26px}.channel-details h2{font-size:1.8rem;letter-spacing:-.03em}.channel-details p{font-size:.9rem;color:var(--text-muted);margin:5px 0 22px}.channel-action{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border-radius:12px;background:linear-gradient(110deg,#dc2626,#e3465b);color:#fff;font-size:.9rem;font-weight:800}.home-channel:nth-child(2) .channel-action{background:linear-gradient(110deg,#7c3aed,#a554d9)}.play-circle{width:29px;height:29px;display:grid;place-items:center;background:#ffffff20;border-radius:50%;font-size:.7rem}.home-channel:hover,.home-channel:focus-visible{transform:translateY(-5px);border-color:#e3465b;box-shadow:0 18px 50px #0003}.home-channel:nth-child(2):hover{border-color:#9b62dd}.home-story{display:flex;gap:28px;margin-top:44px;padding:34px;border:1px solid var(--border-subtle);border-radius:20px;background:linear-gradient(120deg,rgba(239,68,68,.045),rgba(139,92,246,.045))}.story-mark{font-size:5rem;color:var(--primary);line-height:1}.home-story h2{font-size:1.5rem;margin:8px 0}.home-story p{font-size:.94rem;line-height:1.8;color:var(--text-muted);max-width:800px}.home-help{text-align:center;color:var(--text-muted);font-size:.85rem;margin-top:28px}.home-help a{color:var(--text-main)}@media(max-width:600px){.home-index{padding-top:38px}.home-intro{margin-bottom:36px}.home-intro>.channel-eyebrow{font-size:.55rem;padding:7px 10px;letter-spacing:.09em}.home-intro p{font-size:.9rem}.channels-heading h2{font-size:1.35rem}.channels-heading>span{display:none}.home-channels{gap:12px}.home-channel{border-radius:16px}.channel-art{height:150px}.channel-art img{width:75px;height:75px}.home-channel>.channel-eyebrow{left:12px;top:14px;font-size:.43rem;letter-spacing:.06em}.channel-number{font-size:6rem;bottom:-12px;right:8px}.channel-details{padding:14px}.channel-details h2{font-size:1.3rem}.channel-details p{font-size:.74rem;min-height:56px;line-height:1.5;margin-bottom:12px}.channel-action{padding:9px;font-size:.72rem}.play-circle{width:21px;height:21px;font-size:.55rem}.home-story{padding:22px 18px;gap:12px;margin-top:26px}.story-mark{font-size:3rem}.home-story h2{font-size:1.2rem}.home-story p{font-size:.85rem}}@media(prefers-reduced-motion:reduce){.home-channel{transition:none}.home-channel:hover{transform:none}}

.menu-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--border-subtle);border-radius:11px;background:var(--bg-card);color:var(--text-main);cursor:pointer}.mobile-channel-item{display:none}.home-intro h1 .hero-desktop-title{display:block;font-size:1em;line-height:inherit;letter-spacing:inherit;margin:0;background:none;color:var(--text-main)}
@media(max-width:1024px){.header-container{position:relative;gap:10px;height:64px}.menu-toggle{display:flex}.nav-actions{margin-left:auto;gap:8px}.header-nav .nav-actions>.live-indicator-btn{display:none}.header-nav #siteMenu{display:none;position:absolute;left:0;right:0;top:100%;padding:12px 20px;background:var(--bg-secondary);border:1px solid var(--border-subtle);border-radius:0 0 16px 16px;box-shadow:0 18px 25px #0003;max-height:calc(100dvh - 80px);overflow:auto}.header-nav.menu-open #siteMenu{display:block}.header-nav #siteMenu .nav-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none}.header-nav #siteMenu .nav-link{display:block;padding:12px;border-radius:8px}.mobile-channel-item{display:block}.header-nav .brand-logo{flex-shrink:0}.header-nav .brand-logo-text{font-size:1.1rem}}
@media(max-width:600px){.home-index{padding-top:22px}.home-intro{margin-bottom:20px}.home-intro>.channel-eyebrow,.home-intro h1 .hero-desktop-title,.home-intro>p,.hero-tags{display:none}.home-intro h1{font-size:1.65rem;margin:0;line-height:1.2}.home-intro h1>span{font-size:1em;margin:0}.channels-heading{margin-bottom:14px}.channels-heading .channel-eyebrow{font-size:.58rem}.channels-heading h2{font-size:1.05rem;margin-top:3px}.channel-art{height:125px}.channel-details p{display:none}.channel-details h2{margin-bottom:12px}.channel-details{padding:12px}.home-story{margin-top:24px}.nav-actions{flex-shrink:0}}

.live-chat{margin:18px 0 28px;border:1px solid var(--border-subtle);border-radius:16px;background:var(--bg-card);overflow:hidden;color:var(--text-main)}
.live-chat summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;font-weight:800;cursor:pointer}.live-chat summary::-webkit-details-marker{display:none}.live-chat summary i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#37d5ae;box-shadow:0 0 12px #37d5ae66;margin-right:10px}.live-chat[open] .chat-chevron{transform:rotate(180deg)}
.chat-messages{height:300px;overflow-y:auto;overscroll-behavior-y:auto;overscroll-behavior-x:auto;-webkit-overflow-scrolling:touch;padding:8px 20px;scrollbar-width:thin}.chat-message{padding:10px 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.chat-message time{font-size:10px;color:var(--text-muted);margin-right:10px}.chat-message b{color:#2ecbb6}.chat-message:nth-child(3n) b{color:#e7ad59}.chat-message:nth-child(3n+2) b{color:#a28aee}.chat-empty{color:var(--text-muted);text-align:center;padding:70px 10px}.chat-compose{padding:16px 20px;border-top:1px solid var(--border-subtle)}.chat-status{font-size:12px;color:var(--text-muted);margin:0 0 12px}.chat-compose form{display:grid;grid-template-columns:160px 1fr auto;gap:10px;align-items:end}.chat-compose label{display:grid;gap:5px;font-size:11px;color:var(--text-muted)}.chat-compose input,.chat-compose textarea{width:100%;box-sizing:border-box;background:var(--bg-primary);color:var(--text-main);border:1px solid var(--border-subtle);border-radius:9px;padding:11px;font:inherit;font-size:14px}.chat-compose textarea{resize:vertical;min-height:43px;max-height:120px}.chat-compose button{background:#7150ce;border:0;border-radius:9px;color:#fff;font-weight:800;padding:13px 18px}.chat-compose button:disabled{opacity:.5}.chat-compose small{display:block;margin-top:12px;color:var(--text-muted);font-size:11px;line-height:1.6}.chat-delete{margin-left:10px;color:#ff7171;background:transparent;border:0;font-size:11px}.chat-compose :focus-visible,.live-chat summary:focus-visible{outline:2px solid #aa91ff;outline-offset:2px}
@media(max-width:600px){.live-chat summary{padding:15px}.chat-messages{height:280px;padding:5px 14px}.chat-compose{padding:14px}.chat-compose form{grid-template-columns:1fr auto}.chat-compose label:first-child{grid-column:1/-1}.chat-text-label{min-width:0}.chat-compose button{padding:14px}.chat-message{font-size:13px}}

.live-chat [hidden]{display:none!important}.chat-auth{max-width:520px;margin:8px auto 16px}.chat-auth-heading{text-align:center;font-weight:700;margin-bottom:14px}.chat-auth .chat-google{width:100%;background:#fff;color:#202124;border:1px solid #dadce0;font-size:14px;padding:13px;border-radius:10px}.chat-auth-divider{text-align:center;color:var(--text-muted);font-size:12px;margin:14px 0}.chat-compose .chat-auth form{grid-template-columns:1fr 1fr auto;align-items:end}.chat-auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:10px}.chat-compose .chat-auth-links button{padding:5px 0;background:none;color:#ad94ff;font-size:12px}.chat-account{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:14px}.chat-compose .chat-account button{padding:7px 14px}.chat-auth-status{font-size:12px;line-height:1.6;color:var(--text-muted);text-align:center}.chat-auth-status:empty{display:none}@media(max-width:600px){.chat-compose .chat-auth form{grid-template-columns:1fr}.chat-compose .chat-auth form label{grid-column:auto}.chat-auth-links{flex-wrap:wrap}}

/* Compact chat composer */
.chat-compose{background:linear-gradient(135deg,rgba(113,80,206,.07),transparent);padding:18px}.chat-account{padding-bottom:12px;border-bottom:1px solid var(--border-subtle);font-weight:600}.chat-avatar{color:#a58af3;margin-right:8px}.chat-compose .chat-account button{background:transparent;border:1px solid var(--border-subtle);color:var(--text-muted);border-radius:20px}.chat-compose #chatMessageForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.chat-profile{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-bottom:4px}.chat-profile small{grid-column:1/-1;margin:0;font-size:10px}.chat-compose .chat-profile input{padding:9px 12px;font-weight:700;border-radius:10px}.chat-compose .chat-profile input:read-only{background:transparent;border-color:transparent;padding-left:0}.chat-compose .chat-profile button{background:transparent;border:1px solid var(--border-subtle);padding:10px 14px;font-size:12px;color:#aa91ed}.chat-compose .chat-text-label{grid-column:1;font-size:0!important}.chat-compose .chat-text-label textarea{font-size:14px;min-height:52px;height:52px;padding:14px;border-radius:14px;line-height:22px}.chat-send-actions{display:flex;gap:7px;align-items:center}.chat-compose .chat-send-actions button{height:52px;padding:0 16px;border-radius:14px}.chat-compose #chatEmoji{font-size:23px;padding:0 11px;background:var(--bg-primary);border:1px solid var(--border-subtle)}.chat-key-hint{grid-column:1/-1;margin:0!important;font-size:10px!important}.chat-emoji-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;background:var(--bg-primary);border:1px solid var(--border-subtle);border-radius:14px;padding:10px}.chat-compose .chat-emoji-picker button{background:transparent;font-size:24px;padding:7px 0;border-radius:8px}.chat-compose .chat-emoji-picker button:hover{background:rgba(140,100,220,.18)}.chat-message{padding:10px 12px;margin:4px 0;background:rgba(128,128,160,.045);border-radius:10px}.chat-message span{white-space:pre-wrap}.chat-status{font-size:11px}.chat-messages{height:320px}
@media(max-width:600px){.chat-compose{padding:12px}.chat-compose #chatMessageForm .chat-text-label{grid-column:1}.chat-send-actions{gap:5px}.chat-compose .chat-send-actions button{padding:0 11px;font-size:12px}.chat-compose #chatEmoji{padding:0 9px;font-size:22px}.chat-emoji-picker{grid-template-columns:repeat(5,minmax(0,1fr))}.chat-profile{gap:6px}.chat-key-hint{display:none}.chat-messages{padding:6px 10px}}

/* Channel viewing layout: video, servers, chat, then description. */
body[data-channel] .stream-grid{gap:0}body[data-channel] .live-chat{margin:8px 0 16px}body[data-channel] .video-element{position:absolute;inset:0;display:block;width:100%;height:100%}body[data-channel] .stream-meta-box{margin-bottom:20px;padding:12px 4px}.chat-auth>summary{padding:10px;text-align:center;font-size:13px;font-weight:600;display:block;color:var(--text-muted)}.chat-auth[open]>summary{margin-bottom:12px}.chat-compose .has-profile .chat-profile{align-items:center;margin:0}.has-profile .chat-profile label{font-size:0}.has-profile .chat-profile input{font-size:13px}.has-profile #chatNameHint{display:none}.chat-account{margin-bottom:5px;padding-bottom:5px;border:0}.chat-account>span{font-size:11px;color:var(--text-muted)}.chat-compose>small{font-size:10px;margin-top:7px}.chat-status{min-height:16px;margin-bottom:6px}.chat-messages{overflow-anchor:none}.chat-message{content-visibility:auto;contain-intrinsic-size:auto 44px}
@media(max-width:700px){body[data-channel] .ticker-wrap{display:none}body[data-channel] .player-section{padding-top:8px}body[data-channel] .channel-grid{padding:4px;margin-bottom:8px;gap:7px}body[data-channel] .channel-link{padding:10px 8px}body[data-channel] .player-card{border-radius:12px}body[data-channel] .server-switcher-head{display:none}body[data-channel] .server-switcher-wrap{padding:7px}body[data-channel] .server-btn{display:flex;justify-content:center;gap:5px;padding:8px 2px;min-height:34px}body[data-channel] .server-number{display:none}body[data-channel] .live-chat>summary{padding:12px 14px}body[data-channel] .chat-messages{height:clamp(130px,24svh,220px)}body[data-channel] .chat-empty{padding:35px 8px}body[data-channel] .chat-compose{padding:8px 12px}body[data-channel] .chat-compose input,body[data-channel] .chat-compose textarea{font-size:16px}.chat-compose .chat-account button{padding:5px 12px}.chat-compose .chat-text-label textarea{height:46px;min-height:46px;padding:11px}.chat-compose .chat-send-actions button{height:46px}.chat-profile small{line-height:1.3}.chat-compose #chatMessageForm{gap:6px}}

/* V26: faqja leviz nga maus/trackpad mbi mesazhe; shirit i qarte per historikun. */
body[data-channel] .chat-messages { scrollbar-width: auto; scrollbar-color: rgba(160,161,183,.6) transparent; }
body[data-channel] .chat-messages::-webkit-scrollbar { width: 11px; }
body[data-channel] .chat-messages::-webkit-scrollbar-thumb { background: rgba(160,161,183,.6); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
body[data-channel] .chat-messages:focus-visible { outline: 2px solid #aa91ff; outline-offset: -2px; }
@media (pointer:coarse) { body[data-channel] .chat-messages { touch-action: pan-x pinch-zoom; } }


/* V28 — ruaj pseudonimin ne Firebase, pastaj liro vend per mesazhe. */
.chat-account-identity,.chat-account-actions{display:flex;align-items:center;gap:7px;min-width:0}
.chat-account-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(44vw,220px);font-size:12px;color:var(--text-main)}
.chat-account-actions{flex-shrink:0;gap:5px}
.chat-compose .chat-account-actions #chatEditName{font-size:11px;padding:5px 9px;background:rgba(121,90,208,.12);color:#bba6ff;border-color:rgba(160,140,220,.25)}
.chat-compose .chat-profile #chatCancelRename{font-size:11px;padding:9px;color:var(--text-muted)}
.chat-compose .chat-auth-status:not(:empty){padding:6px 0;text-align:left}
.live-chat.chat-profile-saved .chat-profile{display:none!important}
.live-chat.chat-profile-saved .chat-compose{padding-top:8px;padding-bottom:9px}
.live-chat.chat-profile-saved .chat-account{padding:0 0 5px;margin:0 0 5px}
.live-chat.chat-profile-saved .chat-compose #chatMessageForm{gap:5px}
.live-chat.chat-profile-saved .chat-compose>small{margin-top:5px;font-size:9px;line-height:1.35}
.live-chat.chat-profile-saved .chat-status{margin-bottom:3px;min-height:0}
body[data-channel] .live-chat.chat-profile-saved .chat-messages{height:clamp(280px,39svh,460px)}
@media(max-width:700px){
 body[data-channel] .live-chat.chat-profile-saved .chat-messages{height:clamp(155px,23svh,205px)}
 .live-chat.chat-profile-saved .chat-compose{padding:7px 10px}
 body[data-channel] .live-chat.chat-profile-saved>summary{padding:9px 14px}
 body[data-channel] .live-chat.chat-profile-saved .chat-compose>small{font-size:9px;line-height:1.2;margin-top:4px}
 body[data-channel] .live-chat.chat-profile-saved .chat-messages{min-height:0;overflow-y:auto}
 .chat-account-identity strong{max-width:34vw}
 .chat-account{gap:4px}
}

/* V29: chat me i ulet ne ekranet e vogla, per te pare me shume nga player-i. */
@media (max-width:700px) and (max-height:670px){
 body[data-channel] .live-chat.chat-profile-saved .chat-messages{height:clamp(130px,21svh,160px)}
}


/* V36: visitor-initiated sound retry for cross-origin OK.ru embeds. */
.video-wrapper .okru-sound-button{
  position:absolute;z-index:15;top:12px;right:12px;
  display:inline-flex;align-items:center;justify-content:center;
  max-width:calc(100% - 24px);min-height:36px;padding:8px 13px;
  border:1px solid rgba(255,255,255,.27);border-radius:999px;
  background:rgba(16,20,34,.92);color:#fff;
  box-shadow:0 7px 25px rgba(0,0,0,.4);
  font:700 12px/1.2 system-ui,sans-serif;cursor:pointer;
}
.video-wrapper .okru-sound-button:hover,.video-wrapper .okru-sound-button:focus-visible{
  background:#5333bd;border-color:#a58af9;outline:2px solid rgba(215,204,255,.58);
}
@media(max-width:600px){.video-wrapper .okru-sound-button{top:8px;right:8px;min-height:32px;padding:7px 10px;font-size:11px}}


/* V37 – kontroll i pavarur per mesazhet dhe reklamë poshte chat-it */
body[data-channel] .chat-scroll-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:39px;padding:5px 11px;background:var(--bg-card);
  border-bottom:1px solid var(--border-subtle);
}
body[data-channel] .chat-scroll-help{font-size:11px;color:var(--text-muted);font-weight:600}
body[data-channel] .chat-scroll-actions{display:flex;align-items:center;gap:7px}
body[data-channel] .chat-scroll-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:30px;min-width:76px;padding:5px 10px;
  border:1px solid var(--border-subtle);border-radius:9px;
  background:rgba(119,83,217,.12);color:var(--text-main);
  font:700 12px/1.2 system-ui,sans-serif;cursor:pointer;
}
body[data-channel] .chat-scroll-btn:hover:not(:disabled),body[data-channel] .chat-scroll-btn:focus-visible{
  background:#7150ce;color:#fff;border-color:#7150ce;outline:2px solid rgba(167,145,242,.38);
}
body[data-channel] .chat-scroll-btn:disabled{opacity:.38;cursor:default}
body[data-channel] .chat-ad-placement{
  max-width:100%;min-width:0;margin:0 0 14px;padding:6px 0 0;
  text-align:center;overflow-x:auto;scrollbar-width:thin;
}
body[data-channel] .chat-ad-placement .chat-ad-label{
  font-size:10px;letter-spacing:.045em;color:var(--text-muted);
  text-transform:uppercase;margin-bottom:5px;
}
body[data-channel] .chat-ad-placement>div[id^="container-"]{max-width:100%;margin-inline:auto}
@media(max-width:700px){
 body[data-channel] .chat-scroll-toolbar{min-height:35px;padding:4px 10px}
 body[data-channel] .chat-scroll-btn{min-height:29px;min-width:71px;padding:5px 9px;font-size:11px}
 body[data-channel] .chat-ad-placement{margin-bottom:10px}
}
