/* ═══════════════════════════════════════
   screenx.cc — Main Stylesheet
   ═══════════════════════════════════════ */

:root {
  --glass-bg: rgba(20,20,28,0.3);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-strong: rgba(255,255,255,0.12);
  --glass-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  --glass-shadow-lg: 0 12px 48px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  --glass-shadow-sm: 0 2px 12px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.04);
  --accent: #FFD700;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --accent-glow: rgba(255,215,0,0.5);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.55);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 100px;
  --ticker-color: #ffffff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background: #0c0c14;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  /* Safe-area padding for notched iPhones */
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* ── Animated Mesh Background ── */
.background-mesh {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; z-index: -1;
  overflow: hidden; background: #0c0c14;
  transform: translateZ(0);
  will-change: transform;
  pointer-events: none;
}
.background-mesh::before {
  content: '';
  position: absolute; top: -40%; left: -15%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.08), transparent 70%);
  animation: meshFloat1 18s ease-in-out infinite;
}
.background-mesh::after {
  content: '';
  position: absolute; bottom: -40%; right: -15%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.06), transparent 70%);
  animation: meshFloat2 20s ease-in-out infinite;
}
.mesh-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
  pointer-events: none;
}
.mesh-orb.o1 {
  top: 15%; left: 10%; width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,215,0,0.06), transparent);
  animation: meshOrb1 22s ease-in-out infinite;
}
.mesh-orb.o2 {
  bottom: 10%; right: 5%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.05), transparent);
  animation: meshOrb2 26s ease-in-out infinite;
}
.mesh-orb.o3 {
  top: 50%; left: 50%; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(6,182,212,0.04), transparent);
  animation: meshOrb3 24s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

@keyframes meshFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6%,12%) scale(1.08); }
  66% { transform: translate(-4%,-6%) scale(0.92); }
}
@keyframes meshFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-10%,6%) scale(0.92); }
  66% { transform: translate(6%,-10%) scale(1.08); }
}
@keyframes meshOrb1 {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(50px,-35px); }
  50% { transform: translate(-25px,45px); }
  75% { transform: translate(35px,25px); }
}
@keyframes meshOrb2 {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-40px,25px); }
  50% { transform: translate(35px,-35px); }
  75% { transform: translate(-25px,-15px); }
}
@keyframes meshOrb3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.25); }
}

/* ── Pause mesh animations during playback (saves GPU) ── */
body.is-streaming .background-mesh::before,
body.is-streaming .background-mesh::after,
body.is-streaming .mesh-orb,
body.is-streaming .glass-border-accent::before { animation-play-state: paused !important; }

/* ── Disable backdrop-filter during streaming (saves GPU) ── */
body.is-streaming .pinned-sidebar,
body.is-streaming .ch-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.is-streaming .pinned-sidebar { background: rgba(18,18,28,0.5) !important; }
body.is-streaming .ch-card { background: rgba(18,18,28,0.5) !important; }

/* ── Reduce GPU load during playback on mobile ── */
/* backdrop-filter blur is expensive; disable it while streaming on small screens */
@media (max-width: 900px) {
  body.is-streaming .app-header,
  body.is-streaming .pinned-sidebar,
  body.is-streaming .mobile-ctrl-bar,
  body.is-streaming .player-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.is-streaming .app-header {
    background: rgba(18,18,28,0.9);
  }
  body.is-streaming .player-wrapper {
    background: rgba(0,0,0,0.85);
  }
}

/* ── Pause animations during scroll (prevents GPU jank) ── */
body.is-scrolling .background-mesh::before,
body.is-scrolling .background-mesh::after,
body.is-scrolling .mesh-orb,
body.is-scrolling .glass-border-accent::before {
  animation-play-state: paused !important;
}
/* Do NOT toggle backdrop-filter during scroll — it causes visible flicker.
   backdrop-filter is permanently disabled on mobile (@media <=767px). */

/* ── iPhone notch safe-area in fullscreen ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .hls-controls {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
  }
  .mobile-ctrl-bar {
    padding-left: calc(12px + var(--safe-left));
    padding-right: calc(12px + var(--safe-right));
    margin-bottom: var(--safe-bottom);
  }
}

/* ── Smooth scrolling (no vibration on iOS) ── */
html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ── Respect user motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Layout ── */
.page-wrap {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 0 60px;
  display: flex; flex-direction: column;
  align-items: center; position: relative;
  z-index: 1; flex: 1;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateZ(0);
  backface-visibility: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.01);
  box-shadow: var(--glass-shadow);
}

.glass-border-accent { position: relative; }
.glass-border-accent::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,215,0,0.2), rgba(168,85,247,0.2),
    rgba(6,182,212,0.2), rgba(255,215,0,0.2));
  background-size: 300% 300%;
  animation: accentBorder 6s ease-in-out infinite;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}
@keyframes accentBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Header ── */
.header-logo{width:auto;max-width:140px;object-fit:contain;display:block}
@keyframes headerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: .8; }
}

