/* ======================================================
   GLOBAL RESET
====================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ======================================================
   HTML / BODY BASE
====================================================== */
html {
  height: 100%;
  background: radial-gradient(circle at top, #1b1b3a, #050512);
}

body {
  min-height: 100%;
  background: transparent;
  overscroll-behavior-y: none;
}

/* ======================================================
   BODY (NO BACKGROUND HERE)
====================================================== */
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont;
  color: #cfe0ff;
}



/* ======================================================
   PAGE LOADER (NEW)
====================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: radial-gradient(circle at top, #1b1b3a, #050512);
  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(139,179,255,0.25);
  border-top-color: #8bb3ff;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #8bb3ff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ======================================================
   HEADER (HOMEPAGE)
====================================================== */
.site-header {
  text-align: center;
  padding: 36px 16px 20px;
}

.site-logo {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #8bb3ff;
  text-shadow: 0 0 30px rgba(139,179,255,0.35);
}

.site-tagline {
  font-size: 15px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ======================================================
   MAIN CONTENT (SPACE FOR FIXED FOOTER)
====================================================== */
.home-container,
.admin-container {
  max-width: 520px;
  margin: auto;
  padding: 20px;
  padding-bottom: 140px;
}

/* ======================================================
   MATCH CARD (HOMEPAGE)
====================================================== */
.match-card {
  background: linear-gradient(180deg, #14163f, #0a0c26);
  border-radius: 26px;
  padding: 14px;
  margin-bottom: 26px;
  position: relative;
  cursor: pointer;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(220,38,38,0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.match-poster {
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}

.match-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
}

.match-info {
  padding: 16px 10px 8px;
}

.match-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.match-time {
  font-size: 13px;
  opacity: 0.65;
}

/* ======================================================
   FIXED FOOTER
====================================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: linear-gradient(180deg, #0a0c26, #050512);
  text-align: center;
  padding: 16px 10px 20px;
  font-size: 13px;
  opacity: 0.95;

  box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  margin: 0 10px;
  color: #9bb3ff;
  text-decoration: none;
  font-weight: 500;
}

.footer-copy {
  margin-top: 6px;
}

/* ======================================================
   ADMIN HEADER
====================================================== */
.admin-header {
  text-align: center;
  padding: 36px 16px 24px;
}

.admin-header h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #8bb3ff;
}

.admin-header p {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ======================================================
   ADMIN CARD
====================================================== */
.admin-card {
  background: linear-gradient(180deg, #14163f, #0a0c26);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 32px;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

.admin-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ======================================================
   FORM ELEMENTS
====================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.07);
  color: #e5edff;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.form-group input::placeholder {
  color: rgba(207,224,255,0.55);
}

.form-group select {
  cursor: pointer;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 14px;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  background: linear-gradient(135deg, #7c7cff, #a78bfa);
  color: #060612;
}

.logout-btn {
  padding: 10px 24px;
  margin-top: 14px;
  background: linear-gradient(135deg, #7c7cff, #a78bfa);
  color: #060612;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 420px) {
  .site-logo {
    font-size: 36px;
  }

  .admin-header h1 {
    font-size: 30px;
  }
}
/* ======================================================
   ADMIN MATCH CARD (LIKE SCREENSHOT)
====================================================== */
.admin-match-card {
  background: linear-gradient(180deg, #14163f, #0a0c26);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 28px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.admin-match-poster {
  background: #000;
}

.admin-match-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ======================================================
   ADMIN CARD BODY
====================================================== */
.admin-match-body {
  padding: 18px 16px 20px;
}

.admin-match-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-meta {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 4px;
}

/* STATUS COLORS */
.status-live {
  color: #22c55e;
  font-weight: 600;
}

.status-upcoming {
  color: #facc15;
  font-weight: 600;
}

/* ======================================================
   ADMIN ACTION BUTTONS
====================================================== */
.admin-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.admin-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  border-radius: 16px;
}

/* EDIT */
.edit-btn {
  background: rgba(255,255,255,0.08);
  color: #e5edff;
  border: 1px solid rgba(255,255,255,0.15);
}

/* DELETE */
.delete-btn {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.4);
}
/* ======================================================
   UPCOMING BADGE (HOMEPAGE)
====================================================== */
.live-badge.upcoming {
  background: rgba(250, 204, 21, 0.95); /* yellow */
  color: #000;
}
/* DISABLED UPCOMING CARD */
.match-card.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.match-card.disabled:hover {
  transform: none;
}
/* ======================================================
   ADMIN LOGIN PAGE
====================================================== */

/* Center login vertically */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Login card tweaks */
.login-card {
  width: 100%;
  max-width: 420px;
}

/* Login title */
.login-card h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 2px;
  color: #8bb3ff;
}

/* Login inputs spacing */
.login-card .form-group input {
  font-size: 15px;
}

/* Login button */
.login-card .primary-btn {
  margin-top: 10px;
}

/* Error message */
#loginError {
  font-size: 14px;
  margin-top: 14px;
}

/* Small screen */
@media (max-width: 420px) {
  .login-card h2 {
    font-size: 22px;
  }
}
/* ======================================================
   NORMAL LIVE BLINK
====================================================== */
.live-badge.live {
  background: #dc2626;
  color: #fff;
  animation: liveBlink 1s infinite;
}

/* Simple blink */
@keyframes liveBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}
/* ======================================================
   PLAYER CARD – SAME SIZE AS SCREENSHOT
====================================================== */

.player-card {
  width: 100%;
  margin: 18px auto 26px;

  background: #000;
  border-radius: 22px;

  /* CARD SIZE */
  min-height: 260px;           /* mobile */
  padding: 18px 14px;

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

  box-shadow:
    0 18px 50px rgba(0,0,0,0.85);
}

/* Bigger card on larger screens */
@media (min-width: 768px) {
  .player-card {
    min-height: 420px;
    padding: 24px;
  }
}

/* VIDEO HOLDER */
.player-video {
  width: 100%;
  max-width: 100%;
}

/* VIDEO – ORIGINAL SIZE */
.player-video video {
  width: 100%;
  aspect-ratio: 16 / 9;   /* 🔒 keep original */
  height: auto;

  border-radius: 14px;
  background: #000;
  display: block;
}

/* PLYR FIX */
.plyr {
  border-radius: 14px;
}
/* ======================================================
   PLAYER PAGE – ULTRA LARGE CARD (SAME SIZE)
====================================================== */

.player-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ULTRA LARGE BLACK CARD (UNCHANGED SIZE) */
.player-card {
  width: 100%;
  background: #000;
  border-radius: 26px;

  /* SAME CARD HEIGHT */
  min-height: 520px;

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

  margin-bottom: 30px;

  box-shadow:
    0 35px 90px rgba(0,0,0,0.95),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* VIDEO HOLDER — REMOVE SIDE PADDING */
.player-inner {
  width: 100%;
  padding: 0;               /* ✅ FIX: edge-to-edge */
}

/* VIDEO – FIT LEFT & RIGHT, KEEP 16:9 */
.player-inner video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  background: #000;
  display: block;

  /* Smooth corners */
  border-radius: 0 0 26px 26px;
}

/* MOBILE – SAME SIZE FEEL */
@media (max-width: 480px) {
  .player-card {
    min-height: 460px;
    border-radius: 22px;
  }
}

/* TABLET / DESKTOP – SAME CINEMA FEEL */
@media (min-width: 768px) {
  .player-card {
    min-height: 640px;
  }
}

/* PLYR FIX */
.plyr {
  border-radius: 26px;
}
/* ======================================================
   PLAYER – FIT SIDES, NO ROUNDING
====================================================== */

/* CARD (UNCHANGED SIZE) */
.player-card {
  width: 100%;
  background: #000;
  border-radius: 26px;
  min-height: 520px;

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

  overflow: hidden; /* keeps clean edges */
}

/* REMOVE ALL INNER SPACING */
.player-inner {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* VIDEO – EDGE TO EDGE */
.player-inner video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  display: block;
  background: #000;

  border-radius: 0 !important; /* NO rounding */
}

/* REMOVE PLYR CORNERS */
.plyr,
.plyr video {
  border-radius: 0 !important;
}

/* RESPONSIVE HEIGHT */
@media (min-width: 768px) {
  .player-card {
    min-height: 640px;
  }
}

@media (max-width: 480px) {
  .player-card {
    min-height: 460px;
  }
}
/* ================= NO GAP PLAYER FIX ================= */

/* Card */
.player-card {
  padding: 0 !important;
  overflow: hidden;
  background: #000;
}

/* Inner wrapper */
.player-inner,
.shaka-video-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}

