/*==================================================
  SPORTS BROADCAST PREMIUM (RED/WHITE THEME)
==================================================*/
:root {
  --bg-color: #000000;
  --bg-panel: #111111;
  --bg-hover: #1f1f1f;
  --primary-accent: #e50914; /* Switched from Yellow to Premium Red */
  --live-red: #ff0000;
  --text-light: #ffffff;
  --text-gray: #a1a1aa;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: var(--font-body);
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/*-------------------------
  HEADER
-------------------------*/
.sports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #000;
  border-bottom: 2px solid var(--bg-panel);
}

.logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-light);
}

.logo span { color: var(--primary-accent); }

.nav-btn {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-light);
  background: var(--primary-accent);
  padding: 5px 20px;
  text-decoration: none;
  transition: 0.2s;
}

.nav-btn:hover { background: #fff; text-decoration: none; color: #000; }

/*-------------------------
  MAIN LAYOUT
-------------------------*/
.broadcast-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 30px;
}

.player-section { flex: 3; }
.sidebar-section { flex: 1; min-width: 320px; }

@media (max-width: 1024px) {
  .broadcast-container { flex-direction: column; }
}

/*-------------------------
  REALISTIC VIDEO PLAYER
-------------------------*/
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #333;
}

.poster-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.video-frame:hover .poster-img { 
  opacity: 0.6; 
}

/* Top Left Overlay Badge */
.vid-top-overlay {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 5;
}

.vid-brand-block {
  display: flex;
  flex-direction: column;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.vid-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vid-red-dot {
  width: 8px; height: 8px;
  background-color: var(--live-red);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--live-red);
}

.vid-live-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.vid-broadcast-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #ddd;
  letter-spacing: 1px;
}