.app-header {
  position: sticky; top: 8px; z-index: 100;
  margin: 8px auto; max-width: 1200px;
  width: calc(100% - 40px);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(18,18,28,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
  will-change: transform;
}
.app-header .brand {
  display: flex; align-items: center; gap: 8px;
}
.app-header .brand .orb {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  box-shadow: 0 0 14px rgba(255,215,0,0.25);
  animation: trophyBounce 3s ease-in-out infinite;
  flex-shrink: 0;
}
.app-header .brand .name {
  font-size: 0.95rem; font-weight: 800; color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(135deg, #ffd700, #fbbf24, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.header-actions {
  display: flex; align-items: center; gap: 8px;
}
.btn-glass {
  color: var(--text-primary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,215,0,0.15);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2), 0 0 15px rgba(255,215,0,0.03);
  transform: translateY(-2px);
}
.btn-glass.blue {
  background: linear-gradient(135deg, #0a84ff, #5856d6) !important;
  color: #fff !important;
  border: none !important;
}
.btn-glass.blue:hover {
  box-shadow: 0 4px 20px rgba(10,132,255,0.4) !important;
  transform: translateY(-2px);
}

/* ── Header Login Button ── */
.header-login-btn {
  position: relative; overflow: hidden;
}
.header-login-btn .hl-icon {
  font-size: 15px;
}
.header-login-btn .hl-label {
  font-weight: 600; font-size: 0.85rem;
}
.header-login-btn.logged-in {
  background: rgba(34,197,94,0.1) !important;
  border-color: rgba(34,197,94,0.2) !important;
  color: #34C759 !important;
}
.header-login-btn.logged-in:hover {
  background: rgba(239,68,68,0.1) !important;
  border-color: rgba(239,68,68,0.2) !important;
  color: #ef4444 !important;
}

.header-spacer { height: 40px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0; }
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px; align-items: start;
  width: 100%; padding: 0 20px;
}
.main-col { min-width: 0; }
.side-col { position: sticky; top: 70px; }

/* ── Pinned Sidebar ── */
.pinned-sidebar {
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: var(--radius-md);
  padding: 0; overflow: hidden;
}
.pinned-sidebar .ps-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.pinned-sidebar .ps-hdr .title {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.pinned-sidebar .ps-hdr .count {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.1);
  color: #FFD700; font-size: 0.65rem; font-weight: 700;
}
/* ── Sidebar Widgets ── */
.sidebar-widgets { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.sidebar-widgets .sw-card {
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sidebar-widgets .sw-card img {
  width: 100%; display: block;
}
.sidebar-widgets .sw-card .sw-text {
  padding: 12px 16px; font-size: 12px; color: #94a3b8; line-height: 1.5;
}
.sidebar-widgets .sw-card .sw-html { padding: 0; }
.sidebar-widgets .sw-card .sw-html > *:first-child { margin-top: 0; }
.sidebar-widgets .sw-card .sw-html > *:last-child { margin-bottom: 0; }

/* ── Inline Pinned Section (hidden on desktop, shown on mobile) ── */
#pinnedSection { display: none !important; }
@media (max-width: 900px) {
  #pinnedSection { display: block !important; margin-top: 8px; margin-bottom: 4px; }
}
#pinnedSection .ps-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pinned-section .ps-hdr .title {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.pinned-section .ps-hdr .count {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.1);
  color: #FFD700; font-size: 0.65rem; font-weight: 700;
}
#pinnedSection .pinned-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 4px;
}
.pinned-list {
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 10px; max-height: 55vh; overflow-y: auto;
}
.pin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  cursor: pointer; transition: all 0.3s ease;
  background: rgba(255,255,255,0.01);
}
.pin-item:hover {
  border-color: rgba(255,215,0,0.08);
  background: rgba(255,215,0,0.03);
  transform: translateX(3px);
}
.pin-item.active {
  border-color: rgba(52,199,89,0.25);
  background: rgba(52,199,89,0.08);
  box-shadow: 0 0 20px rgba(52,199,89,0.06), inset 0 0 15px rgba(52,199,89,0.03);
  transform: translateX(3px);
}
.pin-item .pi-icon {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 700;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}
.pin-item .pi-icon img { width: 100%; height: 100%; object-fit: cover; }
.pin-item .pi-lbl {
  flex: 1; font-size: 1rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-item:hover .pi-lbl { font-weight: 700; }
.pin-item.active .pi-lbl { font-weight: 800; }
.pin-item .pi-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.06); flex-shrink: 0;
  transition: all .3s;
}
.pin-item.active .pi-live {
  background: #34C759;
  box-shadow: 0 0 10px rgba(52,199,89,0.6);
  animation: livePulseSide 1.2s infinite;
}
.pin-item.active .pi-live::after {
  content: 'LIVE';
  position: absolute;
  top: -2px; left: -2px;
  font-size: 6px; font-weight: 900;
  color: #34C759;
  white-space: nowrap;
}
.pin-item .pi-live { position: relative; }
@keyframes livePulseSide {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.pin-item .pi-badge {
  font-size: 0.5rem; font-weight: 800; padding: 2px 6px;
  border-radius: 4px; letter-spacing: 0.5px;
}
.pin-item.active .pi-badge {
  background: rgba(52,199,89,0.15); color: #34C759;
  border: 1px solid rgba(52,199,89,0.2);
}

/* ── PWA Install Widget ── */
@keyframes pwaBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pwaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes pwaShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pwaGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.08); }
  50% { box-shadow: 0 0 25px rgba(255,215,0,0.18); }
}
.pwa-widget {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 18px 20px; margin-top: 16px; border-radius: 16px;
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
  animation: pwaFloat 4s ease-in-out infinite;
}
}
.pwa-widget::before {
  content: '';
  position: absolute; inset: -2px; border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(255,215,0,0.2), rgba(168,85,247,0.15),
    rgba(6,182,212,0.15), rgba(255,215,0,0.2));
  background-size: 300% 300%;
  animation: pwaBorder 4s ease-in-out infinite;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px; opacity: 0.7;
}
.pwa-widget:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255,215,0,0.08);
}
.pwa-widget .pwa-text { text-align: center; width: 100%; }
.pwa-widget .pwa-title {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  letter-spacing: 0.3px;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}
.pwa-widget .pwa-sub {
  font-size: 0.72rem; color: rgba(255,215,0,0.5);
  font-weight: 600; margin-top: 3px; letter-spacing: 0.2px;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}