/* Video edge-to-edge */
.shaka-video-container video,
.player-inner video {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #000;
}

/* Remove Shaka UI internal spacing */
.shaka-controls-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* ================= HEADER / TITLE MARGIN FIX ================= */

/* Page title (match / channel name) */
.player-title,
.site-header h1,
.site-logo {
  margin: 6px 0 8px !important;
  padding: 0 !important;
  line-height: 1.25;
}

/* Subtitle / tagline */
.site-tagline {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  opacity: 0.75;
}

/* Header container spacing */
.site-header {
  padding: 14px 12px 10px !important;
}

/* Remove extra space above player card */
.home-container > h2 {
  margin-bottom: 10px !important;
}
/* ===== VERY SUBTLE PLAYER CARD SPACING ===== */

.player-card {
  border-radius: 8px;        /* slightly less round */
  background: #000;
  overflow: hidden;

  /* very small black bars */
  padding-top: 6px;
  padding-bottom: 6px;
}

/* keep player original size */
.player-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
/* =========================================
   PLAYER CARD – LESS ROUND CORNER (ONLY)
========================================= */

.player-card {
  border-radius: 8px !important;   /* change value if needed */
  overflow: hidden;
}
/* =========================================
   ACTION BUTTONS – ONLY SHARE & BACK
========================================= */

