:root {
  --navy: #06142c;
  --deep: #021024;
  --red: #f20735;
  --blue: #0755b6;
  --muted: #77849b;
  --white: #fff;
  --line: #dfe7ef;
  --shadow: 0 7px 26px rgba(6, 23, 53, .14)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: linear-gradient(145deg, var(--page-start, #d8e7f1), var(--page-end, #98b8ce));
  font: 600 13px/1.55 Cairo, Tahoma, sans-serif;
  color: var(--text, #091a39)
}

button,
input {
  font: inherit
}

button {
  cursor: pointer
}

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

svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
  vertical-align: middle
}

img {
  display: block;
  max-width: 100%
}

.hidden {
  display: none !important
}

.site-shell {
  max-width: 1560px;
  margin: 6px auto 0;
  background: var(--surface, #f1f6fb);
  box-shadow: 0 15px 55px #14375c55;
  overflow: hidden;
  border-radius: 13px 13px 0 0
}

.site-header {
  height: 74px;
  background: linear-gradient(135deg, var(--header-start, #0b2548), var(--header-end, #020a1c) 80%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 18px;
  position: relative;
  z-index: 20
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 270px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.5
}

.brand img {
  height: 72px;
  width: 105px;
  object-fit: contain;
  align-self: flex-start;
  position: relative;
  z-index: 2
}

.brand small,
.profile-btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  direction: ltr;
  text-align: right
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  height: 100%
}

.main-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  min-height: 59px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 11px;
  transition: .2s
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--red)
}

.main-nav svg {
  width: 20px;
  height: 20px
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.icon-btn {
  border: 0;
  background: none;
  color: #fff;
  position: relative;
  padding: 7px
}

.bubble {
  position: absolute;
  right: 0;
  top: -2px;
  border-radius: 100%;
  min-width: 17px;
  height: 17px;
  background: var(--red);
  font-size: 10px;
  text-align: center
}

.profile-btn {
  border: 0;
  color: #fff;
  background: none;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: right;
  white-space: nowrap
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #e3a788, #8f3c29);
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 900
}

.profile-btn small {
  color: #b1c0d2
}

.menu-toggle {
  display: none
}

.header-popover {
  position: absolute;
  top: 73px;
  left: 15px;
  background: white;
  color: #0b1f3c;
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 310px;
  z-index: 30
}

.search-box {
  display: flex;
  gap: 6px
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px
}

.notices p {
  border-bottom: 1px solid #eee;
  padding: 7px 0;
  margin: 0
}

.profile-menu {
  width: 160px
}

.profile-menu a {
  display: block;
  padding: 7px
}

.hero {
  height: 224px;
  background: linear-gradient(270deg, rgba(0, 10, 28, .58), rgba(0, 11, 28, .1) 60%), url('../images/hero.webp') center 38%/cover;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  color: white
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30px;
  background: linear-gradient(transparent, #0b172958)
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-right: 4%;
  text-align: center;
  text-shadow: 0 2px 15px #000;
  max-width: 440px
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(23px, 3vw, 43px);
  margin: 0 0 3px
}

.hero-sub {
  font-size: clamp(15px, 2vw, 26px);
  margin: 0
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 7px;
  margin: 0 0 4px;
  color: #d8eaff
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
  color: #bde4ff;
  letter-spacing: 3px;
  margin-top: 10px;
  white-space: nowrap;
  font-size: 11px
}

.hero-mark span {
  width: 34px;
  height: 3px;
  background: var(--red)
}

.main-content {
  padding: 20px 22px 15px
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr .61fr;
  gap: 10px;
  margin-top: -1px;
  align-items: stretch;
  direction: ltr
}

.dashboard-grid>* {
  direction: rtl
}

.glass-card {
  color: #fff;
  background: linear-gradient(145deg, var(--match-start, #091a36), var(--match-end, #001127));
  border: 2px solid #17649a;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 5px 14px #0f315344
}

.live-card {
  border-color: #ec123c;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px
}

.panel-heading svg {
  color: #fff
}

.live-heading {
  justify-content: flex-end;
  direction: ltr
}

.live-heading h2 {
  direction: rtl
}

.live-pill {
  background: var(--red);
  border-radius: 5px;
  color: white;
  padding: 6px 11px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px
}

.live-pill svg {
  width: 14px
}

.live-body {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 12px;
  margin-top: 11px;
  flex: 1
}

.match-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0
}

.match-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto
}

.match-details span,
.upcoming-details span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px
}

.match-details svg,
.upcoming-details svg {
  width: 14px;
  height: 14px;
  color: var(--red)
}

.teams-score,
.upcoming-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  white-space: nowrap
}

.jersey {
  width: 63px;
  height: 72px;
  clip-path: polygon(25% 0, 40% 9%, 60% 9%, 75% 0, 100% 19%, 89% 47%, 78% 41%, 80% 100%, 20% 100%, 22% 41%, 11% 47%, 0 19%);
  display: grid;
  place-items: center;
  color: #ffffff99;
  font-size: 24px;
  text-shadow: 0 1px 3px #0007;
  box-shadow: inset 0 0 20px #0007
}

.red-shirt {
  background: linear-gradient(90deg, #9b0025, #ff073e 50%, #ad0024)
}

.blue-shirt {
  background: linear-gradient(90deg, #003d96, #126fff 50%, #003983)
}

.vs {
  color: white;
  text-shadow: 0 0 12px var(--red);
  font-size: 26px;
  font-weight: 900;
  font-style: italic
}

.score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  white-space: nowrap
}

.score strong {
  font: 900 34px Arial;
  direction: ltr
}

.score small {
  font-size: 10px
}

.timer {
  background: var(--red);
  border-radius: 4px;
  padding: 4px 9px;
  font: 800 15px Arial
}

.video-cover {
  position: relative;
  border: 1px solid #466d98;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
  background: #051328
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.video-cover:after,
.featured-video:after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #0009);
  pointer-events: none
}

.corner {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 10px;
  padding: 4px 7px
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 67px;
  width: 67px;
  border: 3px solid white;
  border-radius: 50%;
  background: #0009;
  color: white;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: .2s
}

.play-btn:hover {
  background: var(--red);
  scale: 1.07
}

.play-btn svg {
  height: 28px;
  width: 28px
}

.view-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: white;
  z-index: 2;
  font-size: 11px
}

.view-count svg {
  width: 14px
}

.live-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .75fr;
  gap: 7px;
  margin-top: 11px
}

.primary,
.outline {
  border: 0;
  border-radius: 6px;
  color: white;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .2s
}

.primary {
  background: linear-gradient(145deg, #ff123f, #de002d)
}

.primary:hover {
  filter: brightness(1.15)
}

.outline {
  background: #071c3b;
  border: 1px solid #2e679b
}

.outline:hover {
  border-color: white
}

.primary svg,
.outline svg {
  width: 16px;
  height: 16px
}

.wide {
  width: 100%
}

.lineup-card {
  padding: 9px;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.lineup-card .panel-heading {
  justify-content: flex-end
}

.lineup-card h2 {
  font-size: 16px
}

.seg-tabs {
  display: flex;
  justify-content: center;
  border: 1px solid #255b90;
  border-radius: 7px;
  overflow: hidden;
  margin: 5px 12% 6px
}

.seg-tabs button {
  flex: 1;
  background: transparent;
  color: white;
  border: 0;
  font-size: 11px;
  padding: 7px 2px
}

.seg-tabs .selected {
  background: var(--red);
  border-radius: 6px
}

.lineup-content {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 7px;
  flex: 1;
  min-height: 240px
}

.pitch {
  position: relative;
  background: repeating-linear-gradient(0deg, #247c25 0, #247c25 34px, #2f922c 34px, #2f922c 68px);
  border: 3px solid #57ab5e;
  box-shadow: inset 0 0 0 2px #ffffffaa;
  overflow: hidden;
  min-height: 240px
}

.pitch:before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  border-top: 1px solid #ffffff8c
}

.pitch-circle {
  border: 1px solid #ffffff8c;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%)
}

.penalty {
  width: 55%;
  height: 18%;
  position: absolute;
  left: 22.5%;
  border: 1px solid #ffffffa0
}

.penalty.top {
  top: 0;
  border-top: 0
}

.penalty.bottom {
  bottom: 0;
  border-bottom: 0
}

.pitch-players {
  position: absolute;
  inset: 0
}

.pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 800 10px Cairo;
  color: white;
  text-shadow: 1px 1px 2px #000
}

.pitch-player b {
  height: 27px;
  width: 27px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c50031;
  color: white;
  box-shadow: 0 2px 4px #0008;
  font: 900 14px Arial
}

.pitch-player.blue b {
  background: #075ed3
}

.bench {
  color: white;
  overflow: hidden;
  font-size: 10px
}

.bench>b {
  border-bottom: 1px solid #3e6590;
  display: block;
  text-align: center;
  margin-bottom: 3px;
  padding: 3px
}

.bench-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0;
  white-space: nowrap
}

.bench-row b {
  background: white;
  color: #091831;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 10px Arial
}

.coach {
  text-align: right;
  font-size: 10px;
  margin-top: 4px
}

.small-avatar {
  width: 23px;
  height: 23px;
  font-size: 10px;
  border-width: 1px;
  vertical-align: middle
}

.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0
}

