:root {
  --primary: #e50914;
  --primary-hover: #ff0f1a;
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-muted: #8b949e;
  --bg-dark-card: #080808;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Montserrat, sans-serif;
  color: #111;
  line-height: 1.5;
  background-color: #fff;
}

a { text-decoration: none; color: #00e; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Navigation */
header { background-color: #fff; border-bottom: 1px solid #e0e0e0; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand-logo { font-weight: 800; font-size: 20px; color: #0072bc; text-transform: uppercase; line-height: 1.1; }
.brand-logo span { display: block; font-size: 11px; color: #333; font-style: italic; font-weight: 400; }
.nav-center { display: flex; align-items: center; gap: 20px; }
.btn-subscribe { background-color: #c00; color: #fff !important; padding: 8px 16px; font-size: 12px; border-radius: 3px; font-weight: 700; text-transform: uppercase; }
.nav-links { display: flex; gap: 18px; list-style: none; }
.nav-links a { font-size: 11px; color: #333; font-weight: 700; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #333; }

/* Hero Layout Section */
.hero-section { background-color: #f4f4f4; padding: 40px 0; margin-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 30px; align-items: flex-start; }

/* REDESIGNED MAIN STREAM AREA (Modern Dark Cinema Style) */
.media-player-box {
  width: 100%;
  position: relative;
}

.main-stream-area {
  width: 100%;
}

.main-stream-area .container {
  padding: 0;
  max-width: 100%;
}

#player-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--glass-border);
  display: flex;
  flex-direction: column;
}

#streaming {
  position: relative;
  cursor: pointer;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark-card);
}

.img-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#teaserVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

#streaming:hover .img-backdrop { transform: scale(1.03); }

.badge-official {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.5px;
}

.badge-live {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

.watermark {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  letter-spacing: 0.5px;
  user-select: none;
}

.play-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.7) 100%);
}

.play-icon-glow {
  width: 68px;
  height: 68px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  padding-left: 4px;
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, box-shadow 0.3s;
}

#streaming:hover .play-icon-glow {
  transform: scale(1.12);
  background: var(--primary-hover);
  box-shadow: 0 0 50px rgba(229, 9, 20, 1);
}

/* Loader Component */
.player-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(8px);
  z-index: 15;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  text-align: center;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text { font-size: 0.9rem; font-weight: 600; color: #fff; }
.loader-status { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }

.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  position: relative;
}

.progressbar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ff5252);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s linear;
}

.control-wrap {
  width: 100%;
  height: 42px;
  background: #0c0d10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
  font-size: 0.85rem;
  user-select: none;
  border-top: 1px solid var(--glass-border);
}

.controls-left, .controls-right { display: flex; align-items: center; gap: 14px; }
.control-btn { cursor: pointer; opacity: 0.75; transition: opacity 0.2s, transform 0.1s; }
.control-btn:hover { opacity: 1; transform: scale(1.1); }
.volume-slider { width: 60px; height: 4px; accent-color: var(--primary); cursor: pointer; }

/* Match Details Box */
.details-box h1 {
  font-family: Merriweather, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 25px; }
