:root {
  --bg-page: #111111;
  --bg-nav: #0c0c0c;
  --bg-surface: #1a1a1a;
  --bg-row: #1d1d1d;
  --bg-row-hover: #252525;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent-orange: #ea580c;
  --accent-orange-bright: #f97316;
  --accent-orange-soft: rgba(234, 88, 12, 0.16);
  --accent-green: #10b981;
  --text-white: #ffffff;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  background-color: var(--bg-page);
  color: var(--text-light);
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body {
  background-color: var(--bg-page);
  color: var(--text-light);
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px;
}

html.player-active body {
  padding-bottom: calc(90px * min(1, (100vw - 12px) / 728) + 24px) !important;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

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

/* NAVBAR (Screenshot 1 inspired) */
.se-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.se-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.se-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.se-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.35);
}

.se-logo-wordmark {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: #fff;
}

.se-logo-wordmark span {
  color: var(--accent-green);
}

.se-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.se-nav-links::-webkit-scrollbar {
  display: none;
}

.se-nav-link {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #cbd5e1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.se-nav-link:hover,
.se-nav-link.active {
  background: var(--accent-orange-soft);
  color: #fff;
}

.se-nav-link.active {
  border: 1px solid rgba(234, 88, 12, 0.45);
}

.se-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.se-pill-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: #171717;
  color: #fff;
  transition: all 0.18s;
}

.se-pill-btn:hover {
  border-color: var(--accent-orange-bright);
}

.se-pill-btn--accent {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #04130d;
}

.se-mobile-toggle {
  display: none;
  padding: 6px;
  color: #fff;
}

/* HERO SEARCH CARD (Screenshot 2) */
.se-main {
  padding: 24px 0 48px;
}

.se-hero-search-card {
  background: linear-gradient(135deg, #241914 0%, #171717 55%, #141917 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Category/Sport active: Hide hero title, hero description & article so only sport matches show */
html.category-active .se-hero-title,
html.category-active .se-hero-sub {
  display: none !important;
}

html.category-active .se-hero-search-card {
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
  background: #16181f !important;
  box-shadow: none !important;
}

html.category-active .se-article-card,
html.category-active .se-leaderboard-ad-wrap {
  display: none !important;
}

.se-hero-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.se-hero-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 20px;
}

.se-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #111111;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0 14px;
}

.se-search-wrap:focus-within {
  border-color: var(--accent-orange-bright);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

.se-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.se-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 13px 12px;
}

.se-search-clear {
  font-size: 20px;
  color: var(--text-muted);
  padding: 4px 8px;
}

/* FILTER PILLS (Screenshot 2) */
.se-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.se-filter-pills::-webkit-scrollbar {
  display: none;
}

.se-filter-pill {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #1a1a1a;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  white-space: nowrap;
  transition: all 0.18s;
}

.se-filter-pill:hover {
  background: #252525;
  color: #fff;
}

.se-filter-pill.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange-bright);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.pill-badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 5px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  vertical-align: middle;
}

.se-filter-pill.active .pill-badge,
.se-nav-link.active .pill-badge {
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

.se-filter-pill.is-empty {
  opacity: 0.55;
}

/* LIVE AUTO-SYNC BAR */
.se-live-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 12px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-muted);
}

.se-sync-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 600;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.se-sync-right {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* EMPTY CATEGORY HELPER CARD */
.se-empty-card {
  text-align: center;
  padding: 40px 20px;
  background: #161616;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  margin: 10px 0 24px;
}

.se-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.se-empty-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.se-empty-card p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.se-empty-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.se-quick-btn {
  padding: 8px 16px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.se-quick-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange-bright);
}

/* GROUPED MATCH LIST (Screenshot 3 structure + Screenshot 2 dark colors) */
.se-table-head {
  display: grid;
  grid-template-columns: 145px 1fr 140px;
  padding: 0 18px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
}

.se-table-head span:last-child {
  text-align: right;
}