.pwa-widget .pwa-sub .highlight { color: #ffd700; font-weight: 700; }
.pwa-widget .pwa-install-btn {
  display: block; width: 100%;
  padding: 12px 20px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000; font-size: 0.95rem; font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: 0.5px; overflow: hidden;
  box-shadow: 0 3px 16px rgba(255,215,0,0.2);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  text-align: center;
}
.pwa-widget .pwa-install-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: pwaShimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}
.pwa-widget .pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,215,0,0.35);
}
.pwa-widget .pwa-install-btn:active {
  transform: translateY(0) scale(0.98);
}
.pwa-widget .pwa-install-btn.installed {
  background: rgba(52,199,89,0.12) !important;
  color: #34C759 !important;
  box-shadow: none !important;
  pointer-events: none;
}
.pwa-widget .pwa-install-btn.installed::before { display: none; }

/* ── Matches Sidebar Widget ── */
.matches-sidebar {
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: var(--radius-md);
  padding: 0; overflow: hidden; margin-top: 16px;
}
.matches-sidebar .ms-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.matches-sidebar .ms-hdr .title {
  font-size: 0.85rem; font-weight: 700; color: #fff;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.matches-sidebar .ms-hdr .count {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.1);
  color: #06b6d4; font-size: 0.65rem; font-weight: 700;
}
.matches-sidebar .ms-hdr .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: livePulseSide 1.2s infinite;
  display: inline-block; margin-right: 6px;
}
.match-countdown {
  text-align: center; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(245,158,11,0.02));
  border-bottom: 1px solid rgba(255,215,0,0.06);
  position: relative; overflow: hidden;
}
.match-countdown::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.03), transparent 60%);
  animation: cdGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cdGlow {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.6; }
  50% { transform: translate(5%,-5%) scale(1.1); opacity: 1; }
}
.match-countdown .cd-lbl {
  font-size: 0.75rem; color: #fff;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
}
.match-countdown .cd-time {
  font-size: 1.8rem; font-weight: 900; color: #ffd700;
  font-variant-numeric: tabular-nums; letter-spacing: 2px;
  margin-top: 4px; animation: cdPulse 2s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255,215,0,0.15);
}
@keyframes cdPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(255,215,0,0.15); }
  50% { transform: scale(1.04); text-shadow: 0 0 30px rgba(255,215,0,0.25); }
}
.match-countdown .cd-vs {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  margin-top: 6px; font-weight: 500;
}
.match-countdown .cd-vs strong { color: #fff; font-weight: 700; }
.matches-list {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 10px; max-height: 280px; overflow-y: auto;
}
.match-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 12px 14px; border-radius: 14px;
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  background: rgba(255,255,255,0.025);
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.match-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,215,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.match-item .mi-date {
  font-size: 0.72rem; color: #fff; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.match-item .mi-time {
  font-size: 0.78rem; color: #ffd700; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
}
.match-item .mi-teams {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 4px 0;
}
.match-item .mi-teams .mi-side {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
}
.match-item .mi-teams .mi-side.mi-left { justify-content: flex-end; }
.match-item .mi-teams .mi-side.mi-right { justify-content: flex-start; }
.match-item .mi-teams .mi-logo {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.match-item .mi-teams .mi-name {
  font-size: 0.85rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100px;
}
.match-item .mi-teams .mi-vs {
  font-size: 0.7rem; color: #ffd700; font-weight: 800;
  flex-shrink: 0; padding: 0 6px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.match-item .mi-round {
  font-size: 0.6rem; color: rgba(255,255,255,0.4);
  font-weight: 500; letter-spacing: 0.3px;
}
.matches-loading {
  text-align: center; padding: 24px;
  color: rgba(255,255,255,0.15); font-size: 0.75rem;
}
.matches-error {
  text-align: center; padding: 24px;
  color: rgba(239,68,68,0.3); font-size: 0.7rem;
}

/* ── Player Section ── */
.player-section { margin-bottom: 18px; position: relative; border-radius: var(--radius-lg); }
.player-section .player-wrapper { border-radius: var(--radius-lg); margin-bottom: 0; }
.player-wrapper {
  width: 100%; aspect-ratio: 16/9; max-height: 65vh;
  position: relative; display: flex; align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg); transform: translateZ(0);
  transition: all 0.3s ease;
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg), var(--glass-highlight);
  overflow: hidden; z-index: 1;
}
.player-wrapper.is-playing {
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  transition: all 0.5s ease;
}
.player-wrapper video,
.player-wrapper #videoContainer {
  width: 100%; height: 100%; object-fit: contain;
  background: #000; z-index: 5;
}
#videoContainer, .shaka-video-container {
  border-radius: 0 !important;
  width: 100% !important; height: 100% !important;
  border: none !important; outline: none !important;
}
#videoElement {
  width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.player-wrapper > * { position: relative; z-index: 2; }

