/* ===== Auction Wall — Ultra Modern & Fully Responsive ===== */

.wall-body {
  --wall-ink: #f8faf6;
  --wall-muted: #94a398;
  --wall-bg: #030704;
  --wall-card: linear-gradient(165deg, rgba(20, 32, 24, 0.95) 0%, rgba(8, 14, 10, 0.98) 100%);
  --wall-card-border: rgba(62, 207, 142, 0.24);
  --wall-card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(62, 207, 142, 0.08) inset;
  --wall-chip-bg: rgba(0, 0, 0, 0.35);
  --wall-chip-border: rgba(62, 207, 142, 0.2);
  --wall-bar-bg: rgba(0, 0, 0, 0.4);
  --wall-photo-bg: #0d1510;
  --wall-title: #7dffb2;
  --wall-accent: #3ecf8e;
  --wall-gold: #f2cb6c;
}

[data-theme="light"] .wall-body {
  --wall-ink: #0d2116;
  --wall-muted: #4e695b;
  --wall-bg: #e6f5ed;
  --wall-card: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
  --wall-card-border: rgba(18, 140, 90, 0.18);
  --wall-card-shadow: 0 18px 45px rgba(16, 80, 55, 0.09), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  --wall-chip-bg: #ebf5ef;
  --wall-chip-border: rgba(18, 140, 90, 0.15);
  --wall-bar-bg: #e4f1ea;
  --wall-photo-bg: #f0f7f2;
  --wall-title: #0a8854;
  --wall-accent: #15b36e;
  --wall-gold: #c29124;
}

.wall-body {
  background: var(--wall-bg) !important;
  color: var(--wall-ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background Effects */
.wall-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wall-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: wallPulse 9s ease-in-out infinite alternate;
}

.wall-glow-a {
  width: 50vw;
  height: 50vw;
  top: -15%;
  left: 15%;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.35) 0%, transparent 70%);
}

.wall-glow-b {
  width: 45vw;
  height: 45vw;
  right: -10%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(24, 140, 80, 0.3) 0%, transparent 70%);
  animation-delay: -4s;
}

.wall-gridlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(62, 207, 142, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 142, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

[data-theme="light"] .wall-fx .wall-glow { opacity: 0.25; }
[data-theme="light"] .wall-gridlines { opacity: 0.4; }

@keyframes wallPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.1) translate(2%, 2%); opacity: 0.55; }
}

/* Layout Wrapper */
.wall-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 1.8vh, 18px) clamp(12px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
  box-sizing: border-box;
}

/* Desktop layout (default min-width 900px) */
@media (min-width: 900px) {
  html:has(.wall-body),
  html:has(.wall-body) body,
  .wall-body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .wall-wrap {
    height: 100dvh;
    max-height: 100dvh;
  }
}

/* Header */
.wall-header {
  flex-shrink: 0;
}

.wall-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wall-title-block {
  flex: 1;
  min-width: 0;
}

.wall-kicker {
  margin: 0 0 2px;
  font-size: clamp(0.62rem, 1.2vh, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wall-accent) !important;
}

.wall-header h1 {
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.8rem, 4vh, 2.8rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--wall-title) !important;
  line-height: 0.95;
  text-shadow: 0 0 30px rgba(62, 207, 142, 0.22);
}

[data-theme="light"] .wall-header h1 {
  text-shadow: none;
}

.wall-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wall-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff9e9e;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: clamp(0.65rem, 1.2vh, 0.78rem);
}

.wall-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: liveBlink 1.1s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.wall-clock {
  margin: 0;
  color: var(--wall-muted) !important;
  font-size: clamp(0.72rem, 1.3vh, 0.85rem);
  font-weight: 600;
  white-space: nowrap;
}

.wall-theme-btn {
  background: var(--wall-chip-bg) !important;
  border: 1px solid var(--wall-chip-border) !important;
  color: var(--wall-accent) !important;
  border-radius: 12px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.wall-theme-btn:hover {
  background: rgba(62, 207, 142, 0.18) !important;
  transform: translateY(-1px);
}

/* Mobile Segmented View Switcher (Hidden on Desktop) */
.wall-mobile-nav {
  display: none;
}

@media (max-width: 899px) {
  .wall-mobile-nav {
    display: flex;
    gap: 6px;
    background: var(--wall-bar-bg);
    border: 1px solid var(--wall-chip-border);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 4px;
  }

  .wall-nav-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--wall-muted);
    padding: 8px 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }

  .wall-nav-btn.active {
    color: #062816;
    background: linear-gradient(135deg, #7dffb2, #3ecf8e);
    box-shadow: 0 4px 12px rgba(62, 207, 142, 0.3);
  }
}