.se-sport-group {
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.se-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: linear-gradient(90deg, #c2410c 0%, #ea580c 55%, #9a3412 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.se-group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.se-group-count {
  background: rgba(0, 0, 0, 0.32);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.se-match-row {
  display: grid;
  grid-template-columns: 145px 1fr 140px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg-row);
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}

.se-match-row:hover {
  background: var(--bg-row-hover);
}

.se-match-time-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.se-match-time {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.se-match-time.is-live {
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.se-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
}

.se-match-date {
  font-size: 11px;
  color: var(--text-muted);
}

.se-match-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.se-match-league {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.se-match-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.se-team-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

.se-match-action-col {
  display: flex;
  justify-content: flex-end;
}

.se-stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.16);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #fb923c;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.16s;
}

.se-match-row:hover .se-stream-pill {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange-bright);
}

/* PLAYER VIEW (Exact same size & gutter spacing as crackstreams) */
#player-theater-section {
  max-width: 860px;
  margin: 0 auto;
}

.player-page-view {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.player-match-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.player-match-titles h2 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.player-match-kickoff-time {
  font-size: 12px;
  color: var(--text-muted);
}

.player-action-btns-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #141414;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
}

.player-home-btn:hover {
  border-color: var(--accent-orange-bright);
  color: #fff;
}

.player-video-card {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* Exact 16:9 player ratio */
}

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

.video-placeholder {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  color: var(--text-light);
}

.player-pop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}

.stream-servers-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #141414;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.server-label-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-orange-bright);
}

.server-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-server-choice {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: #1f1f1f;
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
}

.btn-server-choice.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange-bright);
  color: #fff;
}

.player-footer-hint-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ADS (Exact same placement, breakpoints & sizing as crackstreams) */
html:not(.category-active):not(.player-active) .desktop-sidebar-ad,
html:not(.category-active):not(.player-active) .player-ad-300x250-responsive,
html:not(.category-active):not(.player-active) .mobile-sticky-ad-bar {
  display: none !important;
}

.player-ad-300x250-responsive {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.player-ad-300x250-responsive iframe {
  width: 300px !important;
  height: 250px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  display: block;
}

@media (min-width: 1200px) {
  html.player-active .player-ad-300x250-responsive {
    display: block !important;
    position: fixed !important;
    top: 140px !important;
    left: max(14px, calc(50vw - 430px - 300px - 20px)) !important;
    width: 300px !important;
    height: 250px !important;
    z-index: 95;
    pointer-events: auto;
  }

  @media (max-width: 1440px) {
    html.player-active .player-ad-300x250-responsive {
      left: 14px !important;
    }
  }
}

@media (max-width: 1199px) {
  .player-ad-300x250-responsive {
    position: relative !important;
    margin: 14px auto 16px auto !important;
    width: 300px;
    height: 250px;
  }
}

.match-page-mobile-ad-300x250 {
  display: none !important;
}

@media (max-width: 1199px) {
  html.category-active .match-page-mobile-ad-300x250 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 14px auto 18px auto !important;
    width: 300px !important;
    height: 250px !important;
  }
}

.match-page-native-banner-card {
  margin-top: 18px;
  padding: 14px;
  background: #151515;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.native-ad-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.desktop-sidebar-ad {
  display: none !important;
  pointer-events: auto;
  z-index: 90;
  width: 160px !important;
  max-width: 160px !important;
  height: 600px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
}

