/* ===== CSS Variables - CricStream Dark Theme ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222840;
  --text-primary: #ffffff;
  --text-secondary: #718096;
  --text-tertiary: #4a5568;
  --live-red: #e53e3e;
  --live-glow: rgba(229, 62, 62, 0.4);
  --audio-green: #81c784;
  --status-live: #e53e3e;
  --status-progress: #ed8936;
  --status-soon: #ecc94b;
  --status-upcoming: #805ad5;
  --status-completed: #48bb78;
  --border-color: #2d3748;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Top Bar ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-name {
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e53e3e, #ed8936);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.app-version {
  font-size: 0.55rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229, 62, 62, 0.15);
  color: var(--live-red);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.live-badge[hidden] {
  display: none;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

.search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.search-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
}

.search-bar[hidden] {
  display: none;
}

.search-bar input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--live-red);
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  padding: 8px 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.chip.active {
  background: var(--live-red);
  border-color: var(--live-red);
  color: white;
}

/* ===== Club Bar ===== */
.club-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  border-top: 1px solid var(--border-color);
}

.club-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.club-chips::-webkit-scrollbar {
  display: none;
}

.club-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(66, 153, 225, 0.3);
  background: rgba(66, 153, 225, 0.1);
  color: #90cdf4;
}

.club-chip.default {
  border-color: rgba(128, 90, 213, 0.3);
  background: rgba(128, 90, 213, 0.1);
  color: #b794f4;
}

.club-chip-remove {
  background: none;
  border: none;
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.club-chip-remove:hover {
  opacity: 1;
}

.club-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.club-input-row input {
  width: 72px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--text-primary);
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}

.club-input-row input:focus {
  border-color: #4299e1;
}

.club-input-row input::placeholder {
  color: var(--text-tertiary);
}

.club-add-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(66, 153, 225, 0.4);
  background: rgba(66, 153, 225, 0.15);
  color: #90cdf4;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.club-add-btn:hover {
  background: rgba(66, 153, 225, 0.25);
  border-color: rgba(66, 153, 225, 0.6);
}

/* ===== Carousel ===== */
.carousel-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 164px;
  padding-bottom: 60px;
  overflow: hidden;
  transition: padding-bottom 0.3s ease;
}

.carousel-container.has-player {
  padding-bottom: 120px;
}

.carousel-container.has-feed {
  padding-bottom: 0;
}

.carousel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-secondary);
}

.carousel-loading[hidden] {
  display: none;
}