/* Sold Flash Notification */
.sold-flash {
  text-align: center;
  margin: 0;
  padding: clamp(8px, 1.2vh, 12px) 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.22), rgba(62, 207, 142, 0.28)) !important;
  border: 1px solid rgba(125, 255, 178, 0.5) !important;
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.1rem, 3.2vh, 2rem);
  letter-spacing: 0.05em;
  animation: soldPop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(62, 207, 142, 0.25);
}

[data-theme="light"] .sold-flash {
  background: linear-gradient(135deg, #d8fbe8, #d0f7e6) !important;
  color: #0d2116;
}

.sold-flash[hidden] {
  display: none !important;
}

.sold-flash strong {
  color: #7dffb2 !important;
  margin-right: 8px;
}

[data-theme="light"] .sold-flash strong {
  color: #0a8854 !important;
}

.sold-flash em {
  font-style: normal;
  color: #ffe89e;
}

@keyframes soldPop {
  from { transform: scale(0.9) translateY(-6px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Wall Grid Container */
.wall-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(12px, 1.8vw, 22px);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

/* Player Stage Panel */
.wall-player {
  position: relative;
  min-height: 0;
  height: 100%;
  background: var(--wall-card) !important;
  border: 1px solid var(--wall-card-border) !important;
  border-radius: clamp(18px, 2.2vh, 26px) !important;
  padding: clamp(12px, 1.8vh, 20px) !important;
  box-shadow: var(--wall-card-shadow) !important;
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.wall-player.is-live {
  border-color: rgba(62, 207, 142, 0.65) !important;
  box-shadow:
    0 0 0 1px rgba(62, 207, 142, 0.18),
    0 24px 75px rgba(62, 207, 142, 0.22) !important;
}

.wall-player-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(12px, 1.8vw, 22px);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.wall-player-media {
  flex: 0 0 clamp(200px, 35%, 340px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
  min-height: 0;
}

.wall-stage-ring {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 5px !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.9), rgba(26, 100, 65, 0.5)) !important;
  flex: 1 1 auto;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  min-height: 0;
}

[data-theme="light"] .wall-stage-ring {
  background: linear-gradient(145deg, rgba(125, 255, 178, 0.6), rgba(24, 181, 111, 0.35)) !important;
}

.wall-player:not(.is-live) .wall-stage-ring {
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.35), rgba(100, 110, 105, 0.2)) !important;
}

.wall-photo {
  width: 100%;
  height: 100%;
  border-radius: 17px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(62, 207, 142, 0.12), transparent 55%),
    var(--wall-photo-bg) !important;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 6vh, 4.2rem);
  border: none !important;
}

.wall-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

.wall-player-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.wall-player-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.wall-status-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px !important;
  font-size: clamp(0.62rem, 1.1vh, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #062816 !important;
  background: linear-gradient(135deg, #7dffb2, #3ecf8e) !important;
  box-shadow: 0 6px 16px rgba(62, 207, 142, 0.25);
  flex-shrink: 0;
  align-self: flex-start;
}

.wall-player.is-live .wall-status-pill {
  background: linear-gradient(135deg, #ff7a7a, #ef4444) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
  animation: wallPulsePill 1.6s ease-in-out infinite;
}

@keyframes wallPulsePill {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.wall-player h2 {
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.85rem, 4.8vh, 3.2rem);
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0.04em;
  word-break: break-word;
  color: var(--wall-ink) !important;
  text-transform: uppercase;
}

/* Meta Chips Grid */
.wall-meta-chips {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 8px !important;
  margin: 0 !important;
  width: 100% !important;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .wall-meta-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
  }
  .wall-chip {
    padding: 12px 16px !important;
  }
  .wall-chip em {
    font-size: 0.68rem !important;
    margin-bottom: 5px !important;
  }
  .wall-chip b {
    font-size: clamp(1rem, 1.7vh, 1.2rem) !important;
  }
  .wall-chip.accent b {
    font-size: clamp(1.25rem, 2.4vh, 1.55rem) !important;
  }
  .wall-chip.code b {
    font-size: clamp(0.85rem, 1.5vh, 1rem) !important;
  }
}

.wall-chip {
  min-width: 0;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: var(--wall-chip-bg) !important;
  border: 1px solid var(--wall-chip-border) !important;
  text-align: left;
  box-shadow: none !important;
}

.wall-chip em {
  display: block;
  margin: 0 0 3px;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wall-muted) !important;
  font-weight: 700;
}