.upcoming-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 7px
}

.light-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 8px;
  color: #0b1d3a;
  font-size: 12px
}

.light-card-heading a,
.section-heading a {
  color: #0670c2;
  font-size: 10px
}

.upcoming-inner {
  border-radius: 9px;
  padding: 9px;
  background: linear-gradient(var(--upcoming-start, #071f48), var(--upcoming-end, #020b20));
  color: white;
  box-shadow: inset 0 0 0 1px #3a729f;
  flex: 1
}

.upcoming-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 0;
  margin-bottom: 9px
}

.upcoming-details span {
  font-size: 9px
}

.upcoming-teams .jersey {
  width: 42px;
  height: 51px;
  font-size: 18px
}

.upcoming-teams .vs {
  font-size: 22px
}

.upcoming-teams .team {
  font-size: 9px
}

.registrations {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-start;
  margin: 9px 0
}

.registrations .avatar {
  margin-left: -5px
}

.registrations>span:last-child {
  font: 800 12px Arial;
  margin-right: auto;
  white-space: nowrap
}

.registrations small {
  display: block;
  font: 400 9px Cairo
}

.upcoming-inner .primary,
.upcoming-inner .outline {
  margin-top: 5px;
  padding: 6px
}

.wallet-card {
  background: linear-gradient(120deg, #144c90, #06112a);
  border-radius: 9px;
  color: white;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 87px
}

.wallet-card div {
  display: flex;
  flex-direction: column
}

.wallet-card b {
  font-size: 12px;
  white-space: nowrap
}

.wallet-card b svg {
  width: 15px
}

.wallet-card small {
  font-size: 10px;
  color: #d4dcec
}

.wallet-card strong {
  font-size: 22px;
  line-height: 1.15
}

.wallet-card strong small {
  font-size: 12px
}

.coin-icon {
  font-size: 30px
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px
}

.wallet-actions button {
  border: 0;
  border-radius: 6px;
  background: #108d42;
  color: #fff;
  padding: 7px 2px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px
}

.wallet-actions button:nth-child(2) {
  background: #0963e3
}

.wallet-actions button:nth-child(3) {
  background: #738397
}

.wallet-actions svg {
  width: 17px;
  height: 17px
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0
}

.quick-links a {
  background: white;
  border-radius: 8px;
  min-height: 77px;
  box-shadow: 0 4px 12px #122f4410;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 7px 2px;
  font-weight: 800;
  font-size: 10px;
  transition: .2s
}

.quick-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.quick-links svg {
  width: 27px;
  height: 27px;
  color: var(--red);
  stroke-width: 2.8
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  direction: ltr
}

.content-grid>* {
  direction: rtl
}

.content-card {
  background: #fff;
  border-radius: 9px;
  padding: 11px;
  min-width: 0;
  box-shadow: 0 3px 14px #244d6a0c
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px
}

.section-heading h2 {
  margin: 0;
  font-size: 13px
}

.section-heading a {
  display: flex;
  align-items: center;
  gap: 3px
}

.section-heading svg {
  width: 12px;
  height: 12px
}

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

.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 0
}

.news-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 5px
}