.action-card {
  margin-top: 16px;
  padding: 16px;
  background: #000;
  border-radius: 8px;      /* less round */
  display: flex;
  flex-direction: column;
  gap: 12px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.action-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;

  border-radius: 6px;      /* subtle corner */
  background: rgba(255,255,255,0.08);
  color: #fff;

  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  text-decoration: none;
  cursor: pointer;

  font-family: "Poppins", system-ui, sans-serif;
}

.back-btn {
  background: #111;
  color: #9bb3ff;
}
/* =========================================
   PLAYER PAGE – SCROLL ENABLED
========================================= */

body.player-page {
  min-height: 100vh;
  overflow-y: auto;              /* ✅ allow scrolling */
  overscroll-behavior-y: contain;/* ✅ allow pull-to-refresh */
}
/* =========================================
   TALL PLAYER CARD WITH CENTERED PLAYER
========================================= */

/* PLAYER CARD – TALL */
.player-card {
  display: flex !important;
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */

  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;

  /* 👇 tall card height */
  min-height: 520px;          /* adjust if needed */

  margin-bottom: 24px;

  box-shadow:
    0 18px 55px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* INNER WRAPPER */
.player-inner {
  width: 100%;
  max-width: 100%;
}

/* VIDEO – PERFECT SIZE */
.player-inner video,
.plyr video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;

  display: block;
  background: #000;
}

/* REMOVE CONFLICTING HEIGHTS */
.player-inner,
.player-card {
  height: auto !important;
}

/* MOBILE */
@media (max-width: 480px) {
  .player-card {
    min-height: 420px;
  }
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
  .player-card {
    min-height: 640px;
  }
}
/* =========================================
   OVERSCROLL WHITE GLITCH FIX (MOBILE)
========================================= */

/* Root background */
html {
  background: #050512;
}

/* Body background fallback */
body {
  background: #050512;
}

/* Prevent white overscroll glow */
body.player-page {
  overscroll-behavior-y: contain;
}

/* Android Chrome pull background fix */
@supports (-webkit-touch-callout: none) {
  body {
    background: #050512;
  }
}
/* =========================================
   GLOBAL OVERSCROLL BACKGROUND SYNC
========================================= */