.wall-chip b {
  display: block;
  font-size: clamp(0.85rem, 1.5vh, 1rem);
  font-weight: 800;
  color: var(--wall-ink) !important;
  line-height: 1.15;
  word-break: break-word;
}

.wall-chip.accent {
  background: rgba(62, 207, 142, 0.12) !important;
  border-color: rgba(62, 207, 142, 0.35) !important;
}

.wall-chip.accent b {
  color: var(--wall-accent) !important;
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.1rem, 2.2vh, 1.35rem);
  letter-spacing: 0.04em;
}

.wall-chip.code b {
  font-size: clamp(0.72rem, 1.35vh, 0.85rem);
  color: var(--wall-muted) !important;
  font-weight: 700;
}

.wall-chip.muted {
  grid-column: 1 / -1;
  text-align: left;
  color: var(--wall-muted) !important;
  font-size: clamp(0.78rem, 1.4vh, 0.9rem);
  font-weight: 600;
  padding: 12px 14px !important;
  background: var(--wall-bar-bg) !important;
}

/* Price Bar */
.wall-price-bar {
  margin-top: auto;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: var(--wall-bar-bg) !important;
  border: 1px solid var(--wall-chip-border) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.wall-price-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wall-price-bar span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--wall-muted) !important;
  font-weight: 800;
  text-transform: uppercase;
}

.wall-price-bar em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--wall-ink) !important;
  opacity: 0.85;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}

.wall-price-bar strong {
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.4rem, 3.4vh, 2.2rem);
  color: var(--wall-accent) !important;
  letter-spacing: 0.03em;
  padding: 6px 18px !important;
  border-radius: 999px !important;
  background: rgba(62, 207, 142, 0.15) !important;
  border: 1px solid rgba(62, 207, 142, 0.35) !important;
  flex-shrink: 0;
  line-height: 1;
}

[data-theme="light"] .wall-price-bar strong {
  color: #0a8854 !important;
  background: rgba(24, 181, 111, 0.12) !important;
}

/* Sidebar & Team Cards */
.wall-side {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.wall-side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.wall-side-head h3 {
  margin: 0;
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1.25rem, 2.8vh, 1.65rem) !important;
  letter-spacing: 0.06em;
  color: var(--wall-accent) !important;
}

.wall-side-head span {
  color: var(--wall-muted) !important;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.wall-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(8px, 1.2vh, 12px);
  flex: 1;
  min-height: 0;
  align-content: stretch;
  overflow-y: auto;
  scrollbar-width: none;
}

.wall-teams::-webkit-scrollbar { display: none; }