.news-item strong {
  font-size: 10px;
  line-height: 1.45
}

.news-item small {
  font-size: 9px;
  color: #627997
}

.gallery-thumbs {
  height: 137px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  position: relative
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  min-height: 0
}

.gallery-thumbs img:first-child {
  grid-row: span 2
}

.gallery-thumbs img:nth-child(3) {
  display: none
}

.gallery-thumbs button {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #000a;
  border: 0;
  color: white;
  font-size: 19px;
  inset: 50% 0 0 auto;
  width: 49%;
  border-radius: 5px
}

.featured-video {
  height: 110px;
  position: relative;
  border-radius: 5px;
  overflow: hidden
}

.featured-video img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.featured-video .play-btn {
  height: 55px;
  width: 55px
}

.featured-video>span {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: #000b;
  color: #fff;
  border-radius: 3px;
  padding: 2px 4px;
  z-index: 2;
  font: 800 10px Arial
}

.video-title {
  font-size: 10px;
  display: block;
  text-align: center;
  margin-top: 4px
}

footer {
  background: linear-gradient(130deg, #06142e, #002c59 50%, #061327);
  color: white;
  padding: 12px 4% 20px;
  margin-top: 0;
  border-top: 3px solid #e11a3b
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.footer-stat {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 5px
}

.footer-stat svg {
  grid-row: span 2;
  color: var(--red);
  height: 35px;
  width: 35px
}

.footer-stat b {
  font-size: 17px;
  line-height: 1
}

.footer-stat span {
  font-size: 10px
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 10px
}

.footer-location svg {
  color: var(--red);
  height: 31px;
  width: 31px
}

.footer-location small {
  display: block;
  color: #aebed6
}

.social {
  text-align: center
}

.social>span {
  font-size: 11px
}

.social>div {
  display: flex;
  gap: 6px
}

.social a {
  height: 22px;
  width: 22px;
  border-radius: 4px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-family: Arial;
  font-weight: 900
}

.social a:nth-child(2) {
  background: #b72e82
}

.social a:nth-child(3) {
  background: #1769d1
}

.social a:nth-child(4) {
  background: #080808
}

.bottom-nav {
  display: none
}

.modal {
  position: fixed;
  inset: 0;
  background: #001327bf;
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px
}

.modal-card {
  position: relative;
  background: white;
  border-radius: 14px;
  padding: 28px;
  max-width: 430px;
  width: 100%;
  box-shadow: 0 20px 60px #0005;
  text-align: center
}

.modal-card h2 {
  font-size: 21px;
  margin-top: 0
}

.modal-card p {
  color: #55657b
}

.modal-card .primary {
  width: 100%;
  margin-top: 18px
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #eaf0f6;
  border: 0;
  border-radius: 50%;
  height: 32px;
  width: 32px
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #06172f;
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  z-index: 101;
  box-shadow: var(--shadow)
}

@media(max-width:1330px) {
  .site-header {
    padding: 0 15px;
    gap: 9px
  }

  .brand {
    min-width: 230px
  }

  .brand img {
    width: 85px
  }

  .main-nav a {
    padding: 7px 6px;
    font-size: 10px
  }

  .header-actions {
    gap: 5px
  }

  .dashboard-grid {
    grid-template-columns: 1.6fr 1fr .68fr
  }

  .main-content {
    padding: 0 15px 15px
  }

  .team .jersey {
    width: 51px;
    height: 61px
  }

  .upcoming-teams .jersey {
    width: 40px;
    height: 50px
  }

  .quick-links a {
    font-size: 9px
  }

  .live-actions .primary,
  .live-actions .outline {
    font-size: 10px
  }

  .video-cover {
    min-height: 175px
  }
}

@media(max-width:1080px) {
  .brand {
    min-width: 195px
  }

  .brand span {
    font-size: 13px
  }

  .main-nav a {
    font-size: 9px;
    padding: 6px 4px
  }

  .profile-btn>span:not(.avatar),
  .profile-btn>svg {
    display: none
  }

  .dashboard-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas: 'live line' 'side side'
  }

  .live-card {
    grid-area: live
  }

  .lineup-card {
    grid-area: line
  }

  .aside-stack {
    grid-area: side;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch
  }

  .upcoming-card {
    grid-row: span 2
  }

  .wallet-actions {
    align-self: stretch
  }

  .quick-links {
    grid-template-columns: repeat(5, 1fr)
  }

  .content-grid {
    grid-template-columns: 1.5fr 1fr
  }

  .content-card:last-child {
    grid-column: span 2
  }

  .featured-video {
    height: 170px
  }
}

@media(max-width:730px) {
  body {
    background: #eaf1f8
  }

  .site-shell {
    margin: 0;
    border-radius: 0
  }

  .site-header {
    height: 66px;
    padding: 0 12px
  }

  .brand {
    min-width: 0;
    margin-left: auto;
    gap: 6px
  }

  .brand img {
    height: 57px;
    width: 66px
  }

  .brand span {
    font-size: 11px
  }

  .brand small {
    font-size: 9px
  }

  .header-actions {
    gap: 2px
  }

  .profile-btn,
  .search-toggle {
    display: none
  }

  .menu-toggle {
    display: block
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    height: auto;
    z-index: 35;
    background: #081d3c;
    padding: 12px;
    box-shadow: 0 12px 24px #0004;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
  }

  .main-nav.open {
    display: grid
  }

  .main-nav a {
    font-size: 11px
  }

  .hero {
    height: 210px;
    background-position: 58% 40%;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 18px
  }

  .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, #001126bb)
  }

  .hero-content {
    margin: 0;
    text-align: center;
    max-width: 95%
  }

  .hero h1 {
    font-size: 25px
  }

  .hero-sub {
    font-size: 16px
  }

  .eyebrow {
    display: none
  }

  .hero-mark {
    display: none
  }

  .main-content {
    padding: 0 10px 18px
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0
  }

  .live-card {
    padding: 10px;
    order: 0;
    border-radius: 10px
  }

  .lineup-card {
    order: 2
  }

  .aside-stack {
    order: 1;
    display: flex
  }

  .panel-heading h2 {
    font-size: 15px
  }

  .live-body {
    grid-template-columns: 1fr
  }

  .video-cover {
    height: 192px;
    min-height: 0;
    order: 0
  }

  .match-info {
    order: 1
  }

  .live-body .match-info {
    display: flex
  }

  .match-details {
    display: none
  }

  .teams-score {
    justify-content: center;
    gap: 20px
  }

  .team .jersey {
    height: 60px;
    width: 55px
  }

  .score {
    justify-content: center;
    gap: 20px;
    margin-top: 5px
  }

  .score strong {
    font-size: 28px
  }

  .live-actions {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 5px
  }

  .live-actions button {
    padding: 8px 4px;
    font-size: 9px
  }

  .live-actions button:last-child {
    display: none
  }

  .live-actions button svg {
    width: 13px
  }

  .lineup-content {
    min-height: 300px
  }

  .pitch {
    min-height: 300px
  }

  .upcoming-card {
    padding: 8px
  }

  .upcoming-inner {
    padding: 12px
  }

  .upcoming-teams {
    justify-content: center;
    gap: 32px
  }

  .upcoming-teams .jersey {
    height: 69px;
    width: 59px
  }

  .upcoming-teams .team {
    font-size: 12px
  }

  .upcoming-details {
    align-items: center
  }

  .upcoming-details span {
    font-size: 11px
  }

  .registrations {
    justify-content: center
  }

  .registrations>span:last-child {
    margin-right: 25px
  }

  .wallet-card {
    min-height: 95px
  }

  .wallet-actions button {
    font-size: 10px
  }

  .quick-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 12px 0
  }

  .quick-links a {
    min-height: 78px;
    font-size: 10px
  }

  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 10px
  }

  .news-item img {
    height: 91px
  }

  .content-card:last-child {
    grid-column: auto
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
  }

  .footer-location,
  .social {
    grid-column: span 2;
    justify-content: center;
    text-align: center
  }

  .social>div {
    justify-content: center
  }

  footer {
    padding: 24px 18px 110px
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy, #06142c);
    color: white;
    z-index: 55;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -6px 20px #0003;
    padding: 10px 3px max(12px, env(safe-area-inset-bottom))
  }

  .bottom-nav a,
  .bottom-nav button {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: 0;
    color: white;
    font-size: 10px;
    min-width: 50px
  }

  .bottom-nav .selected {
    color: #ff1743
  }

  .bottom-nav svg {
    width: 20px;
    height: 20px
  }

  .bottom-nav .bottom-add {
    position: relative
  }

  .bottom-add svg {
    width: 49px;
    height: 49px;
    background: var(--red);
    border: 6px solid var(--navy, #06142c);
    border-radius: 50%;
    padding: 8px;
    margin-top: -31px
  }

  .header-popover {
    top: 65px;
    left: 8px;
    max-width: calc(100vw - 16px)
  }

  .notices {
    width: 280px
  }
}

