@media (min-width: 700px) {
  .hero-left {
    width: 100%;
    background: none;
  }
}
    font-size: 1.05rem;
    line-height: 1.15;
:root {
}

body {
    /* border: 8px solid blue !important; */ /* Commenting out the blue border */
}
@media (max-width: 1200px) and (orientation: landscape) {
  html, body {
    min-height: auto !important;
    height: auto !important;
    overflow-y: auto !important;
  }
  body {
    display: block !important;
    padding: 4px 2vw 4px 2vw !important;
    box-sizing: border-box !important;
  }
  .page-wrapper {
    display: block !important;
    gap: 8px !important;
    max-width: 100vw !important;
  }
  header.hero {
    margin-bottom: 6px !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    font-size: 0.98em !important;
    z-index: 10000 !important;
    position: relative !important;
  }
}
:root {
  --bg-main: radial-gradient(circle at top, #101632 0, #050814 55%, #02030a 100%);
  --accent: #f9c838;
  --accent-soft: #fef4cf;
  --text-main: #f7f8ff;
  --text-muted: #a9b0d4;
  --text-soft: rgba(255,255,255,0.82);
  --usop-gold: #f9c838;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  padding: 16px 12px;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-wrapper {
  width: 100%;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

header.hero {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25,63,144,0.75), rgba(3,6,24,0.96));
  border: 1px solid rgba(249,200,56,0.35);
  box-shadow: 0 22px 60px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
}

header.hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(249,200,56,0.32) 0, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(119,152,255,0.32) 0, transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hero-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.28);
}

.hero-logo {
  height: clamp(46px, 6vw, 64px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6));
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.hero-tagline {
  max-width: 560px;
  font-size: clamp(0.8rem, 1.55vw, 1rem);
  font-weight: 700;
  color: #fff;
  font-family: 'Cinzel', 'Montserrat', system-ui, sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  line-height: 1.22;
}

.hero-subtitle {
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  color: var(--text-soft);
  margin-bottom: 4px;
  line-height: 1.4;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.hero-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(4,10,35,0.95));
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--text-soft);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff4d4d;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,77,0.6);
  background: rgba(255,77,77,0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 6px #ff4d4d;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stream-card {
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(28,46,100,0.72), rgba(2,3,12,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.stream-card:hover {
  border-color: rgba(249,200,56,0.5);
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.9), 0 0 0 1px rgba(249,200,56,0.2);
}

.stream-card-header,
.stream-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  background: linear-gradient(145deg, rgba(5,10,33,0.98), rgba(3,6,18,0.98));
}

.stream-card-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stream-card-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--text-muted);
}