/* ── HLS Custom Controls ── */
.hls-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 40px 12px 10px;
  opacity: 0; transition: opacity 0.3s;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
/* Desktop: show on hover */
@media (hover: hover) and (pointer: fine) {
  .player-wrapper:hover .hls-controls { opacity: 1; }
}
/* Mobile / touch: always visible */
@media (hover: none), (pointer: coarse) {
  .hls-controls { opacity: 1; }
}
/* Force-visible (used by JS tap-to-reveal on desktop) */
.hls-controls.force-visible { opacity: 1 !important; }

/* Prevent iOS blue flash on video tap */
#videoElement {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.hls-controls .ctrl-row {
  display: flex; align-items: center; gap: 8px;
}
.hls-controls .ctrl-btn {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 18px; cursor: pointer; padding: 6px;
  border-radius: 6px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.hls-controls .ctrl-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.hls-controls .ctrl-btn.active { color: #ffd700; }
.hls-controls .ctrl-progress {
  flex: 1; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; outline: none; cursor: pointer;
  /* iOS: prevent default rounded track that ignores height */
  margin: 0;
}
.hls-controls .ctrl-progress::-webkit-slider-runnable-track {
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.hls-controls .ctrl-progress::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #ffd700;
  border: 2px solid rgba(0,0,0,0.3); cursor: pointer;
  margin-top: -5px; /* center on track */
}
.hls-controls .ctrl-progress::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  border: none;
}
.hls-controls .ctrl-progress::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #ffd700; border: 2px solid rgba(0,0,0,0.3); cursor: pointer;
}
.hls-controls .ctrl-time {
  color: rgba(255,255,255,0.6);
  font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 45px;
}
.hls-controls .ctrl-time.current { text-align: right; }
.hls-controls .ctrl-time.duration { text-align: left; }

/* ── Mobile Control Bar (below player, touch-friendly) ── */
.mobile-ctrl-bar {
  display: none;
  width: 100%;
  background: rgba(18,18,28,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 900px) {
  .mobile-ctrl-bar { display: flex; }
}
.mobile-ctrl-bar .mcb-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-width: 56px; padding: 8px 10px;
  border: none; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
  font-family: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-ctrl-bar .mcb-btn:active {
  background: rgba(255,215,0,0.12);
  color: #ffd700;
  transform: scale(0.94);
}
.mobile-ctrl-bar .mcb-btn .mcb-icon {
  font-size: 20px; line-height: 1;
}
.mobile-ctrl-bar .mcb-btn .mcb-label {
  font-size: 9px; letter-spacing: 0.3px;
  opacity: 0.6; text-transform: uppercase;
}
.mobile-ctrl-bar .mcb-btn.mcb-active {
  background: rgba(255,215,0,0.08);
  color: #ffd700;
}
.mobile-ctrl-bar .mcb-btn.mcb-active .mcb-label { opacity: 1; }

/* ── Modern Quality Selector ── */
.ctrl-quality-wrap { position: relative; }
.ctrl-quality-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 600;
  padding: 6px 10px 6px 8px; border-radius: 100px;
  cursor: pointer; outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ctrl-quality-pill:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,215,0,0.3);
  color: #fff;
}
.ctrl-quality-pill:active { transform: scale(0.96); }
.ctrl-quality-pill .cq-icon { font-size: 12px; opacity: 0.5; line-height: 1; }
.ctrl-quality-pill .cq-label { line-height: 1; letter-spacing: 0.3px; }
.ctrl-quality-pill .cq-arrow { font-size: 8px; opacity: 0.4; margin-left: -2px; transition: transform 0.2s; }