@media(min-width:731px) and (max-width:920px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    background: #06162f;
    height: auto;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px
  }

  .main-nav.open {
    display: grid
  }

  .menu-toggle {
    display: block
  }

  .site-header .brand {
    margin-left: auto
  }

  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr
  }

  .hero {
    height: 210px
  }
}

@media(max-width:390px) {
  .brand img {
    width: 58px
  }

  .brand span {
    font-size: 10px
  }

  .live-actions {
    grid-template-columns: 1fr 1fr
  }

  .live-actions button:nth-child(3) {
    display: none
  }

  .news-grid {
    gap: 5px
  }

  .news-item strong {
    font-size: 9px
  }

  .hero h1 {
    font-size: 23px
  }
}

/* Centered desktop layout: breathing room around the entire website */
@media (min-width: 1100px) {
  .site-shell {
    width: 92%;
    max-width: 1560px;
    margin: 20px auto 28px;
    border-radius: 14px;
  }
}

@media (min-width: 731px) and (max-width: 1099px) {
  .site-shell {
    width: 96%;
    margin: 12px auto 20px;
    border-radius: 12px;
  }
}

@media (max-width: 730px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}

/* ===== Header / navigation updated to mirror old site states ===== */
.site-header {
  height: auto;
  min-height: 82px;
  padding: 10px 18px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  min-width: 240px;
  gap: 8px;
  flex-shrink: 0;
}