/* Root background (used ONLY during overscroll) */
html {
  background: radial-gradient(circle at top, #1b1b3a, #050512);
}

/* Main background layer (normal rendering) */
body::before {
  background: radial-gradient(circle at top, #1b1b3a, #050512);
}

/* Player page: limit overscroll */
body.player-page {
  overscroll-behavior-y: contain;
}
/* Homepage overscroll fix */
body:not(.player-page) {
  overscroll-behavior-y: none;
}
/* 🔥 Disable Shaka built-in loader */
.shaka-spinner,
.shaka-loading-spinner,
.shaka-overlay-play-button {
  display: none !important;
}
/* ======================================================
   LIVE USERS BADGE – INSIDE PLAYER CARD
====================================================== */

.player-card {
  position: relative; /* REQUIRED */
}

.live-users-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 6px 10px;
  border-radius: 8px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none; /* does not block player controls */
}

/* Red live dot */
.live-dot {
  width: 7px;
  height: 7px;
  background: #ff2c2c;
  border-radius: 50%;
  animation: livePulse 1.4s infinite;
}

/* Pulse animation */
@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Mobile tuning */
@media (max-width: 480px) {
  .live-users-card {
    top: 8px;
    left: 8px;
    font-size: 12px;
    padding: 5px 9px;
  }
}
/* ACTION BUTTONS – HORIZONTAL */
.action-card {
  display: flex;
  flex-direction: row;     /* 👈 horizontal */
  gap: 12px;               /* space between buttons */
  margin-top: 16px;
  justify-content: center; /* center buttons */
}

/* Optional: equal width buttons */
.action-card .action-btn {
  flex: 1;
  text-align: center;
}
/* ======================================================
   ACTION BUTTONS – MATCH HOMEPAGE TEXT COLOR
====================================================== */
.action-card {
  background: linear-gradient(180deg, #14163f, #0a0c26) !important;
  border-radius: 22px;
}

.action-card .action-btn {
  background: rgba(255,255,255,0.08) !important;
  color: #9bb3ff !important;     /* 👈 homepage color */
  border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Hover */
.action-card .action-btn:hover {
  background: rgba(255,255,255,0.14) !important;
}
/* ======================================================
   PLAYER CARD – MATCH HOMEPAGE CARD STYLE
====================================================== */
.player-card {
  background: linear-gradient(180deg, #14163f, #0a0c26) !important;
  border-radius: 22px !important;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06) !important;
}
/* ======================================================
   PLAYER TITLE CARD – SAME AS HOMEPAGE MATCH CARD
====================================================== */
.player-title-card {
  background: linear-gradient(180deg, #14163f, #0a0c26);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 16px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* TITLE TEXT */
.player-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #cfe0ff;
  text-align: center;
  line-height: 1.35;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ======================================================
   PLAYER TITLE CARD – FULL TITLE (NO CUT)
====================================================== */
.player-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #cfe0ff;
  text-align: center;
  line-height: 1.4;

  /* ✅ allow full text */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
/* =========================
   PLAYER LOCK (NO BLUR)
========================= */

.player-card {
  position: relative;
}

/* Lock / Unlock button */
.player-lock-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;

  background: rgba(0,0,0,0.75);
  color: #fff;

  padding: 6px 10px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* LOCKED STATE — block all touches */
.player-card.locked video,
.player-card.locked .plyr,
.player-card.locked .plyr__controls {
  pointer-events: none;
}

/* LIVE USERS BADGE (already matching your theme) */
.live-users-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;

  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #ff2c2c;
  border-radius: 50%;
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}
/* =========================================
   PLAYER-2 (SHAKA) LOCK — LIVE BADGE STYLE
   Scoped so Player-1 is NOT affected
========================================= */

/* Make sure player card is positioning root */
.player-page .player-card {
  position: relative;
}

/* 🔒 LOCK BUTTON — SAME STYLE AS LIVE BADGE */
.player-page .player-lock-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  padding: 6px 10px;
  border-radius: 8px;

  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;
  user-select: none;
  border: none;
}

/* Hover (same feel as live badge) */
.player-page .player-lock-btn:active {
  transform: scale(0.96);
}

/* 🔒 LOCKED STATE — BLOCK SHAKA TOUCHES */
.player-page .player-card.locked video,
.player-page .player-card.locked .shaka-video-container,
.player-page .player-card.locked .shaka-controls-container {
  pointer-events: none;
}

/* Keep lock button clickable even when locked */
.player-page .player-card.locked .player-lock-btn {
  pointer-events: auto;
}
/* =========================
   PLAYER-2 SHAKA LOCK FIX
========================= */

/* Block ALL Shaka interactions when locked */
.player-card.locked .shaka-video-container,
.player-card.locked .shaka-controls-container,
.player-card.locked .shaka-controls-button-panel,
.player-card.locked video {
  pointer-events: none !important;
}

/* Keep lock badge clickable */
#playerLockBtn {
  pointer-events: auto !important;
}
/* =========================
   TELEGRAM POPUP – HOMEPAGE CARD STYLE
========================= */

/* Overlay */
.tg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Card (SAME AS HOMEPAGE CARD) */
.tg-popup {
  background: linear-gradient(180deg, #14163f, #0a0c26);
  border-radius: 26px;
  padding: 22px 20px;
  width: 92%;
  max-width: 420px;
  text-align: center;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Title */
.tg-popup h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8bb3ff;
  margin-bottom: 10px;
}

/* Text */
.tg-popup p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 18px;
}

/* Actions */
.tg-actions {
  display: flex;
  gap: 12px;
}

/* Join button (PRIMARY like homepage) */
.tg-join {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;

  background: linear-gradient(135deg, #7c7cff, #a78bfa);
  color: #060612;
  text-decoration: none;
}

/* Already joined (SECONDARY like admin buttons) */
.tg-already {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;

  background: rgba(255,255,255,0.08);
  color: #e5edff;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
}
/* FORCE SAME FONT AS BUTTON */
.tg-join,
.tg-already {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Remove link default styling */
.tg-join {
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}
/* ===============================
   REMOVE TAP / SELECT HIGHLIGHT
=============================== */

/* Disable text selection */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Allow input typing */
input,
textarea {
  user-select: text;
}

/* Remove focus outline box */
button,
a,
.result-card,
.match-card,
.action-btn {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent blue focus box on click */
button:focus,
a:focus,
.result-card:focus {
  outline: none;
}
/* ===============================
   FIX TELEGRAM POPUP BUTTON TEXT
=============================== */

/* Prevent text wrapping in buttons */
.tg-actions a,
.tg-actions button {
  white-space: nowrap;     /* 👈 key line */
  text-overflow: ellipsis; /* safety */
}

/* Ensure buttons have enough width */
.tg-actions {
  display: flex;
  gap: 12px;
}

.tg-actions > * {
  flex: 1;
  min-width: 0;            /* important for flex */
}