/* ══════════════════════════════════════ */
/* 📺 Per-Match TV Channel Badges       */
/* ══════════════════════════════════════ */

/* Override match-row grid — FIXED columns for alignment */
#matches-container .match-row {
  grid-template-columns: 36px 1fr 70px 80px 260px !important;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
  align-items: center;
}
#matches-container .match-row:last-child {
  border-bottom: none;
}

/* Channel badges container — left-aligned in fixed column */
.match-channels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* Match action area — channels go here */
.match-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 4px !important;
  gap: 4px;
  overflow: hidden;
}

/* Individual channel badge */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid rgba(255,255,255,.15);
  letter-spacing: .03em;
  cursor: default;
  line-height: 1.1;
  text-transform: uppercase;
  /* Default (no brand) */
  background: rgba(255,255,255,.08);
  color: var(--text2, #aaa);
}

/* Branded badge — has inline style, override border */
.channel-badge.branded {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.channel-badge:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Channel logo image inside badge */
.ch-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  background: rgba(255,255,255,.15);
}

/* National broadcast star */
.channel-badge.national {
  border-color: rgba(255,215,0,.4);
}
.channel-badge.national.branded {
  box-shadow: 0 0 6px rgba(255,215,0,.2), 0 1px 4px rgba(0,0,0,.25);
}
.ch-nat {
  font-size: .5rem;
  color: gold;
  margin-left: 2px;
}

.ch-name {
  line-height: 1;
}

/* League header right area */
.league-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Light theme */
[data-theme="light"] .channel-badge {
  background: rgba(0,0,0,.06);
  color: var(--text2, #555);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
[data-theme="light"] .channel-badge.branded {
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  #matches-container .match-row {
    grid-template-columns: 28px 1fr 50px 60px 160px !important;
  }
  .channel-badge {
    font-size: .5rem;
    padding: 2px 5px;
  }
  .ch-logo { width: 12px; height: 12px; }
  .match-channels {
    flex-wrap: wrap;
    gap: 2px;
  }
}

/* ══════════════════════════════════════ */
/* 📌 Right Sidebar — Fixed Top Layout  */
/* ══════════════════════════════════════ */

.right-bar {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Sticky top area (hero + banners) — never scrolls */
.right-sticky-top {
  flex-shrink: 0;
}

/* Scrollable live events area */
.right-scroll-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Custom scrollbar for live events */
.right-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.right-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.right-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.right-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.25);
}

[data-theme="light"] .right-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.1);
}
[data-theme="light"] .right-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.2);
}

/* ══════════════════════════════════════ */
/* 🏟️ Hero Spotlight Card               */
/* ══════════════════════════════════════ */


.hero-spotlight {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 8px 10px 0;
  width: calc(100% - 20px);
  transition: background-image .5s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.3) 40%,
    rgba(0,0,0,.75) 100%
  );
  z-index: 1;
}

.hero-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(220,38,38,.9);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: heroPulse 1.5s infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.hero-team-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(255,255,255,.1);
  padding: 2px;
}