/* Popup — uses position:fixed (set by JS) to avoid clipping from player-wrapper overflow:hidden */
.cq-popup {
  position: fixed; bottom: auto; left: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 9999;
}
.cq-popup.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.cq-popup-inner {
  background: rgba(18,18,30,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.cq-popup-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  padding: 6px 10px 4px;
}
.cq-opt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 10px; border: none; border-radius: 8px;
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: all 0.15s;
}
.cq-opt:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cq-opt.active { background: rgba(255,215,0,0.08); color: #ffd700; }
.cq-opt-check {
  width: 16px; font-size: 11px; text-align: center;
  opacity: 0; transition: opacity 0.15s;
}
.cq-opt.active .cq-opt-check { opacity: 1; }
.cq-opt-label { flex: 1; }
.cq-opt-bitrate {
  font-size: 10px; color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.cq-opt-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 100px;
  background: rgba(255,215,0,0.12); color: #ffd700;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 480px) {
  .ctrl-quality-pill { padding: 5px 8px; gap: 4px; font-size: 10px; }
  .cq-popup-inner { min-width: 140px; padding: 6px; }
  .cq-opt { padding: 6px 8px; font-size: 11px; }
}

/* ── Shaka: suppress all UI artifacts (we use custom controls) ── */
.shaka-video-container,
.shaka-video-container *,
video.shaka-video,
.shaka-controls-container,
.shaka-bottom-controls,
.shaka-play-button,
.shaka-spinner,
.shaka-overflow-menu,
.shaka-overflow-menu button,
.shaka-overflow-menu * { border: none !important; outline: none !important; box-shadow: none !important; }
.shaka-bottom-controls, .shaka-controls-container, .shaka-play-button,
.shaka-spinner, .shaka-overflow-menu, .shaka-overflow-menu button { display: none !important; }

/* ── Player Overlays ── */
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 12px #FF3B30;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}
.ui-hidden { opacity: 0 !important; pointer-events: none !important; }

/* ── Section Title ── */
.section-title {
  font-size: 1.2rem; font-weight: 700; margin: 6px 0 12px 0;
  color: #fff; position: relative; padding-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 60%;
  background: linear-gradient(90deg, #ffd700 0%, #a855f7 50%, rgba(6,182,212,0) 80%);
  border-radius: 2px;
}

/* ── Channel Grid ── */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px; width: 100%;
}
.ch-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px 18px 20px;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm), var(--glass-highlight);
}
.ch-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.ch-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-shadow-lg), var(--glass-highlight);
}
.ch-card:hover::before { opacity: 1; }
.ch-card.active {
  border: 1px solid rgba(52,199,89,0.25) !important;
  box-shadow: 0 0 20px rgba(52,199,89,0.08) !important;
  background: rgba(52,199,89,0.04) !important;
  transform: translateY(-4px) scale(1.02) !important;
  z-index: 10;
}
.ch-card.active::after {
  content: '● LIVE';
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  background: rgba(52,199,89,0.15); color: #34C759;
  font-size: 0.55rem; font-weight: 700;
  padding: 2px 10px; border-radius: 10px;
  letter-spacing: 0.5px; pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(52,199,89,0.2);
}
.ch-logo-wrap {
  width: 76px; height: 76px; margin: 0 auto 14px auto;
  background: rgba(255,255,255,0.03);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; padding: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.04);
}
.ch-card:hover .ch-logo-wrap {
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.08);
}
.ch-card.active .ch-logo-wrap {
  transform: scale(1.12);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(52,199,89,0.3);
}
.ch-logo-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; aspect-ratio: 1/1;
}
.ch-first {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; border-radius: 50%;
}
.ch-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; color: #fff; }
.ch-badge-row { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.ch-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-fhd {
  border: 1px solid rgba(255,215,0,0.3);
  color: #FFD700;
  background: rgba(255,215,0,0.06);
}
.badge-hd {
  border: 1px solid rgba(52,199,89,0.3);
  color: #34C759;
  background: rgba(52,199,89,0.06);
}
.ch-hidden { display: none !important; }

/* ── Search Bar ── */
.ch-search-wrap {
  width: 100%; margin-bottom: 16px;
  position: relative;
}
.ch-search-wrap input {
  width: 100%; padding: 14px 18px 14px 44px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--glass-shadow-sm), var(--glass-highlight);
  color: #fff; font-size: 0.9rem;
  outline: none; transition: all 0.25s;
  font-family: inherit;
}
.ch-search-wrap input:focus {
  border-color: rgba(255,215,0,0.3);
  box-shadow: var(--glass-shadow), 0 0 0 3px rgba(255,215,0,0.06);
}
.ch-search-wrap input::placeholder {
  color: rgba(255,255,255,0.25);
}
.ch-search-wrap .search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 16px; pointer-events: none;
}

/* ── Ticker ── */
.ticker-wrap {
  flex: 1; overflow: hidden; position: relative;
  height: 30px; display: flex; align-items: center;
  margin: 0 2px; min-width: 0;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: '';
  position: absolute; top: 0; width: 24px; height: 100%;
  z-index: 2; pointer-events: none;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(20,20,28,0.35), transparent);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(20,20,28,0.35), transparent);
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  gap: 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ticker-color, #ffffff);
  flex-shrink: 0; padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.03);
  transition: all .4s;
}
.ticker-item:hover { color: #fff; }
.ticker-item .hl { color: #fbbf24; font-weight: 600; }
.ticker-item .badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
}
.ticker-item .badge.live {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  animation: glowPulse 1.5s ease-in-out infinite;
}
.ticker-item .badge.gold { background: rgba(255,215,0,0.08); color: #fbbf24; }
.ticker-item .badge.green { background: rgba(34,197,94,0.08); color: #22c55e; }
.ticker-item .badge.blue { background: rgba(59,130,246,0.08); color: #60a5fa; }
.ticker-item .price { color: #ffd700; font-weight: 700; }
.ticker-item .sep { color: rgba(255,255,255,0.06); }

/* ── Actions ── */
.header-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; padding: 2px 4px;
  border-radius: 8px; background: rgba(255,255,255,0.02);
}
.tg-mini {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 8px;
  background: linear-gradient(135deg, #0088cc, #0099dd);
  color: #fff; font-size: 11px; font-weight: 700;
  text-decoration: none; transition: all .25s;
  white-space: nowrap; letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,136,204,0.15);
}
.tg-mini:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 15px rgba(0,136,204,0.3);
}
.share-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.share-mini:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.12);
  color: #fbbf24; transform: scale(1.05);
}

/* ── Share Buttons ── */
.share-header-btn {
  background: linear-gradient(135deg, #ffd700, #f59e0b) !important;
  color: #000 !important; font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(255,215,0,0.2) !important;
}
.share-header-btn:hover {
  box-shadow: 0 4px 20px rgba(255,215,0,0.35) !important;
  transform: translateY(-2px) scale(1.03) !important;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.15);
  background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(245,158,11,0.05));
  color: #fbbf24; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .25s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(255,215,0,0.05);
}
.share-btn:hover {
  border-color: rgba(255,215,0,0.3);
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(245,158,11,0.08));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,215,0,0.12);
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  width: 100%; max-width: calc(1200px - 40px);
  margin: 20px auto 0; padding: 18px 24px;
  background: rgba(18,18,28,0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 10px;
  box-shadow: var(--glass-shadow-sm), var(--glass-highlight);
  /* Match the padding/width of .layout-grid so footer aligns with content */
  box-sizing: border-box;
}
.site-footer .brand {
  color: rgba(255,255,255,0.15);
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
}
.site-footer .brand strong { color: rgba(255,215,0,0.35); }
.site-footer .links { display: flex; align-items: center; gap: 14px; }
.site-footer .links a {
  color: rgba(255,255,255,0.2); font-size: 11px;
  text-decoration: none; transition: color .2s;
}
.site-footer .links a:hover { color: rgba(255,215,0,0.4); }

