/* ==========================================================================
   BUFFSTREAMS - MODERN, DECENT & SIMPLE SPORTS STREAMING STYLESHEET
   100% Mobile Responsive, Google & Bing SEO Ready, Best-in-Class Event Cards
   ========================================================================== */

:root {
  --bg-main: #080b12;
  --bg-surface: #0e1320;
  --bg-card: #0d111b;
  --bg-card-hover: #121826;
  --bg-glass: rgba(10, 14, 23, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(255, 255, 255, 0.25);
  --border-live: rgba(255, 51, 92, 0.35);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: none;
  --accent-live: #ff335c;
  --accent-live-glow: none;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-body);
  
  --shadow-sm: none;
  --shadow-card: none;
  --shadow-hover: none;
}

/* ---------------- CSS RESET & CORE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: inherit;
  font-size: 16px;
}

/* ---------------- MAIN HEADER / NAVBAR ---------------- */
.main-header {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none;
  border: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
  padding: 44px 0 32px 0;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-subtitle {
  font-size: clamp(0.925rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 28px auto;
}



/* ---------------- SCHEDULE & FILTER SECTION ---------------- */
.schedule-section {
  padding: 20px 0 60px 0;
  flex: 1;
}

.schedule-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.schedule-title-row h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Search Box (Positioned on Left, Completely Borderless) */
.schedule-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0;
  align-self: flex-start;
}

.schedule-search-wrap input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  background: #0d121e;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: background 0.18s ease;
}

.schedule-search-wrap input:focus {
  background: #141b2c;
  border: none;
  outline: none;
}

.schedule-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.schedule-search-wrap .clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border: none;
}

.schedule-search-wrap .clear-search-btn:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .schedule-search-wrap {
    max-width: 100%;
  }
}

/* Sports Category Pills (Positioned Underneath Search Box, Completely Borderless) */
.sports-pills-wrapper {
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sports-pills-wrapper::-webkit-scrollbar {
  height: 4px;
}

.sports-pills-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.sports-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: #0f1422;
  border: none;
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 34px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.sport-pill:hover {
  background: #151d2f;
  color: #ffffff;
  border: none;
}

.sport-pill.active {
  background: #1c273e;
  border: none;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: none;
}

.pill-title {
  letter-spacing: -0.01em;
}

.pill-count {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.sport-pill.active .pill-count {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* ---------------- EVENTS GRID CONTAINER ---------------- */
.events-grid-wrap {
  min-height: 340px;
  position: relative;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-secondary);
}

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

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 20px auto;
}

.empty-icon {
  font-size: 2.75rem;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.btn-reset-filters {
  background: var(--accent-cyan);
  color: #070e1b;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  min-height: 44px;
  transition: opacity 0.2s;
}

.btn-reset-filters:hover {
  opacity: 0.9;
}

/* ---------------- BUFFSTREAMS EVENT STRIP CARDS (CLEAN MINIMAL DARK) ---------------- */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.event-card {
  background: #0d111b;
  border: none;
  border-radius: 9px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease;
  cursor: pointer;
  position: relative;
  box-shadow: none;
  text-decoration: none;
}

.event-card:hover {
  background: #121826;
  border: none;
  box-shadow: none;
}

.event-card.is-live-card {
  border: none;
}

/* Event Start Column: Prominent League Logo (NO BG, NO BORDER) */
.event-card-league-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: visible;
  flex-shrink: 0;
}

.league-avatar-img {
  width: 100%;
  height: 100%;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.league-avatar-fallback {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Event Middle Column: Teams on Line 1, Time/Date Underneath on Line 2 */
.event-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.event-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e11d48;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
}

.badge-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff;
  animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.event-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

/* LEAGUE PILL - Clean, Subtle, Completely Borderless */
.league-strip-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* MATCH DATE & TIME - MUTED */
.event-strip-time {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Event Right Column: OPEN BUTTON - Minimal Dark Pill, Completely Borderless */
.event-card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-open-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 30px;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.btn-open-strip:hover,
.event-card:hover .btn-open-strip {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  box-shadow: none;
}

/* ---------------- BUFFSTREAMS EDITORIAL GUIDE & KNOWLEDGE SECTION ---------------- */
.guide-section {
  padding: 48px 0 60px 0;
  border-top: none;
  background: transparent;
}

/* H2 and 5 Detailed Paragraphs Directly Below Matches */
.guide-intro-block {
  margin-bottom: 36px;
}

.guide-h2-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.guide-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.75;
}

/* Fan Count / Community Statistics Box */
.fan-metrics-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fan-metric-card {
  background: #0d121e;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  border: none;
  text-align: center;
  transition: background 0.15s ease;
}

.fan-metric-card:hover {
  background: #121826;
}

.fan-metric-number {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.fan-metric-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Star Rating Box */
.star-rating-box {
  background: #0d121e;
  border-radius: var(--radius-md);
  border: none;
  padding: 24px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.star-rating-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.star-rating-score {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.star-rating-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.star-rating-stars {
  color: #f59e0b;
  font-size: 1.35rem;
  letter-spacing: 2px;
  line-height: 1;
}

.star-rating-count {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.star-rating-bars {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.star-metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.775rem;
  color: #cbd5e1;
}

.star-metric-pill strong {
  color: #38bdf8;
  margin-right: 4px;
}

/* League Article Boxes */
.league-articles-section {
  margin-bottom: 48px;
}

.league-section-headline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.league-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.league-article-card {
  background: #0d121e;
  border-radius: var(--radius-md);
  border: none;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease;
}

.league-article-card:hover {
  background: #121826;
}

.league-article-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: none;
}

.league-article-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.league-article-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 14px;
}

.league-article-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  font-size: 0.8125rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.league-article-bullets li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.league-article-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: bold;
}

.league-article-bullets strong {
  color: #cbd5e1;
}

.league-article-tip {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.775rem;
  color: #94a3b8;
  border: none;
}

.league-article-tip strong {
  color: #38bdf8;
}

/* FAQ Table Section */
.faq-table-section {
  margin-bottom: 36px;
}

.faq-table-header {
  margin-bottom: 18px;
}

.faq-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.faq-table-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.faq-table-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.faq-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0d121e;
  border: none;
  -webkit-overflow-scrolling: touch;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  border: none;
}

.faq-table th {
  background: #141b2c;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 18px;
  border: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.faq-table td {
  padding: 16px 18px;
  border: none;
  color: #94a3b8;
  line-height: 1.6;
  vertical-align: top;
}

.faq-table td strong {
  color: #ffffff;
}

.faq-table tbody tr {
  transition: background 0.15s ease;
}

.faq-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.faq-table tbody tr:hover {
  background: #121826;
}

.table-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Conclusion Box */
.conclusion-box {
  background: #0d121e;
  border-radius: var(--radius-md);
  border: none;
  padding: 32px 28px;
  margin-top: 36px;
  margin-bottom: 20px;
}

.conclusion-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.conclusion-text {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 12px;
}

.conclusion-text:last-child {
  margin-bottom: 0;
}

/* ---------------- STREAM PLAYER MODAL ---------------- */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  max-height: 94vh;
}

.player-modal.active .modal-dialog {
  transform: scale(1);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: none;
  gap: 12px;
}

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

.modal-live-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-live);
  letter-spacing: 0.05em;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-league-info {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  border: none;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Responsive Video Container (16:9 Aspect Ratio) */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  z-index: 2;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.player-loader.hidden {
  opacity: 0;
}

/* Modal Footer & Controls */
.modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: none;
  flex-wrap: wrap;
  gap: 12px;
}

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

.server-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.server-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 32px;
  transition: all 0.2s;
  cursor: pointer;
}