.desktop-ad-wrapper {
  display: block !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
  height: 600px !important;
  min-height: 600px !important;
  max-height: 600px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.desktop-ad-wrapper iframe,
.desktop-sidebar-ad iframe {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 600px !important;
  min-height: 600px !important;
  max-height: 600px !important;
  border: none !important;
  outline: none !important;
  display: block !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1200px) {
  html.category-active .desktop-sidebar-ad--right {
    display: flex !important;
    position: fixed !important;
    top: 80px;
    right: max(12px, calc(50vw - 490px - 160px - 18px));
    width: 160px !important;
    max-width: 160px !important;
    height: 600px !important;
    overflow: hidden !important;
  }

  html.player-active .desktop-sidebar-ad--right {
    display: flex !important;
    position: fixed !important;
    top: 90px;
    right: max(14px, calc(50vw - 430px - 160px - 20px));
    width: 160px !important;
    max-width: 160px !important;
    height: 600px !important;
    overflow: hidden !important;
  }

  @media (max-width: 1440px) {
    html.category-active .desktop-sidebar-ad--right,
    html.player-active .desktop-sidebar-ad--right {
      right: 14px !important;
    }
  }
}

.mobile-sticky-ad-bar {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-sticky-ad-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 60px;
    z-index: 99999 !important;
    background: rgba(8, 10, 16, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 2px 0;
  }

  .mobile-sticky-ad-container {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  html.category-active .mobile-sticky-ad-container--match {
    display: flex !important;
  }

  html.category-active .mobile-sticky-ad-container--player {
    display: none !important;
  }

  html.player-active .mobile-sticky-ad-container--player {
    display: flex !important;
  }

  html.player-active .mobile-sticky-ad-container--match {
    display: none !important;
  }

  .mobile-sticky-ad-container--match {
    transform-origin: center bottom;
    transform: scale(calc(min(1, (100vw - 8px) / 468)));
  }

  .mobile-sticky-ad-container--match iframe {
    width: 468px !important;
    height: 60px !important;
    max-width: 100% !important;
    border: none;
    display: block;
    margin: 0 auto;
  }

  .mobile-sticky-ad-container--player iframe {
    width: 728px !important;
    height: 90px !important;
    max-width: none !important;
    border: none;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
    transform-origin: center center;
    transform: scale(calc(min(1, (100vw - 12px) / 728)));
  }

  html.player-active .mobile-sticky-ad-bar {
    min-height: calc(90px * min(1, (100vw - 12px) / 728) + 6px);
  }
}

/* SEO ARTICLE */
.se-article-card {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

.se-article-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 22px 0 10px;
}

.se-article-card h2:first-child {
  margin-top: 0;
}

.se-article-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-orange-bright);
  margin: 18px 0 8px;
}

