/* =========================================
   SPORTSLIST — Mobile-Optimized Dark Theme
   ========================================= */

:root {
  --primary: #f59e0b;
  --primary-soft: rgba(245, 158, 11, 0.15);
  --primary-glow: rgba(245, 158, 11, 0.35);
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --bg-deep: #0a0e17;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-elevated: rgba(255, 255, 255, 0.07);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-border: rgba(255, 255, 255, 0.08);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 20px var(--primary-glow);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh; min-height: 100dvh;
  line-height: 1.5; overflow-x: hidden;
}

body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* === Container === */
.container {
  position: relative; z-index: 1;
  max-width: 540px; margin: 0 auto;
  padding: 0 1rem; padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* === Header === */
header { text-align: center; padding: 1.5rem 0 1rem; }
header h1 {
  font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(135deg, #e53e3e 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-subtitle { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.3px; }

/* === Category Navigation (All Sports / Cricket / Football) === */
.category-nav {
  display: flex; gap: 10px; margin: 0.5rem 0 1.5rem; flex-wrap: wrap;
}
.cat-btn {
  padding: 9px 22px; min-height: 40px;
  border-radius: 24px; font-family: inherit; font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: all var(--transition-fast);
  -webkit-user-select: none; user-select: none;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.cat-btn:active { transform: scale(0.96); }
.cat-btn.active-outline {
  border-color: var(--text-secondary); color: var(--text-primary); background: transparent;
}
.cat-btn.active-filled {
  background: rgba(255,255,255,0.12); color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

/* === Day Sections === */
.day-section { margin-bottom: 1.5rem; }
.day-header {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.75rem; letter-spacing: 0.2px;
}
.day-cards {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
}

/* === Match Card === */
.match-card {
  display: flex; align-items: stretch;
  padding: 0.875rem 1rem; cursor: pointer; position: relative;
  transition: background var(--transition-fast);
  animation: cardEnter 0.35s var(--transition-smooth) both;
}
.match-card:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.04); }
.match-card:active { background: rgba(255,255,255,0.03); }
@media (hover: hover) { .match-card:hover { background: rgba(255,255,255,0.03); } }

/* Expanded = 2-column grid: info left, links right */
.match-card.expanded {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1fr;
  gap: 0.75rem;
  background: rgba(255,255,255,0.035);
  padding: 1rem;
  min-height: 140px;
}

/* Info wrapper (left column when expanded) */
.match-info {
  display: flex; align-items: center; gap: 0.875rem;
  flex: 1; min-width: 0;
}
.match-card.expanded .match-info {
  align-items: flex-end;
  align-self: center;
}

.match-left {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0; width: 56px;
}
.match-thumb {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: cover; background: var(--bg-elevated);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.match-time {
  font-size: 0.65rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; white-space: nowrap;
}

.match-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.match-meta {
  font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-team {
  font-size: 0.92rem; font-weight: 700; color: var(--text-primary); line-height: 1.35;
}

/* Team row: team name + badge inline */
.match-team-row {
  display: flex; align-items: center; gap: 10px;
}

/* === Status Badges === */
.status-badge {
  padding: 4px 12px; border-radius: 5px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; white-space: nowrap;
  flex-shrink: 0;
}
.status-live {
  background: transparent; color: var(--danger);
  border: none;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 1px;
  padding: 0; animation: pulseLive 2s infinite;
}
.status-upcoming {
  background: rgba(255,255,255,0.08); color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}
.status-ended {
  background: rgba(255,255,255,0.06); color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

/* === Expandable Links Panel (right column) === */
.match-links-panel {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-content: center; justify-content: flex-end;
  animation: panelFadeIn 0.3s ease;
}

/* Link Pill Buttons */
.link-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; min-height: 38px;
  background: rgba(16, 185, 129, 0.13);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 22px;
  text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2px;
  transition: all var(--transition-fast);
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.link-pill:active { transform: scale(0.94); background: rgba(16, 185, 129, 0.22); }
@media (hover: hover) {
  .link-pill:hover { background: rgba(16, 185, 129, 0.22); box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2); transform: translateY(-1px); }
}
.link-pill.pill-live {
  background: rgba(239, 68, 68, 0.12); color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}
.link-pill.pill-live:active { background: rgba(239, 68, 68, 0.25); }
.link-pill.pill-app {
  background: rgba(16, 185, 129, 0.2); color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}
.link-pill.pill-highlight {
  background: #facc15; color: #000;
  border-color: #eab308;
  font-weight: 700;
}
.link-pill.pill-highlight:active { background: #eab308; color: #000; }
@media (hover: hover) {
  .link-pill.pill-highlight:hover { background: #eab308; color: #000; box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35); transform: translateY(-1px); }
}

@keyframes panelFadeIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* === Event List === */
.event-list { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 2rem; }

/* === Legacy Event Card (Admin) === */
.event-card {
  display: flex; gap: 0.875rem; padding: 0.875rem;
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  animation: cardEnter 0.35s var(--transition-smooth) both;
  transition: border-color var(--transition-fast);
}
.event-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px 0 0 3px; opacity: 0;
  transition: opacity var(--transition-fast);
}
.event-card:active { border-color: rgba(245, 158, 11, 0.25); }
.event-card:active::before { opacity: 1; }
@media (hover: hover) {
  .event-card:hover { border-color: rgba(245, 158, 11, 0.25); transform: translateY(-1px); }
  .event-card:hover::before { opacity: 1; }
}

.event-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); background: var(--bg-elevated);
}
.event-info { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.event-time {
  font-size: 0.68rem; color: var(--primary); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.event-title {
  font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.event-desc {
  font-size: 0.78rem; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}
.event-links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }

/* === Watch Buttons === */
.watch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 14px; min-height: 36px;
  background: linear-gradient(135deg, var(--primary), #d97706);
  color: #0c0f14; text-decoration: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
  border-radius: var(--radius-sm); border: none;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}
.watch-btn:active { transform: scale(0.95); box-shadow: 0 1px 4px var(--primary-glow); }
.watch-btn.live { background: linear-gradient(135deg, var(--danger), #dc2626); box-shadow: 0 4px 12px var(--danger-soft); color: white; }
.watch-btn.app-link { background: linear-gradient(135deg, var(--accent), #059669); box-shadow: 0 4px 12px var(--accent-soft); color: #0c0f14; }

/* === Animations === */
@keyframes cardEnter { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.match-card:nth-child(1) { animation-delay: 0s; }
.match-card:nth-child(2) { animation-delay: 0.06s; }
.match-card:nth-child(3) { animation-delay: 0.12s; }
.match-card:nth-child(4) { animation-delay: 0.18s; }
.match-card:nth-child(n+5) { animation-delay: 0.24s; }

.empty {
  text-align: center; padding: 3rem 1.5rem; color: var(--text-muted);
  font-size: 0.9rem; border: 1px dashed var(--glass-border); border-radius: var(--radius-lg);
}

/* =========================================
   Admin-Specific
   ========================================= */
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding: 1.5rem 0 0.5rem;
}
.admin-header h2 {
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Admin Section Tabs */
.admin-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); margin-bottom: 0.5rem;
}
.admin-tab {
  flex: 1; padding: 10px 6px; min-height: 44px;
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; font-weight: 600; font-size: 0.82rem;
  border-radius: 10px; cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.admin-tab.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.admin-tab:active { transform: scale(0.96); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; min-height: 44px;
  background: linear-gradient(135deg, var(--primary), #d97706);
  color: #0c0f14; font-family: inherit; font-weight: 700; font-size: 0.85rem;
  border: none; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow); cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary:active { transform: scale(0.96); }

.btn-add {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: #0c0f14;
  font-weight: 700; font-family: inherit; border: none;
  min-height: 44px; cursor: pointer;
}

/* === Modal / Form === */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 1rem; z-index: 100;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.form-card {
  background: #111318; border: 1px solid var(--glass-border);
  padding: 1.5rem; border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.form-card h3 { color: var(--primary); font-weight: 700; }

.input-grp { margin-bottom: 0.875rem; }
.input-grp label {
  display: block; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 5px; color: var(--text-secondary); letter-spacing: 0.3px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

input, textarea, select, .input-field {
  width: 100%; padding: 11px 12px; min-height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.88rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus, .input-field:focus {
  outline: none; border-color: var(--primary); background: rgba(245, 158, 11, 0.04);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

.action-btn {
  background: none; border: none; color: var(--text-muted);
  padding: 6px 8px; min-height: 36px;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.action-btn:active { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

label {
  display: block; margin-bottom: 4px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}

/* === Date Nav (legacy compat) === */
.date-nav {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); margin: 0 0 1.25rem;
  position: sticky; top: 8px; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.date-nav button {
  flex: 1; padding: 10px 6px; min-height: 44px;
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; font-weight: 600; font-size: 0.8rem;
  border-radius: 10px; cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.date-nav button.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* =========================================
   Reduced Motion & Safe Areas
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .event-list { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* =========================================
   Video Player Modal — Shaka Player
   ========================================= */
.v-modal {
  position: fixed; inset: 0; background: #000;
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.v-modal.active { opacity: 1; pointer-events: auto; }

/* --- Player Shell --- */
.v-container {
  position: relative; width: 100%; height: 100%;
  max-width: 1100px; max-height: 100vh;
  background: #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 769px) {
  .v-container {
    max-height: calc(1100px * 9 / 16);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .v-modal { background: rgba(0,0,0,0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
}
#shaka-video {
  width: 100%; height: 100%; display: block;
  object-fit: contain; background: #000;
}

/* --- Controls Wrapper (top + bottom bars) --- */
.v-controls-wrap {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.v-controls-wrap > * { pointer-events: auto; }
.v-controls-wrap.hidden { opacity: 0; pointer-events: none !important; }
.v-controls-wrap.hidden > * { pointer-events: none !important; }

/* --- Top Bar --- */
.v-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 100%);
}
.v-close {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0; line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.v-close svg { width: 18px; height: 18px; }
.v-close:active { transform: scale(0.9); background: rgba(255,255,255,0.18); }
@media (hover: hover) {
  .v-close:hover { background: rgba(239,68,68,0.25); }
}
.v-live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.25);
  color: #f87171; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  animation: pulseLiveTag 2.5s infinite;
}
.v-live-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 6px #ef4444;
}
@keyframes pulseLiveTag {
  0%, 100% { opacity: 1; } 50% { opacity: 0.7; }
}

/* --- Bottom Controls Bar --- */
.v-bottom-bar {
  display: flex; flex-direction: column; gap: 0;
  padding: 28px 16px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, transparent 100%);
}

/* --- Seek Bar --- */
.v-seek-row {
  display: flex; align-items: center; gap: 10px;
  padding: 0 2px 8px;
}
.v-time {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums; min-width: 36px; text-align: center;
  white-space: nowrap; flex-shrink: 0;
}
.v-seek-wrap {
  flex: 1; position: relative; height: 20px;
  display: flex; align-items: center; cursor: pointer;
}
.v-seek-track {
  position: absolute; left: 0; right: 0; height: 4px;
  background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden;
  transition: height 0.15s ease;
}
.v-seek-wrap:hover .v-seek-track,
.v-seek-wrap:active .v-seek-track { height: 6px; }
.v-seek-buffered {
  position: absolute; left: 0; top: 0; height: 100%;
  background: rgba(255,255,255,0.25); border-radius: 4px;
  transition: width 0.3s linear;
}
.v-seek-progress {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--primary); border-radius: 4px;
  transition: width 0.1s linear;
}
.v-seek-input {
  position: absolute; left: 0; right: 0; width: 100%;
  height: 20px; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; z-index: 2;
  -webkit-appearance: none; appearance: none;
}
.v-seek-thumb {
  position: absolute; top: 50%; width: 14px; height: 14px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
  pointer-events: none; z-index: 3;
}
.v-seek-wrap:hover .v-seek-thumb,
.v-seek-wrap:active .v-seek-thumb { transform: translate(-50%, -50%) scale(1); }

/* --- Main Controls Row --- */
.v-ctrl-row {
  display: flex; align-items: center; gap: 6px;
}
.v-ctrl-btn {
  width: 44px; height: 44px; min-width: 44px;
  background: none; border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: background 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.v-ctrl-btn svg { width: 22px; height: 22px; fill: currentColor; }
.v-ctrl-btn:active { transform: scale(0.88); }
@media (hover: hover) {
  .v-ctrl-btn:hover { background: rgba(255,255,255,0.1); }
}
.v-ctrl-btn.play-btn { width: 52px; height: 52px; min-width: 52px; }
.v-ctrl-btn.play-btn svg { width: 28px; height: 28px; }

/* Volume group */
.v-volume-group {
  display: flex; align-items: center; gap: 0; margin-left: 2px;
}
.v-volume-slider-wrap {
  width: 0; overflow: hidden;
  transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
  display: flex; align-items: center;
}
.v-volume-group:hover .v-volume-slider-wrap,
.v-volume-slider-wrap.show { width: 80px; }
.v-volume-slider {
  width: 80px; height: 4px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.2); border-radius: 4px;
  outline: none; cursor: pointer;
}
.v-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.v-volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
}
.v-volume-slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
}
.v-volume-slider::-moz-range-track {
  height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.2);
}

/* Spacer pushes right-side controls */
.v-spacer { flex: 1; }

/* --- Loading Overlay --- */
.v-loading {
  position: absolute; inset: 0; z-index: 20;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
}
.v-loading.active { display: flex; }
.v-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--primary);
  animation: spinLoader 0.9s linear infinite;
}
@keyframes spinLoader { to { transform: rotate(360deg); } }

/* --- Error Overlay --- */
.v-error {
  position: absolute; inset: 0; z-index: 25;
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.v-error.active { display: flex; }
.v-error-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #f87171;
}
.v-error-icon svg { width: 28px; height: 28px; }
.v-error-msg {
  color: rgba(255,255,255,0.7); font-size: 0.88rem; text-align: center;
  max-width: 280px; line-height: 1.5;
}
.v-retry-btn {
  padding: 10px 28px; min-height: 44px;
  background: var(--primary); color: #0a0e17;
  border: none; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.v-retry-btn:active { transform: scale(0.95); }
@media (hover: hover) {
  .v-retry-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
}

/* --- Center Play (tap to play) --- */
.v-center-play {
  position: absolute; inset: 0; z-index: 8;
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
}
.v-center-play.active { display: flex; }
.v-center-play-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.v-center-play:active .v-center-play-icon { transform: scale(0.9); background: rgba(0,0,0,0.6); }
.v-center-play-icon svg { width: 32px; height: 32px; fill: #fff; margin-left: 3px; }

/* --- Tap Zone (for show/hide controls) --- */
.v-tap-zone {
  position: absolute; inset: 0; z-index: 5; cursor: pointer;
}

/* --- Seek Ripple (double-tap seek) --- */
.v-seek-ripple {
  position: absolute; top: 50%; width: 45%;
  height: 100%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  z-index: 12; pointer-events: none;
}
.v-seek-ripple.left { left: 0; }
.v-seek-ripple.right { right: 0; }
.v-seek-ripple.active {
  display: flex;
  animation: seekRippleFade 0.6s ease forwards;
}
.v-seek-ripple-inner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; font-size: 0.75rem; font-weight: 700;
}
.v-seek-ripple-inner svg { width: 28px; height: 28px; fill: #fff; opacity: 0.9; }
@keyframes seekRippleFade {
  0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; }
}

/* --- Mobile overrides --- */
@media (max-width: 768px) {
  .v-container { border-radius: 0; max-width: 100%; max-height: 100%; }
  .v-top-bar { padding: 10px 12px 28px; }
  .v-bottom-bar { padding: 24px 12px 12px; }
  .v-close { width: 36px; height: 36px; min-width: 36px; }
  .v-close svg { width: 16px; height: 16px; }
  .v-volume-slider-wrap { display: none; }
  .v-ctrl-btn { width: 40px; height: 40px; min-width: 40px; }
  .v-ctrl-btn svg { width: 20px; height: 20px; }
  .v-ctrl-btn.play-btn { width: 48px; height: 48px; min-width: 48px; }
  .v-ctrl-btn.play-btn svg { width: 26px; height: 26px; }
  .v-seek-row { padding: 0 0 6px; }
}

/* Safe areas for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .v-bottom-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  @media (max-width: 768px) {
    .v-bottom-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  }
}

/* === Promo Modal (Bottom Sheet) === */
.promo-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity var(--transition-smooth);
}
.promo-modal.active { opacity: 1; visibility: visible; }
.promo-content {
  width: 100%; background: #111318;
  border-top: 1px solid var(--glass-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 1.5rem));
  transform: translateY(100%); transition: transform var(--transition-smooth);
  position: relative; max-width: 540px; margin: 0 auto;
}
.promo-modal.active .promo-content { transform: translateY(0); }
.promo-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: 50%; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.25rem; z-index: 10;
}
.promo-body { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.promo-icon {
  width: 64px; height: 64px; border-radius: 14px;
  object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.5); background: var(--bg-elevated);
}
.promo-text { flex: 1; }
.promo-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.promo-text p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.playstore-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #000; color: #fff; padding: 8px 20px;
  border-radius: 10px; text-decoration: none;
  border: 1px solid #333; transition: transform 0.2s, background 0.2s; width: 100%;
}
.playstore-btn:active { transform: scale(0.97); background: #111; }
.playstore-btn img { height: 28px; }
.playstore-btn .btn-label { display: flex; flex-direction: column; align-items: flex-start; }
.playstore-btn .get-it { font-size: 0.65rem; text-transform: uppercase; font-weight: 500; opacity: 0.8; line-height: 1; }
.playstore-btn .google-play { font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
