/* CricFreeX AllInOne Streaming Platform */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-card: linear-gradient(160deg, #101524 0%, #0b0e18 100%);
  --bg-card-hover: linear-gradient(160deg, #141b30 0%, #0e1220 100%);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.35);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 50% -10%, #1a080d 0%, #0a0c13 45%, #050609 100%);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Header */
.app-header {
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Match Card */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px -10px rgba(220, 38, 38, 0.25);
  background: var(--bg-card-hover);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card.is-live {
  border-color: rgba(239, 68, 68, 0.3);
}

.event-card.is-live:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 18px 40px -8px rgba(239, 68, 68, 0.3);
}

/* Glow Badge */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: pulse-live 1.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Filter Pill */
.filter-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}

/* Player View Container */
.player-container {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
  width: 100%;
}

.shaka-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* Hide big play button & middle black circle overlay completely */
.shaka-play-button-container,
.shaka-play-button,
.shaka-spinner-container,
.shaka-spinner,
.shaka-spinner-svg,
.shaka-buffering-spinner,
.shaka-loading-spinner,
.shaka-spinner-svg circle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Unclickable Top-Right 25% Overlay Shield */
.video-shield-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 25%;
  z-index: 25;
  pointer-events: auto;
  background: transparent;
  cursor: default;
}

/* Server Tab Button */
.server-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.server-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.server-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
}