.se-article-card p,
.se-article-card li {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.se-article-card ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.se-banner-box {
  margin: 22px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.se-banner-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* MULTIVIEW */
.multiview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.multiview-grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.multiview-slot {
  background: #141414;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1d1d1d;
  font-size: 12px;
  font-weight: 700;
}

.slot-header select {
  background: #111;
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 220px;
}

.slot-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* FOOTER & MODALS */
.se-footer {
  border-top: 1px solid var(--border-subtle);
  background: #0a0c10;
  padding: 36px 0 160px !important;
  margin-top: 36px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.se-footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 18px 0 16px !important;
}

.se-footer-btn,
.se-footer-links button {
  background: #181d28 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
}

.se-footer-btn:hover,
.se-footer-btn:focus,
.se-footer-links button:hover,
.se-footer-links button:focus {
  background: var(--accent-orange, #ea580c) !important;
  border-color: var(--accent-orange-bright, #f97316) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 16px rgba(234, 88, 12, 0.5) !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #1b1b1b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  font-size: 22px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(234, 88, 12, 0.25);
  border-top-color: var(--accent-orange-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ LEADERBOARD 728x90 AD (desktop only, between matches & article) ============ */
.se-leaderboard-ad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 8px;
  width: 100%;
  max-width: 760px;
  min-height: 90px;
  overflow: hidden;
}

/* ============================================================
   MOBILE RESPONSIVE OVERHAUL — 820px and 480px breakpoints
   ============================================================ */
@media (max-width: 820px) {

  /* --- NAV --- */
  .se-nav-links { display: none; }
  .se-mobile-toggle { display: inline-flex; }
  .se-table-head { display: none; }

  /* --- HEADER --- */
  .se-header-inner { height: 54px; }
  .se-header-actions { gap: 6px; }
  .se-pill-btn { padding: 6px 10px; font-size: 11px; }

  /* --- HERO SECTION --- */
  .se-hero-search-card { padding: 18px 14px; }
  .se-hero-title { font-size: 17px; line-height: 1.35; }
  .se-hero-sub { font-size: 13px; line-height: 1.6; }
  .se-main { padding: 14px 0 140px; }

  /* --- LIVE SYNC BAR --- */
  .se-live-sync-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .se-sync-right { font-size: 10px; }

  /* --- FILTER PILLS --- */
  .se-filter-pills { gap: 6px; padding: 10px 0; }
  .se-filter-pill { padding: 6px 11px; font-size: 11px; }

  /* --- MATCH ROWS --- */
  .se-match-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  .se-match-action-col { justify-content: flex-start; }
  .se-match-teams { font-size: 13px; }
  .se-match-time { font-size: 11px; }

  /* --- MATCH PAGE 300x250 AD (centered on mobile) --- */
  .match-page-mobile-ad-300x250 {
    display: flex;
    justify-content: center;
    margin: 10px auto 12px;
    overflow: hidden;
    max-width: 100%;
  }

  /* --- PLAYER PAGE LAYOUT (Exact CrackStream layout) --- */
  #player-theater-section {
    max-width: 100%;
    width: 100%;
  }
  .player-page-view {
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }
  .player-match-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .player-match-titles h2 { font-size: 15px; line-height: 1.3; }
  .player-match-kickoff-time { font-size: 11px; }
  .player-action-btns-group { width: 100%; gap: 8px; }
  .player-home-btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    text-align: center;
  }

  /* --- PLAYER AD 300x250 on mobile: Exact CrackStream placement --- */
  .player-ad-300x250-responsive {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    margin: 12px auto 14px auto !important;
    width: 300px !important;
    height: 250px !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .player-video-card {
    margin-bottom: 12px;
  }

  /* --- STREAM SERVERS BAR --- */
  .stream-servers-bar {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
  }
  .server-buttons-container { gap: 6px; flex-wrap: wrap; }
  .btn-server-choice { font-size: 11px; padding: 6px 10px; }

  .player-footer-hint-bar {
    font-size: 11px;
    gap: 6px;
    margin: 8px 0 12px;
  }

  /* --- DESKTOP SIDEBAR AD: hide on mobile --- */
  .desktop-sidebar-ad--right { display: none !important; }

  /* --- LEADERBOARD 728x90: hide on small screens --- */
  .se-leaderboard-ad-wrap { display: none !important; }

  /* --- ARTICLE SECTION --- */
  .se-article-card { padding: 16px 14px; margin-top: 20px; }
  .se-article-card h2 { font-size: 17px; margin: 16px 0 8px; }
  .se-article-card h3 { font-size: 14px; margin: 14px 0 6px; }
  .se-article-card h4 { font-size: 13px; color: #fff; margin: 12px 0 6px; }
  .se-article-card p { font-size: 13.5px; line-height: 1.65; }
  .se-banner-box img { width: 100%; height: auto; }

  /* --- MULTI-VIEW --- */
  .multiview-grid { grid-template-columns: 1fr; }

  /* --- FOOTER --- */
  .se-footer { padding-bottom: 140px; }
  .se-footer-links { flex-wrap: wrap; gap: 8px; }

  /* --- EMPTY CARD --- */
  .se-empty-card { padding: 28px 14px; }
  .se-empty-card h3 { font-size: 15px; }
  .se-quick-btn { font-size: 11px; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .se-header-inner { height: 50px; }
  .se-logo-wordmark { font-size: 16px; }
  .se-logo-mark { width: 28px; height: 28px; font-size: 12px; }
  .se-hero-title { font-size: 15px; }
  .se-hero-sub { font-size: 12.5px; }
  .se-hero-search-card { padding: 14px 12px; }
  .container { padding: 0 12px; }
  .player-page-view { padding: 10px; }
  .player-match-titles h2 { font-size: 13px; }
  .btn-server-choice { font-size: 10px; padding: 5px 8px; }
  .se-match-row { padding: 10px 12px; }
  .se-filter-pill { padding: 5px 9px; font-size: 10.5px; }
  .se-article-card h2 { font-size: 15px; }
  .se-article-card h3 { font-size: 13px; }
}