/* ==========================================================================
   STREAM.HTML DEDICATED STYLESHEET - CYBER STEALTH & NEON GREEN THEME
   Pitch-Black Carbon, Matte Dark Surfaces, Glowing Neon Green Accents
   ========================================================================== */

.stream-page-body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(0, 204, 106, 0.04) 0%, transparent 40%),
    #08090d;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
}

/* ---------------- HEADER ---------------- */
.stream-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stream-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #11141c;
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
  min-height: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-back-schedule:hover {
  background: #161b26;
  color: #ffffff;
  border-color: rgba(0, 255, 136, 0.35);
  transform: translateX(-2px);
}

.btn-share-stream {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 36px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-share-stream:hover {
  background: var(--accent-cyan-gradient);
  color: #041007;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
}

/* ---------------- MAIN STREAM CONTENT ---------------- */
.stream-main-content {
  padding: 24px 0 60px 0;
  flex: 1;
}

/* ---------------- MATCH BANNER & TITLE CARD ---------------- */
.stream-match-banner {
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stream-match-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-cyan-gradient);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.match-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.live-pill-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-live-gradient);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.725rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(255, 51, 75, 0.45);
}

.stream-league-tag {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.22);
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.stream-time-tag {
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* DEDICATED ARTICLE TITLE & H1 TAG BAR */
.stream-match-headline-bar {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.stream-match-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stream-match-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* TEAMS VERSUS DISPLAY (PERFECTLY CENTERED AROUND VS) */
.stream-teams-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.stream-team-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.stream-team-item.team-left {
  justify-content: flex-end;
  text-align: right;
}

.stream-team-item.team-right {
  justify-content: flex-end;
  flex-direction: row-reverse;
  text-align: left;
}

.stream-team-badge-wrap {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  border-radius: var(--radius-lg);
  background: #171b26;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stream-match-banner:hover .stream-team-badge-wrap {
  border-color: rgba(0, 255, 136, 0.35);
}

.stream-team-badge-wrap img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block;
}

.stream-team-fallback {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 255, 136, 0.08);
}

.stream-team-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.stream-vs-box {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.06em;
}

/* ---------------- PLAYER LAYOUT GRID ---------------- */
.player-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.player-layout-grid.theater-mode {
  grid-template-columns: 1fr;
}

.player-layout-grid.theater-mode .stream-sidebar {
  display: none;
}

.player-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* 16:9 Video Player Viewport (Cinema Dark Canvas) */
.stream-video-container,
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
  background: #000;
}

.stream-video-container iframe,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: none;
  display: block;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.player-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-loader .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Player Control Bar */
.player-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.stream-server-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.server-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.server-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #171b26;
  border: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-height: 34px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.server-pill:hover {
  color: #ffffff;
  background: #1c2230;
  border-color: rgba(0, 255, 136, 0.35);
}

.server-pill.active {
  background: var(--accent-cyan-gradient);
  border-color: transparent;
  color: #041007;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.35);
}

.player-utility-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-player-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #171b26;
  border: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-height: 34px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-player-action:hover {
  color: #ffffff;
  background: #1c2230;
  border-color: rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.btn-player-action.active {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* TV Broadcast Guide Card */
.stream-info-card {
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.info-icon {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
}

.info-card-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tv-guide-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-tag {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.22);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

/* Stream Tips Box */
.stream-tips-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tips-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tips-title h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ---------------- SIDEBAR (LIVE CHAT & MORE GAMES) ---------------- */
.stream-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Live Chat Card */
.chat-card {
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #171b26;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.chat-online-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chat-messages-container {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8125rem;
  scrollbar-width: thin;
}

.chat-message-row {
  line-height: 1.45;
  word-break: break-word;
}

.chat-user {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-right: 6px;
}

.chat-user.user-pro {
  color: var(--accent-gold);
}

.chat-user.user-mod {
  color: var(--accent-live);
}

.chat-text {
  color: var(--text-secondary);
}

.chat-input-form {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #171b26;
  border-top: 1px solid var(--border-subtle);
  gap: 8px;
}

.chat-input-form input {
  flex: 1;
  background: #11141c;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-form input:focus {
  border-color: var(--accent-cyan);
}

.btn-send-chat {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-gradient);
  color: #041007;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send-chat:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.4);
}

/* Other Live Games Card */
.other-games-card {
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.other-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.other-games-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-all-link {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  transition: transform 0.2s;
}

.view-all-link:hover {
  transform: translateX(2px);
}

.other-games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #171b26;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
}

.mini-game-item:hover {
  background: #1c2230;
  border-color: rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.mini-game-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mini-game-teams {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-game-league {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.mini-game-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent-live-gradient);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 51, 75, 0.45);
}

/* ---------------- DEDICATED MATCH EDITORIAL & SEO ARTICLE SECTION ---------------- */
.stream-match-article-section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.stream-article-card {
  background: #11141c;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.article-header {
  margin-bottom: 28px;
}

.article-badge-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-intro-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.article-block-card {
  background: #171b26;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.article-block-card:hover {
  background: #1c2230;
  border-color: rgba(0, 255, 136, 0.35);
}

.block-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.article-block-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-block-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
}

.article-feature-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.article-feature-list strong {
  color: var(--text-primary);
}

.article-steps-list {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.article-steps-list strong {
  color: var(--accent-cyan);
}

.devices-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.device-chip {
  background: #11141c;
  border: 1px solid var(--border-medium);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.article-tv-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tv-tag {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-weight: 700;
}

/* FAQ Within Match Article */
.article-faq-wrap {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.article-faq-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.match-faq-item {
  background: #171b26;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.match-faq-item h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.match-faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 900px) {
  .player-layout-grid {
    grid-template-columns: 1fr;
  }

  .chat-card {
    height: 400px;
  }

  .stream-article-card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .stream-teams-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .stream-team-item.team-left,
  .stream-team-item.team-right {
    justify-content: center;
    flex-direction: row;
    width: 100%;
  }

  .stream-team-badge-wrap {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  .stream-team-badge-wrap img {
    width: 40px !important;
    height: 40px !important;
  }

  .stream-team-name {
    font-size: 1.15rem;
  }

  .stream-vs-box {
    margin: 4px 0;
  }

  .player-control-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .stream-server-bar,
  .player-utility-btns {
    justify-content: center;
  }

  .stream-match-banner {
    padding: 20px 16px;
  }
}