.brand img {
  height: 86px;
  width: 118px;
  margin: -10px 0 -12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: 0;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-state.hidden {
  display: none !important
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0
}

.nav-link {
  border: 0;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: .18s ease;
  position: relative;
}

.main-nav>a.nav-link,
.main-nav>.nav-item>.nav-link {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.main-nav>a.nav-link:first-child,
.main-nav>.nav-item:first-child>.nav-link {
  border-right: 1px solid rgba(255, 255, 255, .14)
}

.nav-link:hover,
.nav-link.active,
.dropdown.open>.nav-link {
  background: rgba(242, 7, 53, .96);
}

.nav-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.25
}

.drop-arrow {
  width: 14px !important;
  height: 14px !important;
  transition: .18s ease
}

.dropdown.open .drop-arrow {
  transform: rotate(180deg)
}

.header-actions {
  gap: 10px;
  flex-shrink: 0;
}

.state-switch {
  display: flex;
  align-items: center;
  background: #0b2446;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.state-btn {
  border: 0;
  background: transparent;
  color: #c9d7e7;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
}

.state-btn.is-active {
  background: linear-gradient(135deg, #ff2b54, #d8002d);
  color: #fff;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 250px;
  background: #fff;
  color: #081b36;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 34px rgba(4, 20, 44, .22);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
  z-index: 40;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.dropdown-menu a:last-child {
  border-bottom: 0
}

.dropdown-menu a:hover {
  background: #f7fafc;
  color: #d8002d
}

.dropdown-menu svg {
  width: 17px;
  height: 17px;
  color: #225596
}

.dropdown.open>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-accent {
  color: #fff4f6
}

.nav-accent:hover {
  background: #d80b33
}

.nav-contact {
  color: #ffe8e8
}

.icon-btn.menu-toggle {
  color: #fff;
  background: #0b2446;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 9px;
}

.icon-btn.menu-toggle:hover {
  background: #12335f
}

@media(max-width:1480px) {
  .brand {
    min-width: 215px
  }

  .brand img {
    width: 106px;
    height: 78px
  }

  .nav-link {
    font-size: 11px;
    padding: 0 9px;
    gap: 5px
  }

  .nav-link svg {
    width: 16px;
    height: 16px
  }

  .dropdown-menu {
    min-width: 230px
  }
}

@media(max-width:1220px) {
  .site-header {
    padding: 10px 14px;
    gap: 10px
  }

  .brand {
    min-width: 190px
  }

  .brand span {
    font-size: 13px
  }

  .brand img {
    width: 96px;
    height: 72px
  }

  .nav-link {
    font-size: 10px;
    padding: 0 7px
  }

  .state-btn {
    padding: 7px 11px;
    font-size: 11px
  }
}

@media(max-width:920px) {
  .site-header {
    min-height: 76px;
    padding: 8px 12px
  }

  .brand {
    min-width: 0;
    margin-left: auto
  }

  .brand img {
    height: 68px;
    width: 88px;
    margin: -6px 0 -8px
  }

  .brand span {
    font-size: 12px
  }

  .brand small {
    font-size: 9px
  }

  .state-switch {
    order: 2
  }

  .menu-toggle {
    display: block
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    background: #07172f;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .22);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  .main-nav.open {
    display: flex !important
  }

  .main-nav>a.nav-link,
  .main-nav>.nav-item>.nav-link {
    border: 0;
    border-radius: 10px;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 12px;
  }

  .nav-item {
    flex-direction: column
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    overflow: hidden;
    transition: max-height .2s ease;
    margin-top: 4px;
  }

  .dropdown.open>.dropdown-menu {
    max-height: 420px
  }

  .dropdown-menu a {
    font-size: 13px;
    padding: 10px 13px
  }
}

@media(max-width:730px) {
  .site-header {
    padding: 8px 10px
  }

  .header-actions {
    gap: 7px
  }

  .state-btn {
    padding: 6px 10px;
    font-size: 10px
  }
}

/* V4 — compact navigation icons inline at the right of labels (RTL) */
.main-nav .nav-link,
.main-nav .dropdown-menu a {
  flex-direction: row;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  gap: 6px;
}

.main-nav .nav-link>svg:first-child,
.main-nav .dropdown-menu a>svg:first-child {
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex-shrink: 0;
  stroke-width: 2;
}

.main-nav .nav-link>span,
.main-nav .dropdown-menu a>span {
  white-space: nowrap;
}

.main-nav .drop-trigger .drop-arrow {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px;
  margin-right: 2px;
  flex-shrink: 0;
}

.main-nav .nav-link {
  padding-inline: 9px;
  gap: 5px;
}

.main-nav .dropdown-menu a {
  min-height: 0;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 0;
}

@media (max-width: 920px) {

  .main-nav>a.nav-link,
  .main-nav>.nav-item>.nav-link {
    justify-content: flex-start;
    flex-direction: row;
    gap: 9px;
    min-height: 40px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .main-nav .drop-trigger .drop-arrow {
    margin-right: auto;
  }

  .main-nav .dropdown-menu a {
    justify-content: flex-start;
    flex-direction: row;
    gap: 9px;
    padding: 9px 13px;
    font-size: 12px;
  }
}

/* V5: restore the original three-zone desktop header */
.site-header {
  gap: 10px;
  padding-inline: 15px;
  min-height: 80px
}

.brand {
  flex: 0 0 224px;
  min-width: 0;
  margin: 0
}

.brand img {
  height: 76px;
  width: 95px;
  flex-shrink: 0;
  margin: -7px 0 -9px
}

.brand span {
  font-size: 14px
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: 2px
}

.main-nav>.nav-link,
.main-nav>.nav-item>.nav-link {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 60px;
  padding: 6px 8px !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.35;
}

.main-nav>.nav-link>svg:first-child,
.main-nav>.nav-item>.nav-link>svg:first-child {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke-width: 2.1;
}

.main-nav>.nav-item>.nav-link .drop-arrow {
  position: absolute;
  left: 2px;
  bottom: 7px;
  margin: 0 !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px;
}

.main-nav .dropdown-menu a {
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: right !important;
  gap: 8px
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0
}

.member-tools,
.guest-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap
}

.header-icon {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: white;
  width: 31px;
  height: 36px;
  padding: 4px
}

.header-icon svg {
  width: 19px;
  height: 19px
}

.notify-count {
  position: absolute;
  top: -2px;
  right: -1px;
  background: #fa0035;
  border-radius: 40px;
  min-width: 16px;
  height: 16px;
  color: #fff;
  font: 700 10px/16px Arial
}

.member-profile {
  color: #fff;
  background: none;
  border: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  text-align: right;
  padding: 0 3px;
  white-space: nowrap
}

.member-profile>svg {
  width: 13px;
  height: 13px
}

.member-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #a94b2c, #e3a68a);
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900
}

.member-name {
  font-size: 11px;
  line-height: 1.5
}

.member-name small {
  display: block;
  color: #9eacc0;
  font-size: 9px
}

.guest-login {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px
}

.guest-login svg {
  width: 15px
}

.state-switch {
  padding: 2px
}

.state-btn {
  padding: 5px 7px;
  font-size: 9px
}

.header-popover {
  top: calc(100% - 2px)
}

.header-popover a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-bottom: 1px solid #e9eff6
}

.header-popover a svg {
  width: 16px;
  height: 16px;
  color: #19528e
}

.header-popover p {
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #e9eff6
}

@media (max-width:1400px) {
  .brand {
    flex-basis: 183px
  }

  .brand img {
    width: 75px
  }

  .brand span {
    font-size: 12px
  }

  .main-nav>.nav-link,
  .main-nav>.nav-item>.nav-link {
    padding: 5px 5px !important;
    font-size: 9px
  }

  .member-tools {
    gap: 4px
  }

  .member-name {
    font-size: 10px
  }
}

@media (max-width:1120px) {
  .member-name {
    display: none
  }

  .brand {
    flex-basis: 165px
  }

  .main-nav>.nav-link,
  .main-nav>.nav-item>.nav-link {
    padding: 5px 3px !important;
    font-size: 9px
  }
}

@media (max-width:920px) {
  .site-header {
    padding: 8px 12px
  }

  .brand {
    flex: 0 1 auto;
    margin-left: auto
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px
  }

  .main-nav.open {
    display: flex !important
  }

  .main-nav>.nav-link,
  .main-nav>.nav-item>.nav-link {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
    gap: 9px !important;
    min-height: 40px;
    padding: 7px 11px !important;
    font-size: 12px
  }

  .main-nav>.nav-item>.nav-link .drop-arrow {
    position: static;
    margin-right: auto !important;
    width: 12px !important;
    height: 12px !important
  }

  .main-nav .dropdown-menu a {
    font-size: 12px
  }

  .member-name {
    display: none
  }

  .header-actions {
    gap: 5px
  }

  .state-switch {
    order: 0
  }

  .menu-toggle {
    order: 1
  }
}

@media (max-width:600px) {
  .brand img {
    width: 61px;
    height: 55px
  }

  .brand span {
    font-size: 10px
  }

  .member-tools {
    gap: 2px
  }

  .member-avatar {
    width: 25px;
    height: 25px;
    border-width: 1px;
    font-size: 10px
  }

  .member-profile>svg {
    display: block;
    flex: 0 0 13px
  }

  .header-icon {
    width: 24px;
    padding: 2px
  }

  .header-icon svg {
    width: 17px;
    height: 17px
  }

  .state-btn {
    font-size: 8px;
    padding: 4px 5px
  }

  .site-header {
    gap: 3px;
    padding-inline: 7px
  }
}

/* V6 — compact live match composition, matching the supplied concept */
@media (min-width: 1081px) {
  .dashboard-grid {
    align-items: stretch;
  }

  .live-card {
    justify-content: flex-start;
  }

  .live-body {
    display: grid;
    direction: rtl;
    grid-template-columns: minmax(0, .91fr) minmax(0, 1fr);
    gap: 12px;
    flex: 1;
    margin-top: 12px;
    align-items: stretch;
  }

  .live-body .video-cover {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 218px;
    max-height: 295px;
    align-self: stretch;
  }

  .live-body .match-info {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 218px;
    max-height: 295px;
    gap: 10px;
  }

  .live-card .match-details {
    margin: 0;
    align-items: flex-start;
    gap: 3px;
  }

  .live-card .match-details span {
    font-size: clamp(9px, .75vw, 12px);
  }

  .live-card .teams-score {
    margin-top: auto;
    gap: 4px;
    justify-content: space-evenly;
  }

  .live-card .team .jersey {
    width: clamp(42px, 4vw, 63px);
    height: clamp(52px, 4.6vw, 72px)
  }

  .live-card .score {
    margin-top: 6px;
    justify-content: space-between;
    gap: 5px;
  }

  .live-card .score strong {
    font-size: clamp(23px, 2.3vw, 36px)
  }

  .live-card .score small {
    white-space: normal
  }

  .live-actions {
    margin-top: 12px;
    grid-template-columns: 1.35fr 1fr 1fr .72fr;
  }
}

.live-heading {
  min-height: 35px;
  align-items: center
}

.live-heading h2 {
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.35
}

.live-card .video-cover img {
  object-position: center center
}

.live-card .view-count {
  display: flex;
  align-items: center;
  gap: 4px;
  direction: rtl;
  text-shadow: 0 1px 4px #000
}

/* V6 — stadium-inspired footer with evenly spaced stats and flag accents */
.site-shell footer#stats {
  position: relative;
  isolation: isolate;
  min-height: 88px;
  padding: 14px 5.5% 14px;
  overflow: hidden;
  border-top: 3px solid #dce9f4;
  background: linear-gradient(125deg, rgba(4, 19, 43, .96), rgba(5, 36, 73, .94) 50%, rgba(4, 16, 36, .97)),
    url('../images/hero.webp') center 78% / cover;
}