/* ── Loading States ── */
#__loader {
  position: absolute; top: 0; left: 0;
  width: 100%; min-height: 480px; height: 100%;
  background: rgba(20,20,28,0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10; border-radius: 8px;
  transition: opacity .6s;
}
#__loader.hidden { opacity: 0; pointer-events: none; }
#__disabled {
  display: none; position: absolute; top: 0; left: 0;
  width: 100%; min-height: 480px; height: 100%;
  background: rgba(10,10,18,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-direction: column; align-items: center;
  justify-content: center; z-index: 20; border-radius: 8px;
}
#__disabled.show { display: flex; }
#__disabled .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
#__disabled .msg { color: rgba(255,255,255,0.25); font-size: 14px; text-align: center; line-height: 1.6; }

@keyframes spin3d {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes banglaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.05); }
}
.bd-sp {
  width: 55px; height: 55px;
  border: 3px solid rgba(255,215,0,0.12);
  border-top: 3px solid #ffd700;
  border-radius: 50%;
  animation: spin3d .9s cubic-bezier(0.68,-0.55,0.27,1.55) infinite;
  margin-bottom: 18px;
  box-shadow: 0 0 25px rgba(255,215,0,0.12);
}
.bd-tx {
  color: #ffd700; font-size: 21px; font-weight: 700;
  animation: banglaPulse 1.8s ease-in-out infinite;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255,215,0,0.25);
}
.bd-sub { color: #64748b; font-size: 12px; margin-top: 10px; }

/* ── Login Modal ── */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: rgba(18,18,28,0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px; padding: 32px;
  width: 90%; max-width: 400px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}
.modal h2 { color: #ffd700; font-size: 18px; text-align: center; margin-bottom: 4px; }
.modal .sub {
  color: rgba(255,255,255,0.45); text-align: center;
  font-size: 12px; margin-bottom: 16px; line-height: 1.5;
}
.modal .sub strong { color: #fbbf24; }
.modal label {
  color: rgba(255,255,255,0.5); font-size: 13px;
  display: block; margin-bottom: 4px; margin-top: 12px;
}
.modal input {
  width: 100%; padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3); color: #fff;
  font-size: 14px; outline: none; transition: border-color .2s;
}
.modal input:focus { border-color: rgba(255,215,0,0.3); }
.modal .login-btn {
  width: 100%; padding: 11px; border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 18px; transition: all .2s;
}
.modal .login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.modal .error {
  color: #f87171; text-align: center;
  font-size: 12px; margin-top: 10px; display: none;
}
.modal .close-btn {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 26px;
  font-weight: 700; cursor: pointer; padding: 0;
  line-height: 1; transition: all .2s; z-index: 20;
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.03);
}
.modal .close-btn:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}
.telegram-section { border-top: 1px solid #333; margin-top: 16px; padding-top: 16px; text-align: center; }
.telegram-section p { color: #94a3b8; font-size: 11px; margin-bottom: 8px; }
.telegram-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: none;
  background: #0088cc; color: #fff; font-size: 13px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: opacity .2s;
}
.telegram-btn:hover { opacity: .9; }
.user-info {
  position: fixed; top: 10px; right: 10px; z-index: 100;
  display: none; align-items: center; gap: 8px;
  background: rgba(20,20,28,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.user-info.show { display: flex; }
.user-info .email { color: rgba(255,255,255,0.35); font-size: 11px; }
.user-info .logout-btn {
  color: rgba(248,113,113,0.6); font-size: 11px;
  cursor: pointer; background: none; border: none;
  text-decoration: underline; transition: color .2s;
}
.user-info .logout-btn:hover { color: #f87171; }

/* ── Trial badge ── */
#trial-badge {
  display: none; position: fixed; bottom: 50px;
  left: 50%; transform: translateX(-50%); z-index: 50;
  background: rgba(20,20,28,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px; padding: 8px 18px;
  align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
#trial-badge.show { display: flex; }
#trial-badge .icon { font-size: 14px; }
#trial-badge .time {
  color: #fbbf24; font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#trial-badge .label { color: rgba(255,255,255,0.35); font-size: 11px; }
#trial-badge .sign-in {
  color: rgba(96,165,250,0.7); font-size: 11px;
  cursor: pointer; text-decoration: underline; margin-left: 6px;
  transition: color .2s;
}
#trial-badge .sign-in:hover { color: #93c5fd; }

/* ── Notifications ── */
#notif-container {
  position: fixed; bottom: 20px; left: 20px;
  z-index: 9998; display: flex; flex-direction: column;
  gap: 8px; max-width: 320px; pointer-events: none;
}
.notif {
  background: rgba(20,20,28,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; padding: 10px 14px;
  animation: notifIn .5s ease forwards;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.notif.out { animation: notifOut .5s ease forwards; }
@keyframes notifIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notifOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}
.notif .notif-name { color: #fbbf24; font-size: 13px; font-weight: 600; }
.notif .notif-msg { color: rgba(255,255,255,0.35); font-size: 11px; margin-top: 2px; }
.notif .notif-time { color: rgba(255,255,255,0.1); font-size: 9px; float: right; margin-top: 2px; }

/* ── Anti-inspect ── */
#block-msg {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 99999;
  align-items: center; justify-content: center;
  flex-direction: column; padding: 20px; text-align: center;
}
#block-msg.show { display: flex; }
#block-msg .icon { font-size: 48px; margin-bottom: 16px; }
#block-msg .tx { color: rgba(255,255,255,0.4); font-size: 16px; line-height: 1.6; }
#block-msg .tx strong { color: #fbbf24; }

/* ── Play Overlay ── */
#play-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 15; cursor: pointer;
  transition: opacity .3s; border-radius: 0;
}
#play-overlay.hidden { opacity: 0; pointer-events: none; }
#play-overlay .play-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
#play-overlay:hover .play-icon {
  transform: scale(1.05);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
#play-overlay .play-icon svg {
  width: 28px; height: 28px; fill: #fff; margin-left: 3px;
}
#play-overlay .play-label {
  color: #fff; font-size: 0.85rem;
  margin-top: 12px; letter-spacing: 0.5px; font-weight: 500;
}

/* ── Error UI ── */
.player-error {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); z-index: 5;
  gap: 10px; padding: 20px;
}
.player-error .err-icon { font-size: 40px; }
.player-error .err-msg {
  color: #f87171; font-size: 14px;
  font-weight: 600; text-align: center;
}
.player-error .err-hint {
  color: #64748b; font-size: 11px; text-align: center; max-width: 360px;
}
.player-error .err-retry {
  margin-top: 8px; padding: 8px 20px;
  border-radius: 8px; border: 1px solid rgba(255,215,0,0.2);
  background: rgba(255,215,0,0.08);
  color: #ffd700; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.player-error .err-retry:hover {
  background: rgba(255,215,0,0.15);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
  .side-col { position: static; }
  .pinned-sidebar { margin-top: 16px; }
  .pinned-list { max-height: none; }
  /* Hide desktop sidebar pinned, show in-line pinned section */
  .pinned-sidebar { display: none; }
  .pinned-section { display: block !important; }
  .matches-sidebar { margin-top: 12px; }
}

