:root {
  --page-bg: #050607;
  --panel: rgba(18, 21, 24, 0.88);
  --panel-strong: rgba(21, 25, 29, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f7f7f4;
  --muted: rgba(247, 247, 244, 0.62);
  --dim: rgba(247, 247, 244, 0.42);
  --red: #f04438;
  --red-dark: #b42318;
  --green: #21c998;
  --cyan: #5ec7f2;
  --gold: #f7b955;
  --ink: #090b0d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.42), rgba(5, 6, 7, 0.96) 56%, #050607 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.68), rgba(5, 6, 7, 0.08) 42%, rgba(5, 6, 7, 0.74)),
    url("../img/stadium-hero.png") center top / cover no-repeat;
  opacity: 0.92;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(240, 68, 56, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(33, 201, 152, 0.1), transparent 34%),
    linear-gradient(180deg, transparent 0, rgba(5, 6, 7, 0.82) 72%);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 7, 8, 0.78);
  backdrop-filter: blur(18px);
}

.site-header > div {
  min-height: 4.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(240, 68, 56, 0.95), rgba(247, 185, 85, 0.9)),
    var(--red);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(240, 68, 56, 0.28);
}

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-link {
  min-height: 2.35rem;
  padding: 0 0.85rem;
}

.nav-link:hover,
.mobile-nav-link:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-link-active,
.mobile-nav-link-active {
  border-color: rgba(33, 201, 152, 0.35);
  background: rgba(33, 201, 152, 0.12);
  color: #fff;
}

.nav-icon {
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
}

.cta-live {
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 0.95rem;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.12);
}

.vip-status-pill {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.36);
  border-radius: 999px;
  background: rgba(247, 185, 85, 0.12);
  padding: 0 0.85rem;
  color: #ffd796;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(247, 185, 85, 0.08);
}

.vip-status-active {
  border-color: rgba(33, 201, 152, 0.46);
  background: rgba(33, 201, 152, 0.14);
  color: #a6f4d6;
}

.vip-remaining-pill {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 201, 152, 0.34);
  border-radius: 999px;
  background: rgba(33, 201, 152, 0.12);
  padding: 0 0.72rem;
  color: #bff8e4;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.vip-popup {
  border-radius: 1rem;
  border-color: rgba(147, 160, 255, 0.32);
  background:
    linear-gradient(140deg, rgba(110, 123, 255, 0.16), rgba(65, 243, 199, 0.06)),
    rgba(12, 16, 30, 0.96);
}

.vip-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.95rem 1rem;
}

.vip-popup-head strong,
.vip-popup-head span {
  display: block;
}

.vip-popup-head strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.vip-popup-head span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.vip-popup-close {
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.vip-popup-form {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(240, 68, 56, 0.14);
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.27rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 1rem 1rem;
  background: rgba(6, 7, 8, 0.96);
}

.mobile-nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.85rem 0.95rem;
}

.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 6, 7, 0.76);
  padding: 1.45rem 0;
  backdrop-filter: blur(16px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.38rem 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(33, 201, 152, 0.12);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 1.35rem 0 1rem;
}

.toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
}

.toolbar-title::before {
  content: "";
  width: 0.32rem;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}

.muted {
  color: var(--muted);
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.panel-header {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.95rem 1rem;
}

.league-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
}

.league-logo {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.12rem;
}

.league-name::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--gold), var(--green));
}

.match-list {
  display: grid;
  gap: 0;
}

.match-item {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding: 1rem;
  transition: 180ms ease;
}

.match-item:first-child {
  border-top: 0;
}

.match-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

@media (min-width: 760px) {
  .match-item {
    grid-template-columns: 5.5rem minmax(0, 1fr) 5.75rem auto;
  }
}

.match-time {
  display: inline-flex;
  width: fit-content;
  min-width: 4.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.42rem 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.match-time-live {
  border-color: rgba(240, 68, 56, 0.42);
  background: rgba(240, 68, 56, 0.14);
  color: #ffb4ad;
}

.team-stack {
  display: grid;
  gap: 0.46rem;
  min-width: 0;
}

.team-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
}

.team-row span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-logo {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 0.18rem;
}

.team-logo-placeholder {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
}

.score-chip {
  display: inline-flex;
  min-width: 4.8rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.22);
  border-radius: 0.9rem;
  background: rgba(247, 185, 85, 0.1);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.score-chip-live {
  border-color: rgba(240, 68, 56, 0.36);
  background: rgba(240, 68, 56, 0.14);
  color: #ffb4ad;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-action,
.btn-primary,
.btn-secondary,
.filter-chip {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.82rem;
  padding: 0 0.86rem;
  font-size: 0.82rem;
  font-weight: 800;
  transition: 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(240, 68, 56, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary,
.filter-chip {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.btn-secondary:hover,
.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.filter-chip-active {
  border-color: rgba(33, 201, 152, 0.4);
  background: rgba(33, 201, 152, 0.16);
  color: #fff;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.35rem;
}

.info-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-live {
  border-color: rgba(240, 68, 56, 0.34);
  background: rgba(240, 68, 56, 0.13);
  color: #ffb4ad;
}

.empty-state,
.error-state,
.success-state,
.empty-msg,
.error-msg {
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

.error-state,
.error-msg {
  color: #ffb4ad;
}

.success-state {
  color: #a6f4d6;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}

.player-wrapper iframe,
.player-wrapper video,
.player-wrapper .player-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.54);
  box-shadow: var(--shadow);
}

.selected-match-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 980px) {
  .selected-match-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    align-items: start;
  }
}

.versus-panel {
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: var(--panel);
  padding: 1rem;
}

.versus-team {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.85rem 0;
}

.versus-team + .versus-team {
  border-top: 1px solid var(--line-soft);
}

.versus-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 0.25rem;
}

.versus-name {
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.35;
}

.live-theater {
  display: grid;
  gap: 1rem;
}

.live-command {
  display: grid;
  gap: 1rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(33, 201, 152, 0.11), transparent 34%),
    linear-gradient(225deg, rgba(240, 68, 56, 0.12), transparent 38%),
    rgba(12, 14, 15, 0.88);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .live-command {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 42rem);
  }
}

.live-command h1 {
  margin-top: 0.65rem;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
}

.live-command p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.96rem;
  line-height: 1.75;
}

.live-command-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .live-command-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.live-command-stats div {
  min-height: 5rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.78rem;
}

.live-command-stats strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.live-command-stats span {
  display: block;
  margin-top: 0.38rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
}

@media (min-width: 1080px) {
  .live-theater {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
    align-items: start;
  }
}

.live-theater-focus {
  align-items: stretch;
}

.live-player-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.66);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}

.live-side-panel {
  display: grid;
  gap: 0;
}

.match-scoreboard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(247, 185, 85, 0.11), transparent 42%),
    var(--panel);
  padding: 1rem;
}

.score-display {
  display: inline-flex;
  min-width: 8.5rem;
  min-height: 4.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.3);
  border-radius: 1rem;
  background: rgba(247, 185, 85, 0.11);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stream-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
}

.channel-panel {
  box-shadow: none;
}

.channel-dock {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  max-height: 23rem;
  overflow: auto;
}

.channel-pill {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 3.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.55rem 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  transition: 180ms ease;
}

.channel-pill:hover,
.channel-pill-active {
  border-color: rgba(33, 201, 152, 0.36);
  background: rgba(33, 201, 152, 0.12);
  color: #fff;
}

.channel-mini-logo {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
  padding: 0.18rem;
}

.channel-mini-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.broadcast-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1.05rem;
  background: var(--panel);
  padding: 1rem;
  transition: 180ms ease;
}

.broadcast-card:hover,
.broadcast-card-active {
  border-color: rgba(33, 201, 152, 0.34);
  background:
    linear-gradient(135deg, rgba(33, 201, 152, 0.09), transparent 42%),
    var(--panel-strong);
  transform: translateY(-1px);
}

.broadcast-card-modern {
  position: relative;
}

.broadcast-card-modern::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.broadcast-card-modern:hover::before,
.broadcast-card-active::before {
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.live-studio-hero {
  display: grid;
  gap: 1rem;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.88), rgba(5, 6, 7, 0.5)),
    linear-gradient(135deg, rgba(94, 199, 242, 0.12), transparent 34%),
    rgba(13, 16, 18, 0.9);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .live-studio-hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  }
}

.live-studio-hero h1 {
  margin-top: 0.55rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
}

.live-studio-hero p {
  margin-top: 0.55rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.studio-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.studio-metrics div {
  border: 1px solid var(--line-soft);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.065);
  padding: 0.8rem;
}

.studio-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.studio-metrics span {
  display: block;
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
}

.studio-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1120px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 29rem);
    align-items: start;
  }
}

.studio-screen,
.studio-card,
.studio-score-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1.15rem;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.studio-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(4, 5, 6, 0.86);
}

.studio-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}

.studio-screen-head h2 {
  margin-top: 0.65rem;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-player {
  border-radius: 0;
}

.studio-stream-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.studio-stream-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-rail {
  display: grid;
  gap: 0.85rem;
}

.studio-score-card {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(247, 185, 85, 0.12), transparent 42%),
    var(--panel-strong);
}

.studio-score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.studio-score-line > div {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-align: center;
}

.studio-score-line img,
.studio-score-line > div > span {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 0.25rem;
}

.studio-score-line > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 900;
}

.studio-score-line strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.studio-score-line b {
  display: inline-flex;
  min-width: 5.4rem;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.34);
  border-radius: 1rem;
  background: rgba(247, 185, 85, 0.12);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.85rem 1rem;
}

.studio-card-head strong {
  color: #fff;
  font-size: 0.95rem;
}

.studio-card-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-channel-list,
.upnext-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.studio-channel {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 3.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.52rem 0.7rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
}

.studio-channel:hover,
.studio-channel-active {
  border-color: rgba(33, 201, 152, 0.36);
  background: rgba(33, 201, 152, 0.12);
  color: #fff;
}

.upnext-list a {
  display: grid;
  grid-template-columns: 3.7rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.65rem;
}

.upnext-list span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.upnext-list strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-board {
  border: 1px solid var(--line-soft);
  border-radius: 1.15rem;
  background: rgba(10, 12, 13, 0.72);
  padding: 1rem;
}

.match-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.match-board-head strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.match-board-head span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.match-board-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .match-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.match-tile {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.9rem;
  transition: 180ms ease;
}

.match-tile:hover,
.match-tile-active {
  border-color: rgba(94, 199, 242, 0.34);
  background:
    linear-gradient(135deg, rgba(94, 199, 242, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.065);
}

.match-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.match-tile-top span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-tile-top b {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.match-tile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.match-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.75rem;
}

.match-tile-tags span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.3rem 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  font-weight: 800;
}

.immersive-player {
  background: #000;
}

.immersive-player iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.immersive-scoreboard {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.immersive-scoreboard-glass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  width: min(54rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 14, 24, 0.72), rgba(4, 5, 8, 0.9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.1rem;
  backdrop-filter: blur(18px);
}

.immersive-team {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.immersive-team-away {
  justify-content: flex-start;
}

.immersive-team img,
.immersive-team span {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 0.18rem;
}

.immersive-team span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-weight: 900;
}

.immersive-team strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.immersive-center {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
}

.immersive-center > span {
  border: 1px solid rgba(240, 68, 56, 0.35);
  border-radius: 999px;
  background: rgba(240, 68, 56, 0.14);
  padding: 0.12rem 0.5rem;
  color: #ffb4ad;
  font-size: 0.62rem;
  font-weight: 900;
}

.immersive-center b {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

.immersive-center small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.immersive-center i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.immersive-watermark {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.immersive-watermark span {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.24);
  border-radius: 0.55rem;
  background: rgba(247, 185, 85, 0.1);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(247, 185, 85, 0.2);
}

.immersive-watermark strong {
  color: var(--gold);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(247, 185, 85, 0.35);
}

.immersive-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  gap: 0.7rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.44), transparent);
  padding: 4rem 1rem 1rem;
}

.immersive-source-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid rgba(247, 185, 85, 0.15);
  padding-top: 0.75rem;
}

.immersive-source-label {
  color: rgba(247, 185, 85, 0.7);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.immersive-source-list {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.immersive-source-list::-webkit-scrollbar {
  display: none;
}

.immersive-source-list a {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.36rem 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.immersive-source-list a:hover,
.immersive-source-list a.active {
  border-color: rgba(247, 185, 85, 0.54);
  background: rgba(247, 185, 85, 0.16);
  color: var(--gold);
}

.immersive-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.immersive-control-left,
.immersive-control-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.immersive-control-left span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
}

.immersive-ctrl {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: 160ms ease;
}

.immersive-ctrl:hover {
  background: rgba(247, 185, 85, 0.15);
  color: var(--gold);
  transform: translateY(-1px);
}

.chat-preview-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  width: min(22rem, 90%);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 14, 0.96);
  backdrop-filter: blur(18px);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.chat-preview-open {
  transform: translateX(0);
}

.chat-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.chat-preview-head strong {
  color: #fff;
  font-size: 0.92rem;
}

.chat-preview-head button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  width: 1.8rem;
  height: 1.8rem;
}

.chat-preview-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  text-align: center;
}

.chat-preview-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}

.chat-preview-input input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 0.8rem;
  outline: none;
}