.server-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.server-pill.active {
  background: var(--accent-cyan);
  border: none;
  color: #030814;
}

.player-actions {
  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-sm);
  background: rgba(255, 255, 255, 0.06);
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 32px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-player-action:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.modal-tv-guide {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.tv-guide-label {
  color: var(--text-muted);
  font-weight: 600;
}

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

/* ---------------- TOAST NOTIFICATION ---------------- */
.toast-notice {
  position: fixed;
  bottom: 84px; /* Above mobile bar */
  right: 20px;
  background: var(--bg-surface);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- MOBILE STICKY BOTTOM NAVIGATION ---------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: none;
  z-index: 200;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  min-width: 54px;
  transition: color 0.2s;
  text-decoration: none;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--accent-cyan);
}

.mobile-nav-item svg {
  stroke-width: 2.2;
}

/* ---------------- MAIN FOOTER ---------------- */
.main-footer {
  border-top: none;
  background: rgba(10, 14, 23, 0.98);
  padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px)) 0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 4px 0;
  display: inline-block;
}

.footer-links-group a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none;
  padding-top: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 700px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.safe-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS (Pixel Perfect from 320px to 1400px)
   ========================================================================== */

/* Tablets and small laptops (max-width: 980px) */
@media (max-width: 980px) {
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Space for mobile bottom bar */
  }

  .nav-search-wrap,
  .nav-links {
    display: none; /* Replaced by dedicated mobile search & bottom bar */
  }

  .mobile-search-bar {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .toast-notice {
    bottom: 74px;
    left: 20px;
    right: 20px;
    text-align: center;
  }

  .hero-section {
    padding: 32px 0 24px 0;
  }

  .filter-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .status-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .status-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.775rem;
  }

  .events-grid {
    gap: 8px;
  }

  .event-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .event-card-title {
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
  }

  .league-strip-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .event-strip-time {
    font-size: 0.75rem;
  }

  .btn-open-strip {
    padding: 4px 14px;
    font-size: 0.8125rem;
    min-height: 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-dialog {
    max-height: 98vh;
    border-radius: var(--radius-md);
  }

  .modal-header h3 {
    font-size: 1rem;
  }
}

/* Extra Small Smartphones (max-width: 440px - iPhone SE, Galaxy Mini) */
@media (max-width: 440px) {
  .container {
    padding: 0 14px;
  }

  .event-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .event-card-title {
    font-size: 0.875rem;
  }

  .event-strip-time {
    font-size: 0.7rem;
  }

  .btn-open-strip {
    padding: 4px 12px;
    font-size: 0.75rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Toast Notice Component */
.toast-notice {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: #111827;
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .toast-notice {
    bottom: 74px;
    left: 16px;
    right: 16px;
    text-align: center;
  }
}