.site-shell footer#stats:before,
.site-shell footer#stats:after {
  content: "";
  position: absolute;
  bottom: -28px;
  width: 160px;
  height: 110px;
  opacity: .83;
  z-index: -1;
  background: linear-gradient(158deg, transparent 0 17%, #e8edf2 17% 23%, #179c6b 23% 40%, #fff 40% 49%, #10151b 49% 60%, #e1193c 60% 70%, transparent 70%);
  filter: drop-shadow(0 3px 8px #0008);
}

.site-shell footer#stats:before {
  left: -18px;
  transform: rotate(17deg)
}

.site-shell footer#stats:after {
  right: -18px;
  transform: scaleX(-1) rotate(17deg)
}

.site-shell footer#stats .footer-content {
  position: relative;
  z-index: 1;
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, .8fr)) minmax(190px, 1.65fr) minmax(110px, 1fr);
  gap: clamp(10px, 1.6vw, 28px);
  align-items: center;
  max-width: 1180px;
  margin: auto;
}

.site-shell footer#stats .footer-stat {
  direction: ltr;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  justify-content: start;
}

.site-shell footer#stats .footer-stat svg {
  width: 34px;
  height: 34px;
  color: #ff0c43;
  grid-row: span 2
}

.site-shell footer#stats .footer-stat:first-child svg {
  color: #f3f8ff
}