.chat-preview-input button {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  padding: 0.62rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.match-lobby {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.02)),
    rgba(10, 12, 11, 0.82);
  padding: 1rem;
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.lobby-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lobby-tab {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.68);
  cursor: pointer;
  min-height: 2.35rem;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.lobby-tab:hover,
.lobby-tab-active {
  border-color: rgba(44, 227, 163, 0.42);
  background: rgba(44, 227, 163, 0.14);
  color: #fff;
}

.lobby-panel {
  display: none;
}

.lobby-panel-active {
  display: block;
}

.lobby-match-card {
  display: grid;
  gap: 1rem;
}

.lobby-league {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.84rem;
}

.lobby-league span,
.lobby-league strong {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  padding: 0.42rem 0.75rem;
}

.lobby-league strong {
  color: var(--gold);
}

.lobby-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.lobby-versus > div {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-align: center;
}

.lobby-versus img,
.lobby-versus > div > span {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.92);
  object-fit: contain;
  padding: 0.25rem;
}

.lobby-versus > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--gold);
  font-weight: 900;
}

.lobby-versus strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 0.98rem;
}

.lobby-versus b {
  display: inline-flex;
  min-width: 6rem;
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 1rem;
  background: rgba(255, 209, 102, 0.12);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
}

.lobby-meta-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 760px) {
  .lobby-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lobby-meta-grid div,
.lobby-placeholder,
.lobby-stats div {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.045);
  padding: 0.85rem;
}

.lobby-meta-grid span,
.lobby-placeholder span,
.lobby-stats span,
.lobby-chat span {
  display: block;
  color: rgba(255,255,255,0.52);
  font-size: 0.78rem;
}

.lobby-meta-grid strong,
.lobby-placeholder strong,
.lobby-chat strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-weight: 900;
}

.lobby-stats {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 760px) {
  .lobby-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lobby-stats div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  text-align: center;
}

.lobby-stats strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.lobby-chat {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 0.9rem;
}

@media (min-width: 760px) {
  .lobby-chat {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem) auto;
  }
}

.lobby-chat input {
  min-height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}

@media (max-width: 760px) {
  .immersive-scoreboard {
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
  }

  .immersive-scoreboard-glass {
    gap: 0.5rem;
    border-radius: 1.1rem;
    padding: 0.45rem 0.6rem;
  }

  .immersive-team strong {
    display: none;
  }

  .immersive-team img,
  .immersive-team span {
    width: 1.8rem;
    height: 1.8rem;
  }

  .immersive-center b {
    font-size: 1.2rem;
  }

  .immersive-watermark {
    display: none;
  }

  .immersive-controls {
    padding: 2.6rem 0.65rem 0.65rem;
  }

  .immersive-source-strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.channel-card {
  display: grid;
  min-height: 12.5rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1.05rem;
  background: var(--panel);
  transition: 180ms ease;
  cursor: pointer;
}

.channel-card:hover {
  border-color: rgba(33, 201, 152, 0.34);
  transform: translateY(-2px);
}

.channel-card-locked {
  position: relative;
}

.channel-card-locked::after {
  content: "VIP";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid rgba(247, 185, 85, 0.42);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.78);
  padding: 0.25rem 0.55rem;
  color: #ffd796;
  font-size: 0.68rem;
  font-weight: 900;
}

.channel-logo-box {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    #0d1012;
  padding: 1rem;
}

.channel-logo-box img {
  max-height: 4rem;
  object-fit: contain;
  transition: 180ms ease;
}

.channel-card:hover img {
  transform: scale(1.04);
}

.table-shell {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.82rem 0.9rem;
}

.data-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

.rank-pill {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-1 {
  border-color: rgba(247, 185, 85, 0.4);
  background: rgba(247, 185, 85, 0.16);
  color: #ffd796;
}

.rank-2 {
  border-color: rgba(94, 199, 242, 0.36);
  background: rgba(94, 199, 242, 0.13);
  color: #b7eaff;
}

.rank-3 {
  border-color: rgba(33, 201, 152, 0.36);
  background: rgba(33, 201, 152, 0.13);
  color: #a6f4d6;
}

.analysis-card,
.boxing-card,
.fight-row,
.card {
  border: 1px solid var(--line-soft);
  border-radius: 1.05rem;
  background: var(--panel);
}

.analysis-card,
.boxing-card {
  overflow: hidden;
  margin-top: 0.85rem;
}

.fight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.9rem;
}

.corner {
  min-width: 0;
}

.corner:last-child {
  text-align: right;
}

.corner-name {
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.35;
}

.corner-detail {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.vs-label {
  display: inline-flex;
  min-width: 3.2rem;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 800;
  text-align: center;
}

.modal-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #101316;
  box-shadow: var(--shadow);
}

.vip-badge {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 185, 85, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 185, 85, 0.22), rgba(240, 68, 56, 0.12));
  padding: 0 0.66rem;
  color: #ffd796;
  font-size: 0.72rem;
  font-weight: 900;
}

.vip-dashboard {
  display: grid;
  gap: 1rem;
}

@media (min-width: 920px) {
  .vip-dashboard {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  }
}

.vip-status-card,
.vip-activate-card {
  border: 1px solid var(--line-soft);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(247, 185, 85, 0.12), transparent 38%),
    var(--panel);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.vip-status-card {
  min-height: 16rem;
  overflow: hidden;
  position: relative;
}

.vip-status-card::after {
  content: "VIP";
  position: absolute;
  right: -0.5rem;
  bottom: -1.8rem;
  color: rgba(247, 185, 85, 0.08);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
}

.vip-activate-card {
  background:
    linear-gradient(180deg, rgba(33, 201, 152, 0.1), transparent 46%),
    var(--panel);
}

.vip-input {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

.vip-input:focus {
  border-color: rgba(247, 185, 85, 0.62);
  box-shadow: 0 0 0 4px rgba(247, 185, 85, 0.12);
}

.vip-rule {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.vip-rule strong {
  color: #fff;
  font-size: 0.95rem;
}

.vip-rule span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.vip-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(247, 185, 85, 0.18), rgba(240, 68, 56, 0.1)),
    rgba(0, 0, 0, 0.82);
}

.vip-gate-title {
  max-width: 34rem;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.vip-gate-copy {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

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

.animate-pulse-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #060708;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 640px) {
  .match-item {
    padding: 0.9rem;
  }

  .score-chip {
    min-width: 4.2rem;
  }
}

/* ==========================================================
   BallOnline V4 - full site redesign skin
   ========================================================== */
:root {
  --page-bg: #070807;
  --panel: rgba(12, 14, 13, 0.82);
  --panel-strong: rgba(16, 20, 18, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #fbfbf5;
  --muted: rgba(251, 251, 245, 0.62);
  --dim: rgba(251, 251, 245, 0.4);
  --red: #ff3f38;
  --red-dark: #bb241f;
  --green: #2ce3a3;
  --cyan: #55d3ff;
  --gold: #ffd166;
  --ink: #050606;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 63, 56, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(44, 227, 163, 0.16), transparent 26rem),
    linear-gradient(180deg, #080908 0%, #050606 64%, #030404 100%);
}

body::before {
  opacity: 0.42;
  filter: saturate(0.8) contrast(1.15);
  background:
    linear-gradient(180deg, rgba(5, 6, 6, 0.54), rgba(5, 6, 6, 0.98) 70%),
    url("../img/stadium-hero.png") center top / cover no-repeat;
}

body::after {
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
  background-size: 44px 44px, 44px 44px, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 72%);
}

.stadium-shell-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 209, 102, 0.09) 18.2% 18.7%, transparent 18.9%),
    linear-gradient(245deg, transparent 0 24%, rgba(85, 211, 255, 0.08) 24.2% 24.7%, transparent 24.9%);
}

.site-header {
  top: 0.75rem;
  width: min(1248px, calc(100% - 1.5rem));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(18, 22, 20, 0.88), rgba(8, 9, 9, 0.84));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.site-header > div,
.site-header-inner {
  min-height: 4rem;
}

.brand-mark {
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, #ff3f38, #ffd166 58%, #2ce3a3);
  box-shadow: 0 16px 32px rgba(255, 63, 56, 0.2);
}

.brand-lockup:hover .brand-mark {
  transform: rotate(-2deg) scale(1.03);
}

.brand-mark,
.brand-lockup {
  transition: 180ms ease;
}

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.nav-link {
  min-height: 2.45rem;
  padding: 0 0.8rem 0 0.55rem;
}

.nav-icon {
  width: 1.55rem;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.72rem;
}

.nav-link:hover,
.mobile-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-active,
.mobile-nav-link-active {
  border-color: rgba(44, 227, 163, 0.42);
  background:
    linear-gradient(135deg, rgba(44, 227, 163, 0.18), rgba(85, 211, 255, 0.08));
  color: #fff;
}

.cta-live {
  background: linear-gradient(135deg, #fff, #dfffee);
  box-shadow: 0 16px 34px rgba(44, 227, 163, 0.12);
}

.vip-status-pill {
  border-color: rgba(255, 209, 102, 0.44);
  background: rgba(255, 209, 102, 0.12);
  color: #ffe2a0;
}

.mobile-nav {
  margin: 0 0.75rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(7, 8, 8, 0.94);
}

main {
  padding-top: 2.15rem !important;
}

.live-studio-hero,
.live-command {
  border-radius: 1.35rem;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(105deg, rgba(11, 13, 12, 0.94), rgba(11, 13, 12, 0.72) 54%, rgba(11, 13, 12, 0.92)),
    linear-gradient(135deg, rgba(255, 63, 56, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(44, 227, 163, 0.13), transparent 34%);
  box-shadow: var(--shadow);
}

.section-kicker {
  border-color: rgba(44, 227, 163, 0.3);
  background: rgba(44, 227, 163, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.live-studio-hero h1,
.live-command h1 {
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.live-studio-hero p,
.live-command p {
  color: rgba(255, 255, 255, 0.68);
}

.studio-metrics div,
.live-command-stats div {
  border-radius: 1rem;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.studio-metrics strong,
.live-command-stats strong {
  color: #fff;
  font-weight: 900;
}

.panel,
.analysis-card,
.boxing-card,
.fight-row,
.card,
.channel-card,
.studio-screen,
.studio-card,
.studio-score-card,
.match-board,
.vip-status-card,
.vip-activate-card {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(12, 14, 13, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.panel-header,
.studio-card-head {
  background:
    linear-gradient(90deg, rgba(44, 227, 163, 0.08), rgba(255,255,255,0.03));
}

.league-name::before,
.toolbar-title::before {
  background: linear-gradient(180deg, #2ce3a3, #ffd166);
}

.match-item,
.match-tile,
.broadcast-card,
.channel-pill,
.studio-channel,
.upnext-list a {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.match-item:hover,
.match-tile:hover,
.match-tile-active,
.broadcast-card:hover,
.broadcast-card-active,
.channel-pill:hover,
.channel-pill-active,
.studio-channel:hover,
.studio-channel-active {
  border-color: rgba(44, 227, 163, 0.34);
  background:
    linear-gradient(135deg, rgba(44, 227, 163, 0.1), rgba(85, 211, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
}

.score-chip {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.1);
  border-radius: 0.8rem;
}

.status-live,
.match-time-live {
  border-color: rgba(255, 63, 56, 0.4);
  background: rgba(255, 63, 56, 0.14);
  color: #ffbab5;
}

.btn-primary {
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3f38, #bb241f);
  box-shadow: 0 16px 32px rgba(255, 63, 56, 0.22);
}

.btn-secondary,
.filter-chip {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

.filter-chip-active {
  border-color: rgba(44, 227, 163, 0.4);
  background: rgba(44, 227, 163, 0.16);
}

.data-table th {
  background: rgba(255,255,255,0.025);
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(255,255,255,0.085);
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 6, 0.7);
}

.immersive-scoreboard-glass {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 17, 16, 0.78), rgba(4, 5, 5, 0.92));
}

.immersive-source-list a.active,
.immersive-source-list a:hover,
.immersive-ctrl:hover {
  border-color: rgba(44, 227, 163, 0.42);
  background: rgba(44, 227, 163, 0.14);
  color: #c8ffe9;
}

@media (max-width: 720px) {
  .site-header {
    top: 0.5rem;
    width: min(100% - 1rem, 1248px);
  }

  .site-actions {
    gap: 0.35rem;
  }

  .vip-status-pill {
    min-height: 2.25rem;
    padding: 0 0.7rem;
  }

  .vip-remaining-pill {
    min-height: 2.05rem;
    padding: 0 0.58rem;
    font-size: 0.68rem;
  }

  main {
    padding-top: 1.5rem !important;
  }

  .live-studio-hero,
  .live-command {
    border-radius: 1rem;
  }
}

/* Live.php V6 complete redesign */
.live-v6-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.live-v6-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 12%, rgba(44, 227, 163, 0.13), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(255, 209, 102, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(3, 5, 7, 0.18), rgba(3, 5, 7, 0.88));
}

.live-v6-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  min-height: 13.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.4rem;
  background:
    linear-gradient(100deg, rgba(5, 7, 8, 0.95), rgba(5, 7, 8, 0.72) 58%, rgba(5, 7, 8, 0.94)),
    url("../img/stadium-hero.png") center 42% / cover no-repeat;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.live-v6-hero::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3f38, #ffd166 38%, #2ce3a3 70%, #55d3ff);
  opacity: 0.88;
}

.live-v6-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.live-v6-hero h1 {
  margin: 0.85rem 0 0.4rem;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.live-v6-hero p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.live-v6-meter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(6.6rem, 1fr));
  gap: 0.65rem;
}

.live-v6-meter-grid div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  background: rgba(5, 7, 8, 0.62);
  backdrop-filter: blur(18px);
}

.live-v6-meter-grid strong {
  display: block;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.live-v6-meter-grid span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
}

.live-v6-error,
.live-v6-empty {
  border-radius: 1.15rem;
}

.live-v6-command {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1rem;
  align-items: start;
}

.live-v6-program,
.live-v6-stage,
.live-v6-inspector,
.live-v6-next {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.022)),
    rgba(7, 10, 11, 0.86);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.live-v6-program,
.live-v6-inspector {
  position: sticky;
  top: 6.8rem;
}

.live-v6-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.live-v6-panel-head strong {
  display: block;
  margin-top: 0.45rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.live-v6-panel-head > span,
.live-v6-panel-head div + span {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
}

.live-v6-program-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 48rem;
  overflow: auto;
  padding: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.live-v6-program-list::-webkit-scrollbar {
  width: 6px;
}

.live-v6-program-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.live-v6-program-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 4.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.live-v6-program-item:hover,
.live-v6-program-item.active {
  border-color: rgba(44, 227, 163, 0.34);
  background:
    linear-gradient(135deg, rgba(44, 227, 163, 0.12), rgba(85, 211, 255, 0.05)),
    rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.live-v6-program-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 950;
}

.live-v6-program-time.is-live {
  border-color: rgba(255, 63, 56, 0.38);
  background: rgba(255, 63, 56, 0.14);
  color: #ffbab5;
}

.live-v6-program-teams {
  min-width: 0;
}

.live-v6-program-teams b,
.live-v6-program-teams small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-program-teams b {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.live-v6-program-teams small {
  color: #ffd166;
  font-size: 0.72rem;
  font-weight: 900;
}

.live-v6-stage {
  overflow: hidden;
}

.live-v6-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
}

.live-v6-league {
  display: inline-flex;
  max-width: min(100%, 36rem);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-stage-head h2 {
  margin-top: 0.35rem;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
}

.live-v6-stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.live-v6-player {
  position: relative;
  min-height: 22rem;
  aspect-ratio: 16 / 9;
  margin: 0 1rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at center, rgba(30, 38, 34, 0.75), rgba(0, 0, 0, 0.95)),
    #000;
}

.live-v6-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.live-v6-player-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.72), transparent 28%, transparent 62%, rgba(0,0,0,0.82)),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 26rem);
}

.live-v6-scoreboard {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  width: min(92%, 45rem);
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 7, 8, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.live-v6-team {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  min-width: 0;
}

.live-v6-team.away {
  justify-content: flex-start;
}

.live-v6-team img,
.live-v6-team span {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
}

.live-v6-team img {
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.55));
}

