/*
Theme Name: EgyWp-theme
Author: EgyWp
Description: RTL football WordPress theme with switchable live-score data providers and 365Scores as the primary source.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: egywp-theme
*/

:root {
  --egy-container: 1368px;
  --egy-bg: #e9edf3;
  --egy-surface: #ffffff;
  --egy-soft: #f3f6fa;
  --egy-soft-2: #dfe5ee;
  --egy-border: #cfd6e0;
  --egy-border-soft: #e4e8ef;
  --egy-text: #07111f;
  --egy-muted: #6f7d90;
  --egy-primary: #1264d6;
  --egy-primary-strong: #0f58c4;
  --egy-accent: #21a65b;
  --egy-live: #ef1d2d;
  --egy-warning: #f2b704;
  --egy-radius: 10px;
  --egy-shadow: 0 2px 8px rgba(25, 35, 54, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  background: var(--egy-bg);
  color: var(--egy-text);
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

body.egy-dark-mode {
  --egy-bg: #101827;
  --egy-surface: #162132;
  --egy-soft: #1e2b3f;
  --egy-soft-2: #26364d;
  --egy-border: #314259;
  --egy-border-soft: #27384f;
  --egy-text: #eef5ff;
  --egy-muted: #a7b4c7;
  --egy-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  background: var(--egy-bg);
}

.egy-dark-mode .egy-search input,
.egy-dark-mode .egy-filter-panel select,
.egy-dark-mode .egy-matches-filter select,
.egy-dark-mode .egy-scorers-filter select,
.egy-dark-mode .egy-filter-buttons button,
.egy-dark-mode .egy-country-filter button,
.egy-dark-mode .egy-line-score,
.egy-dark-mode .egy-counter,
.egy-dark-mode .egy-list-count {
  background: var(--egy-soft-2);
  color: var(--egy-text);
}

.egy-dark-mode .egy-login,
.egy-dark-mode .egy-news-card,
.egy-dark-mode .egy-league-card__body,
.egy-dark-mode .egy-league-card__foot {
  background: var(--egy-surface);
  color: var(--egy-text);
}

.egy-dark-mode .egy-player-box iframe,
.egy-dark-mode .egy-player-placeholder {
  background: #0a1020;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

.egy-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--egy-surface);
  border-bottom: 1px solid var(--egy-border);
  box-shadow: 0 1px 5px rgba(20, 30, 45, 0.08);
}

.egy-header-inner {
  width: min(var(--egy-container), 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.egy-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.egy-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--egy-primary);
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.egy-logo__mark::before {
  content: "";
  position: absolute;
  inset: 9px 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.egy-logo__text strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.egy-logo__text strong::first-letter {
  color: var(--egy-primary);
}

.egy-logo__text small {
  display: block;
  color: var(--egy-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
}

.egy-search {
  flex: 1;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}

.egy-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--egy-border);
  border-radius: 8px;
  background: #d9dee7;
  color: var(--egy-text);
  padding: 0 42px 0 14px;
  outline: 0;
}

.egy-search span {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #7c8798;
  border-radius: 50%;
  transform: translateY(-50%);
}

.egy-search span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #7c8798;
  transform: rotate(45deg);
  left: -6px;
  bottom: -3px;
}

.egy-auth {
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.egy-login,
.egy-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 7px;
  font-weight: 900;
  white-space: nowrap;
}

.egy-login {
  padding: 0 17px;
  background: #fff;
  border: 1px solid var(--egy-border);
  color: var(--egy-text);
}

.egy-subscribe {
  padding: 0 18px;
  background: var(--egy-accent);
  color: #fff;
}

.egy-mode-button,
.egy-menu-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #dde3ec;
  position: relative;
  cursor: pointer;
}

.egy-mode-button::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #7d8999;
  border-radius: 50%;
  border-right-color: transparent;
}

.egy-mode-button.is-active {
  background: #152033;
}

.egy-mode-button.is-active::before {
  border-color: #ffd166;
  border-right-color: transparent;
}

.egy-menu-toggle {
  display: none;
  border-radius: 8px;
}

.egy-menu-toggle span[aria-hidden="true"],
.egy-menu-toggle span[aria-hidden="true"]::before,
.egy-menu-toggle span[aria-hidden="true"]::after {
  position: absolute;
  right: 9px;
  width: 18px;
  height: 2px;
  background: #526072;
  content: "";
}

.egy-menu-toggle span[aria-hidden="true"] {
  top: 17px;
}

.egy-menu-toggle span[aria-hidden="true"]::before {
  top: -6px;
  right: 0;
}

.egy-menu-toggle span[aria-hidden="true"]::after {
  top: 6px;
  right: 0;
}

.egy-shell {
  width: min(var(--egy-container), 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  direction: rtl;
}

.egy-shell.no-right-sidebar {
  grid-template-columns: minmax(0, 1fr) 210px;
}

.egy-shell.no-left-sidebar {
  grid-template-columns: 210px minmax(0, 1fr);
}

.egy-shell.no-right-sidebar.no-left-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.egy-sidebar-right,
.egy-sidebar-left {
  background: var(--egy-surface);
  min-height: calc(100vh - 64px);
  border-inline: 1px solid var(--egy-border);
  position: sticky;
  top: 64px;
  align-self: start;
}

.egy-main {
  min-width: 0;
  padding: 22px 18px 36px;
}

.egy-content {
  max-width: 930px;
  margin: 0 auto;
}

.egy-sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1px solid var(--egy-border);
}

.egy-sidebar-brand p {
  margin: 0;
  color: var(--egy-muted);
  font-size: 12px;
  line-height: 1.7;
}

.egy-sidebar-brand span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--egy-live);
  font-size: 12px;
  font-weight: 900;
}

.egy-sidebar-brand span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--egy-live);
}

.egy-main-nav {
  padding: 10px 0;
}

.egy-main-nav a {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6d80;
  font-weight: 800;
  border-right: 4px solid transparent;
}

.egy-main-nav a:hover,
.egy-main-nav a.is-active {
  background: #e3edf8;
  color: var(--egy-primary);
  border-right-color: var(--egy-primary);
}

.nav-ico,
.quick {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #edf4ff;
  color: var(--egy-primary);
  font-size: 17px;
  line-height: 1;
}

.egy-main-nav a.is-active .nav-ico,
.egy-main-nav a:hover .nav-ico {
  background: var(--egy-primary);
  color: #fff;
}

.egy-sidebar-left {
  padding: 12px 14px;
}

.egy-left-section {
  margin-bottom: 18px;
}

.egy-left-section h2 {
  margin: 0 0 10px;
  color: #59677a;
  font-size: 13px;
  font-weight: 900;
}

.egy-quick-links {
  display: grid;
  gap: 8px;
}

.egy-quick-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #677488;
  font-size: 13px;
  font-weight: 800;
}