/* Bigger screens fit 4 team columns for large leagues */
@media (min-width: 1400px) {
  .wall-teams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wall-team-card {
  background: var(--wall-card) !important;
  border: 1px solid var(--wall-card-border) !important;
  border-top: 3.5px solid var(--tc, var(--wall-accent)) !important;
  border-radius: 16px !important;
  padding: clamp(10px, 1.4vh, 14px) !important;
  box-shadow: var(--wall-card-shadow) !important;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.wall-team-card:hover {
  border-color: color-mix(in srgb, var(--tc, var(--wall-accent)) 55%, transparent) !important;
  transform: translateY(-2px);
}

.wall-team-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.wall-team-logo {
  width: clamp(38px, 5.5vh, 52px) !important;
  height: clamp(38px, 5.5vh, 52px) !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--tc, var(--wall-accent)) !important;
  background: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

.wall-team-logo.fallback {
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.8rem, 1.5vh, 1rem);
  letter-spacing: 0.05em;
  color: #111 !important;
  background: var(--tc, var(--wall-accent)) !important;
}

.wall-team-top strong {
  display: block;
  font-size: clamp(0.8rem, 1.5vh, 0.95rem) !important;
  line-height: 1.15;
  word-break: break-word;
  color: var(--wall-ink) !important;
  font-weight: 800;
}

.wall-team-top .team-code {
  color: var(--wall-muted) !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Squad player list inside team card */
.wall-squad {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}

.wall-squad::-webkit-scrollbar { display: none; }

.wall-squad li {
  flex: 1 1 90px;
  min-width: 80px;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  background: var(--wall-chip-bg) !important;
  border-left: 2.5px solid var(--tc, var(--wall-accent)) !important;
  min-height: 24px;
}

.wall-squad li span {
  font-size: clamp(0.6rem, 1.1vh, 0.72rem) !important;
  font-weight: 700;
  color: var(--wall-ink) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.15;
}

.wall-squad li b {
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(0.7rem, 1.2vh, 0.88rem) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wall-accent) !important;
  line-height: 1.1;
}

[data-theme="light"] .wall-squad li b {
  color: #0a8854 !important;
}

.wall-squad li.empty {
  flex: 1 1 100%;
  justify-content: center;
  align-items: center;
  border-left-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--wall-muted) !important;
  font-size: clamp(0.68rem, 1.2vh, 0.8rem);
  font-weight: 600;
  background: var(--wall-bar-bg) !important;
  padding: 8px !important;
  font-style: italic;
}

.wall-team-foot {
  margin-top: auto;
  flex-shrink: 0;
}

.wall-team-stats {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 6px;
}

.wall-team-stats em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wall-muted) !important;
  font-weight: 700;
}

.wall-team-stats b {
  font-family: "Bebas Neue", "Teko", sans-serif;
  font-size: clamp(1rem, 2.4vh, 1.35rem) !important;
  letter-spacing: 0.03em;
  color: var(--wall-accent) !important;
  font-weight: 600;
}

[data-theme="light"] .wall-team-stats b {
  color: #0a8854 !important;
}

.wall-team-bar {
  margin-top: 6px;
  height: 5px !important;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25) !important;
  overflow: hidden;
}

.wall-team-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tc, var(--wall-accent)), #7dffb2) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 899px) {
  html:has(.wall-body),
  html:has(.wall-body) body,
  .wall-body {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .wall-wrap {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    padding: 12px 14px 28px !important;
    gap: 12px !important;
  }

  .wall-brand {
    gap: 10px;
  }

  .wall-header h1 {
    font-size: 1.8rem;
  }

  .wall-header-right {
    gap: 8px;
  }

  .wall-clock {
    font-size: 0.75rem;
  }

  .wall-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 14px !important;
    height: auto !important;
    overflow: visible !important;
    align-items: start !important;
  }

  /* Handle Tab View switching on mobile */
  .wall-grid[data-mobile-view="player"] .wall-side {
    display: none !important;
  }

  .wall-grid[data-mobile-view="teams"] .wall-player {
    display: none !important;
  }

  .wall-player {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px !important;
    flex: 0 0 auto !important;
  }

  .wall-player-split {
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .wall-player-media {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 340px;
    margin: 0 auto;
  }

  .wall-stage-ring {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    max-height: 65vh !important;
    flex: 0 0 auto !important;
  }

  .wall-player-info {
    gap: 12px !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    height: auto !important;
  }

  .wall-player-top {
    gap: 8px !important;
  }

  .wall-price-bar {
    margin-top: 0 !important;
  }

  .wall-player h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  .wall-meta-chips {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .wall-side {
    height: auto !important;
    overflow: visible !important;
  }

  .wall-teams {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
    height: auto !important;
  }

  .wall-team-card {
    height: auto !important;
  }

  .wall-squad {
    max-height: none !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 520px) {
  .wall-wrap {
    padding: 10px 10px 24px !important;
  }

  .wall-header h1 {
    font-size: 1.5rem;
  }

  .wall-kicker {
    font-size: 0.6rem;
  }

  .wall-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .wall-teams {
    grid-template-columns: 1fr !important;
  }

  .wall-squad li {
    flex: 1 1 45% !important;
    min-width: 0;
  }

  .wall-price-bar {
    padding: 10px 12px !important;
  }

  .wall-price-bar strong {
    font-size: 1.3rem !important;
    padding: 4px 12px !important;
  }
}