.tag { background-color: #c00; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; }
.countdown { font-size: 13px; color: #555; font-weight: 600; }

/* Related Content Grid */
.section-header { margin: 40px 0 20px; position: relative; }
.section-header h2 { font-family: Merriweather, serif; font-size: 32px; font-weight: 400; background: #fff; display: inline-block; padding-right: 20px; position: relative; z-index: 1; }
.section-header::after { content: ""; position: absolute; top: 55%; left: 0; width: 100%; height: 1px; background-color: #777; }

.games-section { background-color: #fff; padding: 20px 0; color: #111; }
.slider-row-wrapper { position: relative; }
.slider-btn-next { position: absolute; right: -18px; top: 35%; transform: translateY(-50%); width: 44px; height: 44px; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #111; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.15); cursor: pointer; z-index: 5; transition: background-color .2s, color .2s; }
.slider-btn-next:hover { background-color: #111; color: #fff; }

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); }

.card-thumb { height: 170px; width: 100%; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,.08); border: 1px solid #e2e8f0; position: relative; }
.thumb-graphic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bg-dark-blue { background: linear-gradient(135deg, #091a2a 0%, #0d2740 100%); }
.bg-dark-grey { background: linear-gradient(135deg, #18191c 0%, #2a2c30 100%); }
.bg-dark-green { background: linear-gradient(135deg, #0a2918 0%, #13462a 100%); }
.bg-dark-purple { background: linear-gradient(135deg, #221424 0%, #362039 100%); }

.badge-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 3px; z-index: 2; }
.badge-ondemand { left: 10px; bottom: 10px; position: absolute; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3); padding: 4px 8px; border-radius: 4px; font-size: 10px; color: #fff; z-index: 2; }

.card-play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; z-index: 3; }
.game-card:hover .card-play-overlay { opacity: 1; }
.card-play-btn { width: 46px; height: 46px; background-color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; padding-left: 3px; box-shadow: 0 0 15px rgba(229,9,20,.6); transform: scale(.8); transition: transform .2s cubic-bezier(.175, .885, .32, 1.275); }
.game-card:hover .card-play-btn { transform: scale(1); }

.card-info { padding: 12px 2px; }
.card-title { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 6px; line-height: 1.3; }

/* CTAs and Footer */
.cta-row { display: grid; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 30px 0; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 30px; margin-bottom: 60px; }
.cta-col:first-child { border-right: 1px solid #e0e0e0; padding-right: 20px; }
.cta-col:last-child { padding-left: 20px; }
.cta-col h3 { font-family: Merriweather, serif; font-size: 20px; font-weight: 400; margin-bottom: 10px; }

footer { padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-family: Merriweather, serif; font-size: 20px; font-weight: 400; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 12px; color: #333; font-weight: 600; }
.footer-bottom { display: flex; justify-content: flex-end; gap: 15px; font-size: 11px; color: #555; }

/* Subscription Modal Fixes */
.modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background-color: rgba(0,0,0,.65); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999; 
  opacity: 0; 
  visibility: hidden; 
  pointer-events: none;
  transition: opacity .2s, visibility .2s; 
  backdrop-filter: blur(10px); 
}

.modal-overlay.active { 
  opacity: 1; 
  visibility: visible; 
  pointer-events: auto;
}

.modal-card { 
  background-color: #fff; 
  width: 100%; 
  max-width: 520px; 
  border-radius: 4px; 
  box-shadow: 0 10px 25px rgba(0,0,0,.4); 
  overflow: hidden; 
  position: relative;
  pointer-events: auto;
}

.modal-header { padding: 16px 20px; border-bottom: 1px solid #e0e0e0; }
.modal-header h3 { font-size: 16px; font-weight: 600; color: #222; }
.modal-body { padding: 20px; font-size: 12px; color: #333; line-height: 1.6; }
.modal-body p { margin-bottom: 14px; }
.alert-box { border: 1px solid red; padding: 14px; margin-top: 15px; background-color: #ed06060f; font-size: 11.5px; color: #333; }
.alert-box p { margin-bottom: 10px; }
.alert-box p:last-child { margin-bottom: 0; }
.modal-footer { padding: 15px 20px 20px; }
.btn-cancel { background-color: #000; color: #fff; border: none; padding: 8px 18px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-cancel:hover { background-color: #333; }

/* RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS */

/* Tablet & Smaller Screens (under 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
  .nav-wrapper {
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-center {
    display: none !important;
  }

  .nav-right > *:not(.btn-subscribe) {
    display: none !important;
  }

  .hero-section {
    padding: 15px 0;
    margin-top: 0;
  }

  .details-box h1 {
    font-size: 20px;
  }

  .badge-official, .badge-live {
    font-size: 0.6rem;
    padding: 3px 6px;
    top: 8px;
  }
  .badge-official { left: 8px; }
  .badge-live { right: 8px; }

  .play-icon-glow {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .controls-left, .controls-right {
    gap: 8px;
  }

  .volume-slider {
    width: 45px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .slider-btn-next {
    display: none;
  }

  .cta-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-col:first-child {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 20px;
  }

  .cta-col:last-child {
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .modal-card {
    width: 90%;
    margin: 0 15px;
  }

  .card-play-overlay {
    opacity: 1 !important;
  }

  .card-play-btn {
    transform: scale(1) !important;
  }
}