.live-v6-team span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 950;
}

.live-v6-team strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-score-center {
  min-width: 6rem;
  text-align: center;
}

.live-v6-score-center span,
.live-v6-score-center small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-v6-score-center b {
  display: block;
  color: #fff;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.75rem;
  font-weight: 950;
  line-height: 1;
}

.live-v6-watermark {
  position: absolute;
  top: 4.9rem;
  left: 1.2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.36);
  color: #ffd166;
  backdrop-filter: blur(10px);
}

.live-v6-watermark span {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(255, 209, 102, 0.14);
  font-size: 0.72rem;
}

.live-v6-watermark strong {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.live-v6-control-deck {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-v6-source-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.live-v6-source-strip::-webkit-scrollbar {
  display: none;
}

.live-v6-source-strip > span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.live-v6-source-strip a {
  flex: 0 0 auto;
  max-width: 13rem;
  overflow: hidden;
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-source-strip a:hover,
.live-v6-source-strip a.active {
  border-color: rgba(44, 227, 163, 0.42);
  background: rgba(44, 227, 163, 0.16);
  color: #d8fff0;
}

.live-v6-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}

.live-v6-control-row > span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-control-row div {
  display: flex;
  gap: 0.3rem;
}

.live-v6-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

button.live-v6-icon-btn {
  cursor: pointer;
}

.live-v6-icon-btn:hover {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.16);
  color: #fff0bf;
  transform: translateY(-1px);
}

.live-v6-chat-preview {
  position: absolute;
  right: 1rem;
  bottom: 5rem;
  z-index: 8;
  display: none;
  width: min(20rem, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background: rgba(7, 10, 11, 0.92);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.live-v6-chat-preview.open {
  display: block;
}

.live-v6-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.live-v6-chat-head strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.live-v6-chat-head button {
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.live-v6-chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.85rem;
}

.live-v6-chat-empty {
  padding: 2rem 0.5rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  font-size: 0.82rem;
}

.live-v6-chat-message {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.live-v6-chat-message.own {
  align-self: flex-end;
  background: linear-gradient(135deg, #2ce3a3, #55d3ff);
  color: #03110c;
  font-weight: 800;
}

.live-v6-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.live-v6-chat-form input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.live-v6-chat-form button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 0.9rem;
  background: #ffd166;
  color: #151006;
  font-weight: 900;
  cursor: pointer;
}

.live-v6-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.live-v6-stream-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 1rem 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.live-v6-stream-meta div {
  min-width: 0;
}

.live-v6-stream-meta span,
.live-v6-stream-meta strong {
  display: block;
}

.live-v6-stream-meta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  font-weight: 900;
}

.live-v6-stream-meta strong {
  overflow: hidden;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-inspector {
  overflow: hidden;
}

.live-v6-match-card {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.live-v6-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.9rem;
}

.live-v6-matchup div {
  min-width: 0;
  text-align: center;
}

.live-v6-club-logo {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.45rem;
}

.live-v6-matchup strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-matchup b {
  color: #fff;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 950;
}

.live-v6-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.live-v6-tabs button {
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.live-v6-tabs button:hover,
.live-v6-tabs button.active {
  border-color: rgba(44, 227, 163, 0.38);
  background: rgba(44, 227, 163, 0.14);
  color: #d8fff0;
}

.live-v6-tab-panel {
  display: none;
  padding: 0.95rem;
}

.live-v6-tab-panel.active {
  display: block;
}

.live-v6-info-list {
  display: grid;
  gap: 0.55rem;
}

.live-v6-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.live-v6-info-list dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 850;
}

.live-v6-info-list dd {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-panel-empty {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.live-v6-panel-empty strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.live-v6-panel-empty span {
  max-width: 16rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.live-v6-stat-bars {
  display: grid;
  gap: 0.55rem;
}

.live-v6-stat-bars div {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.live-v6-stat-bars b {
  color: #fff;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
}

.live-v6-stat-bars span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.live-v6-source-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.8rem 0.9rem;
}

.live-v6-source-panel .live-v6-panel-head {
  margin: 0 -0.8rem 0.35rem;
}

.live-v6-source-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.live-v6-source-item:hover,
.live-v6-source-item.active {
  border-color: rgba(255, 209, 102, 0.38);
  background: rgba(255, 209, 102, 0.1);
  color: #fff4cf;
}

.live-v6-source-logo {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
}

.live-v6-source-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.live-v6-next {
  overflow: hidden;
}

.live-v6-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.live-v6-next-card {
  display: flex;
  min-width: 0;
  min-height: 8.5rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.live-v6-next-card:hover {
  border-color: rgba(44, 227, 163, 0.34);
  background: rgba(44, 227, 163, 0.1);
  transform: translateY(-2px);
}

.live-v6-next-card > span,
.live-v6-next-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-next-card div {
  min-width: 0;
}

.live-v6-next-card strong,
.live-v6-next-card b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-v6-next-card strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.live-v6-next-card b {
  color: #ffd166;
  font-size: 0.8rem;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .live-v6-command {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  }

  .live-v6-program {
    position: static;
    grid-column: 1 / -1;
  }

  .live-v6-program-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .live-v6-inspector {
    top: 6.2rem;
  }

  .live-v6-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .live-v6-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .live-v6-meter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-v6-command {
    grid-template-columns: 1fr;
  }

  .live-v6-inspector {
    position: static;
  }

  .live-v6-stage-head,
  .live-v6-stream-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .live-v6-stage-actions {
    justify-content: flex-start;
  }

  .live-v6-player {
    min-height: 17rem;
    margin: 0 0.75rem 0.75rem;
  }

  .live-v6-scoreboard {
    top: 0.65rem;
    width: calc(100% - 1rem);
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
  }

  .live-v6-team strong {
    display: none;
  }

  .live-v6-team img,
  .live-v6-team span {
    width: 2rem;
    height: 2rem;
  }

  .live-v6-score-center b {
    font-size: 1.35rem;
  }

  .live-v6-watermark {
    top: 3.9rem;
    left: 0.75rem;
    transform: scale(0.86);
    transform-origin: top left;
  }

  .live-v6-control-deck {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .live-v6-program-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .live-v6-hero {
    padding: 1rem;
    border-radius: 1rem;
  }

  .live-v6-hero h1 {
    font-size: 2.55rem;
  }

  .live-v6-hero p {
    font-size: 0.9rem;
  }

  .live-v6-meter-grid {
    gap: 0.45rem;
  }

  .live-v6-meter-grid div {
    padding: 0.7rem 0.6rem;
  }

  .live-v6-meter-grid strong {
    font-size: 1.25rem;
  }

  .live-v6-meter-grid span {
    font-size: 0.66rem;
  }

  .live-v6-stage-head {
    padding: 0.85rem;
  }

  .live-v6-stage-head h2 {
    font-size: 1.1rem;
  }

  .live-v6-player {
    min-height: 14.5rem;
    border-radius: 0.85rem;
  }

  .live-v6-source-strip a {
    max-width: 8rem;
    font-size: 0.68rem;
  }

  .live-v6-control-row {
    border-radius: 0.9rem;
  }

  .live-v6-control-row > span {
    display: none;
  }

  .live-v6-control-row {
    justify-content: flex-end;
  }

  .live-v6-stream-meta {
    margin: 0 0.75rem 0.75rem;
  }

  .live-v6-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-v6-next-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   BallOnline V7 - full redesign override
   ========================================================== */
:root {
  --page-bg: #050712;
  --panel: rgba(19, 24, 42, 0.8);
  --panel-strong: rgba(22, 29, 52, 0.95);
  --panel-soft: rgba(133, 145, 255, 0.13);
  --line: rgba(134, 147, 255, 0.24);
  --line-soft: rgba(154, 164, 255, 0.18);
  --text: #eef2ff;
  --muted: rgba(228, 235, 255, 0.66);
  --dim: rgba(228, 235, 255, 0.44);
  --red: #ff5e74;
  --red-dark: #df3653;
  --green: #41f3c7;
  --cyan: #6ed4ff;
  --gold: #ffd27a;
  --ink: #070a16;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body {
  background:
    radial-gradient(circle at 10% -5%, rgba(110, 123, 255, 0.26), transparent 25rem),
    radial-gradient(circle at 88% 0%, rgba(65, 243, 199, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(255, 94, 116, 0.14), transparent 32rem),
    linear-gradient(180deg, #070918 0%, #050712 64%, #04050d 100%);
}

body::before {
  opacity: 0.3;
  filter: saturate(0.9) contrast(1.08);
}

body::after {
  background:
    linear-gradient(rgba(150, 161, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 161, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(4, 5, 13, 0.9));
  background-size: 46px 46px, 46px 46px, auto;
}

.site-header {
  background: linear-gradient(180deg, rgba(16, 20, 36, 0.92), rgba(9, 12, 22, 0.88));
  border-color: rgba(154, 164, 255, 0.3);
  box-shadow: 0 14px 48px rgba(2, 4, 10, 0.5);
}

.brand-mark {
  background: linear-gradient(135deg, #6e7bff, #6ed4ff 58%, #41f3c7);
  box-shadow: 0 15px 35px rgba(110, 123, 255, 0.35);
}

.nav-link-active,
.mobile-nav-link-active {
  border-color: rgba(110, 123, 255, 0.5);
  background: linear-gradient(135deg, rgba(110, 123, 255, 0.24), rgba(65, 243, 199, 0.12));
}

.section-kicker {
  border-color: rgba(110, 123, 255, 0.45);
  background: rgba(110, 123, 255, 0.16);
}

.section-kicker::before {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(110, 123, 255, 0.16);
}

.live-studio-hero,
.live-command,
.live-v6-hero {
  background:
    linear-gradient(108deg, rgba(13, 17, 31, 0.96), rgba(13, 17, 31, 0.74) 56%, rgba(13, 17, 31, 0.92)),
    linear-gradient(135deg, rgba(110, 123, 255, 0.22), transparent 45%),
    linear-gradient(225deg, rgba(65, 243, 199, 0.12), transparent 40%);
  border-color: rgba(153, 165, 255, 0.26);
}

.live-v6-hero::after {
  background: linear-gradient(90deg, #6e7bff, #6ed4ff, #41f3c7, #ffd27a);
}

.panel,
.analysis-card,
.boxing-card,
.fight-row,
.card,
.channel-card,
.studio-screen,
.studio-card,
.studio-score-card,
.match-board,
.vip-status-card,
.vip-activate-card,
.live-v6-program,
.live-v6-stage,
.live-v6-inspector,
.live-v6-next {
  border-color: rgba(150, 162, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(150, 162, 255, 0.1), rgba(150, 162, 255, 0.02)),
    rgba(15, 19, 34, 0.9);
}

.panel-header,
.studio-card-head,
.live-v6-panel-head {
  background: linear-gradient(90deg, rgba(110, 123, 255, 0.14), rgba(110, 123, 255, 0.02));
}

.league-name::before,
.toolbar-title::before {
  background: linear-gradient(180deg, #6ed4ff, #41f3c7);
}

.match-item:hover,
.match-tile:hover,
.match-tile-active,
.broadcast-card:hover,
.broadcast-card-active,
.channel-pill:hover,
.channel-pill-active,
.studio-channel:hover,
.studio-channel-active,
.live-v6-program-item:hover,
.live-v6-program-item.active,
.live-v6-next-card:hover {
  border-color: rgba(110, 123, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(110, 123, 255, 0.18), rgba(65, 243, 199, 0.09)),
    rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, #6e7bff, #4456f6);
  box-shadow: 0 14px 32px rgba(73, 90, 255, 0.38);
}

.btn-secondary,
.filter-chip,
.live-v6-icon-btn {
  border-color: rgba(150, 162, 255, 0.26);
  background: rgba(121, 133, 255, 0.1);
}

.filter-chip-active {
  border-color: rgba(65, 243, 199, 0.5);
  background: rgba(65, 243, 199, 0.18);
}

.score-chip,
.score-display,
.live-v6-score-center b {
  border-color: rgba(255, 210, 122, 0.34);
  background: rgba(255, 210, 122, 0.14);
}

.status-live,
.match-time-live,
.live-v6-program-time.is-live {
  border-color: rgba(255, 94, 116, 0.5);
  background: rgba(255, 94, 116, 0.18);
  color: #ffd3da;
}

.live-v6-scoreboard,
.immersive-scoreboard-glass {
  border-color: rgba(153, 165, 255, 0.24);
  background: linear-gradient(180deg, rgba(17, 23, 41, 0.86), rgba(8, 10, 20, 0.94));
}

.live-v6-source-strip a.active,
.live-v6-source-strip a:hover,
.live-v6-tabs button.active,
.live-v6-tabs button:hover {
  border-color: rgba(65, 243, 199, 0.48);
  background: rgba(65, 243, 199, 0.18);
  color: #dcfff6;
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(146, 157, 255, 0.17);
}

.rank-1 {
  border-color: rgba(255, 210, 122, 0.45);
  background: rgba(255, 210, 122, 0.18);
}

.rank-2 {
  border-color: rgba(110, 212, 255, 0.5);
  background: rgba(110, 212, 255, 0.18);
}

.rank-3 {
  border-color: rgba(65, 243, 199, 0.48);
  background: rgba(65, 243, 199, 0.16);
}

/* ==========================================================
   BallOnline V7.1 - mobile first refinement
   ========================================================== */
@media (max-width: 900px) {
  .site-header {
    top: 0.45rem;
    width: calc(100% - 0.9rem);
    border-radius: 0.9rem;
  }

  .site-header-inner {
    min-height: 3.55rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.62rem;
  }

  main {
    padding-top: 1.25rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .toolbar {
    gap: 0.7rem;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
  }

  .toolbar-title {
    font-size: 1rem;
  }

  .segmented-control {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding: 0.3rem;
    scrollbar-width: none;
  }

  .segmented-control::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .btn-action,
  .btn-primary,
  .btn-secondary,
  .filter-chip,
  .nav-link,
  .mobile-nav-link,
  .live-v6-icon-btn,
  .lobby-tab {
    min-height: 2.75rem;
    font-size: 0.84rem;
  }

  .panel,
  .analysis-card,
  .boxing-card,
  .channel-card,
  .vip-status-card,
  .vip-activate-card {
    border-radius: 1rem;
  }

  .panel-header {
    min-height: 3.35rem;
    padding: 0.8rem 0.85rem;
  }

  .match-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .match-time,
  .score-chip {
    min-height: 2.45rem;
  }

  .action-row {
    gap: 0.5rem;
  }

  .action-row .btn-primary,
  .action-row .btn-secondary {
    flex: 1 1 auto;
  }

  .team-logo,
  .team-logo-placeholder {
    width: 2rem;
    height: 2rem;
  }

  .data-table {
    min-width: 40rem;
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.72rem 0.65rem;
  }

  .vip-dashboard {
    grid-template-columns: 1fr !important;
  }

  .vip-input {
    min-height: 2.95rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 680px) {
  .mobile-nav {
    margin: 0 0.55rem 0.55rem;
    padding: 0.45rem;
    border-radius: 0.85rem;
  }

  .mobile-nav-link {
    padding: 0.72rem 0.78rem;
  }

  .live-command,
  .live-studio-hero {
    padding: 0.95rem;
  }

  .live-v6-hero {
    padding: 0.9rem;
    border-radius: 0.9rem;
  }

  .live-v6-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.95;
  }

  .live-v6-hero p {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .live-v6-meter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .live-v6-meter-grid div {
    padding: 0.62rem 0.55rem;
    border-radius: 0.75rem;
  }

  .live-v6-meter-grid strong {
    font-size: 1.15rem;
  }

  .live-v6-command {
    gap: 0.8rem;
  }

  .live-v6-stage-head {
    padding: 0.72rem;
  }

  .live-v6-player {
    margin: 0 0.6rem 0.6rem;
    min-height: 13.2rem;
  }

  .live-v6-watermark {
    display: none;
  }

  .live-v6-scoreboard {
    top: 0.45rem;
    width: calc(100% - 0.8rem);
    padding: 0.4rem 0.55rem;
    gap: 0.35rem;
  }

  .live-v6-team img,
  .live-v6-team span {
    width: 1.68rem;
    height: 1.68rem;
  }

  .live-v6-score-center {
    min-width: 4.6rem;
  }

  .live-v6-score-center b {
    font-size: 1.05rem;
  }

  .live-v6-control-deck {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    gap: 0.45rem;
  }

  .live-v6-control-row {
    min-height: 2.65rem;
    padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  }

  .live-v6-control-row > span {
    font-size: 0.72rem;
  }

  .live-v6-icon-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .live-v6-source-strip a {
    max-width: 7.2rem;
    padding: 0.4rem 0.62rem;
    font-size: 0.67rem;
  }

  .live-v6-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.65rem;
  }

  .live-v6-tabs button {
    min-height: 2.25rem;
    font-size: 0.7rem;
  }

  .live-v6-tab-panel {
    padding: 0.72rem;
  }

  .live-v6-next-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .live-v6-next-card {
    min-height: 7.2rem;
    padding: 0.72rem;
    border-radius: 0.85rem;
  }

  #player-modal {
    padding: 0.55rem;
  }

  .modal-panel {
    border-radius: 0.95rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    width: calc(100% - 0.6rem);
    top: 0.3rem;
  }

  .site-header-inner {
    min-height: 3.35rem;
    gap: 0.45rem;
    padding-left: 0.62rem;
    padding-right: 0.62rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .cta-live,
  .vip-status-pill {
    min-height: 2.15rem;
    padding: 0 0.65rem;
    font-size: 0.74rem;
  }

  main {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .toolbar {
    margin-bottom: 0.65rem;
  }

  .data-table {
    min-width: 34rem;
  }

  .live-v6-player {
    min-height: 11.5rem;
  }

  .live-v6-chat-preview {
    right: 0.5rem;
    bottom: 4.3rem;
    width: calc(100% - 1rem);
  }
}

/* ==========================================================
   BallOnline V8 - UI/UX interactions and navigation
   ========================================================== */
.skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 120;
  transform: translateY(-180%);
  border: 1px solid rgba(110, 123, 255, 0.52);
  border-radius: 0.65rem;
  background: rgba(7, 10, 20, 0.94);
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-quick-dock {
  position: fixed;
  left: 0.72rem;
  right: 0.72rem;
  bottom: calc(0.62rem + env(safe-area-inset-bottom));
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.33rem;
  border: 1px solid rgba(170, 186, 255, 0.24);
  border-radius: 1.2rem;
  background:
    radial-gradient(82% 120% at 50% -34%, rgba(110, 123, 255, 0.23), transparent 55%),
    linear-gradient(180deg, rgba(15, 20, 38, 0.97), rgba(8, 11, 22, 0.97));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  padding: 0.34rem;
}

.mobile-quick-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.19rem;
  min-height: 3.12rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  color: rgba(226, 234, 255, 0.72);
  padding: 0.3rem 0.1rem 0.26rem;
  transition: transform 140ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mobile-quick-item:hover {
  background: rgba(70, 83, 130, 0.18);
  border-color: rgba(137, 152, 255, 0.26);
}

.mobile-quick-item::after {
  content: '';
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0.16rem;
  height: 0.12rem;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.mobile-quick-item:active {
  transform: translateY(1px) scale(0.985);
}

.mobile-quick-icon-wrap {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(154, 168, 255, 0.28);
  border-radius: 0.62rem;
  background: linear-gradient(155deg, rgba(30, 37, 63, 0.9), rgba(20, 25, 46, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mobile-quick-item-active {
  border-color: rgba(142, 158, 255, 0.55);
  background: linear-gradient(145deg, rgba(110, 123, 255, 0.32), rgba(72, 218, 186, 0.15));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-quick-item-active::after {
  background: linear-gradient(90deg, rgba(148, 161, 255, 0.9), rgba(65, 243, 199, 0.95));
  transform: scaleX(1.15);
}

.mobile-quick-item-active .mobile-quick-icon-wrap {
  border-color: rgba(175, 197, 255, 0.66);
  background: linear-gradient(155deg, rgba(62, 76, 124, 0.94), rgba(41, 53, 92, 0.95));
  box-shadow: 0 9px 18px rgba(65, 243, 199, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-quick-icon {
  font-size: 0.88rem;
  line-height: 1;
}

.mobile-quick-label {
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.015em;
}

.mobile-quick-item-live .mobile-quick-icon-wrap {
  border-color: rgba(132, 151, 255, 0.44);
}

.mobile-quick-item-vip .mobile-quick-icon-wrap {
  border-color: rgba(255, 212, 127, 0.58);
  background: linear-gradient(160deg, rgba(88, 63, 18, 0.92), rgba(40, 32, 14, 0.94));
}

.mobile-quick-item-vip-lock .mobile-quick-icon-wrap {
  border-color: rgba(145, 156, 255, 0.45);
  background: linear-gradient(160deg, rgba(42, 49, 84, 0.92), rgba(24, 30, 58, 0.93));
}

.mobile-quick-item-vip-lock .mobile-quick-label {
  color: rgba(230, 237, 255, 0.94);
}

.back-to-top {
  position: fixed;
  right: 0.8rem;
  bottom: calc(5.15rem + env(safe-area-inset-bottom));
  z-index: 64;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(150, 162, 255, 0.28);
  border-radius: 999px;
  background: rgba(13, 18, 34, 0.9);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(110, 123, 255, 0.3);
}

@media (max-width: 900px) {
  main {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)) !important;
  }

  .site-footer {
    padding-bottom: calc(5.85rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 901px) {
  .mobile-quick-dock {
    display: none;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ==========================================================
   Live.php V9 - simple UX redesign
   ========================================================== */
.live-simple-shell {
  display: grid;
  gap: 1rem;
}

.live-simple-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 980px) {
  .live-simple-layout {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
    align-items: start;
  }
}

.live-simple-player {
  overflow: hidden;
}

.live-simple-player-head {
  position: relative;
  display: flex;
  min-height: auto;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(147, 160, 255, 0.26);
  border-bottom-color: rgba(147, 160, 255, 0.34);
  border-radius: 0.9rem;
  background:
    linear-gradient(110deg, rgba(110, 123, 255, 0.2), rgba(65, 243, 199, 0.06) 52%, rgba(255, 210, 122, 0.1)),
    rgba(14, 19, 35, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  margin: 0.55rem 0.55rem 0;
  padding: 0.5rem 0.58rem;
  gap: 0.55rem;
}

.live-simple-player-head > div:first-child {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.45rem;
}

.live-simple-player-head::after {
  display: none;
}

.live-simple-player-head .league-name {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(110, 123, 255, 0.42);
  border-radius: 999px;
  background: rgba(110, 123, 255, 0.18);
  padding: 0.22rem 0.58rem 0.22rem 0.44rem;
  font-size: 0.7rem;
  color: rgba(235, 241, 255, 0.88);
  gap: 0.32rem;
}

.live-simple-player-head .league-name::before {
  width: 0.34rem;
  height: 0.34rem;
}

.live-simple-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.38rem;
  align-items: center;
}

.live-simple-head-actions .status-pill {
  min-height: 1.7rem;
  border-color: rgba(110, 123, 255, 0.44);
  background: rgba(110, 123, 255, 0.2);
  color: #e8ecff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0 0.5rem;
}

.live-simple-head-actions .status-pill.status-live {
  border-color: rgba(255, 94, 116, 0.52);
  background: rgba(255, 94, 116, 0.22);
  color: #ffd4db;
}

.live-simple-head-actions .status-pill.status-break,
.live-simple-next-time.status-break {
  border-color: rgba(255, 210, 122, 0.5);
  background: rgba(255, 210, 122, 0.2);
  color: #ffe7b5;
}

.live-simple-head-actions .status-pill.status-finished,
.live-simple-next-time.status-finished {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.18);
  color: #dce3ee;
}

.live-simple-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.9rem 1rem;
}

.live-simple-score > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.live-simple-score > div:last-child {
  justify-content: flex-end;
}

.live-simple-score strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-simple-score b {
  min-width: 5rem;
  text-align: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.live-simple-player-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.live-simple-video-player {
  background: #000;
  object-fit: contain;
}

.live-simple-player-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.live-simple-controls {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 16;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 5rem);
  border: 1px solid rgba(170, 186, 255, 0.32);
  border-radius: 999px;
  background: rgba(7, 11, 19, 0.82);
  backdrop-filter: blur(8px);
  padding: 7px 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.live-simple-vol-btn {
  border: none;
  background: transparent;
  color: #e8eeff;
  font: 800 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.live-simple-vol-range {
  width: 84px;
  min-width: 0;
  flex: 1 1 auto;
  accent-color: #6ed4ff;
}

.live-simple-fs-btn {
  border: none;
  background: transparent;
  color: #e8eeff;
  font: 800 11px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  padding: 2px 2px 2px 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.live-simple-fs-btn-label {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
}

.live-simple-fs-btn:hover {
  color: #fff;
}

.live-simple-fs-btn:focus-visible,
.live-simple-vol-btn:focus-visible {
  outline: 2px solid rgba(110, 212, 255, 0.85);
  outline-offset: 2px;
  border-radius: 8px;
}

.live-simple-no-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-simple-player-logo {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 210, 122, 0.3);
  border-radius: 999px;
  background: rgba(7, 11, 19, 0.72);
  padding: 0.32rem 0.6rem;
  backdrop-filter: blur(10px);
}

.live-player-marquee {
  position: absolute;
  left: 4.25rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 15;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
  padding: 0.2rem 0;
  pointer-events: none;
}

.live-player-marquee-clip {
  overflow: hidden;
  width: 100%;
}

.live-player-marquee-fbf {
  display: none;
  overflow: hidden;
  width: 100%;
}

.live-player-marquee-mq {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.65);
}

.live-player-marquee-fbf .live-player-marquee-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: none;
  min-width: min-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-animation-name: ballonlineLiveMarquee;
  animation-name: ballonlineLiveMarquee;
  -webkit-animation-duration: var(--marquee-sec, 22s);
  animation-duration: var(--marquee-sec, 22s);
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

@-webkit-keyframes ballonlineLiveMarquee {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes ballonlineLiveMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Firefox / Gecko: ไม่เลื่อน marquee — ใช้แทร็ก CSS */
@supports (-moz-appearance: none) {
  .live-player-marquee-mq {
    display: none !important;
  }

  .live-player-marquee-fbf {
    display: block !important;
  }
}

.live-player-marquee-text {
  display: inline-block;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .live-player-marquee-fbf .live-player-marquee-track {
    -webkit-animation-duration: calc(var(--marquee-sec, 22s) * 2.25);
    animation-duration: calc(var(--marquee-sec, 22s) * 2.25);
  }
}

.live-simple-player-logo-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(255, 210, 122, 0.16);
  color: #ffd27a;
  font-size: 0.62rem;
  font-weight: 900;
}

.live-simple-player-logo-img {
  display: block;
  max-height: 1.35rem;
  width: auto;
  max-width: min(42vw, 11rem);
  object-fit: contain;
}

.live-simple-player-logo--has-img {
  padding: 0.28rem 0.55rem;
}

.live-simple-player-logo-text {
  color: #ffd27a;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.live-simple-live-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(255, 98, 122, 0.42);
  border-radius: 999px;
  background: rgba(54, 10, 19, 0.78);
  padding: 0.32rem 0.64rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(255, 63, 99, 0.22);
}

.live-simple-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ff4d70;
  box-shadow: 0 0 0 0 rgba(255, 77, 112, 0.58);
  animation: livePulse 1.35s ease-out infinite;
}

.live-simple-live-badge strong {
  color: #ffd8df;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 112, 0.58);
  }
  70% {
    box-shadow: 0 0 0 0.4rem rgba(255, 77, 112, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 112, 0);
  }
}

.live-simple-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(110, 123, 255, 0.24), rgba(7, 10, 19, 0.92)),
    rgba(7, 10, 19, 0.92);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.live-simple-loading-hidden {
  opacity: 0;
  visibility: hidden;
}

.live-simple-loading-ring {
  width: 2.6rem;
  height: 2.6rem;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #6ed4ff;
  border-right-color: #41f3c7;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.live-simple-loading strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
}

.live-simple-loading span {
  color: rgba(238, 242, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-simple-sources {
  display: grid;
  gap: 0.62rem;
  border-top: 1px solid var(--line-soft);
  padding: 0.78rem 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.live-simple-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.live-simple-source-head strong {
  color: #fff;
  font-size: 0.9rem;
}

.live-simple-source-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-simple-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
  gap: 0.42rem;
  overflow-x: visible;
  overscroll-behavior-x: auto;
  scroll-snap-type: none;
  padding-bottom: 0.12rem;
}

.live-simple-source {
  min-height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  touch-action: manipulation;
}

.live-simple-source-active,
.live-simple-source:hover {
  border-color: rgba(65, 243, 199, 0.48);
  background: rgba(65, 243, 199, 0.16);
  color: #e9fff9;
}

.live-simple-next {
  overflow: hidden;
}

.live-next-v2 {
  background:
    linear-gradient(180deg, rgba(110, 123, 255, 0.08), rgba(110, 123, 255, 0.01)),
    rgba(12, 17, 30, 0.92);
}

.live-next-v2-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}

.live-next-v2-head h3 {
  margin-top: 0.45rem;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.live-next-v2-count {
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 123, 255, 0.38);
  border-radius: 999px;
  background: rgba(110, 123, 255, 0.16);
  padding: 0 0.62rem;
  color: #e7ecff;
  font-size: 0.72rem;
  font-weight: 900;
}

.live-next-v2-list {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
  max-height: 44rem;
  overflow: auto;
}

.live-next-v2-item {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.68rem;
  transition: 180ms ease;
}

.live-next-v2-item:hover {
  border-color: rgba(110, 123, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(110, 123, 255, 0.16), rgba(65, 243, 199, 0.07)),
    rgba(255, 255, 255, 0.05);
}

.live-next-v2-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.live-next-v2-state {
  display: inline-flex;
  min-height: 1.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.live-next-v2-state.status-live {
  border-color: rgba(255, 94, 116, 0.5);
  background: rgba(255, 94, 116, 0.2);
  color: #ffd4db;
}

.live-next-v2-state.status-break {
  border-color: rgba(255, 210, 122, 0.5);
  background: rgba(255, 210, 122, 0.2);
  color: #ffe7b5;
}

.live-next-v2-state.status-finished {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.18);
  color: #dce3ee;
}

.live-next-v2-league {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-next-v2-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.52rem;
  align-items: center;
}

.live-next-v2-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.live-next-v2-team-away {
  justify-content: flex-end;
}

.live-next-v2-logo {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  padding: 0.14rem;
}

.live-next-v2-teams strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-next-v2-teams b {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .live-simple-player-head {
    flex-direction: row;
    align-items: center;
    margin: 0.45rem 0.45rem 0;
    padding: 0.4rem 0.45rem;
    gap: 0.3rem;
  }

  .live-simple-player-head > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.22rem;
  }

  .live-simple-head-actions {
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
  }

  .live-simple-player-head .league-name {
    max-width: 100%;
    width: fit-content;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.6rem;
    line-height: 1.25;
    padding: 0.14rem 0.4rem 0.14rem 0.3rem;
  }

  .live-simple-head-actions .status-pill {
    min-height: 1.5rem;
    font-size: 0.56rem;
    padding: 0 0.42rem;
  }

  .live-simple-score {
    padding: 0.75rem;
  }

  .live-simple-score strong {
    font-size: 0.78rem;
  }

  .live-simple-score b {
    min-width: 4.2rem;
    font-size: 1.05rem;
  }

  .live-simple-sources {
    gap: 0.52rem;
    padding: 0.62rem;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .live-simple-source-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
  }

  .live-simple-source-head strong {
    font-size: 0.78rem;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    line-height: 1.25;
  }

  .live-simple-source-head span {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .live-simple-source-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.2rem, 1fr));
    gap: 0.36rem;
    overflow: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
    margin-right: 0;
    padding-bottom: 0;
  }

  .live-simple-source {
    min-height: 2.1rem;
    font-size: 0.72rem;
    padding: 0.38rem 0.62rem;
    max-width: none;
    width: 100%;
  }

  .live-simple-player-logo {
    top: 0.5rem;
    right: 0.5rem;
    bottom: auto;
    padding: 0.28rem 0.5rem;
  }

  .live-simple-live-badge {
    display: none;
  }

  .live-simple-player-logo-text {
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }

  .live-simple-player-logo-img {
    max-height: 1.15rem;
    max-width: min(52vw, 10rem);
  }

  .live-simple-loading strong {
    font-size: 0.84rem;
  }

  .live-simple-loading span {
    font-size: 0.72rem;
  }

  .live-next-v2-head {
    padding: 0.65rem;
  }

  .live-next-v2-head h3 {
    font-size: 0.86rem;
  }

  .live-next-v2-count {
    min-height: 1.75rem;
    font-size: 0.66rem;
    padding: 0 0.5rem;
  }

  .live-next-v2-list {
    max-height: none;
    padding: 0.62rem;
    gap: 0.42rem;
  }

  .live-next-v2-item {
    gap: 0.45rem;
    padding: 0.56rem;
    border-radius: 0.78rem;
  }

  .live-next-v2-top {
    gap: 0.4rem;
  }

  .live-next-v2-state {
    min-height: 1.55rem;
    font-size: 0.58rem;
    padding: 0 0.45rem;
  }

  .live-next-v2-league {
    font-size: 0.64rem;
  }

  .live-next-v2-teams strong {
    font-size: 0.72rem;
  }

  .live-next-v2-teams b {
    font-size: 0.74rem;
  }

  .live-next-v2-logo {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.4rem;
    padding: 0.12rem;
  }
}

@media (max-width: 430px) {
  .live-simple-sources {
    padding: 0.52rem;
    gap: 0.46rem;
  }

  .live-simple-source-head strong {
    font-size: 0.74rem;
    line-height: 1.24;
  }

  .live-simple-source-head span {
    font-size: 0.64rem;
  }

  .live-simple-player-head .league-name {
    font-size: 0.58rem;
    line-height: 1.22;
  }

  .live-simple-source {
    min-height: 1.95rem;
    padding: 0.34rem 0.55rem;
    font-size: 0.68rem;
    max-width: none;
  }
}

/* ==========================================================
   Results.php V2 - full redesign
   ========================================================== */
.results-v2-shell {
  display: grid;
  gap: 0.85rem;
}

.results-v2-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.results-v2-summary > div {
  border: 1px solid rgba(147, 160, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.62rem 0.7rem;
}

.results-v2-summary span,
.results-v2-summary strong {
  display: block;
}

.results-v2-summary span {
  color: var(--muted);
  font-size: 0.72rem;
}

.results-v2-summary strong {
  margin-top: 0.18rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.results-v2-league {
  overflow: hidden;
}

.results-v2-league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.72rem 0.8rem;
}

.results-v2-match-list {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
}

.results-v2-match {
  display: grid;
  gap: 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.62rem;
}

.results-v2-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.results-v2-kickoff {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.results-v2-match-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.58rem;
  align-items: center;
}

.results-v2-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.results-v2-team-away {
  justify-content: flex-end;
}

.results-v2-team-logo {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  padding: 0.14rem;
}

.results-v2-team strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-v2-score {
  border: 1px solid rgba(255, 210, 122, 0.26);
  border-radius: 0.7rem;
  background: rgba(255, 210, 122, 0.12);
  padding: 0.28rem 0.52rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  .results-v2-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-v2-summary > div {
    border-radius: 0.8rem;
    padding: 0.52rem 0.58rem;
  }

  .results-v2-summary span {
    font-size: 0.66rem;
  }

  .results-v2-summary strong {
    font-size: 0.82rem;
  }

  .results-v2-league-head {
    padding: 0.62rem;
  }

  .results-v2-match-list {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .results-v2-match {
    padding: 0.52rem;
    border-radius: 0.78rem;
  }

  .results-v2-kickoff {
    font-size: 0.62rem;
  }

  .results-v2-team-logo {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.38rem;
    padding: 0.12rem;
  }

  .results-v2-team strong {
    font-size: 0.72rem;
  }

  .results-v2-score {
    font-size: 0.72rem;
    padding: 0.24rem 0.46rem;
  }
}

@media (max-width: 430px) {
  .results-v2-summary {
    grid-template-columns: 1fr;
  }

  .results-v2-match-main {
    gap: 0.42rem;
  }

  .results-v2-team strong {
    font-size: 0.68rem;
  }
}

/* ==========================================================
   Header site-actions redesign
   ========================================================== */
.site-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-vip-cta {
  display: inline-grid;
  gap: 0.12rem;
  border: 1px solid rgba(147, 160, 255, 0.28);
  border-radius: 0.85rem;
  background:
    linear-gradient(140deg, rgba(110, 123, 255, 0.14), rgba(65, 243, 199, 0.06)),
    rgba(11, 15, 27, 0.92);
  min-width: 8.3rem;
  padding: 0.42rem 0.68rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.site-vip-cta-main,
.site-vip-cta-sub {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.site-vip-cta-main {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.site-vip-cta-sub {
  color: rgba(230, 237, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
}

.site-vip-cta-active {
  border-color: rgba(65, 243, 199, 0.38);
  background:
    linear-gradient(140deg, rgba(65, 243, 199, 0.22), rgba(110, 123, 255, 0.12)),
    rgba(10, 18, 25, 0.94);
}

.site-vip-cta-active .site-vip-cta-main {
  color: #d9fff1;
}

.site-vip-cta-login {
  border-color: rgba(110, 123, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(110, 123, 255, 0.24), rgba(110, 123, 255, 0.08)),
    rgba(15, 20, 38, 0.94);
}

.site-vip-cta-login .site-vip-cta-sub {
  color: rgba(220, 228, 255, 0.68);
}

@media (max-width: 720px) {
  .site-actions {
    gap: 0.28rem;
  }

  .site-vip-cta {
    min-width: 6.8rem;
    padding: 0.33rem 0.5rem;
    border-radius: 0.72rem;
  }

  .site-vip-cta-main {
    font-size: 0.62rem;
  }

  .site-vip-cta-sub {
    font-size: 0.52rem;
  }
}

@media (max-width: 430px) {
  .site-vip-cta {
    min-width: auto;
    padding: 0.32rem 0.45rem;
  }

  .site-vip-cta-sub {
    display: none;
  }
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* โลโก้แนวนอน (รูปกว้าง): ขยายกล่องและใช้ contain แทน crop — ไม่ใส่พื้นหลังกล่อง */
.brand-mark:has(> img) {
  width: auto;
  max-width: 12rem;
  min-width: 2.6rem;
  padding: 0.12rem 0.35rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-mark:has(> img) img {
  width: auto;
  height: 100%;
  max-height: 2.35rem;
  max-width: 100%;
  object-fit: contain;
}

.live-reload-btn {
  padding: 0.35rem 0.62rem;
  font-size: 0.72rem;
}

.league-filter-panel {
  padding: 0.9rem;
}

.league-filter-head {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.25fr);
}

.league-select-input {
  cursor: pointer;
}

.league-select-input option {
  color: #0f172a;
  background: #ffffff;
}

.live-now-grid {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.live-now-card {
  position: relative;
  border: 1px solid rgba(255, 82, 82, 0.28);
  border-radius: 1.05rem;
  background:
    radial-gradient(600px 220px at 18% 0%, rgba(240, 68, 56, 0.22), transparent 55%),
    radial-gradient(560px 200px at 92% 12%, rgba(247, 185, 85, 0.14), transparent 60%),
    rgba(13, 16, 31, 0.92);
  padding: 0.85rem 0.85rem 0.75rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.live-now-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 46%);
  opacity: 0.9;
}

.live-now-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 82, 82, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.live-now-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.58rem;
}

.live-now-league {
  color: #d8def5;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-now-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(240, 68, 56, 0.42);
  border-radius: 999px;
  background: rgba(240, 68, 56, 0.14);
  padding: 0.18rem 0.5rem;
  color: #ffb4ad;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.live-now-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.0);
  animation: liveNowPulse 1.05s ease-in-out infinite;
}

@keyframes liveNowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.0);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0.12);
  }
}

.live-now-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.live-now-score {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  min-width: 4.6rem;
}

.live-now-score b {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.live-now-score-sub {
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.live-now-team {
  display: grid;
  justify-items: center;
  gap: 0.34rem;
}

.live-now-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-now-team strong {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.live-now-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.live-now-watch {
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
}

.league-chip-list {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.league-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e5ff;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.league-chip-active {
  border-color: rgba(65, 243, 199, 0.65);
  background: rgba(65, 243, 199, 0.18);
  color: #fff;
}

@media (max-width: 760px) {
  .league-filter-head {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  padding: 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.admin-portal-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111831 0, #070b19 45%, #040611 100%);
  color: #fff;
  font-family: 'Prompt', 'Segoe UI', sans-serif;
}

.admin-portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(8px);
}

.admin-portal-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-portal-brand {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.admin-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-portal-nav-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.58rem;
  color: #d7e3ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-portal-nav-link-active {
  border-color: rgba(65, 243, 199, 0.55);
  background: rgba(65, 243, 199, 0.16);
  color: #fff;
}

.admin-portal-logout {
  margin-left: auto;
}

.admin-portal-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem;
}

.admin-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-login-box {
  margin-top: 0.9rem;
  max-width: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(9, 13, 25, 0.78);
  padding: 1.1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.admin-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.95rem;
}

.admin-stat-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem 0.8rem;
  display: grid;
  gap: 0.18rem;
}

.admin-stat-card span {
  color: #c5d0f0;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-stat-card strong {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.admin-layout {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}

.admin-nav-card {
  position: sticky;
  top: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(8, 12, 23, 0.86);
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.admin-nav-card h3 {
  margin-bottom: 0.25rem;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.admin-nav-card a {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.58rem;
  color: #e8efff;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-nav-card a:hover {
  border-color: rgba(65, 243, 199, 0.45);
  background: rgba(65, 243, 199, 0.12);
}

.admin-quick-stats {
  margin-top: 0.3rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.5rem;
  display: grid;
  gap: 0.28rem;
  color: #cfd7f7;
  font-size: 0.72rem;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 0.4rem;
}

.admin-menu-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-menu-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.72rem;
  display: grid;
  gap: 0.25rem;
}

.admin-menu-item strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-menu-item span {
  color: #c7d2f3;
  font-size: 0.73rem;
  line-height: 1.35;
}

.admin-menu-item:hover {
  border-color: rgba(65, 243, 199, 0.42);
  background: rgba(65, 243, 199, 0.11);
}

.admin-table-scroll {
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.admin-form {
  display: grid;
  gap: 0.3rem;
}

.admin-seo-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-seo-wide {
  grid-column: 1 / -1;
}

.admin-users-intro {
  margin-bottom: 0.6rem;
  display: grid;
  gap: 0.28rem;
}

.admin-users-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(65, 243, 199, 0.42);
  border-radius: 999px;
  background: rgba(65, 243, 199, 0.12);
  padding: 0.2rem 0.55rem;
  color: #d8fff4;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-users-intro h3 {
  margin: 0;
}

.admin-users-form .admin-users-table {
  gap: 0.48rem;
}

.admin-users-head {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  padding-bottom: 0.35rem;
}

.admin-users-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.42rem;
}

.admin-users-row-new {
  border-style: dashed;
  border-color: rgba(110, 123, 255, 0.4);
  background: rgba(110, 123, 255, 0.08);
}

.admin-users-note {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.52rem 0.62rem;
  color: #d6def7;
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: 0.55rem;
}

.admin-users-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-users-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.admin-user-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.admin-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.admin-user-id {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.admin-user-id strong {
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-badge {
  border: 1px solid rgba(110, 123, 255, 0.48);
  background: rgba(110, 123, 255, 0.14);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #e8ecff;
}

.admin-user-status {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  color: #d8def5;
  white-space: nowrap;
}

.admin-user-status-ok {
  border-color: rgba(65, 243, 199, 0.45);
  background: rgba(65, 243, 199, 0.14);
  color: #d8fff4;
}

.admin-user-status-danger {
  border-color: rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.14);
  color: #ffe0e0;
}

.admin-user-meta {
  display: grid;
  gap: 0.25rem;
  color: #cbd6f2;
  font-size: 0.72rem;
}

.admin-user-meta b {
  color: #fff;
  font-weight: 800;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-user-action-danger {
  border-color: rgba(255, 82, 82, 0.5) !important;
  background: rgba(255, 82, 82, 0.12) !important;
  color: #ffe0e0 !important;
}

.admin-user-action-undo {
  border-color: rgba(65, 243, 199, 0.45) !important;
  background: rgba(65, 243, 199, 0.12) !important;
  color: #d8fff4 !important;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-panel {
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(10, 14, 28, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.admin-modal-head strong {
  display: block;
  font-weight: 900;
  font-size: 0.95rem;
}

.admin-modal-head span {
  display: block;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.admin-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  font-size: 1rem;
  line-height: 1;
}

.admin-modal-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.admin-modal-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d6def7;
  font-size: 0.78rem;
}

.admin-modal-perms {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.admin-modal-section-title {
  color: #cbd6f2;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-modal-hint {
  color: #ffd27a;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-modal-actions {
  padding: 0.85rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-users-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-users-list {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background: rgba(9, 13, 24, 0.78);
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.admin-card h3 {
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.admin-vip-table {
  display: grid;
  gap: 0.42rem;
  min-width: 720px;
}

.admin-vip-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1.25fr 0.75fr auto;
  align-items: center;
}

.admin-vip-gen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .admin-vip-gen-grid {
    grid-template-columns: 1fr;
  }
}

.admin-vip-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-vip-inline-btn {
  height: 42px;
}

.admin-vip-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.admin-vip-seg-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe7ff;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.admin-vip-seg-btn:hover {
  border-color: rgba(65, 243, 199, 0.42);
  background: rgba(65, 243, 199, 0.12);
}

.admin-vip-list {
  display: grid;
  gap: 0.42rem;
  min-width: 760px;
}

.admin-vip-list-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.7fr 1fr;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.65rem;
}

.admin-vip-list-head {
  border-style: dashed;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.02);
}

.admin-vip-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-vip-copy {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

.admin-vip-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 800;
  color: #dfe7ff;
}

.admin-vip-badge-ok {
  border-color: rgba(65, 243, 199, 0.45);
  background: rgba(65, 243, 199, 0.12);
  color: #d8fff4;
}

.admin-vip-actions {
  display: inline-flex;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}

.admin-user-row {
  grid-template-columns: 1fr 1.2fr auto auto 1fr;
}

.admin-vip-row input[type='text'],
.admin-vip-row input[type='number'] {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.42rem 0.52rem;
  font-size: 0.78rem;
}

.admin-vip-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-check-wrap {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.73rem;
}

.admin-add-vip {
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 0.75rem;
}

.admin-banner-page {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  margin-bottom: 0.7rem;
}

.admin-banner-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-banner-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  padding: 0.68rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-banner-table {
  display: grid;
  gap: 0.5rem;
  min-width: 1080px;
}

.admin-banner-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 0.8fr 0.8fr 0.55fr 1fr 1fr 1.25fr 1.5fr 1fr auto auto;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-banner-head-row {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

.admin-file-cell {
  display: grid;
}

.admin-preview-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-image-preview {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.45rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.managed-banner {
  position: fixed;
  z-index: 70;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 16, 29, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.managed-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managed-banner-top,
.managed-banner-bottom {
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 1rem, 980px);
  min-height: 56px;
  border-radius: 0.75rem;
}

.managed-banner-top {
  top: 0.8rem;
}

.managed-banner-bottom {
  bottom: 0.9rem;
}

.managed-banner-left,
.managed-banner-right {
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 340px;
  border-radius: 0.85rem;
}

.managed-banner-left {
  left: 0.8rem;
}

.managed-banner-right {
  right: 0.8rem;
}

.managed-banner-close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  z-index: 2;
}

.managed-banner-marquee {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  padding: 0.95rem 2rem 0.95rem 0.75rem;
}

.managed-banner-marquee span {
  display: inline-block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  animation: bannerMarquee 14s linear infinite;
  padding-left: 100%;
}

.managed-banner-inline-stack {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.managed-banner-inline {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 2;
  min-height: 58px;
  width: 100%;
  height: auto;
  transform: none;
  border-radius: 0.85rem;
}

.managed-banner-inline a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.managed-banner-inline img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
}

.managed-banner-inline .managed-banner-marquee {
  min-height: 58px;
  padding-block: 1rem;
}

@keyframes bannerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 1200px) {
  .managed-banner-left,
  .managed-banner-right {
    display: none;
  }
}

@media (max-width: 900px) {
  .admin-portal-header-inner {
    flex-wrap: wrap;
  }

  .admin-portal-logout {
    margin-left: 0;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav-card {
    position: static;
  }

  .admin-vip-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-menu-grid {
    grid-template-columns: 1fr;
  }

  .admin-seo-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-banner-grid {
    grid-template-columns: 1fr;
  }

  .admin-banner-row {
    grid-template-columns: 1fr;
  }

  .admin-banner-head-row {
    display: none;
  }
}

/* Admin V10 full redesign */
.admin-portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 123, 255, 0.24), transparent 27rem),
    radial-gradient(circle at 88% 8%, rgba(65, 243, 199, 0.16), transparent 25rem),
    linear-gradient(180deg, #070a16 0%, #0b1021 48%, #050713 100%) !important;
  color: #eef3ff;
  font-family: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.admin-portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 78%);
}

.admin-portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(156, 169, 255, 0.18);
  background: rgba(8, 12, 26, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.admin-portal-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 1360px;
  min-height: 4.6rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.admin-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.admin-portal-brand:hover {
  color: #fff;
}

.admin-portal-brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #6e7bff, #41f3c7);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(65, 243, 199, 0.16);
}

.admin-portal-brand strong,
.admin-portal-brand small {
  display: block;
  line-height: 1.1;
}

.admin-portal-brand strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.admin-portal-brand small {
  margin-top: 0.22rem;
  color: rgba(238, 243, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.admin-portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.35rem;
  border: 1px solid rgba(156, 169, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 0.72rem 0 0.5rem;
  color: rgba(238, 243, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-portal-nav-link span {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #6ed4ff;
  font-size: 0.72rem;
}

.admin-portal-nav-link b {
  font-weight: 850;
}

.admin-portal-nav-link:hover,
.admin-portal-nav-link-active {
  border-color: rgba(65, 243, 199, 0.45);
  background: rgba(65, 243, 199, 0.14);
  color: #fff;
}

.admin-portal-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-portal-actions form {
  margin: 0;
}

.admin-portal-site-link,
.admin-portal-user,
.admin-portal-logout {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(156, 169, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 0.75rem;
  color: rgba(238, 243, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.admin-portal-site-link:hover {
  color: #fff;
  border-color: rgba(110, 212, 255, 0.42);
}

.admin-portal-user {
  color: #d9e2ff;
}

.admin-portal-logout {
  cursor: pointer;
  color: #ffd7dd;
}

.admin-portal-logout:hover {
  border-color: rgba(255, 94, 116, 0.5);
  background: rgba(255, 94, 116, 0.14);
}

.admin-portal-main {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.15rem;
}

.admin-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(65, 243, 199, 0.34);
  border-radius: 999px;
  background: rgba(65, 243, 199, 0.1);
  padding: 0.34rem 0.65rem;
  color: #c9fff3;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.admin-kicker::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #41f3c7;
  box-shadow: 0 0 0 5px rgba(65, 243, 199, 0.11);
}

.admin-flash,
.admin-portal-body .alert {
  border: 1px solid rgba(156, 169, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  color: #eef3ff;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.admin-flash-ok,
.admin-portal-body .alert-success {
  border-color: rgba(65, 243, 199, 0.38);
  background: rgba(65, 243, 199, 0.12);
  color: #d8fff6;
}

.admin-flash-danger,
.admin-portal-body .alert-danger {
  border-color: rgba(255, 94, 116, 0.42);
  background: rgba(255, 94, 116, 0.12);
  color: #ffdbe0;
}

.admin-login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem);
  gap: 1rem;
  align-items: stretch;
  min-height: calc(100vh - 8rem);
}

.admin-login-copy,
.admin-login-card,
.admin-dashboard-hero,
.admin-card,
.admin-portal-body .card {
  border: 1px solid rgba(156, 169, 255, 0.18);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(156, 169, 255, 0.11), rgba(156, 169, 255, 0.025)),
    rgba(12, 17, 33, 0.9);
  color: #eef3ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.admin-login-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 28rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(10, 14, 28, 0.96), rgba(10, 14, 28, 0.68)),
    url("../img/stadium-hero.png") center / cover no-repeat;
}

.admin-login-copy h1,
.admin-dashboard-hero h1 {
  margin: 0.75rem 0 0.45rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.admin-login-copy p,
.admin-dashboard-hero p {
  max-width: 42rem;
  color: rgba(238, 243, 255, 0.7);
  line-height: 1.75;
}

.admin-login-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.admin-login-hints span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.45rem 0.7rem;
  color: rgba(238, 243, 255, 0.78);
  font-size: 0.78rem;
}

.admin-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.95rem;
  padding: clamp(1.1rem, 2vw, 1.7rem);
}

.admin-login-card h2 {
  margin: 0.65rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}

.admin-login-card label {
  display: grid;
  gap: 0.42rem;
  color: rgba(238, 243, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-login-card input,
.admin-portal-body .form-control,
.admin-portal-body .form-select {
  border: 1px solid rgba(156, 169, 255, 0.22);
  border-radius: 0.85rem;
  background-color: rgba(7, 11, 24, 0.86);
  color: #fff;
}

.admin-login-card input:focus,
.admin-portal-body .form-control:focus,
.admin-portal-body .form-select:focus {
  border-color: rgba(65, 243, 199, 0.48);
  background-color: rgba(7, 11, 24, 0.96);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(65, 243, 199, 0.12);
}

.admin-login-card button,
.admin-portal-body .btn-primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6e7bff, #4456f6);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(73, 90, 255, 0.28);
}

.admin-login-card button {
  min-height: 2.75rem;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(12, 16, 32, 0.96), rgba(12, 16, 32, 0.72)),
    linear-gradient(135deg, rgba(110, 123, 255, 0.18), transparent 44%),
    linear-gradient(225deg, rgba(65, 243, 199, 0.13), transparent 40%);
}

.admin-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-dashboard-actions a,
.admin-dashboard-actions span {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  border: 1px solid rgba(156, 169, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 0.85rem;
  color: rgba(238, 243, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-stat-card {
  min-height: 8.4rem;
  border: 1px solid rgba(156, 169, 255, 0.18);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025)),
    rgba(12, 17, 33, 0.88);
  padding: 1rem;
}

.admin-stat-card span,
.admin-stat-card small {
  display: block;
  color: rgba(238, 243, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-stat-card strong {
  display: block;
  margin: 0.65rem 0 0.35rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 0.9;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.admin-card {
  padding: 1rem;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-card-head h2,
.admin-portal-body .card h2,
.admin-portal-body .card h3 {
  margin: 0.55rem 0 0;
  color: #fff;
  font-weight: 950;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-module-card {
  position: relative;
  display: grid;
  min-height: 11rem;
  gap: 0.45rem;
  align-content: start;
  border: 1px solid rgba(156, 169, 255, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-module-card:hover {
  border-color: rgba(65, 243, 199, 0.42);
  background: rgba(65, 243, 199, 0.11);
  color: #fff;
  transform: translateY(-2px);
}

.admin-module-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(110, 123, 255, 0.95), rgba(65, 243, 199, 0.8));
  color: #fff;
  font-weight: 950;
}

.admin-module-card strong,
.admin-module-card em,
.admin-module-card small {
  display: block;
}

.admin-module-card strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.admin-module-card em {
  color: #ffd27a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-module-card small {
  color: rgba(238, 243, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.55;
}

.admin-system-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.admin-system-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(156, 169, 255, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.admin-system-list dt {
  color: rgba(238, 243, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-system-list dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-portal-body .card {
  overflow: hidden;
}

.admin-portal-body .card-body {
  color: #eef3ff;
}

.admin-portal-body .text-secondary,
.admin-portal-body .small,
.admin-portal-body .form-label {
  color: rgba(238, 243, 255, 0.62) !important;
}

.admin-portal-body .table {
  --bs-table-bg: transparent;
  --bs-table-color: #eef3ff;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
  --bs-table-striped-color: #eef3ff;
  --bs-table-border-color: rgba(156, 169, 255, 0.14);
}

.admin-portal-body .table thead th {
  color: rgba(238, 243, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-portal-body .btn,
.admin-portal-body .btn-outline-secondary,
.admin-portal-body .btn-success,
.admin-portal-body .btn-danger {
  border-radius: 999px;
  font-weight: 850;
}

.admin-portal-body .btn-outline-secondary {
  border-color: rgba(156, 169, 255, 0.24);
  color: #dce5ff;
}

.admin-portal-body .btn-outline-secondary:hover {
  border-color: rgba(65, 243, 199, 0.4);
  background: rgba(65, 243, 199, 0.12);
  color: #fff;
}

.admin-portal-body .btn-success {
  border-color: transparent;
  background: linear-gradient(135deg, #16c99a, #0e9f7d);
}

.admin-portal-body .btn-danger {
  border-color: transparent;
  background: linear-gradient(135deg, #ff5e74, #d53046);
}

.admin-portal-body .bg-body-tertiary {
  background-color: rgba(255, 255, 255, 0.055) !important;
}

.admin-portal-body .modal {
  --bs-modal-bg: transparent;
  --bs-modal-color: #eef3ff;
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
}

.admin-portal-body .modal.show {
  display: block;
}

.admin-portal-body .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
}

.admin-portal-body .modal-backdrop.show {
  opacity: 0.72;
}

.admin-portal-body .modal-dialog {
  max-width: min(31rem, calc(100% - 1.5rem));
  position: relative;
  z-index: 1101;
  pointer-events: none;
}

.admin-portal-body .modal-content {
  border: 1px solid rgba(156, 169, 255, 0.28);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(34, 42, 70, 0.98), rgba(12, 17, 33, 0.98)),
    #101522;
  color: #eef3ff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  pointer-events: auto;
}

.admin-portal-body .modal-header,
.admin-portal-body .modal-footer {
  border-color: rgba(156, 169, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.72rem 0.9rem;
}

.admin-portal-body .modal-body {
  padding: 0.85rem 0.9rem;
}

.admin-portal-body .modal-title {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
}

.admin-portal-body .btn-close {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
  filter: invert(1) grayscale(1) brightness(1.75);
}

.admin-portal-body .modal .form-label,
.admin-portal-body .modal .fw-bold,
.admin-portal-body .modal .form-check-label {
  color: #eef3ff !important;
}

.admin-portal-body .modal .form-text,
.admin-portal-body .modal .text-secondary,
.admin-portal-body .modal .small {
  color: rgba(238, 243, 255, 0.68) !important;
}

.admin-portal-body .modal .form-check {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 1.75rem;
  margin-bottom: 0.18rem;
}

.admin-portal-body .modal .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  border-color: rgba(156, 169, 255, 0.42);
  background-color: rgba(7, 11, 24, 0.9);
}

.admin-portal-body .modal .form-check-input:checked {
  border-color: #41f3c7;
  background-color: #3258d8;
}

.admin-portal-body .modal .form-control {
  background-color: rgba(5, 8, 18, 0.96);
  color: #fff;
}

.admin-portal-body .modal .form-control::placeholder {
  color: rgba(238, 243, 255, 0.42);
}

@media (max-width: 1080px) {
  .admin-portal-header-inner,
  .admin-login-screen,
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .admin-portal-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-portal-main {
    padding: 0.75rem;
  }

  .admin-portal-nav,
  .admin-portal-actions {
    width: 100%;
  }

  .admin-portal-nav-link {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
  }

  .admin-login-copy {
    min-height: 20rem;
  }

  .admin-stat-grid,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-actions {
    justify-content: flex-start;
  }
}

/* Admin compact redesign */
.admin-portal-header-inner {
  min-height: 3.45rem;
  gap: 0.65rem;
  max-width: 1180px;
  padding: 0.45rem 0.75rem;
}

.admin-portal-brand {
  gap: 0.5rem;
}

.admin-portal-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
}

.admin-portal-brand strong {
  font-size: 0.82rem;
}

.admin-portal-brand small {
  margin-top: 0.12rem;
  font-size: 0.58rem;
}

.admin-portal-nav {
  gap: 0.3rem;
}

.admin-portal-nav-link {
  min-height: 1.95rem;
  gap: 0.3rem;
  padding: 0 0.52rem 0 0.36rem;
  font-size: 0.68rem;
}

.admin-portal-nav-link span {
  width: 1.12rem;
  height: 1.12rem;
  font-size: 0.58rem;
}

.admin-portal-site-link,
.admin-portal-user,
.admin-portal-logout {
  min-height: 1.95rem;
  padding: 0 0.55rem;
  font-size: 0.66rem;
}

.admin-portal-main {
  max-width: 1180px;
  padding: 0.75rem;
}

.admin-kicker {
  gap: 0.32rem;
  padding: 0.24rem 0.52rem;
  font-size: 0.6rem;
}

.admin-kicker::before {
  width: 0.34rem;
  height: 0.34rem;
  box-shadow: 0 0 0 4px rgba(65, 243, 199, 0.1);
}

.admin-flash,
.admin-portal-body .alert {
  border-radius: 0.75rem;
  padding: 0.58rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
}

.admin-login-screen {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 0.7rem;
  min-height: calc(100vh - 5.5rem);
}

.admin-login-copy {
  min-height: 20rem;
  border-radius: 0.95rem;
  padding: 1rem;
}

.admin-login-card,
.admin-dashboard-hero,
.admin-card,
.admin-portal-body .card {
  border-radius: 0.95rem;
}

.admin-login-copy h1,
.admin-dashboard-hero h1 {
  margin: 0.48rem 0 0.28rem;
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  line-height: 1;
}

.admin-login-copy p,
.admin-dashboard-hero p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.admin-login-hints {
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.admin-login-hints span {
  padding: 0.3rem 0.5rem;
  font-size: 0.68rem;
}

.admin-login-card {
  gap: 0.65rem;
  padding: 0.95rem;
}

.admin-login-card h2 {
  margin-top: 0.42rem;
  font-size: 1rem;
}

.admin-login-card label {
  gap: 0.28rem;
  font-size: 0.72rem;
}

.admin-login-card input,
.admin-portal-body .form-control,
.admin-portal-body .form-select {
  min-height: 2.15rem;
  border-radius: 0.62rem;
  font-size: 0.78rem;
}

.admin-login-card button {
  min-height: 2.25rem;
  font-size: 0.78rem;
}

.admin-dashboard-hero {
  gap: 0.65rem;
  padding: 0.85rem;
}

.admin-dashboard-actions {
  gap: 0.35rem;
}

.admin-dashboard-actions a,
.admin-dashboard-actions span {
  min-height: 1.95rem;
  padding: 0 0.6rem;
  font-size: 0.68rem;
}

.admin-stat-grid {
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.admin-stat-card {
  min-height: 5.6rem;
  border-radius: 0.8rem;
  padding: 0.72rem;
}

.admin-stat-card span,
.admin-stat-card small {
  font-size: 0.66rem;
}

.admin-stat-card strong {
  margin: 0.42rem 0 0.18rem;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
}

.admin-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.admin-card {
  padding: 0.75rem;
}

.admin-card-head {
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.admin-card-head h2,
.admin-portal-body .card h2,
.admin-portal-body .card h3 {
  margin-top: 0.35rem;
  font-size: 0.98rem;
}

.admin-module-grid {
  gap: 0.55rem;
}

.admin-module-card {
  min-height: 7.5rem;
  gap: 0.26rem;
  border-radius: 0.78rem;
  padding: 0.7rem;
}

.admin-module-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.58rem;
  font-size: 0.78rem;
}

.admin-module-card strong {
  font-size: 0.82rem;
}

.admin-module-card em,
.admin-module-card small {
  font-size: 0.66rem;
  line-height: 1.38;
}

.admin-system-list {
  gap: 0.45rem;
}

.admin-system-list div {
  border-radius: 0.68rem;
  padding: 0.52rem;
}

.admin-system-list dt,
.admin-system-list dd {
  font-size: 0.68rem;
}

.admin-portal-body .card-body {
  padding: 0.85rem;
}

.admin-portal-body .h4 {
  font-size: 1rem;
}

.admin-portal-body .h5 {
  font-size: 0.9rem;
}

.admin-portal-body .form-label,
.admin-portal-body .small,
.admin-portal-body .text-secondary {
  font-size: 0.72rem;
}

.admin-portal-body .btn {
  min-height: 2rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
}

.admin-portal-body .table {
  font-size: 0.74rem;
}

.admin-portal-body .table > :not(caption) > * > * {
  padding: 0.4rem 0.5rem;
}

@media (max-width: 720px) {
  .admin-portal-main {
    padding: 0.55rem;
  }

  .admin-login-copy {
    min-height: 14rem;
  }

  .admin-portal-nav-link {
    min-height: 1.9rem;
  }
}

/* Admin V12 complete UI refresh */
.admin-v12-body {
  --admin-bg: #070a13;
  --admin-panel: rgba(13, 18, 32, 0.92);
  --admin-panel-2: rgba(18, 24, 42, 0.94);
  --admin-line: rgba(143, 157, 255, 0.18);
  --admin-line-strong: rgba(82, 211, 255, 0.34);
  --admin-text: #edf3ff;
  --admin-muted: rgba(237, 243, 255, 0.62);
  --admin-dim: rgba(237, 243, 255, 0.42);
  --admin-cyan: #63d7ff;
  --admin-green: #42f0be;
  --admin-blue: #7180ff;
  --admin-warn: #ffd27a;
  background:
    radial-gradient(circle at 0% 0%, rgba(113, 128, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(66, 240, 190, 0.12), transparent 26rem),
    linear-gradient(180deg, #070a13, #090d19 42%, #050711) !important;
  color: var(--admin-text);
}

.admin-v12-shell {
  position: relative;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.admin-v12-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 0.65rem;
  border-right: 1px solid var(--admin-line);
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.94), rgba(8, 11, 21, 0.96)),
    rgba(10, 14, 25, 0.96);
  padding: 0.75rem;
  box-shadow: 16px 0 50px rgba(0, 0, 0, 0.18);
}

.admin-v12-workspace {
  min-width: 0;
}

.admin-v12-brand {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.55rem;
}

.admin-v12-nav {
  display: grid;
  gap: 0.36rem;
}

.admin-v12-nav .admin-portal-nav-link {
  justify-content: flex-start;
  min-height: 2.05rem;
  border-radius: 0.65rem;
  padding: 0 0.55rem;
}

.admin-v12-nav .admin-portal-nav-link span {
  background: rgba(99, 215, 255, 0.1);
  color: var(--admin-cyan);
}

.admin-v12-sidebar-footer {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
}

.admin-v12-sidebar-footer .admin-portal-site-link,
.admin-v12-sidebar-footer .admin-portal-logout {
  width: 100%;
  border-radius: 0.65rem;
}

.admin-v12-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(7, 10, 19, 0.72);
  padding: 0.55rem 0.85rem;
  backdrop-filter: blur(16px);
}

.admin-v12-topbar span,
.admin-v12-clock {
  color: var(--admin-dim);
  font-size: 0.65rem;
  font-weight: 850;
}

.admin-v12-topbar strong {
  display: block;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.15;
}

.admin-v12-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-v12-main {
  max-width: 1180px;
  padding: 0.75rem;
}

.admin-v12-overview,
.admin-v12-panel,
.admin-v12-login-card,
.admin-v12-stat,
.admin-v12-body .card {
  border: 1px solid var(--admin-line);
  border-radius: 0.78rem;
  background:
    linear-gradient(180deg, rgba(143, 157, 255, 0.075), rgba(143, 157, 255, 0.018)),
    var(--admin-panel);
  color: var(--admin-text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.admin-v12-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem;
}

.admin-v12-overview h1,
.admin-v12-login-head h1 {
  margin: 0.4rem 0 0.2rem;
  color: #fff;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.admin-v12-overview p,
.admin-v12-login-head p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.admin-v12-login {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
}

.admin-v12-login-card {
  width: min(100%, 23rem);
  padding: 0.85rem;
}

.admin-v12-form {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.75rem;
}

.admin-v12-form label {
  display: grid;
  gap: 0.26rem;
}

.admin-v12-form label span {
  color: var(--admin-muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.admin-v12-form input,
.admin-v12-body .form-control,
.admin-v12-body .form-select {
  min-height: 2rem;
  border: 1px solid rgba(143, 157, 255, 0.22);
  border-radius: 0.58rem;
  background-color: rgba(4, 7, 15, 0.92);
  color: #fff;
  font-size: 0.74rem;
}

.admin-v12-form button {
  min-height: 2.15rem;
  border: 0;
  border-radius: 0.62rem;
  background: linear-gradient(135deg, var(--admin-blue), #4052f2);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
}

.admin-v12-login-hint {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.admin-v12-login-hint span {
  flex: 1;
  border: 1px solid var(--admin-line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  color: var(--admin-muted);
  font-size: 0.65rem;
  text-align: center;
}

.admin-v12-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.admin-v12-stat {
  padding: 0.62rem;
}

.admin-v12-stat span,
.admin-v12-stat small {
  display: block;
  color: var(--admin-muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.admin-v12-stat strong {
  display: block;
  margin: 0.22rem 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.admin-v12-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.admin-v12-panel {
  padding: 0.7rem;
}

.admin-v12-panel-head {
  margin-bottom: 0.55rem;
}

.admin-v12-panel-head h2 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

.admin-v12-module-grid {
  display: grid;
  gap: 0.42rem;
}

.admin-v12-module {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 3.3rem;
  border: 1px solid var(--admin-line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.48rem;
  color: inherit;
  text-decoration: none;
}

.admin-v12-module:hover {
  border-color: var(--admin-line-strong);
  background: rgba(99, 215, 255, 0.09);
  color: #fff;
}

.admin-v12-module > span {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(99, 215, 255, 0.13);
  color: var(--admin-cyan);
  font-size: 0.75rem;
  font-weight: 950;
}

.admin-v12-module strong,
.admin-v12-module small,
.admin-v12-module em {
  display: block;
}

.admin-v12-module strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-v12-module small {
  color: var(--admin-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.admin-v12-module em {
  color: var(--admin-warn);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-v12-system {
  display: grid;
  gap: 0.42rem;
  margin: 0;
}

.admin-v12-system div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--admin-line);
  border-radius: 0.58rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.45rem;
}

.admin-v12-system dt,
.admin-v12-system dd {
  margin: 0;
  font-size: 0.65rem;
}

.admin-v12-system dt {
  color: var(--admin-muted);
  font-weight: 850;
}

.admin-v12-system dd {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v12-body .card {
  border-radius: 0.72rem;
}

.admin-v12-body .card-body {
  padding: 0.62rem;
}

.admin-v12-body .d-flex.align-items-start.justify-content-between {
  border: 1px solid var(--admin-line);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.6rem;
}

.admin-v12-body .h4,
.admin-v12-body h1.h4 {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 950;
}

.admin-v12-body .h5,
.admin-v12-body h2.h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 950;
}

.admin-v12-body .text-secondary,
.admin-v12-body .small,
.admin-v12-body .form-label,
.admin-v12-body .form-text {
  color: var(--admin-muted) !important;
}

.admin-v12-body .btn {
  min-height: 1.9rem;
  border-radius: 0.55rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-v12-body .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--admin-blue), #4052f2);
}

.admin-v12-body .btn-outline-primary,
.admin-v12-body .btn-outline-secondary,
.admin-v12-body .btn-outline-danger {
  border-color: var(--admin-line);
  color: var(--admin-text);
}

.admin-v12-body .btn-outline-primary:hover,
.admin-v12-body .btn-outline-secondary:hover {
  border-color: var(--admin-line-strong);
  background: rgba(99, 215, 255, 0.1);
}

.admin-v12-body .table {
  color: var(--admin-text);
  font-size: 0.7rem;
}

.admin-v12-body .table > :not(caption) > * > * {
  border-color: rgba(143, 157, 255, 0.12);
  padding: 0.36rem 0.42rem;
}

.admin-v12-body .badge {
  border-radius: 999px;
  font-size: 0.62rem;
}

.admin-v12-body .modal-content {
  border-radius: 0.72rem;
}

.admin-v12-body .modal-header,
.admin-v12-body .modal-footer {
  padding: 0.55rem 0.7rem;
}

.admin-v12-body .modal-body {
  padding: 0.62rem 0.7rem;
}

.admin-v12-body .modal-title {
  font-size: 0.86rem;
}

.admin-v12-body .form-check-label {
  font-size: 0.72rem;
}

/* Admin banners compact editor */
.admin-banner-v13-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-banner-v13-summary > div,
.admin-banner-v13-item {
  border: 1px solid var(--admin-line);
  border-radius: 0.78rem;
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.92), rgba(9, 12, 24, 0.94)),
    rgba(12, 16, 30, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.admin-banner-v13-summary > div {
  padding: 0.72rem 0.8rem;
}

.admin-banner-v13-summary span,
.admin-banner-v13-kicker {
  display: block;
  color: var(--admin-dim);
  font-size: 0.62rem;
  font-weight: 900;
}

.admin-banner-v13-summary strong {
  display: block;
  margin-top: 0.12rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
}

.admin-banner-v13-list {
  display: grid;
  gap: 0.75rem;
}

.admin-banner-v13-item {
  overflow: hidden;
  padding: 0;
}

.admin-banner-v13-item-removed {
  opacity: 0.52;
  filter: grayscale(0.7);
}

.admin-banner-v13-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--admin-line);
  padding: 0.7rem 0.8rem;
}

.admin-banner-v13-head h2 {
  margin: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.admin-banner-v13-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 30%) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
}

.admin-banner-v13-preview {
  position: relative;
  display: grid;
  min-height: 7rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(143, 157, 255, 0.16);
  border-radius: 0.68rem;
  background:
    linear-gradient(135deg, rgba(99, 215, 255, 0.12), rgba(113, 128, 255, 0.08)),
    rgba(5, 8, 18, 0.75);
}

.admin-banner-v13-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-banner-v13-preview-text {
  max-width: 82%;
  color: rgba(237, 243, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.admin-banner-v13-fields .form-label {
  margin-bottom: 0.18rem;
}

.admin-banner-v13-toggle {
  display: flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--admin-line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 0.55rem;
  color: var(--admin-text);
  font-size: 0.7rem;
  font-weight: 850;
}

.admin-banner-v13-live-note {
  border: 1px solid rgba(99, 215, 255, 0.2);
  border-radius: 0.55rem;
  background: rgba(99, 215, 255, 0.08);
  color: rgba(237, 243, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.5;
  padding: 0.48rem 0.6rem;
}

.admin-banner-v13-live-note code {
  color: #63d7ff;
  font-size: 0.66rem;
}

.admin-banner-v13-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
  border: 1px solid var(--admin-line);
  border-radius: 0.78rem;
  background: rgba(7, 10, 19, 0.86);
  padding: 0.65rem;
  backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
  .admin-v12-shell {
    grid-template-columns: 1fr;
  }

  .admin-v12-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-v12-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-v12-sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-v12-grid {
    grid-template-columns: 1fr;
  }

  .admin-banner-v13-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-banner-v13-grid {
    grid-template-columns: 1fr;
  }

  .admin-banner-v13-preview {
    min-height: 9rem;
  }
}

@media (max-width: 620px) {
  .admin-v12-main {
    padding: 0.5rem;
  }

  .admin-v12-topbar,
  .admin-v12-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-v12-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-v12-module {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }

  .admin-v12-module em {
    grid-column: 2;
  }

  .admin-banner-v13-summary {
    grid-template-columns: 1fr;
  }

  .admin-banner-v13-head,
  .admin-banner-v13-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