.stream-label {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.stream-badge {
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.stream-badge.live {
  color: #ff4d4d;
  border: 1px solid rgba(255,77,77,0.6);
  background: rgba(255,77,77,0.12);
}

.stream-badge.offline {
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-wrap video,
.video-wrap iframe,
.video-wrap img.poster-image {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-wrap video,
.video-wrap iframe {
  object-fit: contain;
}

.video-wrap img.poster-image {
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 3;
}

.video-overlay.hidden { display: none; }

.expand-capture {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.expand-footer-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(4,10,35,0.82);
  color: rgba(247,248,255,0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}

@media (max-width: 700px) {
  .modal-title {
    max-width: 98vw;
    font-size: 0.89rem;
    line-height: 1.05;
    font-weight: 500;
    padding-left: 1vw;
    padding-right: 1vw;
    white-space: normal;
    text-align: center;
  }
  .modal-back-btn {
    max-width: 90vw;
    font-size: 1rem;
    white-space: normal;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
  }
  .expand-footer-chip {
    font-size: 0.68rem;
  }
}

.stream-card:hover .expand-footer-chip,
.stream-card:focus-within .expand-footer-chip {
  border-color: rgba(249,200,56,0.55);
  color: var(--accent-soft);
}

.expand-capture:focus-visible {
  outline: 2px solid rgba(249,200,56,0.45);
  outline-offset: -2px;
}

.overlay-icon { font-size: clamp(1.4rem, 4vw, 2rem); }

.overlay-text {
  font-size: clamp(0.7rem, 2vw, 0.82rem);
  color: var(--text-muted);
  text-align: center;
  padding: 0 16px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(249,200,56,0.2);
  border-top-color: var(--usop-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.expand-hint { color: rgba(249,200,56,0.6); }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(6px);
}

.modal-backdrop.open { display: flex; }

.modal-inner {
  width: 100%;
  max-width: 1000px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(28,46,100,0.9), rgba(2,3,12,0.99));
  border: 1px solid rgba(249,200,56,0.35);
  box-shadow: 0 40px 100px rgba(0,0,0,0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(145deg, rgba(5,10,33,0.98), rgba(3,6,18,0.98));
  gap: 10px;
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  color: var(--text-muted);
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-title {
  font-size: clamp(0.82rem, 2.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-align: center;
  flex: 1;
}

.modal-header-spacer {
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.modal-video-wrap video,
.modal-video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
}
.modal-backdrop.open .modal-footer {
  display: none;
}
 .scorebug-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 6;
  pointer-events: none;
}
@media (max-width: 900px) {
  .scorebug-overlay {
    width: 80vw;
    height: 16vw;
    min-height: 48px;
    max-width: 98vw;
    max-height: 22vw;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.08);
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  .scorebug-overlay {
    width: 96vw;
    height: 22vw;
    min-height: 36px;
    max-width: 100vw;
    max-height: 28vw;
    top: 4px;
    border-radius: 7px;
    font-size: 0.92em;
  }
}

.fullscreen-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  width: min(92vw, 460px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(249,200,56,0.28);
  background:
    linear-gradient(135deg, rgba(249,200,56,0.16), transparent 45%),
    rgba(5,10,33,0.96);
  color: var(--accent-soft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.58);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1010;
}

.fullscreen-toast.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fullscreen-toast-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(249,200,56,0.24), rgba(249,200,56,0.08));
  border: 1px solid rgba(249,200,56,0.2);
  font-size: 1rem;
  color: #fff4c0;
  flex-shrink: 0;
}

.fullscreen-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fullscreen-toast-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff4c0;
}

.fullscreen-toast-message {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(247,248,255,0.86);
}

.modal-inner:fullscreen,
.modal-inner:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
}

.modal-inner:fullscreen .modal-video-wrap,
.modal-inner:-webkit-full-screen .modal-video-wrap {
  flex: 1;
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  .fullscreen-toast {
    top: auto;
    bottom: 18px;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .fullscreen-toast.open {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .fullscreen-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .fullscreen-toast-title {
    font-size: 0.72rem;
  }

  .fullscreen-toast-message {
    font-size: 0.78rem;
  }
}

.back-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover,
.modal-back-btn:hover {
  color: var(--accent-soft);
  border-color: var(--usop-gold);
}

@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 98vw;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-brand-text {
    border-left: 0;
    padding-left: 0;
    max-width: 100vw;
    width: 100%;
    word-break: break-word;
  }

  .hero-logo {
    height: clamp(44px, 14vw, 56px);
  }

  .back-links-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) {
  .hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-left {
    width: 100%;
    background: none;
  }

  .live-dot {
    position: absolute;
    top: 2px;
    right: 0;
  }
}

.sponsor-overlay {
  position: absolute;
  max-width: 120px;
  background: rgba(0,0,0,.5);
  padding: 4px;
  border-radius: 6px;
  z-index: 5;
}

.sponsor-overlay img {
  max-width: 100%;
  height: auto;
}

.top-left { top: 6px; left: 6px; }
.top-right { top: 6px; right: 6px; }
.bottom-left { bottom: 6px; left: 6px; }
.bottom-right { bottom: 6px; right: 6px; }