.hero-team-name {
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.hero-score {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-score-num {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  font-variant-numeric: tabular-nums;
}

.hero-score-sep {
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  font-weight: 300;
}

.hero-status {
  color: var(--green, #1de9b6);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Active live event row highlight */
.live-event-row.hero-active {
  background: rgba(29, 233, 182, .08);
  border-left: 2px solid var(--green, #1de9b6);
}

.live-event-row:hover {
  background: rgba(255,255,255,.04);
}

[data-theme="light"] .hero-spotlight {
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
[data-theme="light"] .live-event-row:hover {
  background: rgba(0,0,0,.03);
}
[data-theme="light"] .live-event-row.hero-active {
  background: rgba(29, 233, 182, .06);
}

@media (max-width: 768px) {
  .hero-spotlight {
    margin: 6px 8px 0;
    width: calc(100% - 16px);
    border-radius: 10px;
  }
  .hero-team-logo { width: 22px; height: 22px; }
  .hero-score-num { font-size: 1.2rem; }
}

/* ══════════════════════════════════════ */
/* 🎯 Sidebar Ad Banners                */
/* ══════════════════════════════════════ */

.sidebar-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 10px 6px;
}

.sidebar-banner {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.sidebar-banner:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.ad-label {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.7);
  font-size: .5rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

[data-theme="light"] .sidebar-banner {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
[data-theme="light"] .sidebar-banner:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
[data-theme="light"] .ad-label {
  background: rgba(255,255,255,.7);
  color: rgba(0,0,0,.5);
}

@media (max-width: 768px) {
  .sidebar-banners {
    gap: 6px;
    padding: 8px 8px 4px;
  }
  .sidebar-banner {
    border-radius: 8px;
  }
  .sidebar-banner img {
    border-radius: 8px;
  }
}

/* ══════════════════════════════════════ */
/* 🏟️ Sidebar Sports & Leagues          */
/* ══════════════════════════════════════ */

.sz-sidebar-section {
  margin-bottom: 16px;
}

.sz-sidebar-title {
  padding: 0 20px;
  margin-bottom: 8px;
  margin-top: 16px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sz-sidebar-section:first-child .sz-sidebar-title {
  margin-top: 20px;
}

/* Sport group */
.sz-sport-group {
  margin-bottom: 1px;
}

.sz-sport-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text2);
  position: relative;
}

.sz-sport-header:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sz-sport-header.active {
  background: var(--sb-active-bg, rgba(0,200,100,.08));
  color: var(--sb-active-text, #00e676);
  font-weight: 700;
}

.sz-sport-header.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--accent, #00e676);
}

.sz-sport-icon {
  font-size: 1.05rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sz-sport-name {
  flex: 1;
}

.sz-sport-count {
  font-size: .65rem;
  color: var(--text3);
  background: rgba(128,128,128,.15);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.sz-sport-arrow {
  font-size: .75rem;
  color: var(--text3);
  transition: transform 0.25s ease;
  width: 14px;
  text-align: center;
}

.sz-sport-group.expanded .sz-sport-arrow {
  transform: rotate(90deg);
}

/* League items */
.sz-sport-leagues {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sz-sport-group.expanded .sz-sport-leagues {
  max-height: 400px;
}

.sz-league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 36px;
  font-size: .8rem;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  text-decoration: none;
}

.sz-league-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sz-league-item.active {
  color: var(--accent, #00e676);
  font-weight: 700;
}

.sz-league-item.active .sz-league-dot {
  background: var(--accent, #00e676);
  box-shadow: 0 0 6px var(--accent, #00e676);
}

.sz-league-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  transition: all 0.2s;
}

/* My Teams */
.sz-team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all .15s;
  font-size: .85rem;
  color: var(--text2);
  font-weight: 500;
  text-decoration: none;
}

.sz-team-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sz-team-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  color: var(--accent, #00e676);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sz-team-add:hover {
  background: rgba(0,200,100,.05);
}

.sz-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,200,100,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* ══════════════════════════════════════ */
/* 🎯 Add Teams Modal                   */
/* ══════════════════════════════════════ */

.sz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: szFadeIn .2s ease;
}
@keyframes szFadeIn { from { opacity: 0 } to { opacity: 1 } }

.sz-modal {
  background: var(--bg-card, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  width: 520px;
  max-width: 95vw;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: szSlideIn .25s ease;
}
@keyframes szSlideIn {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sz-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #333);
}

.sz-modal-back {
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text3);
  padding: 4px;
  border-radius: 6px;
  transition: all .15s;
}
.sz-modal-back:hover { background: var(--bg-hover); color: var(--text); }

.sz-modal-title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.sz-modal-close {
  cursor: pointer;
  font-size: 1rem;
  color: var(--text3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .15s;
}
.sz-modal-close:hover { background: rgba(255,50,50,.15); color: #ff5252; }

.sz-modal-body {
  padding: 12px 16px 20px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}

/* Modal list items (Sports / Leagues) */
.sz-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text2);
}
.sz-modal-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.sz-modal-icon { font-size: 1.3rem; width: 32px; text-align: center; }
.sz-modal-meta { margin-left: auto; font-size: .7rem; color: var(--text3); font-weight: 600; }
.sz-modal-arrow { color: var(--text3); font-size: .9rem; }

/* Search */
.sz-modal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input, rgba(0,0,0,.25));
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.sz-modal-search:focus-within { border-color: var(--accent, #00e676); }
.sz-modal-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: .88rem;
  width: 100%;
  font-family: inherit;
}
.sz-modal-search input::placeholder { color: var(--text3); }

/* Teams grid */
.sz-teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sz-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-align: center;
  position: relative;
}
.sz-team-card:hover { background: var(--bg-hover); }
.sz-team-card.selected {
  border-color: var(--accent, #00e676);
  background: rgba(0,200,100,.06);
}
.sz-team-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.sz-team-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text2);
  line-height: 1.2;
}
.sz-team-card.selected .sz-team-name { color: var(--accent, #00e676); }

.sz-team-check-mark {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: .7rem;
  font-weight: 900;
  color: var(--accent, #00e676);
}

/* Modal loading */
.sz-modal-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
  font-size: .88rem;
}

/* My Teams sidebar — remove button */
.sz-team-item {
  position: relative;
}
.sz-myteam-name {
  flex: 1;
}
.sz-myteam-remove {
  font-size: .65rem;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all .15s;
  opacity: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sz-team-item:hover .sz-myteam-remove { opacity: 1; }
.sz-myteam-remove:hover { background: rgba(255,50,50,.2); color: #ff5252; }

@media (max-width: 480px) {
  .sz-teams-grid { grid-template-columns: repeat(2, 1fr); }
  .sz-modal { width: 100%; border-radius: 12px 12px 0 0; }
}

/* ══════════════════════════════════════ */
/* 🔴 Live Events Right Sidebar          */
/* ══════════════════════════════════════ */

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1744;
  display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
  margin-right: 6px;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,23,68,.6); }
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(255,23,68,0); }
}

.live-count {
  margin-left: auto;
  background: #ff1744;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.right-empty {
  text-align: center;
  padding: 40px 16px;
}

.live-event-row {
  cursor: pointer;
  transition: background .15s;
}
.live-event-row:hover {
  background: var(--bg-hover);
}

.live-event-row .minute.live {
  font-size: .6rem;
  min-width: 48px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════ */
/* 🦶 FOOTER                                                */
/* ══════════════════════════════════════════════════════════ */

.sz-footer {
  background: linear-gradient(180deg, var(--bg2) 0%, hsl(220 25% 6%) 100%);
  border-top: 1px solid hsl(220 20% 18%);
  padding: 48px 0 0;
  margin-top: 40px;
  position: relative;
}

.sz-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.sz-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sz-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

/* Brand */
.sz-footer-brand {
  padding-right: 20px;
}

.sz-footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.sz-footer-logo span {
  color: var(--green);
}

.sz-footer-tagline {
  color: var(--text3);
  font-size: .82rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Social Icons */
.sz-footer-socials {
  display: flex;
  gap: 8px;
}

.sz-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: hsl(220 20% 14%);
  border: 1px solid hsl(220 20% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}

.sz-social-link:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 211, 130, .25);
}

/* Columns */
.sz-footer-col {}

.sz-footer-heading {
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
}

.sz-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-footer-links li {
  margin-bottom: 8px;
}

.sz-footer-links a {
  color: var(--text3);
  font-size: .82rem;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}

.sz-footer-links a:hover {
  color: var(--green);
  padding-left: 4px;
}

/* App Badges */
.sz-footer-app-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sz-app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: hsl(220 20% 12%);
  border: 1px solid hsl(220 20% 20%);
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}

.sz-app-badge:hover {
  background: hsl(220 20% 16%);
  border-color: var(--green);
  transform: translateY(-1px);
}

.sz-app-icon {
  font-size: 1.3rem;
}

.sz-app-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sz-app-text small {
  color: var(--text3);
  font-size: .6rem;
  letter-spacing: .3px;
}

.sz-app-text strong {
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
}

/* Newsletter */
.sz-newsletter-input {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid hsl(220 20% 20%);
}

.sz-newsletter-input input {
  flex: 1;
  background: hsl(220 20% 12%);
  border: none;
  padding: 8px 12px;
  color: var(--text);
  font-size: .78rem;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.sz-newsletter-input input::placeholder {
  color: var(--text3);
}

.sz-newsletter-input button {
  background: var(--green);
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s;
}

.sz-newsletter-input button:hover {
  background: hsl(160 100% 35%);
}

/* Bottom Bar */
.sz-footer-bottom {
  border-top: 1px solid hsl(220 20% 15%);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sz-footer-copy {
  color: var(--text3);
  font-size: .72rem;
  opacity: .7;
}

.sz-footer-bottom-links {
  display: flex;
  gap: 16px;
}

.sz-footer-bottom-links a {
  color: var(--text3);
  font-size: .72rem;
  text-decoration: none;
  opacity: .7;
  transition: color .2s, opacity .2s;
}

.sz-footer-bottom-links a:hover {
  color: var(--green);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════ */
/* 📱 MOBILE RESPONSIVE — Phone Layout (max-width: 768px)  */
/* ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── App grid: single column ── */
  .app {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── Icon Bar: horizontal at bottom, fixed ── */
  .icon-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    flex-direction: row !important;
    padding: 6px 4px !important;
    gap: 2px !important;
    z-index: 1000;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    background: var(--bg-dark) !important;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .icon-bar-item {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
  }

  .icon-bar-item.active::before {
    display: none !important;
  }

  .icon-bar-sep {
    display: none !important;
  }

  /* ── Left Sidebar: hidden on mobile, shown via toggle ── */
  .sidebar {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 50px;
    z-index: 999;
    height: auto !important;
    width: 100% !important;
    background: var(--bg-sidebar) !important;
    overflow-y: auto;
  }

  .sidebar.mobile-open {
    display: block !important;
  }

  /* ── Right Sidebar (Live Now): hidden on mobile, shown via toggle ── */
  .right-bar {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 50px;
    z-index: 999;
    height: auto !important;
    width: 100% !important;
    background: var(--bg-dark) !important;
  }

  .right-bar.mobile-open {
    display: flex !important;
    flex-direction: column !important;
  }

  /* ── Main content: full width, add bottom padding for nav bar ── */
  .main {
    width: 100% !important;
    min-height: calc(100vh - 50px);
    padding-bottom: 56px !important;
    order: 1;
  }

  /* ── Mobile top header with hamburger + live toggle ── */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-header-brand {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.02em;
  }

  .mobile-header-brand span {
    color: var(--accent);
  }

  .mobile-header-actions {
    display: flex;
    gap: 8px;
  }

  .mobile-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .2s;
  }

  .mobile-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
  }

  /* ── Search bar: compact ── */
  .search-bar {
    padding: 10px 12px !important;
  }

  .search-input {
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }

  .search-input input {
    font-size: .82rem !important;
  }

  /* ── Date tabs: smaller, scrollable ── */
  .date-tabs {
    padding: 0 8px !important;
    gap: 0 !important;
  }

  .date-tab {
    padding: 10px 10px !important;
    font-size: .72rem !important;
  }

  /* ── Promo banner: smaller ── */
  .promo-banner {
    margin: 10px 12px !important;
    height: 60px !important;
    border-radius: 10px !important;
  }

  .promo-sub { font-size: .65rem !important; }
  .promo-main { font-size: .85rem !important; }

  /* ── Matches header: compact ── */
  .matches-header {
    padding: 12px 12px 6px !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .matches-title {
    font-size: .95rem !important;
  }

  .filter-tabs {
    gap: 3px !important;
  }

  .filter-tab {
    padding: 4px 10px !important;
    font-size: .7rem !important;
  }

  /* ── League groups: compact ── */
  .league-group {
    margin: 8px 10px 0 !important;
    border-radius: 10px !important;
  }

  .league-header {
    padding: 10px 12px !important;
  }

  .league-header-left {
    font-size: .78rem !important;
    gap: 6px !important;
  }

  /* ── Match rows: mobile grid ── */
  #matches-container .match-row,
  .match-row {
    grid-template-columns: 24px 1fr 50px 60px !important;
    padding: 10px 10px !important;
    gap: 4px;
  }

  /* Hide channels column on mobile to save space */
  .match-channels {
    display: none !important;
  }

  .match-action {
    display: none !important;
  }

  .match-team {
    font-size: .78rem !important;
    gap: 6px !important;
  }

  .match-team .club-icon,
  .match-team .team-logo {
    width: 16px !important;
    height: 16px !important;
  }

  .match-score .s {
    font-size: .85rem !important;
  }

  .status-text {
    font-size: .65rem !important;
    padding: 2px 6px !important;
  }

  .match-fav {
    font-size: .8rem !important;
  }

  /* ── Hero card on mobile (in right sidebar when open) ── */
  .hero-spotlight {
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    border-radius: 10px !important;
  }

  .hero-team-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .hero-score-num {
    font-size: 1.8rem !important;
  }

  .hero-team-name {
    font-size: .7rem !important;
    max-width: 100px !important;
  }

  /* ── Sidebar banners: full-width on mobile ── */
  .sidebar-banners {
    padding: 8px 8px 4px !important;
    gap: 6px !important;
  }

  /* ── Live events in right sidebar: compact ── */
  .right-header {
    padding: 12px !important;
  }

  .right-event {
    padding: 8px 12px !important;
    font-size: .75rem !important;
  }

  .right-section-title {
    padding: 10px 12px 6px !important;
    font-size: .65rem !important;
  }

  /* ── Theme toggle: move above bottom bar ── */
  .theme-toggle {
    bottom: 60px !important;
    right: 10px !important;
    padding: 6px 10px !important;
  }

  .label {
    font-size: .6rem !important;
  }

  .toggle-track {
    width: 36px !important;
    height: 20px !important;
  }

  .toggle-knob {
    width: 16px !important;
    height: 16px !important;
  }

  /* ── Sport icons sidebar: compact for mobile overlay ── */
  .sz-sport-header {
    padding: 10px 14px !important;
    font-size: .82rem !important;
  }

  .sz-league-item {
    padding: 8px 14px 8px 30px !important;
    font-size: .78rem !important;
  }

  /* ── Add teams modal: full screen ── */
  .teams-modal-overlay {
    padding: 8px !important;
  }

  .teams-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 70px) !important;
    border-radius: 12px !important;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  #matches-container .match-row,
  .match-row {
    grid-template-columns: 20px 1fr 40px 50px !important;
    padding: 8px 8px !important;
  }

  .match-team {
    font-size: .72rem !important;
  }

  .date-tab {
    padding: 8px 6px !important;
    font-size: .65rem !important;
  }

  .hero-score-num {
    font-size: 1.5rem !important;
  }

  /* Footer Mobile */
  .sz-footer {
    margin-top: 20px !important;
    padding: 32px 0 80px !important; /* extra bottom for icon bar */
  }

  .sz-footer-top {
    display: block !important;
  }

  .sz-footer-top > * {
    margin-bottom: 24px;
  }

  .sz-footer-inner {
    padding: 0 16px !important;
  }

  .sz-footer-brand {
    padding-right: 0 !important;
    text-align: center;
  }

  .sz-footer-tagline {
    max-width: 320px;
    margin: 0 auto 16px;
  }

  .sz-footer-socials {
    justify-content: center;
  }

  .sz-footer-col {
    text-align: center;
  }

  .sz-footer-app-badges {
    align-items: center;
  }

  .sz-app-badge {
    max-width: 200px;
  }

  .sz-newsletter-input {
    max-width: 280px;
    margin: 0 auto;
  }

  .sz-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ═══ FOOTER MOBILE OVERRIDE (standalone to ensure highest priority) ═══ */
@media screen and (max-width: 768px) {
  footer.sz-footer .sz-footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  footer.sz-footer .sz-footer-inner {
    padding: 0 20px !important;
    overflow: hidden !important;
  }

  footer.sz-footer .sz-footer-brand {
    text-align: center !important;
    padding-right: 0 !important;
  }

  footer.sz-footer .sz-footer-col {
    text-align: center !important;
  }

  footer.sz-footer .sz-footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 16px !important;
  }

  footer.sz-footer .sz-footer-app-badges {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  footer.sz-footer .sz-app-badge {
    max-width: 170px !important;
  }

  footer.sz-footer .sz-newsletter-input {
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  footer.sz-footer .sz-footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  footer.sz-footer .sz-footer-socials {
    justify-content: center !important;
  }

  footer.sz-footer {
    padding-bottom: 80px !important;
  }
}