.site-shell footer#stats .footer-stat b {
  font: 800 19px/1.1 Cairo, Tahoma, sans-serif;
  direction: ltr;
  text-align: left
}

.site-shell footer#stats .footer-stat span {
  color: #fff;
  font-size: 11px;
  direction: rtl;
  text-align: left
}

.site-shell footer#stats .footer-location {
  direction: ltr;
  gap: 10px;
  align-items: center
}

.site-shell footer#stats .footer-location svg {
  height: 34px;
  width: 34px;
  flex: none
}

.site-shell footer#stats .footer-location>span {
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  font-size: 11px
}

.site-shell footer#stats .footer-location small {
  font-size: 10px
}

.site-shell footer#stats .social {
  direction: rtl;
  text-align: right
}

.site-shell footer#stats .social>span {
  display: block;
  font-size: 12px;
  margin-bottom: 7px
}

.site-shell footer#stats .social>div {
  justify-content: flex-start;
  gap: 6px
}

.site-shell footer#stats .social a {
  width: 24px;
  height: 24px;
  font-size: 14px
}

@media (min-width:731px) and (max-width:1100px) {
  .site-shell footer#stats .footer-content {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 16px
  }

  .site-shell footer#stats .footer-location {
    grid-column: span 2
  }

  .site-shell footer#stats .social {
    grid-column: span 2
  }
}

@media (max-width:1080px) and (min-width:731px) {
  .live-body .match-info {
    min-height: 0
  }
}

@media (max-width:730px) {
  .site-shell footer#stats {
    padding: 22px 18px 115px
  }

  .site-shell footer#stats .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px
  }

  .site-shell footer#stats .footer-stat {
    direction: ltr;
    justify-content: center
  }

  .site-shell footer#stats .footer-location,
  .site-shell footer#stats .social {
    grid-column: span 2;
    justify-content: center;
    text-align: center
  }

  .site-shell footer#stats .social>div {
    justify-content: center
  }

  .site-shell footer#stats .footer-location>span {
    text-align: right
  }

  .live-body .match-info {
    gap: 8px
  }

  .live-actions {
    margin-top: 9px
  }
}