.spinner-dark {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--live-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-track.dragging {
  transition: none;
}

/* Carousel Arrows */
.carousel-arrow {
  position: fixed;
  top: 60%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* Carousel Navigation */
.carousel-nav {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 50;
  transition: bottom 0.3s ease;
}

.has-player .carousel-nav {
  bottom: 76px;
}

.carousel-dots {
  display: flex;
  gap: 4px;
  max-width: 200px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--text-tertiary);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  width: 18px;
  background: var(--text-primary);
}

.carousel-dot.live {
  background: var(--live-red);
}

.carousel-dot.live.active {
  background: var(--live-red);
}

.carousel-counter {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

/* ===== Match Card ===== */
.match-card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px 16px;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-card-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.series-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.match-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.match-type-badge.league { background: rgba(128, 90, 213, 0.2); color: #b794f4; }
.match-type-badge.super-league { background: rgba(237, 137, 54, 0.2); color: #fbd38d; }
.match-type-badge.semi-final { background: rgba(229, 62, 62, 0.2); color: #feb2b2; }
.match-type-badge.final { background: rgba(255, 215, 0, 0.2); color: #ffd700; }

/* Match Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.status-badge.live {
  background: rgba(229, 62, 62, 0.2);
  color: var(--live-red);
}

.status-badge.in-progress {
  background: rgba(237, 137, 54, 0.2);
  color: var(--status-progress);
}

.status-badge.starting-soon {
  background: rgba(236, 201, 75, 0.2);
  color: var(--status-soon);
}

.status-badge.upcoming {
  background: rgba(128, 90, 213, 0.2);
  color: var(--status-upcoming);
}

.status-badge.completed {
  background: rgba(72, 187, 120, 0.2);
  color: var(--status-completed);
}

.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(129, 199, 132, 0.15);
  color: var(--audio-green);
}

.audio-badge[hidden] {
  display: none;
}

/* Match Time Row */
.match-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.match-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.match-local-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Scoreboard */
.scoreboard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.score-row + .score-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.score-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.score-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.score-team-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-batting {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--audio-green);
  flex-shrink: 0;
}

.score-row-right {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.score-overs {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-not-started {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 8px 0;
}

/* Result Summary */
.result-summary {
  font-size: 0.75rem;
  color: var(--status-completed);
  text-align: center;
  padding: 4px 8px;
  background: rgba(72, 187, 120, 0.08);
  border-radius: 6px;
}

/* Compact Play Button */
.play-section.compact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  gap: 0;
}

.play-button-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
  font-weight: 600;
}

.play-button-compact svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.play-button-compact.available {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  box-shadow: 0 2px 12px rgba(72, 187, 120, 0.4);
}

.play-button-compact.available:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(72, 187, 120, 0.5);
}

.play-button-compact.unavailable {
  background: rgba(66, 153, 225, 0.15);
  color: var(--text-tertiary);
  cursor: default;
}

.play-button-compact.playing {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  box-shadow: 0 0 20px var(--live-glow);
  animation: playGlow 2s ease-in-out infinite;
}

@keyframes playGlow {
  0%, 100% { box-shadow: 0 0 12px var(--live-glow); }
  50% { box-shadow: 0 0 28px var(--live-glow), 0 0 40px rgba(229, 62, 62, 0.2); }
}

/* Match Updates Section (in-card) */
.updates-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

.updates-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0 4px;
}

.updates-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  -webkit-overflow-scrolling: touch;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  animation: updateSlideIn 0.3s ease-out;
  font-size: 0.7rem;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.update-item:first-child {
  background: rgba(255, 255, 255, 0.05);
}

@keyframes updateSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.update-time {
  flex-shrink: 0;
  color: var(--text-tertiary);
  min-width: 52px;
  font-size: 0.65rem;
}

.update-overs {
  flex-shrink: 0;
  color: var(--text-secondary);
  min-width: 42px;
}

.update-event {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-total {
  flex-shrink: 0;
  font-weight: 700;
  color: #81c784;
  min-width: 38px;
  text-align: right;
}

.update-rr {
  flex-shrink: 0;
  color: var(--text-tertiary);
  min-width: 46px;
  text-align: right;
  font-size: 0.65rem;
}

.updates-empty {
  text-align: center;
  padding: 12px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ===== Event Feed ===== */
.event-feed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 40vh;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

.event-feed[hidden] {
  display: none;
}

.event-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.event-feed-header h3 {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.event-feed-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 2px 6px;
}

.event-feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.event-feed-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: eventSlideIn 0.3s ease-out;
}

@keyframes eventSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.event-icon.wicket { background: rgba(229, 62, 62, 0.2); }
.event-icon.boundary { background: rgba(66, 153, 225, 0.2); }
.event-icon.over { background: rgba(128, 90, 213, 0.2); }
.event-icon.run { background: rgba(255, 255, 255, 0.05); }

.event-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.event-over {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ===== Bottom Player ===== */
.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #1a1f2e 0%, #111827 100%);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-player[hidden] {
  display: none;
}

.player-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.eq-bar {
  width: 3px;
  background: var(--live-red);
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.eq-bar:nth-child(4) { height: 16px; animation-delay: 0.45s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-match-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-match-time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.player-stop-btn {
  background: rgba(229, 62, 62, 0.15);
  border: none;
  color: var(--live-red);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.player-stop-btn:hover {
  background: rgba(229, 62, 62, 0.3);
}

/* ===== Listen Modal (dark theme) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.modal-option:hover {
  border-color: var(--live-red);
  background: rgba(229, 62, 62, 0.05);
}

.modal-option .option-icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.modal-option .option-text {
  display: flex;
  flex-direction: column;
}

.modal-option .option-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.modal-option .option-text small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.vlc-option {
  border-color: #f97316;
}

.vlc-option:hover {
  border-color: #ea580c;
  background: rgba(249, 115, 22, 0.08);
}

.modal-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 0;
}

.modal-note[hidden] {
  display: none;
}

.modal-note a {
  color: var(--live-red);
  text-decoration: underline;
}

/* ===== Desktop Responsive ===== */
@media (min-width: 768px) {
  .carousel-container {
    padding-top: 174px;
  }

  .match-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 24px;
  }

  .scoreboard {
    padding: 10px 16px;
  }

  .score-badge {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
  }

  .score-team-name {
    font-size: 1rem;
  }

  .score-value {
    font-size: 1.2rem;
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .carousel-prev { left: 16px; }
  .carousel-next { right: 16px; }
}

/* ===== Small Mobile ===== */
@media (max-width: 380px) {
  .match-card {
    padding: 10px 12px;
    gap: 6px;
  }

  .score-badge {
    width: 24px;
    height: 24px;
    font-size: 0.5rem;
  }

  .score-team-name {
    font-size: 0.8rem;
  }

  .score-value {
    font-size: 0.95rem;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* Disable text selection on interactive elements */
.match-card, .carousel-arrow, .chip, .play-button-compact, .bottom-player {
  -webkit-tap-highlight-color: transparent;
}

/* Stop button (hidden in CricStream UI - admin only) */
.stop-btn {
  display: none;
}
