html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(0,212,255,0.10), transparent 40%),
    radial-gradient(circle at bottom, rgba(255,0,80,0.10), transparent 40%),
    #050505;
  color: white;
}

/* =========================
   PAGE
========================= */

.page {
  max-width: 1300px;
  margin: auto;
  padding: 24px;
}

/* =========================
   HERO
========================= */

.live-hero {
  text-align: center;
  margin-bottom: 40px;
}

.live-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,0,80,0.15);
  color: #ff4d7a;
  font-size: 12px;
  font-weight: 700;
}

.live-title {
  font-size: 44px;
  font-weight: 900;
  margin: 10px 0;
}

.live-subtitle {
  opacity: 0.6;
}

/* =========================
   LAYOUT
========================= */

.live-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 22px;
  align-items: start;
}

/* =========================
   STREAM
========================= */

.main-stream {
  position: sticky;
  top: 20px;
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 24px;
  overflow: hidden;

  background: black;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 80px rgba(0,0,0,0.45);
}

.main-stream iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   MATCH LIST
========================= */

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   MATCH CARD (BASE + DESIGN)
========================= */

.live-match {
  position: relative;
  overflow: hidden;

  background: linear-gradient(145deg, rgba(20,20,20,0.96), rgba(10,10,10,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;

  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);

  transition: 0.25s ease;
}

/* glow line */
.live-match::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #ff4d7a);
  opacity: 0.7;
}

/* hover */
.live-match:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 80px rgba(0,0,0,0.55);
}

/* =========================
   TOPBAR
========================= */

.match-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.match-round {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.match-meta {
  font-size: 16px;
  padding: 6px 10px;

  background:
    linear-gradient(90deg, #0095b8, #c92f5a);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   HEADER GRID
========================= */

.match-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;

  padding: 14px;
  gap: 10px;
}

/* =========================
   TEAM BLOCKS
========================= */

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 18px;
}

.team-left {
  background: linear-gradient(to right, rgba(0,212,255,0.08), transparent);
}

.team-right {
  background: linear-gradient(to left, rgba(255,0,80,0.08), transparent);
}

.team-avatar {
  width: 58px;
  height: 58px;

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

  border-radius: 50%;

  font-size: 24px;
  font-weight: 900;

  background: linear-gradient(135deg, rgba(0,212,255,0.28), rgba(255,0,80,0.28));
  border: 1px solid rgba(255,255,255,0.12);

  box-shadow: 0 0 30px rgba(0,212,255,0.12);
}

.team-name {
  font-size: 14px;
  opacity: 0.75;
  word-break: break-word;
}

.team-score {
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

/* =========================
   CENTER INFO
========================= */

.center-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-title {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.6;
}

.set-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;

  text-shadow: 0 0 25px rgba(255,255,255,0.08);
}

.colon {
  opacity: 0.3;
}

.meta {
  font-size: 12px;
  opacity: 0.7;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);

  font-size: 12px;
}

/* =========================
   STATUS
========================= */

.match-status {
  margin-top: 6px;
  font-size: 13px;

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

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.match-status.live {
  background: rgba(255,0,80,0.15);
  border-color: rgba(255,0,80,0.4);
  color: #ff4d7a;
  font-weight: 700;
}

.match-status.winner {
  background: rgba(0,255,140,0.12);
  border-color: rgba(0,255,140,0.35);
  color: #36ff9c;
  font-weight: 800;
}

/* =========================
   LIVE / FINISHED STATES
========================= */

.live-match.live {
  border-color: rgba(255,0,80,0.35);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 15px rgba(255,0,80,0.08); }
  50% { box-shadow: 0 0 40px rgba(255,0,80,0.25); }
  100% { box-shadow: 0 0 15px rgba(255,0,80,0.08); }
}

.live-match.finished {
  border-color: rgba(0,255,140,0.25);
  background: linear-gradient(145deg, rgba(0,255,140,0.06), rgba(10,10,10,0.94));
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
  text-align: center;
  padding: 60px;
  opacity: 0.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .live-layout {
    grid-template-columns: 1fr;
  }

  .main-stream {
    position: relative;
    top: 0;
  }
}

@media (max-width: 600px) {
  .page { padding: 14px; }

  .live-title { font-size: 28px; }
  .live-subtitle { font-size: 14px; }

  .match-header {
    grid-template-columns: 1fr 1.2fr 1fr;
  }

  .team-name { font-size: 12px; }
  .team-score { font-size: 24px; }

  .set-score { font-size: 34px; }

  .meta { font-size: 11px; }

  .match-status {
    font-size: 11px;
    padding: 4px 8px;
  }

  .team-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.clickable:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* =========================
   CLICKABLE SET SCORE
========================= */

.clickable-score{
  cursor:pointer;

  transition:
    transform .2s ease,
    filter .2s ease;
}

.clickable-score:hover{
  transform:scale(1.06);

  filter:
    brightness(1.15)
    drop-shadow(0 0 18px rgba(0,212,255,.25));
}

.clickable-score:active{
  transform:scale(.97);
}