@media (max-width: 768px) {
  .app-header { padding: 6px 12px; top: 4px; width: calc(100% - 16px); border-radius: 50px; gap: 6px; }
  .app-header .brand .orb { width: 22px; height: 22px; font-size: 12px; }
  .app-header .brand .name { font-size: 0.72rem; }
  .btn-glass { font-size: 0.7rem; padding: 6px 12px; }
  .header-spacer { height: 30px; }
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .ch-card { padding: 18px 14px 16px; }
  .ch-logo-wrap { width: 60px; height: 60px; margin-bottom: 10px; }
  .ch-name { font-size: 0.85rem; }
  .hls-controls .ctrl-btn { width: 30px; height: 30px; font-size: 15px; }
  .hls-controls .ctrl-time { font-size: 10px; min-width: 35px; }
}

@media (max-width: 767px) {
  body { padding: 0; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .page-wrap { max-width: 100vw; overflow-x: hidden; padding: 0 0 30px; }
  .app-header { top: 8px; margin: 8px auto; width: calc(100% - 12px); padding: 10px 14px; border-radius: 50px; gap: 8px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(18,18,28,0.85) !important; }
  .app-header .brand .orb { width: 26px; height: 26px; font-size: 15px; }
  .app-header .brand .name { font-size: 0.85rem; }
  .ticker-wrap { height: 24px; }
  .ticker-item { font-size: 12px; padding: 0 10px; gap: 6px; }
  .ticker-track { animation-duration: 50s; }
  .header-actions { gap: 4px; padding-left: 6px; }
  .btn-glass { font-size: 0.7rem; padding: 6px 12px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .header-spacer { height: 48px; }
  .layout-grid { grid-template-columns: 1fr; padding: 0 6px; gap: 12px; }
  .side-col { position: static; margin-top: 0; }
  .player-section { margin-bottom: 12px; }
  .player-wrapper { aspect-ratio: 16/9; max-height: 45vh; border-radius: 16px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(18,18,28,0.6) !important; }
  #play-overlay .play-icon { width: 56px; height: 56px; }
  #play-overlay .play-icon svg { width: 22px; height: 22px; margin-left: 3px; }
  #play-overlay .play-label { font-size: 0.75rem; margin-top: 10px; }
  .pinned-sidebar { border-radius: 16px; padding: 12px 0; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(18,18,28,0.5) !important; }
  .pinned-sidebar .ps-hdr { padding: 0 12px 8px 12px; }
  .pinned-sidebar .ps-hdr .title { font-size: 0.7rem; }
  .pinned-sidebar .ps-hdr .count { font-size: 0.55rem; }
  .pinned-list { padding: 6px 8px; max-height: 40vh; }
  .pin-item { padding: 8px 12px; gap: 8px; }
  .pin-item .pi-icon { width: 30px; height: 30px; font-size: 12px; }
  .pin-item .pi-lbl { font-size: 0.85rem; }
  .section-title { font-size: 1.1rem; margin: 0 0 10px 0; padding-bottom: 8px; }
  .ch-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ch-card { padding: 14px 10px 12px; border-radius: 14px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(18,18,28,0.5) !important; }
  .ch-card.active::after { font-size: 0.5rem; padding: 2px 8px; top: 6px; }
  .ch-logo-wrap { width: 52px; height: 52px; margin-bottom: 10px; }
  .ch-name { font-size: 0.85rem; }
  .ch-badge { font-size: 0.55rem; padding: 2px 6px; }
  .ch-first { font-size: 16px; }
  [id^="ch-grid"] + div button { font-size: 0.7rem !important; padding: 8px 20px !important; }
  .site-footer { flex-direction: column; text-align: center; padding: 10px 14px; gap: 6px; width: calc(100% - 12px); border-radius: 12px; }
  .site-footer .brand { font-size: 10px; }
  .site-footer .links { gap: 10px; }
  .site-footer .links a { font-size: 10px; }
  .modal { padding: 24px; width: 92%; border-radius: 16px; }
  .modal h2 { font-size: 16px; }
  .modal .sub { font-size: 11px; }
  .modal input { font-size: 13px; padding: 8px 12px; }
  .modal .login-btn { font-size: 13px; padding: 9px; }
  .modal .close-btn { font-size: 20px; top: 8px; right: 12px; }
}

@media (max-width: 480px) {
  .ch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ch-card { padding: 16px 12px 14px; }
  .ch-logo-wrap { width: 52px; height: 52px; }
}

@media (max-width: 400px) {
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Keyboard Shortcuts Overlay ── */
.shortcuts-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.shortcuts-overlay.show {
  opacity: 1; pointer-events: auto;
}
.shortcuts-card {
  background: rgba(20,20,28,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px 36px;
  max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.shortcuts-title {
  font-size: 1.1rem; font-weight: 700; color: #ffd700;
  margin-bottom: 20px; text-align: center;
  letter-spacing: 0.5px;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px; align-items: center;
}
.shortcuts-grid kbd {
  display: inline-block; padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; color: #fff;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem; font-weight: 600;
  text-align: center; white-space: nowrap;
}
.shortcuts-grid span {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem; font-weight: 500;
}
.shortcuts-hint {
  margin-top: 18px; text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
}
.shortcuts-hint kbd {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem; padding: 2px 8px;
}

/* ── Category Tabs ── */
.cat-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 0 2px;
}
.cat-tab {
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  font-family: inherit; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cat-tab:hover {
  border-color: rgba(255,215,0,0.12);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.cat-tab.active {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.2);
  color: #ffd700; font-weight: 600;
}

/* ── Recently Watched ── */
.recent-wrap {
  margin-bottom: 12px;
}
.recent-title {
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.35);
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.recent-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.recent-row::-webkit-scrollbar { display: none; }
.recent-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px 8px 10px; border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: rgba(18,18,28,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.7); cursor: pointer;
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap; transition: all 0.2s;
  font-family: inherit; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.recent-chip:hover {
  border-color: rgba(255,215,0,0.15);
  background: rgba(255,215,0,0.05);
  color: #fff;
}
.recent-chip .rc-logo {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
}
.recent-chip .rc-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ── Favorites Button on Cards ── */
.ch-fav-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.25); font-size: 14px;
  cursor: pointer; z-index: 5; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.ch-fav-btn:hover {
  background: rgba(239,68,68,0.15);
  color: rgba(239,68,68,0.6);
  transform: scale(1.15);
}
.ch-fav-btn.active {
  color: #ef4444;
  background: rgba(239,68,68,0.12);
}

/* ── Fav Count Badge (header) ── */
.fav-count-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.15);
  color: #ef4444; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.fav-count-badge:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.3);
}

/* ── Mini Player (docked on scroll) ── */
.mini-player {
  position: fixed; bottom: 20px; right: 20px;
  width: 320px; height: 180px; z-index: 500;
  border-radius: 12px; overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.mini-player.show {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.mini-player .mp-inner {
  width: 100%; height: 100%;
}
.mini-player .mp-inner video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.mini-player .mp-close {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.6); font-size: 12px;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}

/* ── PiP Channel Switcher ── */
.pip-switcher {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.pip-switcher.show {
  opacity: 1; pointer-events: auto;
}
.pip-switcher button {
  background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 16px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: all 0.2s;
}
.pip-switcher button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.pip-switcher span {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem; font-weight: 500;
  max-width: 200px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ── EPG Match Timeline ── */
.epg-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 8px; margin-bottom: 14px;
  scrollbar-width: none;
}
.epg-strip::-webkit-scrollbar { display: none; }
.epg-item {
  flex-shrink: 0; width: 140px; padding: 12px 14px;
  border-radius: 14px; text-align: center;
  border: 1px solid var(--glass-border);
  background: rgba(18,18,28,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.25s;
}
.epg-item:hover {
  border-color: rgba(255,215,0,0.1);
  background: rgba(255,215,0,0.03);
}
.epg-item .epg-time {
  font-size: 0.85rem; font-weight: 800; color: #ffd700;
  font-variant-numeric: tabular-nums;
}
.epg-item .epg-teams {
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
  margin-top: 4px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.epg-item .epg-round {
  font-size: 0.55rem; color: rgba(255,255,255,0.25);
  margin-top: 4px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
