/*!
* Copyright © RankMyRound. All Rights Reserved.
* Rank My Round (rankmyround.com) and all related code, design, features, and
* content are the property of Wield Limited. No part may be copied, modified,
* distributed, or used without prior written permission.
* For licensing, partnership, or usage inquiries, contact: info@rankmyround.com
*/

:root {
  --card-radius: 12px;
}

#fixed-mid {
display: flex;
flex-direction: column;
align-items: center;
max-width: 750px;
width: 90%;
margin: 0px auto 0 auto;
padding: 0 16px;
text-align: center;
}

/* =========================================================
   LIVE LIST
   ========================================================= */
.live-list {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: #cfdae0;
}

/* =========================================================
   LIVE CARD BASE
   ========================================================= */
.live-card {
  position: relative;
  background: #f0f4f6;
  border-radius: var(--card-radius);
  padding: 15px 15px 70px; /* space for action row */
  margin-bottom: 20px;
  overflow: hidden;
}

/* =========================================================
   DAY-OLD ROUNDS (DIMMED)
   ========================================================= */
.live-card.day-old {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

/* Hover (desktop) */
.live-card.day-old:hover {
  opacity: 1;
}

/* Tap / focus (mobile & keyboard) */
.live-card.day-old:focus-within,
.live-card.day-old:active {
  opacity: 1;
}

/* =========================================================
   LIVE INDICATOR DOT (TOP LEFT)
   ========================================================= */
.live-card.live::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff3b51;
  box-shadow: 0 0 0 10px rgba(255, 59, 81, 0.4);
}
@keyframes liveDotPulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.live-card.live::after {
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

/* =========================================================
   LIVE CARD ANIMATION
   ========================================================= */
@keyframes liveScalePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.live-card.live {
  will-change: transform;
  z-index: 999;
}

/* =========================================================
   CARD ORDER BADGE (ADMIN / SMOKE TAG)
   ========================================================= */
.card-order {
  position: absolute;
  top: auto;
  right: 15px;
  bottom: calc(55px + 10px);
  font-size: 12px;
  font-weight: 400;
  color: #002b56;
}

/* =========================================================
   CARD CONTENT
   ========================================================= */
.live-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* =========================================================
   FORMAT ICON
   ========================================================= */
.live-card .format-icon {
  width: 50px !important;
  height: 50px !important;
  margin: 0px 0;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* =========================================================
   EVENT TITLES
   ========================================================= */
.event-title,
.event-details {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.0;
  color: #002b56;
  text-transform: none;
}

/* =========================================================
   META (FORMAT / COURSE / CREATED)
   ========================================================= */
.live-meta {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.0;
  color: #002b56;
  font-weight: 400;
  text-transform: uppercase;
}
/* =========================================================
   LIVE STATUS (COUNTERS)
   ========================================================= */
.live-status {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.0;
  color: inherit;
}

.live-card.live .live-status {
  color: #ff3b51;
}

/* =========================================================
   HEADCOUNT GALLERY
   ========================================================= */
.total-viewers {
  display: block;
  margin-top: 10px;
  font-size: 12px !important;
  line-height: 1.0;
  color: #002b56 !important;
  text-transform: uppercase;
}
/* =========================================================
   ACTION ROW (LOCKED TO BOTTOM)
   ========================================================= */
.live-action-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55px;
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
}

/* =========================================================
   ACTION BUTTONS (ALIGNED)
   ========================================================= */
.watch-round,
.delete-round {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.0;
  font-weight: 400;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* =========================================================
   WATCH BUTTON
   ========================================================= */
.watch-round {
  background: #0092ff;
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   FIREBASE OVERLAY
   ========================================================= */
#firebase-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 25, 61, 0.8);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#firebase-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.firebase-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: #cfdae0;
  color: #002b56;
  font-size: 16px;
  line-height: 1.0;
  text-transform: uppercase;
}

/* =========================================================
   MANUAL REFRESH BUTTON
   ========================================================= */
#manual-refresh {
  position: fixed;
  bottom: 30px;
  right: 15px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(41, 190, 255, 0.2);
  color: #29beff;
  border: 1px solid #29beff;
  font-size: 12px;
  line-height: 1.0;
  cursor: pointer;
  z-index: 1000;
}

/* =========================================================
   REVEAL DELETE CONTROL (GHOST ADMIN — MATCHES REFRESH)
   ========================================================= */
#reveal-delete {
  all: unset;
  position: fixed;
  bottom: 30px;
  left: 15px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 59, 81, 0.2);
  color: #ff3b51;
  border: 1px solid #ff3b51;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  cursor: default;
  user-select: none;
  z-index: 1000;
}

/* =========================================================
   REVEAL DELETE — ENABLED STATE
   ========================================================= */
#reveal-delete.enabled {
  opacity: 1;
  background: rgba(255, 59, 81, 0.2);
  color: #ff3b51;
  border: 1px solid #ff3b51;
}
.older-btn {
  background: rgba(0,43,86,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #29beff;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin: 0 6px;
  transition: 0.2s ease;
}

.older-btn:hover {
  background: rgba(41,190,255,0.15);
  border-color: #29beff;
}
/* =========================================================
   TIMELINE SELECT — STATIC PILL STYLE
   ========================================================= */
.timeline-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(41,190,255,0.15);   /* ← hover look as default */
  border: 1px solid #29beff;
  color: #29beff;

  font-family: Poppins, sans-serif;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.04em;

  padding: 6px 34px 6px 14px;
  border-radius: 20px;

  cursor: pointer;
  outline: none;
}

/* Remove any browser focus ring */
.timeline-select:focus {
  outline: none;
  box-shadow: none;
}

/* Custom dropdown arrow */
#older-controls {
  position: relative;
  display: inline-block;
}

#older-controls::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #29beff;
  pointer-events: none;
}