.vid-viewers-block {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.vid-user-icon {
  font-size: 10px;
  color: #ccc;
}

.vid-viewers-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.blink { animation: blink-anim 1s infinite; }
@keyframes blink-anim { 50% { opacity: 0.3; } }

/* Center Play Button (White Circle) */
.vid-center-play {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.pulse-play-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.pulse-play-wrapper:hover {
  transform: scale(1.1);
  background: var(--primary-accent);
}

.play-icon {
  color: white;
  font-size: 24px;
  margin-left: 4px; 
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-accent);
  animation: pulse-ring-anim 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring-anim {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Bottom Control Bar */
.vid-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 45px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
}

/* Progress Bar */
.vid-progress-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1.5px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.vid-progress-fill {
  width: 100%; height: 100%;
  background-color: var(--primary-accent);
  box-shadow: 0 0 5px var(--primary-accent);
}

.vid-bar-left, .vid-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vid-icon {
  font-size: 18px;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.2s;
}

.vid-icon:hover { color: #fff; }

.vid-vol-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vid-time {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

/*-------------------------
  EVENT DETAILS & CTA
-------------------------*/
.event-details {
  margin-top: 25px;
}

.event-title {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--text-light);
  margin-bottom: 5px;
}

.event-subtitle {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.action-btn-massive {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--primary-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  padding: 15px 50px;
  text-decoration: none;
  transition: 0.2s;
}

.action-btn-massive:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/*-------------------------
  SIDEBAR (INFO)
-------------------------*/
.sidebar-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--bg-panel);
  padding-bottom: 10px;
}

.info-card {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  padding: 20px;
  margin-bottom: 15px;
  transition: 0.2s;
}

.info-card:hover { background: var(--bg-hover); border-left: 4px solid var(--primary-accent); }

.info-icon {
  font-size: 30px;
  color: var(--primary-accent);
  width: 50px;
}

.info-text h4 { font-family: var(--font-display); font-size: 24px; margin: 0; color: var(--text-light); }
.info-text p { font-family: var(--font-body); font-size: 13px; color: var(--text-gray); margin: 0; font-weight: 700; }

.devices-box {
  background: var(--bg-panel);
  padding: 25px;
  margin-top: 30px;
}

.devices-box h4 { font-family: var(--font-display); font-size: 24px; text-align: center; }

.dev-icon { width: 40px; filter: grayscale(100%) brightness(200%); opacity: 0.5; transition: 0.2s; }
.dev-icon:hover { filter: none; opacity: 1; }

/*-------------------------
  MODAL
-------------------------*/
.sports-modal {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9999;
  justify-content: center; align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.sports-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-bg {
  position: absolute; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}

.modal-box {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  border-radius: 16px;
  width: 90%; max-width: 480px;
  padding: 45px 40px;
  text-align: center;
  z-index: 10;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sports-modal.active .modal-box {
  transform: scale(1);
  opacity: 1;
}

.modal-icon-wrapper {
  width: 60px; height: 60px;
  background: rgba(229, 9, 20, 0.1);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 24px;
  margin: 0 auto 20px auto;
}

.close-btn {
  position: absolute; top: 15px; right: 20px;
  font-size: 24px; color: var(--text-gray);
  cursor: pointer;
}

.close-btn:hover { color: var(--live-red); }

.modal-heading { font-family: var(--font-display); font-size: 45px; margin-bottom: 10px; color: #fff; }

.modal-desc { font-weight: 700; color: #a1a1aa; margin-bottom: 30px; font-size: 15px; }

.modal-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #e50914 0%, #b20710 100%);
  color: #fff;
  font-family: var(--font-display); 
  font-size: 28px;
  padding: 14px; 
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 15px; 
  transition: 0.3s transform, 0.3s box-shadow;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.modal-action-btn:hover { 
  background: linear-gradient(90deg, #ff0a16 0%, #e50914 100%);
  text-decoration: none; 
  color: #fff; 
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(229, 9, 20, 0.6);
}

/*==================================================
  ADVERTISEMENT SLOTS
==================================================*/
.ad-slot {
  margin: 20px auto;
  text-align: center;
  width: 100%;
}

.modal-trust {
  font-family: var(--font-body);
  font-size: 12px;
  color: #888;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.modal-login { font-weight: 700; color: var(--text-gray); font-size: 14px; }
.modal-login a { color: var(--primary-accent); text-decoration: underline; }

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

@media (max-width: 1024px) {
  .broadcast-container { flex-direction: column; padding: 20px; }
  .sidebar-section { margin-top: 20px; }
}

@media (max-width: 768px) {
  /* Header */
  .sports-header { padding: 15px 20px; flex-direction: column; gap: 15px; }
  .logo { font-size: 26px; }
  .nav-btn { font-size: 16px; padding: 5px 15px; }

  /* Player Elements */
  .vid-top-overlay { top: 10px; left: 10px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .vid-live-row { margin-bottom: 0; }
  .vid-live-text { font-size: 11px; }
  .vid-viewers-block { padding: 3px 6px; }
  .vid-viewers-text { font-size: 10px; }
  .vid-user-icon { font-size: 9px; }

  /* Center Play Button */
  .pulse-play-wrapper { width: 50px; height: 50px; }
  .play-icon { font-size: 18px; margin-left: 4px; }

  /* Bottom Control Bar */
  .vid-bottom-bar { padding: 0 10px; height: 35px; }
  .vid-bar-left, .vid-bar-right { gap: 10px; }
  .vid-icon { font-size: 14px; }
  .fas.fa-undo, .fas.fa-compress { font-size: 12px !important; }
  .vid-vol-wrap { gap: 5px; }
  .vid-time { font-size: 11px; }

  /* Event Details */
  .event-details { margin-top: 15px; text-align: center; }
  .event-title { font-size: 32px; }
  .event-subtitle { font-size: 16px; margin-bottom: 20px; }
  .action-btn-massive { font-size: 20px; padding: 10px 25px; width: 100%; justify-content: center; }

  /* Sidebar */
  .sidebar-title { font-size: 24px; text-align: center; }
  .info-card { padding: 15px; }
  .info-text h4 { font-size: 18px; }
  .info-text p { font-size: 11px; }
  .devices-box h4 { font-size: 18px; }
  .dev-icon { width: 30px; }

  /* Modal */
  .modal-box { padding: 30px 20px; }
  .modal-heading { font-size: 28px; }
  .modal-desc { font-size: 13px; margin-bottom: 20px; }
  .modal-action-btn { font-size: 18px; padding: 12px; }
  .modal-icon-wrapper { width: 45px; height: 45px; font-size: 18px; margin-bottom: 15px; }
}

@media (max-width: 480px) {
  /* Extra Small Screens */
  .vid-time { display: none; } /* Hide time on very small screens to save space */
  .action-btn-massive { font-size: 18px; }
  .event-title { font-size: 28px; }
}