.egy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.egy-badges a {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.b-blue { background: #dbeafe; color: #1d5fd0; }
.b-green { background: #d8f8e7; color: #058347; }
.b-yellow { background: #fff1bf; color: #8c6500; }
.b-purple { background: #f0dbff; color: #8b28c7; }
.b-orange { background: #ffe2cb; color: #d55300; }
.b-red { background: #ffd6d6; color: #d71927; }
.b-pink { background: #ffe2ee; color: #d91a66; }
.b-teal { background: #d9fbf2; color: #087e73; }
.b-cyan { background: #c8f4ff; color: #007995; }
.b-mint { background: #c8f7dc; color: #027a40; }
.b-gold { background: #ffe5a9; color: #b86b00; }

.egy-left-foot {
  border-top: 1px solid var(--egy-border);
  padding-top: 14px;
  color: #8a95a4;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.egy-left-foot p {
  margin: 0 0 6px;
}

.egy-ad-slot {
  margin: 16px;
}

.egy-main > .egy-ad-slot {
  max-width: 930px;
  margin: 0 auto 16px;
}

.egy-main > .egy-ad-slot + .egy-content {
  margin-top: 0;
}

.egy-main > .egy-content + .egy-ad-slot {
  margin-top: 18px;
  margin-bottom: 0;
}

.egy-ad-slot.is-placeholder {
  min-height: 92px;
  border: 1px dashed #cbd7e6;
  border-radius: 12px;
  background: #f0f6ff;
  color: #718198;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 3px;
}

.egy-ad-slot strong {
  font-size: 12px;
}

.egy-ad-slot small {
  font-size: 11px;
}

.egy-home-hero {
  min-height: 132px;
  margin-bottom: 18px;
  padding: 26px 30px;
  border-radius: 12px;
  color: var(--egy-hero-text, #fff);
  background: linear-gradient(135deg, var(--egy-hero-bg, #079447), var(--egy-hero-bg-2, #0b5a3b));
  box-shadow: var(--egy-shadow);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.egy-hero-image {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  margin-inline-start: auto;
  object-fit: contain;
}

.egy-home-hero::before,
.egy-home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.egy-home-hero::before {
  width: 86px;
  height: 86px;
  right: 34px;
  top: 28px;
}

.egy-home-hero::after {
  width: 44px;
  height: 44px;
  right: 56px;
  top: 50px;
}

.egy-home-hero > div {
  position: relative;
  z-index: 1;
}

.egy-home-hero span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.78;
}

.egy-home-hero h1 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 900;
}

.egy-home-hero p {
  margin: 0;
  font-size: 13px;
  opacity: 0.82;
}

.egy-hero-pills {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.egy-hero-pills b,
.egy-hero-pills small {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.egy-hero-pills b {
  background: var(--egy-live);
}

.egy-hero-pills small {
  background: rgba(255, 255, 255, 0.22);
}

.egy-home-tabs,
.egy-filter-panel,
.egy-matches-filter,
.egy-league-search-panel,
.egy-scorers-filter,
.egy-league-tabs {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
}

.egy-tabs-bar {
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.egy-tabs-bar button,
.egy-league-tabs button,
.egy-filter-buttons button,
.egy-country-filter button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6f7d90;
  font-weight: 900;
  cursor: pointer;
}

.egy-tabs-bar button.is-active,
.egy-league-tabs button.is-active,
.egy-filter-buttons button.is-active,
.egy-country-filter button.is-active {
  background: var(--egy-primary);
  color: #fff;
}

.egy-tabs-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 5px;
  border-radius: 999px;
  background: var(--egy-live);
  color: #fff;
  font-size: 11px;
}

.egy-filter-panel,
.egy-matches-filter,
.egy-league-search-panel,
.egy-scorers-filter {
  margin: 16px 0;
  padding: 12px;
}

.egy-filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.egy-filter-panel select,
.egy-matches-filter select,
.egy-scorers-filter select {
  height: 40px;
  min-width: 160px;
  border: 1px solid var(--egy-border);
  border-radius: 8px;
  background: #dfe5ee;
  color: var(--egy-text);
  padding: 0 12px;
  font-weight: 800;
}

.egy-filter-buttons,
.egy-country-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.egy-filter-buttons button {
  height: 32px;
  padding: 0 12px;
  background: #dfe5ee;
  font-size: 12px;
}

.egy-tab-panel {
  display: none;
}

.egy-tab-panel.is-active {
  display: block;
}

.egy-match-grid,
.egy-league-grid,
.egy-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.egy-card-match {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 11px;
  box-shadow: var(--egy-shadow);
  overflow: hidden;
}

.egy-card-match__visual {
  min-height: 128px;
  padding: 12px 14px 10px;
  color: #fff;
  background: #111b31;
}

.tone-navy { background: linear-gradient(135deg, #15233d, #0a1327); }
.tone-green { background: linear-gradient(135deg, #0d5a36, #071827); }
.tone-purple { background: linear-gradient(135deg, #4c167b, #11152f); }
.tone-indigo { background: linear-gradient(135deg, #22256f, #101a31); }
.tone-teal { background: linear-gradient(135deg, #075b58, #0b1929); }
.tone-wine { background: linear-gradient(135deg, #782027, #171326); }
.tone-blue { background: linear-gradient(135deg, #1a429a, #0b1832); }

.egy-card-match__badges {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.egy-state {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.egy-state {
  background: var(--egy-primary);
  color: #fff;
}

.is-live .egy-state {
  background: var(--egy-live);
}

.is-finished .egy-state {
  background: #6d7889;
}

.egy-card-match__teams {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.egy-card-team {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.egy-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #061223;
  font-weight: 900;
}

.egy-card-team strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.egy-card-team small,
.egy-line-team small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
}

.egy-card-score strong {
  display: block;
  color: #fff;
  font-size: 23px;
  line-height: 1.1;
  direction: ltr;
}

.egy-card-score small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.egy-card-match__visual p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  text-align: center;
}

.egy-card-match__body {
  padding: 12px 12px 10px;
}

.egy-league-name {
  display: inline-flex;
  color: #718198;
  font-size: 12px;
  text-align: left;
}

.egy-source-badge {
  float: right;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.egy-source-badge.is-imported {
  background: #dcfce7;
  color: #166534;
}

.egy-source-badge.is-live-api {
  background: #dbeafe;
  color: #1d4ed8;
}

.egy-source-badge.is-placeholder {
  background: #fee2e2;
  color: #991b1b;
}

.egy-card-match h3 {
  margin: 5px 0 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.egy-watch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 7px;
  background: var(--egy-primary);
  color: #fff;
  font-weight: 900;
}

.egy-share-trigger {
  width: 100%;
  min-height: 32px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--egy-border);
  border-radius: 7px;
  background: #f3f7fc;
  color: var(--egy-muted);
  cursor: pointer;
  font-weight: 900;
}

.egy-share-trigger.is-copied {
  border-color: var(--egy-accent);
  color: var(--egy-accent);
}

.is-live .egy-watch-button {
  background: var(--egy-live);
}

.egy-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}

.egy-page-title-row h1 {
  margin: 0;
  padding-inline-end: 14px;
  border-inline-end: 4px solid var(--egy-primary);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
}

.egy-page-title-row p {
  margin: 4px 18px 0 0;
  color: var(--egy-muted);
  font-size: 13px;
}

.egy-counter,
.egy-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dfe5ee;
  color: #657386;
  font-weight: 900;
}

.egy-matches-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.egy-matches-filter span {
  margin-inline-start: auto;
  color: var(--egy-live);
  font-size: 12px;
  font-weight: 800;
}

.egy-competition-group {
  margin-bottom: 22px;
}

.egy-competition-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.egy-competition-group header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.egy-competition-group h2 {
  margin: 0;
  padding-inline-end: 10px;
  border-inline-end: 3px solid var(--egy-warning);
  font-size: 15px;
  font-weight: 900;
}

.egy-competition-group header span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dfe5ee;
  color: #748296;
  font-size: 11px;
  font-weight: 900;
}

.egy-competition-group header a {
  color: var(--egy-primary);
  font-size: 13px;
  font-weight: 900;
}

.egy-match-lines {
  display: grid;
  gap: 4px;
}

.egy-match-line {
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr) 170px 100px;
  align-items: center;
  gap: 12px;
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
}

.egy-match-line__meta span,
.egy-match-line__venue {
  display: block;
  color: #718198;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.egy-match-line__meta b {
  display: inline-flex;
  margin-top: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--egy-primary);
  color: #fff;
  font-size: 11px;
}

.egy-match-line.is-live .egy-match-line__meta b {
  background: var(--egy-live);
}

.egy-match-line.is-finished .egy-match-line__meta b {
  background: #697586;
}

.egy-match-line__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.egy-match-line__teams strong {
  font-weight: 900;
  white-space: nowrap;
}

.egy-match-line__teams .egy-code {
  min-width: 30px;
  width: 30px;
  height: 30px;
  color: var(--egy-text);
  background: #dbe6f7;
}

.egy-line-score {
  min-width: 68px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #dfe5ee;
  color: var(--egy-text);
  text-align: center;
  direction: ltr;
  font-size: 18px;
  font-weight: 900;
}

.egy-match-line.is-scheduled .egy-line-score {
  background: transparent;
  color: var(--egy-primary);
  font-size: 16px;
}

.egy-line-action {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8f1ff;
  border: 1px solid #bad3f6;
  color: var(--egy-primary);
  font-size: 12px;
  font-weight: 900;
}

.egy-match-line.is-live .egy-line-action {
  background: var(--egy-live);
  border-color: var(--egy-live);
  color: #fff;
}

.egy-match-line.is-finished .egy-line-action {
  background: #dfe5ee;
  border-color: #dfe5ee;
  color: #677486;
}

.egy-league-search-panel input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--egy-border);
  border-radius: 8px;
  background: #dfe5ee;
  padding: 0 16px;
  outline: 0;
}

.egy-country-filter {
  margin-top: 12px;
  justify-content: flex-start;
}

.egy-country-filter button {
  height: 30px;
  padding: 0 13px;
  background: #dfe5ee;
  font-size: 12px;
}

.egy-list-count {
  margin: 0 0 16px;
  background: transparent;
  padding: 0;
  color: #667589;
}

.egy-league-card {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
  overflow: hidden;
}

.egy-league-card__top {
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1b68e5, #1746c9);
}

.variant-purple .egy-league-card__top { background: linear-gradient(135deg, #a313eb, #8317c8); }
.variant-green .egy-league-card__top { background: linear-gradient(135deg, #02a743, #017b33); }
.variant-red .egy-league-card__top { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.variant-teal .egy-league-card__top { background: linear-gradient(135deg, #0f766e, #115e59); }

.egy-league-card__logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.egy-trophy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  display: inline-block;
}

.egy-trophy-icon::before {
  content: "";
  position: absolute;
  right: 17px;
  top: 13px;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.egy-trophy-icon::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 16px;
  height: 4px;
  background: #fff;
  border-radius: 999px;
}

.egy-status-dot {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.egy-league-card__body {
  padding: 18px 18px 12px;
}

.egy-league-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  text-align: left;
  font-weight: 900;
}

.egy-league-card p {
  margin: 7px 0;
  color: #6f7d90;
  font-size: 13px;
  text-align: left;
}

.egy-league-card__foot {
  margin: 0 18px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--egy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.egy-league-card__foot a {
  color: var(--egy-primary);
  font-weight: 900;
}

.egy-league-card__foot span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #dfe5ee;
  color: #667589;
  font-size: 12px;
  font-weight: 900;
}

.egy-breadcrumb {
  margin: 0 0 16px;
  color: #657386;
  font-weight: 800;
}

.egy-league-hero {
  min-height: 140px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  border: 1px solid var(--egy-border);
  border-radius: 13px;
  box-shadow: var(--egy-shadow);
}

.egy-league-hero__icon {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  background: var(--egy-surface);
  display: grid;
  place-items: center;
  box-shadow: var(--egy-shadow);
}

.egy-league-hero__icon .egy-trophy-icon {
  background: var(--egy-primary);
}

.egy-league-hero__icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.egy-league-hero__content {
  min-width: 0;
  flex: 1;
}

.egy-league-hero h1 {
  margin: 4px 0;
  font-size: 23px;
  font-weight: 900;
}

.egy-league-hero span {
  color: #068a43;
  font-size: 12px;
  font-weight: 900;
}

.egy-league-hero p {
  margin: 0;
  color: var(--egy-muted);
}

.egy-league-hero b {
  margin-inline-start: 12px;
  color: var(--egy-primary);
}

.egy-league-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  margin-inline-start: auto;
}

.egy-league-stats div {
  min-height: 70px;
  padding: 12px;
  display: grid;
  align-content: center;
  border: 1px solid var(--egy-border);
  border-radius: 12px;
  background: var(--egy-surface);
  text-align: center;
}

.egy-league-stats strong {
  color: var(--egy-primary);
  font-size: 20px;
  font-weight: 900;
}

.egy-league-stats span {
  color: var(--egy-muted);
  font-size: 12px;
}

.egy-league-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 7px;
  margin: 16px 0;
}

.egy-league-detail {
  margin-top: 16px;
}

.egy-match-lines.is-league .egy-match-line {
  grid-template-columns: minmax(260px, 1fr) 120px;
}

.egy-match-lines.is-league .egy-match-line__meta,
.egy-match-lines.is-league .egy-match-line__venue {
  display: none;
}

.egy-top-scorers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.egy-top-scorer {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--egy-border);
  border-radius: 11px;
  box-shadow: var(--egy-shadow);
  text-align: center;
  background: linear-gradient(180deg, #fff9df, #fff);
}

.egy-top-scorer.rank-2 {
  background: linear-gradient(180deg, #eef1f6, #fff);
}

.egy-top-scorer.rank-3 {
  background: linear-gradient(180deg, #fff0e3, #fff);
}

.egy-medal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--egy-warning);
  color: #5c4500;
  font-weight: 900;
}

.egy-avatar-code {
  width: 42px;
  height: 42px;
  margin: 10px auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe7f8;
  border: 1px solid #b9cce8;
  color: #4d6688;
  font-size: 12px;
  font-weight: 900;
}

.egy-top-scorer h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
}

.egy-top-scorer p,
.egy-top-scorer small {
  margin: 0;
  color: var(--egy-muted);
  font-size: 12px;
}

.egy-top-scorer strong {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 32px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--egy-primary);
  color: #fff;
  font-size: 18px;
}

.egy-scorers-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.egy-scorers-filter span {
  margin-inline-end: auto;
  color: #657386;
  font-weight: 800;
}

.egy-table-card {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 11px;
  box-shadow: var(--egy-shadow);
  overflow: hidden;
}

.egy-table-card > header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--egy-border);
  font-size: 16px;
  font-weight: 900;
}

.egy-responsive-table {
  overflow-x: auto;
}

.egy-scorers-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.egy-scorers-table th,
.egy-scorers-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--egy-border-soft);
  color: #5e6c80;
  text-align: right;
  font-size: 12px;
  vertical-align: middle;
}

.egy-scorers-table th {
  background: #f7f9fc;
  color: #778498;
  font-weight: 900;
}

.egy-scorers-table tr.is-top td {
  background: #fffbea;
}

.egy-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.egy-player-cell .egy-avatar-code {
  margin: 0;
}

.egy-player-cell strong,
.egy-player-cell small {
  display: block;
}

.egy-player-cell strong {
  color: var(--egy-text);
  font-size: 13px;
  font-weight: 900;
}

.egy-goal-pill {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--egy-primary);
  color: #fff;
  font-weight: 900;
}

.egy-rate-pill {
  padding: 6px 9px;
  border-radius: 7px;
  background: #d7f9e4;
  color: #057a3d;
  font-weight: 900;
}

.egy-news-card {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
}

.egy-news-card a {
  display: block;
  padding: 16px;
}

.egy-news-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.egy-news-card p {
  margin: 0;
  color: var(--egy-muted);
  line-height: 1.8;
}

.egywp-entry {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 11px;
  box-shadow: var(--egy-shadow);
  padding: 22px;
  line-height: 2;
}

.egywp-entry h1 {
  margin-top: 0;
}

.egywp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.egywp-news-card {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
}

.egywp-news-card a {
  display: block;
  padding: 16px;
}

/* Legacy shortcode compatibility. */
.egywp-table-wrap {
  overflow-x: auto;
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 10px;
}

.egywp-matches-table {
  width: 100%;
  border-collapse: collapse;
}

.egywp-matches-table th,
.egywp-matches-table td {
  padding: 12px;
  border-bottom: 1px solid var(--egy-border-soft);
}

.egywp-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.egywp-team-logo,
.egywp-team-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
}

.egywp-team-placeholder {
  display: grid;
  place-items: center;
  background: #dfe5ee;
  color: var(--egy-primary);
  font-size: 11px;
  overflow: hidden;
  position: relative;
}

.egywp-team-placeholder img {
  height: 100%;
  width: 100%;
}

.egywp-team-placeholder small {
  position: absolute;
  inset: auto 0 2px;
  color: #1f3558;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.egywp-status-badge,
.egywp-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--egy-primary);
  font-size: 12px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.egywp-action-button.is-watch {
  background: var(--egy-live);
  color: #fff;
}

.egywp-action-button.is-disabled {
  background: #eef2f7;
  color: #94a3b8;
  cursor: default;
}

.egy-line-team {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.egy-line-team .egywp-team-logo,
.egy-line-team .egywp-team-placeholder {
  height: 24px;
  width: 24px;
}

.egy-empty-state {
  background: #fff;
  border: 1px dashed var(--egy-border);
  border-radius: 10px;
  color: #64748b;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  text-align: center;
}

.egy-player-message {
  margin: 12px 0 0;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.egywp-reminder-modal[hidden] {
  display: none;
}

.egywp-reminder-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.54);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 9999;
}

.egywp-reminder-dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  max-width: 440px;
  padding: 22px;
  position: relative;
  width: 100%;
}

.egywp-reminder-dialog h2 {
  margin: 0 0 8px;
}

.egywp-reminder-close {
  background: #eef2f7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 30px;
  inset-inline-end: 14px;
  position: absolute;
  top: 14px;
  width: 30px;
}

.egywp-reminder-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.egywp-reminder-feedback {
  color: #166534;
  font-weight: 800;
  margin: 12px 0 0;
}

.egywp-diagnostic-json {
  background: #111827;
  border-radius: 8px;
  color: #e5e7eb;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
}

.egywp-reminders-list {
  background: #fff;
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  box-shadow: var(--egy-shadow);
  list-style: none;
  margin: 0;
  padding: 0;
}

.egywp-reminders-list li {
  align-items: center;
  border-bottom: 1px solid var(--egy-border-soft);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.egywp-reminders-list li:last-child {
  border-bottom: 0;
}

.egy-comments-area {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 12px;
  box-shadow: var(--egy-shadow);
  margin: 16px 0;
  padding: 18px;
}

.egy-comments-area header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.egy-comments-area h2,
.egy-comments-area h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.egy-comments-area header span {
  background: #eef4ff;
  border-radius: 999px;
  color: var(--egy-primary);
  font-weight: 900;
  padding: 4px 10px;
}

.egy-comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.egy-comment-list .comment {
  border-bottom: 1px solid var(--egy-border-soft);
  padding: 12px 0;
}

.egy-comment-list .comment:last-child {
  border-bottom: 0;
}

.egy-comments-area textarea,
.egy-comments-area input[type="text"],
.egy-comments-area input[type="email"],
.egy-comments-area input[type="url"] {
  width: 100%;
  border: 1px solid var(--egy-border);
  border-radius: 10px;
  background: var(--egy-soft);
  color: var(--egy-text);
  padding: 11px 12px;
}

.egy-comments-area .submit {
  border: 0;
  border-radius: 10px;
  background: var(--egy-primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 18px;
}

@media (max-width: 1180px) {
  .egy-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .egy-sidebar-left {
    display: none;
  }

  .egy-content {
    max-width: 930px;
  }
}

@media (max-width: 900px) {
  .egy-menu-toggle {
    display: inline-block;
  }

  .egy-logo {
    min-width: auto;
  }

  .egy-search {
    max-width: none;
  }

  .egy-auth {
    min-width: auto;
  }

  .egy-login,
  .egy-subscribe {
    display: none;
  }

  .egy-shell,
  .egy-shell.no-left-sidebar,
  .egy-shell.no-right-sidebar {
    display: block;
  }

  .egy-sidebar-right {
    position: fixed;
    right: 0;
    top: 64px;
    z-index: 90;
    width: 260px;
    transform: translateX(105%);
    transition: transform 180ms ease;
    box-shadow: -12px 0 30px rgba(18, 27, 43, 0.18);
  }

  .egy-shell.is-sidebar-open .egy-sidebar-right {
    transform: translateX(0);
  }

  .egy-main {
    padding: 16px 12px 28px;
  }

  .egy-content {
    max-width: none;
  }

  .egy-match-grid,
  .egy-league-grid,
  .egy-news-grid,
  .egy-top-scorers,
  .egywp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egy-match-line {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .egy-match-line__teams {
    flex-wrap: wrap;
  }

  .egy-filter-panel,
  .egy-matches-filter,
  .egy-scorers-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .egy-matches-filter span,
  .egy-scorers-filter span {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .egy-header-inner {
    height: 72px;
    padding: 0 12px;
    gap: 8px;
  }

  .egy-site-header {
    border-bottom-color: #d7dde7;
  }

  .egy-menu-toggle,
  .egy-mode-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .egy-logo__text small {
    display: none;
  }

  .egy-logo__text strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .egy-logo__mark,
  .egy-logo__image {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .egy-logo {
    gap: 7px;
  }

  .egy-search {
    min-width: 0;
    order: 3;
    flex: 1 1 46%;
  }

  .egy-search input {
    height: 42px;
    padding-inline: 38px 10px;
    border-radius: 12px;
    background: #e3e8f1;
    font-size: 13px;
  }

  .egy-home-hero {
    min-height: 150px;
    padding: 22px;
    border-radius: 0 0 18px 18px;
    margin-inline: -12px;
  }

  .egy-home-hero h1,
  .egy-page-title-row h1 {
    font-size: 21px;
  }

  .egy-tabs-bar,
  .egy-league-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .egy-match-grid,
  .egy-league-grid,
  .egy-news-grid,
  .egy-top-scorers,
  .egywp-grid {
    grid-template-columns: 1fr;
  }

  .egy-card-match__teams {
    grid-template-columns: 1fr 70px 1fr;
  }

  .egy-card-match {
    border-radius: 16px;
  }

  .egy-card-match__visual {
    min-height: 190px;
    padding: 18px;
  }

  .egy-card-match__teams {
    gap: 12px;
  }

  .egy-card-team strong {
    font-size: 15px;
  }

  .egy-card-score strong {
    font-size: 28px;
  }

  .egy-filter-panel,
  .egy-matches-filter {
    border-radius: 14px;
    padding: 14px;
  }

  .egy-filter-buttons {
    justify-content: center;
  }

  .egy-filter-buttons button {
    min-width: 74px;
    height: 42px;
    border-radius: 12px;
    font-size: 13px;
  }

  .egy-tabs-bar button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
  }

  .egy-match-line {
    border-radius: 16px;
    padding: 14px;
  }

  .egy-match-line__teams {
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
  }

  .egy-line-team {
    display: grid;
    justify-items: center;
    gap: 5px;
  }

  .egy-line-score {
    min-width: 64px;
  }

  .egy-share-box {
    align-items: stretch;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .egy-share-box strong {
    grid-column: 1 / -1;
    margin-inline-end: 0;
  }

  .egy-share-box a,
  .egy-share-box button {
    justify-content: center;
    min-height: 44px;
  }

  .egy-league-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .egy-league-stats {
    margin-inline-start: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .egy-league-stats div {
    min-height: 62px;
    padding: 9px;
  }
}

.egy-top-alert {
  background: var(--egy-primary);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
}

.egy-logo__image {
  border-radius: 8px;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.egy-single-match__hero,
.egy-player-box,
.egy-match-info-grid,
.egy-share-box,
.egy-similar-matches {
  background: #fff;
  border: 1px solid var(--egy-border);
  border-radius: 12px;
  box-shadow: var(--egy-shadow);
  margin-bottom: 16px;
}

.egy-single-match__hero {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 180px 1fr;
  padding: 24px;
  text-align: center;
}

.egy-single-team {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.egy-single-team .egywp-team-logo,
.egy-single-team .egywp-team-placeholder {
  height: 58px;
  width: 58px;
}

.egy-single-score span,
.egy-single-score small,
.egy-match-info-grid span {
  color: var(--egy-muted);
  display: block;
  font-size: 12px;
}

.egy-single-score strong {
  background: #eef2f7;
  border-radius: 10px;
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  margin: 10px 0;
  padding: 8px 18px;
}

.egy-single-score b {
  background: #e8f1ff;
  border-radius: 999px;
  color: var(--egy-primary);
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
}

.egy-player-box {
  padding: 16px;
}

.egy-player-box iframe,
.egy-player-placeholder {
  aspect-ratio: 16 / 9;
  background: #111827;
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: grid;
  min-height: 280px;
  place-items: center;
  width: 100%;
}

.egy-legal-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.egy-match-info-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.egy-match-info-grid div {
  border-inline-start: 1px solid var(--egy-border);
  padding: 16px;
}

.egy-match-info-grid div:last-child {
  border-inline-start: 0;
}

.egy-single-sections {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.egy-similar-matches {
  padding: 16px;
}

.egy-similar-matches h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.egy-share-box {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
}

.egy-share-box a,
.egy-share-box button {
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: var(--egy-primary);
  cursor: pointer;
  font-weight: 800;
  padding: 7px 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.egy-share-box strong {
  margin-inline-end: auto;
  font-size: 16px;
  font-weight: 900;
}

.egy-share-box .is-facebook {
  color: #1664d9;
}

.egy-share-box .is-whatsapp {
  color: #0a8f4a;
}

.egy-share-box .is-x {
  color: #111827;
}

@media (max-width: 780px) {
  .egy-single-match__hero,
  .egy-match-info-grid,
  .egy-single-sections {
    grid-template-columns: 1fr;
  }
}

/* Final functional audit fixes. */
.egy-mode-button {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: #e7edf5;
  border: 1px solid #d5dde8;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.egy-mode-button::before {
  inset: auto;
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.egy-mode-button::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa7b8;
  transform: translateY(-50%);
}

.egy-mode-button.is-active {
  background: #101827;
  border-color: #24334d;
}

.egy-mode-button.is-active::before {
  border: 0;
  transform: translateX(-26px);
}

.egy-mode-button.is-active::after {
  inset-inline-end: auto;
  inset-inline-start: 8px;
  background: #ffd166;
}

.menu-icon-style-none .nav-ico,
.menu-icon-style-none .quick {
  display: none;
}

.menu-icon-style-color .nav-ico,
.menu-icon-style-color .quick {
  align-items: center;
  background: rgba(0, 181, 91, 0.12);
  border-radius: 8px;
  color: var(--egy-primary);
  display: inline-flex;
  justify-content: center;
  min-height: 24px;
  min-width: 24px;
}

.egy-news-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.egy-news-filter a {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 999px;
  color: var(--egy-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  text-decoration: none;
}

.egy-news-filter a.is-active {
  background: var(--egy-primary);
  border-color: var(--egy-primary);
  color: #fff;
}

.egy-news-card__thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: var(--egy-soft-2);
  color: #aab4c3;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.egy-news-card__thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.egy-news-card__thumb .dashicons {
  font-size: 44px;
  height: 44px;
  width: 44px;
}

.egy-news-card__meta {
  align-items: center;
  border-top: 1px solid var(--egy-border-soft);
  color: var(--egy-muted);
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
}

.egy-news-card__meta .egy-share-trigger,
.egy-share-box .egy-share-trigger {
  border-radius: 999px;
  margin: 0;
  min-height: 30px;
  padding: 0 12px;
  width: auto;
}

.egy-mobile-bottom-nav {
  display: none;
}

.egy-dark-mode .egy-site-header,
.egy-dark-mode .egy-home-tabs,
.egy-dark-mode .egy-filter-panel,
.egy-dark-mode .egy-matches-filter,
.egy-dark-mode .egy-league-search-panel,
.egy-dark-mode .egy-scorers-filter,
.egy-dark-mode .egy-single-card,
.egy-dark-mode .egy-single-match__hero,
.egy-dark-mode .egy-comments-area,
.egy-dark-mode .egywp-reminder-dialog,
.egy-dark-mode .egywp-reminders-list,
.egy-dark-mode .egy-news-card,
.egy-dark-mode .egy-empty-state,
.egy-dark-mode .egy-share-box {
  background: var(--egy-surface);
  border-color: var(--egy-border);
  color: var(--egy-text);
}

.egy-dark-mode .egy-card-match__visual {
  background: #101827;
}

.egy-dark-mode .egy-card-match__body,
.egy-dark-mode .egy-league-card__body,
.egy-dark-mode .egy-league-card__foot,
.egy-dark-mode .egy-match-line {
  background: var(--egy-surface);
  color: var(--egy-text);
}

.egy-dark-mode .egy-player-placeholder,
.egy-dark-mode .egy-player-box iframe {
  background: #080f1d;
}

.egy-dark-mode .egy-legal-notice {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fdba74;
}

@media (max-width: 640px) {
  body.has-mobile-bottom-nav {
    padding-bottom: 76px;
  }

  .egy-header-inner {
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding: 8px 10px;
  }

  .egy-logo {
    justify-content: center;
    min-width: 0;
    order: 2;
    flex: 1 1 auto;
  }

  .egy-logo__text small {
    display: none;
  }

  .egy-auth {
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
    order: 3;
  }

  .egy-menu-toggle {
    order: 1;
  }

  .egy-login,
  .egy-subscribe {
    display: none;
  }

  .egy-mode-button {
    width: 46px;
    height: 28px;
    border-radius: 999px;
  }

  .egy-mode-button::before {
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
  }

  .egy-mode-button.is-active::before {
    transform: translateX(-18px);
  }

  .egy-search {
    flex: 1 1 100%;
    margin-top: 8px;
    order: 4;
    width: 100%;
  }

  .egy-home-hero {
    align-items: flex-start;
    border-radius: 16px;
    min-height: 156px;
    padding: 22px 18px;
  }

  .egy-home-hero h1 {
    font-size: 22px;
    line-height: 1.45;
  }

  .egy-hero-pills {
    flex-wrap: wrap;
  }

  .egy-tabs-bar,
  .egy-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .egy-filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .egy-match-grid {
    grid-template-columns: 1fr;
  }

  .egy-card-match {
    border-radius: 14px;
    overflow: hidden;
  }

  .egy-card-match__visual {
    min-height: auto;
    padding: 12px 14px;
    background: var(--egy-surface) !important;
    color: var(--egy-text);
    border-bottom: 1px solid var(--egy-border-soft);
  }

  .egy-card-match__badges {
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .egy-card-match__teams {
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
    gap: 8px;
  }

  .egy-card-team {
    gap: 4px;
  }

  .egy-card-team img,
  .egywp-team-placeholder {
    height: 28px;
    width: 28px;
  }

  .egy-card-team strong {
    color: var(--egy-text);
    font-size: 12px;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .egy-card-team small,
  .egy-card-score small {
    color: var(--egy-muted);
    font-size: 10px;
  }

  .egy-card-score strong {
    background: var(--egy-soft);
    border-radius: 9px;
    color: var(--egy-text);
    display: inline-block;
    font-size: 15px;
    min-width: 52px;
    padding: 6px 8px;
  }

  .egy-card-match__visual p {
    display: none;
  }

  .egy-card-match__body {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .egy-card-match h3,
  .egy-source-badge {
    display: none;
  }

  .egy-league-name {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .egy-watch-button {
    margin: 0;
    min-height: 32px;
    padding: 0 12px;
    width: auto;
  }

  .egy-card-match .egy-share-trigger {
    display: none;
  }

  .egy-mobile-bottom-nav {
    align-items: center;
    background: var(--egy-surface);
    border-top: 1px solid var(--egy-border);
    bottom: 0;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 80;
  }

  .egy-mobile-bottom-nav a {
    align-items: center;
    border-radius: 14px;
    color: var(--egy-muted);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    gap: 3px;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
  }

  .egy-mobile-bottom-nav .dashicons {
    font-size: 20px;
    height: 20px;
    width: 20px;
  }

  .egy-mobile-bottom-nav a.is-active {
    color: var(--egy-primary);
  }

  .egy-mobile-bottom-nav a.is-primary {
    background: var(--egy-live);
    color: #fff;
    box-shadow: 0 8px 18px rgba(239, 35, 54, 0.3);
    transform: translateY(-12px);
  }

  .egy-match-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .egy-match-line__teams {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  }

  .egy-single-match__hero {
    padding: 18px;
  }

  .egy-single-team {
    min-width: 0;
  }

  .egy-single-team h1,
  .egy-single-team strong {
    font-size: 18px;
  }

  .egy-share-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .egy-home-hero h1 {
    font-size: 20px;
  }

  .egy-tabs-bar button,
  .egy-filter-buttons button {
    font-size: 13px;
    padding: 10px 8px;
  }

  .egy-card-match__teams {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  }

  .egy-card-team strong {
    max-width: 76px;
  }
}

.egy-watch-button.is-watch,
.egywp-action-button.is-watch,
.egy-line-action.is-watch {
  background: var(--egy-card-watch-color, var(--egy-live));
  color: #fff;
}

.egy-watch-button.is-reminder,
.egywp-action-button.is-reminder,
.egy-line-action.is-reminder {
  background: var(--egy-card-reminder-color, var(--egy-primary));
  color: #fff;
}

.egy-watch-button.is-details,
.egywp-action-button.is-details,
.egy-line-action.is-details {
  background: #eef4ff;
  border: 1px solid #c9ddff;
  color: var(--egy-primary);
}

.egy-share-trigger,
.egy-share-native,
.egy-share-box a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
}

.egy-share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.egy-share-native {
  background: #f3f7ff;
  border: 1px solid #d3dce9;
  color: var(--egy-primary);
  cursor: pointer;
  font-weight: 800;
  padding: 7px 14px;
}

.egy-card-match.card-style-compact .egy-card-match__visual {
  min-height: 152px;
}

.egy-card-match.card-style-compact .egy-card-match__body {
  padding: 10px;
}

.egy-card-match.card-style-detailed .egy-card-match__visual {
  min-height: 230px;
}

@media (max-width: 640px) {
  .egy-card-match {
    display: grid;
    grid-template-columns: 1fr;
  }

  .egy-card-match__visual {
    min-height: 112px;
  }

  .egy-card-team {
    min-width: 0;
  }

  .egy-card-team img,
  .egy-card-team .egywp-team-placeholder {
    height: 34px;
    width: 34px;
  }

  .egy-card-score strong {
    font-size: 20px;
    min-width: 54px;
  }

  .egy-watch-button {
    border-radius: 10px;
    font-size: 13px;
    min-height: 38px;
  }

  .egy-share-box {
    align-items: stretch;
    flex-direction: row;
  }

  .egy-share-box strong {
    flex-basis: 100%;
  }

  .egy-share-box a,
  .egy-share-native {
    flex: 1 1 44%;
  }
}

.egy-layout-switcher {
  align-items: center;
  background: #edf2f8;
  border: 1px solid var(--egy-border);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.egy-layout-switcher button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #667389;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
}

.egy-layout-switcher button.is-active {
  background: var(--egy-primary);
  box-shadow: 0 8px 18px rgba(18, 100, 214, 0.22);
  color: #fff;
}

.egy-layout-switcher .dashicons {
  font-size: 16px;
  height: 16px;
  width: 16px;
}

.egy-match-layout-panel {
  display: none;
}

.egy-matches-page-scope.is-layout-wide [data-match-layout-panel="wide"],
.egy-matches-page-scope.is-layout-grid [data-match-layout-panel="grid"] {
  display: block;
}

.egy-match-grid.is-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.egy-matches-page-scope .egy-match-line {
  border-radius: 14px;
  grid-template-columns: 170px minmax(320px, 1fr) 180px 128px;
  min-height: 94px;
  padding: 14px 16px;
}

.egy-matches-page-scope .egy-match-line__meta span {
  color: var(--egy-muted);
  font-size: 12px;
  font-weight: 800;
}

.egy-matches-page-scope .egy-match-line__meta b {
  font-size: 12px;
  min-height: 26px;
  padding: 4px 11px;
}

.egy-matches-page-scope .egy-match-line__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  gap: 14px;
}

.egy-matches-page-scope .egy-line-team {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.egy-matches-page-scope .egy-line-team .egywp-team-logo,
.egy-matches-page-scope .egy-line-team .egywp-team-placeholder {
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
  height: 50px;
  width: 50px;
}

.egy-matches-page-scope .egy-line-team strong {
  color: var(--egy-text);
  font-size: 14px;
  line-height: 1.35;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egy-matches-page-scope .egy-line-score {
  align-self: center;
  background: #edf2f8;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  color: #081426;
  font-size: 20px;
  min-height: 44px;
  min-width: 76px;
  padding: 9px 10px;
}

.egy-matches-page-scope .egy-match-line.is-live .egy-line-score {
  background: #ffe4e9;
  border-color: #ffc7d1;
  color: var(--egy-live);
}

.egy-matches-page-scope .egy-match-line.is-scheduled .egy-line-score {
  background: #f4f7fb;
  color: var(--egy-primary);
}

.egy-matches-page-scope .egy-match-line__venue {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.egy-matches-page-scope .egy-line-action {
  border-radius: 11px;
  font-size: 12px;
  min-height: 38px;
  padding: 0 12px;
  text-align: center;
}

.egy-dark-mode .egy-layout-switcher {
  background: #111827;
  border-color: var(--egy-border);
}

.egy-dark-mode .egy-layout-switcher button {
  color: #94a3b8;
}

.egy-dark-mode .egy-matches-page-scope .egy-line-score {
  background: #111827;
  border-color: #243247;
  color: #f8fafc;
}

.egy-dark-mode .egy-matches-page-scope .egy-line-team strong {
  color: var(--egy-text);
}

@media (max-width: 1180px) {
  .egy-matches-page-scope .egy-match-line {
    grid-template-columns: 140px minmax(260px, 1fr) 140px 112px;
  }
}

@media (max-width: 900px) {
  .egy-matches-filter {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .egy-layout-switcher {
    justify-self: stretch;
  }

  .egy-layout-switcher button {
    flex: 1;
  }

  .egy-matches-page-scope .egy-match-line {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .egy-matches-page-scope .egy-match-line__meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .egy-matches-page-scope .egy-match-line__teams {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  }

  .egy-matches-page-scope .egy-line-team .egywp-team-logo,
  .egy-matches-page-scope .egy-line-team .egywp-team-placeholder {
    height: 42px;
    width: 42px;
  }

  .egy-matches-page-scope .egy-line-team strong {
    font-size: 13px;
    max-width: 108px;
  }

  .egy-matches-page-scope .egy-line-score {
    font-size: 17px;
    min-height: 38px;
    min-width: 60px;
  }

  .egy-matches-page-scope .egy-match-line__venue {
    text-align: start;
  }

  .egy-matches-page-scope .egy-line-action {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .egy-layout-switcher button {
    font-size: 11px;
    min-height: 32px;
    padding: 0 8px;
  }

  .egy-match-grid.is-page-grid {
    gap: 10px;
  }

  .egy-matches-page-scope .egy-match-line__teams {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  }

  .egy-matches-page-scope .egy-line-team .egywp-team-logo,
  .egy-matches-page-scope .egy-line-team .egywp-team-placeholder {
    height: 38px;
    width: 38px;
  }

  .egy-matches-page-scope .egy-line-team strong {
    max-width: 86px;
  }
}

/* Functional UX polish: clickable cards, timezones, countdowns, channels, highlights. */
.is-clickable {
  cursor: pointer;
}

.is-clickable:hover {
  border-color: rgba(18, 100, 214, 0.42);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.egy-card-match,
.egy-match-line,
.egy-channel-card,
.egy-highlight-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.egy-card-match__visual {
  background: linear-gradient(135deg, #101827, #0e2745);
}

.egy-card-match.is-scheduled .egy-state,
.egy-card-match.is-soon .egy-state,
.egy-match-line.is-scheduled .egy-match-line__meta b,
.egy-match-line.is-soon .egy-match-line__meta b {
  background: #e8f0fb;
  color: var(--egy-primary);
}

.egy-match-line.is-soon .egy-line-score {
  background: #f4f7fb;
  color: var(--egy-primary);
}

.egy-card-match.is-live .egy-state,
.egy-match-line.is-live .egy-match-line__meta b {
  background: var(--egy-live);
  color: #fff;
}

.egy-match-countdown {
  color: #10b981;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
}

.egy-match-countdown.is-started {
  color: var(--egy-live);
}

.egy-timezone-switcher {
  align-items: center;
  background: #f3f6fa;
  border: 1px solid var(--egy-border);
  border-radius: 12px;
  color: var(--egy-muted);
  display: inline-flex;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
}

.egy-timezone-switcher span {
  font-size: 12px;
  font-weight: 900;
}

.egy-timezone-switcher select {
  background: transparent;
  border: 0;
  color: var(--egy-text);
  font-weight: 900;
  min-height: 34px;
  outline: 0;
}

.egy-match-line {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.egy-match-line__venue {
  display: grid;
  gap: 3px;
}

.egy-match-line__venue .egywp-match-time {
  color: var(--egy-text);
  direction: ltr;
  font-size: 15px;
  font-weight: 900;
}

.egy-match-line__venue small {
  color: var(--egy-muted);
  font-size: 11px;
  font-weight: 800;
}

.egy-channel-grid,
.egy-highlight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.egy-channel-card,
.egy-highlight-card,
.egy-channel-hero,
.egy-info-cards > div,
.egy-highlight-single .egy-single-card {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.egy-channel-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 16px;
}

.egy-channel-card__logo,
.egy-channel-hero__logo {
  align-items: center;
  background: #edf3fb;
  border-radius: 16px;
  display: flex;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.egy-channel-card__logo img,
.egy-channel-hero__logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.egy-channel-card h2,
.egy-highlight-card h2,
.egy-highlight-card h3 {
  color: var(--egy-text);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 6px;
}

.egy-channel-card p,
.egy-highlight-card p {
  color: var(--egy-muted);
  line-height: 1.7;
  margin: 0;
}

.egy-channel-card__meta,
.egy-highlight-card__meta,
.egy-highlight-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.egy-channel-card__meta span,
.egy-highlight-card__meta span,
.egy-highlight-card__meta a,
.egy-highlight-meta span,
.egy-highlight-meta a {
  background: #edf3fb;
  border-radius: 999px;
  color: var(--egy-muted);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.egy-card-link {
  color: var(--egy-primary);
  font-size: 12px;
  font-weight: 900;
  grid-column: 2;
}

.egy-highlight-card {
  overflow: hidden;
  position: relative;
}

.egy-highlight-card__thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #dfe5ee;
  display: flex;
  justify-content: center;
  position: relative;
}

.egy-highlight-card__thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.egy-highlight-card__thumb small {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  bottom: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  inset-inline-start: 10px;
  padding: 4px 8px;
  position: absolute;
}

.egy-highlight-card__body {
  padding: 14px;
}

.egy-highlight-card > .egy-share-trigger {
  margin: 0 14px 14px;
}

.egy-channel-hero {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-bottom: 16px;
  padding: 18px;
}

.egy-channel-hero__logo {
  height: 96px;
  width: 96px;
}

.egy-channel-hero h1,
.egy-highlight-single h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.egy-info-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.egy-info-cards > div {
  padding: 14px;
}

.egy-info-cards span {
  color: var(--egy-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.egy-info-cards strong,
.egy-info-cards a {
  color: var(--egy-text);
  font-weight: 900;
}

.egy-highlight-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.egy-highlight-single .egy-single-card {
  margin-bottom: 16px;
  padding: 18px;
}

.egy-player-box video {
  aspect-ratio: 16 / 9;
  background: #111827;
  border: 0;
  border-radius: 12px;
  display: block;
  width: 100%;
}

.egy-dark-mode .egy-timezone-switcher,
.egy-dark-mode .egy-channel-card,
.egy-dark-mode .egy-highlight-card,
.egy-dark-mode .egy-channel-hero,
.egy-dark-mode .egy-info-cards > div,
.egy-dark-mode .egy-highlight-single .egy-single-card {
  background: var(--egy-surface);
  border-color: var(--egy-border);
  color: var(--egy-text);
}

.egy-dark-mode .egy-channel-card__logo,
.egy-dark-mode .egy-channel-hero__logo,
.egy-dark-mode .egy-channel-card__meta span,
.egy-dark-mode .egy-highlight-card__meta span,
.egy-dark-mode .egy-highlight-card__meta a,
.egy-dark-mode .egy-highlight-meta span,
.egy-dark-mode .egy-highlight-meta a {
  background: #1f2d42;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .egy-channel-grid,
  .egy-highlight-grid,
  .egy-highlight-grid.is-compact,
  .egy-info-cards {
    grid-template-columns: 1fr;
  }

  .egy-channel-hero {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .egy-channel-hero__logo {
    height: 72px;
    width: 72px;
  }
}

@media (max-width: 520px) {
  .egy-card-match {
    border-radius: 14px;
  }

  .egy-card-match__visual {
    min-height: 112px;
    padding: 12px;
  }

  .egy-card-match__badges {
    margin-bottom: 8px;
  }

  .egy-card-match__teams {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 8px;
  }

  .egy-card-team .egywp-team-logo,
  .egy-card-team .egywp-team-placeholder {
    height: 38px;
    width: 38px;
  }

  .egy-card-team strong {
    font-size: 12px;
    max-width: 94px;
  }

  .egy-card-score strong {
    font-size: 18px;
  }

  .egy-card-match__visual p {
    display: none;
  }

  .egy-card-match__body {
    padding: 10px 12px;
  }

  .egy-card-match h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .egy-watch-button,
  .egy-share-trigger {
    min-height: 36px;
  }

  .egy-timezone-switcher {
    justify-content: space-between;
    width: 100%;
  }

  .egy-channel-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }

  .egy-channel-card__logo {
    border-radius: 12px;
    height: 58px;
    width: 58px;
  }
}

/* Match card design system: Wide Pro default, Summit, and Strip. */
.egy-match-grid.card-style-wide-pro,
.egy-match-grid.card-style-strip {
  grid-template-columns: 1fr;
}

.egy-match-grid.card-style-summit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.egy-card-match.card-style-wide-pro,
.egy-card-match.card-style-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  min-height: 126px;
}

.egy-card-match.card-style-wide-pro .egy-card-match__visual,
.egy-card-match.card-style-strip .egy-card-match__visual {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-inline-end: 1px solid var(--egy-border);
  color: var(--egy-text);
  min-height: 0;
  padding: 14px 16px;
}

.egy-card-match.card-style-wide-pro .egy-card-match__badges,
.egy-card-match.card-style-strip .egy-card-match__badges {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.egy-card-competition {
  align-items: center;
  background: #f3f7fc;
  border: 1px solid var(--egy-border);
  border-radius: 999px;
  color: var(--egy-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  min-height: 24px;
  padding: 0 9px;
}

.egy-card-match.card-style-wide-pro .egy-state,
.egy-card-match.card-style-strip .egy-state {
  background: #eef4ff;
  color: var(--egy-primary);
  min-height: 24px;
}

.egy-card-match.card-style-wide-pro.is-live .egy-state,
.egy-card-match.card-style-strip.is-live .egy-state {
  background: var(--egy-live);
  color: #fff;
}

.egy-card-match.card-style-wide-pro.is-soon .egy-state,
.egy-card-match.card-style-strip.is-soon .egy-state {
  background: #dcfce7;
  color: #12844f;
}

.egy-card-match.card-style-wide-pro .egy-card-match__teams,
.egy-card-match.card-style-strip .egy-card-match__teams {
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 14px;
}

.egy-card-match.card-style-wide-pro .egy-card-team,
.egy-card-match.card-style-strip .egy-card-team {
  align-content: center;
  min-width: 0;
}

.egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-logo,
.egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-placeholder,
.egy-card-match.card-style-strip .egy-card-team .egywp-team-logo,
.egy-card-match.card-style-strip .egy-card-team .egywp-team-placeholder {
  filter: drop-shadow(0 7px 12px rgba(15, 23, 42, 0.13));
  height: 44px;
  width: 44px;
}

.egy-card-match.card-style-wide-pro .egy-card-team strong,
.egy-card-match.card-style-strip .egy-card-team strong {
  color: var(--egy-text);
  font-size: 13px;
  line-height: 1.35;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egy-card-match.card-style-wide-pro .egy-card-team small,
.egy-card-match.card-style-strip .egy-card-team small {
  color: var(--egy-muted);
}

.egy-card-match.card-style-wide-pro .egy-card-score,
.egy-card-match.card-style-strip .egy-card-score {
  align-self: center;
}

.egy-card-match.card-style-wide-pro .egy-card-score strong,
.egy-card-match.card-style-strip .egy-card-score strong {
  background: #f1f5fb;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  color: #0d1728;
  display: inline-flex;
  font-size: 21px;
  justify-content: center;
  min-width: 74px;
  padding: 9px 12px;
}

.egy-card-match.card-style-wide-pro.is-live .egy-card-score strong,
.egy-card-match.card-style-strip.is-live .egy-card-score strong {
  background: #ffe5ea;
  border-color: #ffc7d1;
  color: var(--egy-live);
}

.egy-card-match.card-style-wide-pro .egy-card-score small,
.egy-card-match.card-style-strip .egy-card-score small {
  color: var(--egy-muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
}

.egy-card-match.card-style-wide-pro .egy-card-match__visual p,
.egy-card-match.card-style-strip .egy-card-match__visual p {
  color: var(--egy-muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 8px;
}

.egy-card-match.card-style-wide-pro .egy-card-match__body,
.egy-card-match.card-style-strip .egy-card-match__body {
  align-content: center;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.egy-card-match.card-style-wide-pro .egy-league-name,
.egy-card-match.card-style-strip .egy-league-name {
  display: none;
}

.egy-card-match.card-style-wide-pro h3,
.egy-card-match.card-style-strip h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  text-align: start;
}

.egy-card-match__meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.egy-card-match__meta-row span {
  align-items: center;
  background: #edf4ff;
  border-radius: 999px;
  color: #5c6a7e;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
  min-height: 25px;
  padding: 0 8px;
}

.egy-card-match__meta-row .dashicons {
  font-size: 14px;
  height: 14px;
  width: 14px;
}

.egy-card-match__actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.egy-card-match__actions.no-share {
  grid-template-columns: 1fr;
}

.egy-card-match__actions .egy-share-trigger {
  border-radius: 12px;
  height: 38px;
  margin: 0;
  min-height: 38px;
  padding: 0;
  width: 42px;
}

.egy-card-match__actions .egy-share-trigger .dashicons {
  margin: 0;
}

.egy-card-match__actions .egy-share-trigger {
  font-size: 0;
}

.egy-card-match__actions .egy-watch-button {
  border-radius: 12px;
  height: 38px;
}

.egy-card-match__actions .egy-watch-button.is-reminder {
  background: var(--egy-card-reminder-color);
}

.egy-card-match__actions .egy-watch-button.is-details {
  background: var(--egy-primary);
}

.egy-card-match.card-style-strip {
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 90px;
}

.egy-card-match.card-style-strip .egy-card-match__visual {
  padding: 10px 12px;
}

.egy-card-match.card-style-strip .egy-card-match__teams {
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
}

.egy-card-match.card-style-strip .egy-card-team .egywp-team-logo,
.egy-card-match.card-style-strip .egy-card-team .egywp-team-placeholder {
  height: 34px;
  width: 34px;
}

.egy-card-match.card-style-strip .egy-card-score strong {
  font-size: 16px;
  min-width: 58px;
  padding: 6px 8px;
}

.egy-card-match.card-style-summit {
  border-radius: 16px;
}

.egy-card-match.card-style-summit .egy-card-match__visual {
  background: linear-gradient(135deg, var(--egy-primary), #0b8a58);
  min-height: 166px;
}

.egy-card-match.card-style-summit .egy-card-match__badges {
  justify-content: space-between;
}

.egy-card-match.card-style-summit .egy-card-competition {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.egy-card-match.card-style-summit .egy-card-team .egywp-team-logo,
.egy-card-match.card-style-summit .egy-card-team .egywp-team-placeholder {
  height: 58px;
  width: 58px;
}

.egy-card-match.card-style-summit .egy-card-score strong {
  font-size: 28px;
}

/* Cleaner wide rows for the matches page. */
.egy-matches-page-scope .egy-match-line {
  border-radius: 16px;
  grid-template-columns: 185px minmax(320px, 1fr) 185px 140px;
  gap: 16px;
  min-height: 96px;
  padding: 14px 16px;
  position: relative;
}

.egy-matches-page-scope .egy-match-line::before {
  background: var(--egy-primary);
  border-radius: 999px;
  bottom: 16px;
  content: "";
  inline-end: 0;
  position: absolute;
  top: 16px;
  width: 4px;
}

.egy-matches-page-scope .egy-match-line.is-live::before {
  background: var(--egy-live);
}

.egy-matches-page-scope .egy-match-line.is-soon::before,
.egy-matches-page-scope .egy-match-line.is-scheduled::before {
  background: #10b981;
}

.egy-matches-page-scope .egy-match-line__teams {
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
}

.egy-matches-page-scope .egy-line-action.is-reminder {
  background: #e8fff3;
  border-color: #b8efcf;
  color: #078348;
}

.egy-matches-page-scope .egy-line-action.is-details {
  background: #e8f1ff;
}

.egy-dark-mode .egy-card-match.card-style-wide-pro .egy-card-match__visual,
.egy-dark-mode .egy-card-match.card-style-strip .egy-card-match__visual {
  background: linear-gradient(180deg, #172236, #131d2e);
  border-color: var(--egy-border);
}

.egy-dark-mode .egy-card-match.card-style-wide-pro .egy-card-team strong,
.egy-dark-mode .egy-card-match.card-style-strip .egy-card-team strong {
  color: var(--egy-text);
}

.egy-dark-mode .egy-card-match.card-style-wide-pro .egy-card-score strong,
.egy-dark-mode .egy-card-match.card-style-strip .egy-card-score strong {
  background: #111827;
  border-color: #29364c;
  color: #f8fafc;
}

.egy-dark-mode .egy-card-competition,
.egy-dark-mode .egy-card-match__meta-row span {
  background: #1f2d42;
  border-color: #2b3a52;
  color: #cbd5e1;
}

@media (max-width: 1080px) {
  .egy-card-match.card-style-wide-pro,
  .egy-card-match.card-style-strip {
    grid-template-columns: 1fr;
  }

  .egy-card-match.card-style-wide-pro .egy-card-match__visual,
  .egy-card-match.card-style-strip .egy-card-match__visual {
    border-inline-end: 0;
    border-bottom: 1px solid var(--egy-border);
  }

  .egy-match-grid.card-style-summit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .egy-match-grid.card-style-wide-pro,
  .egy-match-grid.card-style-strip,
  .egy-match-grid.card-style-summit {
    gap: 10px;
  }

  .egy-card-match.card-style-wide-pro,
  .egy-card-match.card-style-strip {
    min-height: 0;
  }

  .egy-card-match.card-style-wide-pro .egy-card-match__visual,
  .egy-card-match.card-style-strip .egy-card-match__visual {
    padding: 11px 12px;
  }

  .egy-card-match.card-style-wide-pro .egy-card-match__teams,
  .egy-card-match.card-style-strip .egy-card-match__teams {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 8px;
  }

  .egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-logo,
  .egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-placeholder,
  .egy-card-match.card-style-strip .egy-card-team .egywp-team-logo,
  .egy-card-match.card-style-strip .egy-card-team .egywp-team-placeholder {
    height: 34px;
    width: 34px;
  }

  .egy-card-match.card-style-wide-pro .egy-card-team strong,
  .egy-card-match.card-style-strip .egy-card-team strong {
    font-size: 12px;
    max-width: 86px;
  }

  .egy-card-match.card-style-wide-pro .egy-card-score strong,
  .egy-card-match.card-style-strip .egy-card-score strong {
    border-radius: 11px;
    font-size: 16px;
    min-width: 56px;
    padding: 6px 8px;
  }

  .egy-card-match.card-style-wide-pro .egy-card-match__body,
  .egy-card-match.card-style-strip .egy-card-match__body {
    padding: 10px 12px 12px;
  }

  .egy-card-match.card-style-wide-pro h3,
  .egy-card-match.card-style-strip h3 {
    font-size: 13px;
  }

  .egy-card-match__meta-row span {
    font-size: 10px;
    min-height: 23px;
  }

  .egy-card-match__actions {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .egy-card-match__actions .egy-share-trigger {
    height: 36px;
    width: 38px;
  }

  .egy-matches-page-scope .egy-match-line {
    grid-template-columns: 1fr;
  }

  .egy-matches-page-scope .egy-match-line::before {
    bottom: auto;
    height: 4px;
    inline-end: 16px;
    inline-start: 16px;
    top: 0;
    width: auto;
  }
}

/* 365Scores schedule refresh: date tabs, pro rows, and slim wide cards. */
.egy-date-tabs {
  background: #f8fafc;
  border: 1px solid var(--egy-border);
  border-radius: 14px;
  box-shadow: var(--egy-shadow);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 14px;
  overflow: hidden;
  padding: 6px;
}

.egy-date-tabs a {
  align-items: center;
  background: #e5e9ef;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #526071;
  display: grid;
  min-height: 54px;
  place-items: center;
  text-decoration: none;
}

.egy-date-tabs a strong {
  color: inherit;
  font-size: 14px;
  font-weight: 950;
}

.egy-date-tabs a span {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
}

.egy-date-tabs a.is-active {
  background: linear-gradient(135deg, #32a6e1, #1487c7);
  box-shadow: 0 12px 22px rgba(20, 135, 199, 0.24);
  color: #fff;
}

.egy-matches-page-scope .egy-matches-filter {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
}

.egy-matches-page-scope .egy-matches-filter > span {
  color: var(--egy-live);
  font-weight: 950;
  margin-inline-start: auto;
}

.egy-matches-page-scope .egy-filter-buttons {
  gap: 6px;
}

.egy-matches-page-scope .egy-filter-buttons button,
.egy-matches-page-scope .egy-matches-filter select,
.egy-matches-page-scope .egy-layout-switcher button,
.egy-matches-page-scope .egy-timezone-switcher select {
  border-radius: 10px;
  font-weight: 950;
  min-height: 38px;
}

.egy-matches-page-scope .egy-filter-buttons button.is-active {
  background: var(--egy-live);
  color: #fff;
}

.egy-matches-page-scope .egy-competition-group {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 16px;
  overflow: visible;
}

.egy-matches-page-scope .egy-competition-group header {
  background: #1f2328;
  border: 1px solid #1f2328;
  border-radius: 13px 13px 0 0;
  color: #fff;
  min-height: 46px;
  padding: 10px 14px;
}

.egy-matches-page-scope .egy-competition-group h2 {
  border-inline-end-color: #ffb300;
  color: #fff;
  font-size: 15px;
}

.egy-matches-page-scope .egy-competition-group header span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.egy-matches-page-scope .egy-competition-group header a {
  color: #ffb300;
}

.egy-matches-page-scope .egy-match-lines {
  background: #fff;
  border: 1px solid var(--egy-border);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  box-shadow: var(--egy-shadow);
  gap: 0;
  overflow: hidden;
}

.egy-matches-page-scope .egy-match-line {
  border: 0;
  border-bottom: 1px solid var(--egy-border);
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 170px minmax(320px, 1fr) 180px 150px;
  min-height: 82px;
}

.egy-matches-page-scope .egy-match-line:last-child {
  border-bottom: 0;
}

.egy-matches-page-scope .egy-match-line::before {
  border-radius: 0;
  bottom: 0;
  top: 0;
}

.egy-matches-page-scope .egy-line-team {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.egy-matches-page-scope .egy-line-team .egywp-team-logo,
.egy-matches-page-scope .egy-line-team .egywp-team-placeholder,
.egy-matches-page-scope .egy-line-team .egy-code {
  height: 38px;
  width: 38px;
}

.egy-matches-page-scope .egy-line-score {
  background: #f3f6fb;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  color: #0f172a;
}

.egy-matches-page-scope .egy-match-line.is-live .egy-line-score {
  background: #ffe7eb;
  border-color: #ffc3ce;
  color: var(--egy-live);
}

.egy-card-match.card-style-wide-pro {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.egy-card-match.card-style-wide-pro::after {
  background: var(--egy-primary);
  border-radius: 999px;
  bottom: 14px;
  content: "";
  inline-end: 0;
  position: absolute;
  top: 14px;
  width: 4px;
}

.egy-card-match.card-style-wide-pro.is-live::after {
  background: var(--egy-live);
}

.egy-card-match.card-style-wide-pro.is-scheduled::after,
.egy-card-match.card-style-wide-pro.is-soon::after {
  background: #16a34a;
}

.egy-card-match.card-style-wide-pro.is-finished::after {
  background: #94a3b8;
}

.egy-card-match.card-style-wide-pro .egy-card-match__visual {
  border-inline-end: 1px solid #edf1f7;
}

.egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-logo,
.egy-card-match.card-style-wide-pro .egy-card-team .egywp-team-placeholder {
  height: 48px;
  width: 48px;
}

.egy-card-match.card-style-wide-pro .egy-watch-button.is-watch {
  background: var(--egy-card-watch-color);
}

.egy-dark-mode .egy-date-tabs,
.egy-dark-mode .egy-matches-page-scope .egy-matches-filter,
.egy-dark-mode .egy-matches-page-scope .egy-match-lines {
  background: #162235;
  border-color: #29364c;
}

.egy-dark-mode .egy-date-tabs a {
  background: #1f2d42;
  color: #cbd5e1;
}

.egy-dark-mode .egy-matches-page-scope .egy-competition-group header {
  background: #0f172a;
  border-color: #263246;
}

.egy-standings-group {
  background: var(--egy-surface);
  border: 1px solid var(--egy-border);
  border-radius: 14px;
  box-shadow: var(--egy-shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.egy-standings-group h3 {
  background: #1f2328;
  border-inline-end: 4px solid #ffb300;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  margin: 0;
  padding: 12px 16px;
}

.egy-standings-table-wrap {
  overflow-x: auto;
}

.egy-standings-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.egy-standings-table th,
.egy-standings-table td {
  border-bottom: 1px solid var(--egy-border);
  color: var(--egy-text);
  font-size: 13px;
  padding: 12px;
  text-align: center;
  white-space: nowrap;
}

.egy-standings-table th {
  background: #f3f6fb;
  color: var(--egy-muted);
  font-weight: 950;
}

.egy-standings-table tbody tr:nth-child(1) {
  background: rgba(10, 191, 91, 0.06);
}

.egy-standings-team {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  text-align: start !important;
}

.egy-standings-team img {
  border-radius: 50%;
  height: 30px;
  object-fit: contain;
  width: 30px;
}

.egy-dark-mode .egy-standings-group {
  background: #162235;
  border-color: #29364c;
}

.egy-dark-mode .egy-standings-table th {
  background: #1f2d42;
  color: #cbd5e1;
}

.egy-dark-mode .egy-standings-table td {
  border-color: #29364c;
}

@media (max-width: 760px) {
  .egy-date-tabs {
    grid-auto-columns: minmax(118px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 5px;
  }

  .egy-date-tabs a {
    min-height: 48px;
  }

  .egy-matches-page-scope .egy-matches-filter {
    align-items: stretch;
    display: grid;
  }

  .egy-matches-page-scope .egy-matches-filter > span {
    margin-inline-start: 0;
    order: 9;
  }

  .egy-matches-page-scope .egy-filter-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .egy-matches-page-scope .egy-filter-buttons button {
    font-size: 11px;
    padding: 0 6px;
  }

  .egy-matches-page-scope .egy-match-line {
    gap: 8px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
  }

  .egy-matches-page-scope .egy-match-line__meta {
    display: flex;
    justify-content: space-between;
  }

  .egy-matches-page-scope .egy-match-line__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  }

  .egy-matches-page-scope .egy-line-team {
    justify-content: center;
  }

  .egy-matches-page-scope .egy-match-line__venue {
    text-align: center;
  }

  .egy-matches-page-scope .egy-line-action {
    width: 100%;
  }
}