/* V7: replace stripe-like footer decoration with real UAE fabric waves */
.site-shell footer#stats::before,
.site-shell footer#stats::after {
  content: "";
  position: absolute;
  width: 205px;
  height: 117px;
  bottom: -12px;
  z-index: 0;
  opacity: .97;
  background: url('../images/uae-waving-flag.svg') center/contain no-repeat;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .35));
  pointer-events: none;
}

.site-shell footer#stats::before {
  left: -35px;
  transform: rotate(20deg) scale(1.05);
}

.site-shell footer#stats::after {
  right: -35px;
  transform: scaleX(-1) rotate(20deg) scale(1.05);
}

.site-shell footer#stats .footer-content {
  z-index: 1;
  position: relative
}

@media(max-width:730px) {

  .site-shell footer#stats::before,
  .site-shell footer#stats::after {
    width: 124px;
    height: 75px;
    bottom: 3px;
    opacity: .75
  }

  .site-shell footer#stats::before {
    left: -30px
  }

  .site-shell footer#stats::after {
    right: -30px
  }
}

/* V8 — mobile footer simplified + wallet card refined */
.wallet-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, #163f79, #08224a 58%, #06152f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.wallet-icon-box {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.wallet-icon-box svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.wallet-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
}

.wallet-copy b {
  display: block;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-copy small {
  color: #d7e3f5;
  font-size: 11px;
  line-height: 1.2;
}

.wallet-copy strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 900 18px/1.1 Arial, sans-serif;
  white-space: nowrap;
}

.wallet-copy strong small {
  order: 2;
  font: 800 12px/1 Cairo, Tahoma, sans-serif;
  color: #fff;
}

.footer-brand-mobile {
  display: none
}

@media(max-width:730px) {
  .site-shell footer#stats {
    padding: 20px 16px 108px;
    min-height: auto;
  }

  .site-shell footer#stats::before,
  .site-shell footer#stats::after {
    display: none
  }

  .site-shell footer#stats .footer-stat,
  .site-shell footer#stats .footer-location {
    display: none
  }

  .site-shell footer#stats .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .footer-brand-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
  }

  .footer-brand-mobile strong {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
  }

  .footer-brand-mobile small {
    font-size: 11px;
    letter-spacing: .8px;
    color: #dce8f8;
    direction: ltr;
  }

  .site-shell footer#stats .social {
    grid-column: auto;
    text-align: center;
    justify-content: center;
  }

  .site-shell footer#stats .social>span {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .site-shell footer#stats .social>div {
    justify-content: center;
    gap: 8px;
  }

  .site-shell footer#stats .social a {
    width: 28px;
    height: 28px;
    font-size: 15px;
    border-radius: 6px;
  }

  .wallet-card {
    min-height: 92px;
    padding: 13px 14px;
  }

  .wallet-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .wallet-copy b {
    font-size: 15px
  }

  .wallet-copy strong {
    font-size: 16px
  }
}
/* Hover controls are independent of the selected navigation color. */
.main-nav a:hover,
.main-nav .nav-link:hover,
.main-nav .nav-accent:hover,
.primary:hover,
.outline:hover,
.icon-btn.menu-toggle:hover,
.quick-links a:hover,
.dropdown-menu a:hover {
  background: var(--hover, #f20735);
  color: #fff;
  filter: none;
}
.dropdown-menu a:hover svg { color: inherit; }

/* Separate hero artwork for desktop and mobile. */
.hero-responsive-image{display:none}
@media(max-width:730px){
  .hero{height:auto;min-height:clamp(150px,42vw,200px);padding:0;display:grid;align-items:end;justify-content:stretch;background-image:none!important;background-color:#071c35;overflow:hidden}
  .hero .hero-responsive-image{display:block;grid-area:1/1;width:100%;height:clamp(150px,42vw,200px);align-self:stretch}
  .hero-responsive-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
  .hero:before{display:block;grid-area:1/1;position:absolute;inset:0;background:linear-gradient(transparent 35%,#001126bb);pointer-events:none}
  .hero:after{display:none}
  .hero .hero-content{grid-area:1/1;align-self:end;box-sizing:border-box;z-index:1;width:100%;max-width:none;margin:0;padding:16px;text-align:center}
  .hero .hero-content h1{font-size:clamp(20px,5.5vw,28px);line-height:1.5;margin:0 0 3px}
  .hero .hero-sub{font-size:14px;line-height:1.7;margin:0}
}
/* Keep the footer YouTube mark independent of icon-font coverage. */
.site-shell footer#stats .social a[aria-label="يوتيوب"]{background:#ff0000;color:#fff}
.site-shell footer#stats .footer-youtube-icon{display:block;width:18px;height:18px;flex-shrink:0}

.member-avatar{overflow:hidden;flex-shrink:0}.member-avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

#publicProfileMenu .member-menu-summary{display:flex;align-items:center;gap:14px;padding:4px 0 16px;margin-bottom:6px;border-bottom:1px solid #e3ebf5;text-align:right}#publicProfileMenu .member-menu-avatar{display:block;width:64px;height:64px;flex:0 0 64px;object-fit:cover;border:3px solid #e8f0fa;border-radius:50%;background:#f6f9fd}#publicProfileMenu .member-menu-summary strong{display:block;color:#102d53;font-size:14px}#publicProfileMenu .member-menu-summary small{display:block;margin-top:4px;color:#71839a;font-size:12px}
