/* Match Center — broadcast-style page (Barça-inspired layout) */

.mc-page {
  background: #0a0a12;
  color: #fff;
}

.mc-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.mc-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.mc-back:hover {
  color: #fff;
}

.mc-broadcast-head {
  text-align: center;
  margin-bottom: 1rem;
}

.mc-broadcast-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 71, 87, 0.45);
  background: rgba(196, 16, 46, 0.15);
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ff8a94;
}

.mc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4757;
  animation: mc-pulse 1.5s ease-out infinite;
}

@keyframes mc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
}

.mc-broadcast-title {
  margin: 0 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
}

.mc-broadcast-sub {
  margin: 0;
  color: rgba(244, 244, 245, 0.7);
  font-size: 0.95rem;
}

.mc-ticker-block {
  margin-bottom: 1.25rem;
}

.mc-ticker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #0c1a3a 0%, #1a0a14 50%, #0c1a3a 100%);
  border: 1px solid rgba(237, 187, 0, 0.25);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.mc-ticker-block .mc-poster:not([hidden]) + .mc-ticker,
.mc-ticker-block:has(.mc-poster:not([hidden])) .mc-ticker {
  border-radius: 8px 8px 0 0;
}

.mc-ticker-block:not(:has(.mc-poster:not([hidden]))) .mc-ticker {
  border-radius: 8px;
  margin-bottom: 0;
}

.mc-poster {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(237, 187, 0, 0.25);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: visible;
  background: #0a0a0c;
  line-height: 0;
}

.mc-poster__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.mc-ticker__brand {
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #edbb00;
}

.mc-ticker__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: mc-ticker-scroll 18s linear infinite;
}

@keyframes mc-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-4%); }
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.mc-panel {
  background: linear-gradient(145deg, rgba(18, 24, 48, 0.95) 0%, rgba(26, 10, 18, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.mc-panel__label {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #edbb00;
}

.mc-panel__title {
  margin: 0 0 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  border-bottom: 2px solid rgba(196, 16, 46, 0.6);
  padding-bottom: 8px;
}

.mc-panel__note {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(244, 244, 245, 0.65);
}

.mc-panel--score { grid-column: span 12; }
.mc-panel--lineup { grid-column: span 6; }
.mc-panel--quiz { grid-column: span 6; }
.mc-panel--stats { grid-column: span 6; }
.mc-panel--gavi { grid-column: span 6; }
.mc-panel--table { grid-column: span 6; }
.mc-panel--news { grid-column: span 6; }
.mc-panel--chat { grid-column: span 12; }

@media (max-width: 900px) {
  .mc-panel--lineup,
  .mc-panel--quiz,
  .mc-panel--stats,
  .mc-panel--gavi,
  .mc-panel--table,
  .mc-panel--news {
    grid-column: span 12;
  }
}

/* Scoreboard */
.mc-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.mc-scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.mc-scoreboard__crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mc-scoreboard__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-scoreboard__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 10rem;
}

.mc-scoreboard__score {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.mc-scoreboard__score--vs {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  color: rgba(244, 244, 245, 0.85);
}

.mc-scoreboard__status {
  margin: 6px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #7dd3fc;
}

.mc-scoreboard__status.is-live {
  color: #ff6b7a;
  animation: mc-pulse 1.2s ease-in-out infinite;
}

.mc-scoreboard__clock {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(244, 244, 245, 0.6);
}

.mc-scorers {
  list-style: none;
  margin: 14px auto 0;
  padding: 0;
  max-width: 480px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mc-scorers[hidden],
.mc-scorers-empty[hidden] {
  display: none !important;
}

.mc-scorers li {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(237, 187, 0, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
}

.mc-scorers-empty {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(244, 244, 245, 0.5);
}

/* Pitch / lineup */
.mc-pitch {
  position: relative;
  aspect-ratio: 68 / 105;
  max-height: 420px;
  margin: 0 auto;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0, 80, 40, 0.35) 0%, rgba(0, 60, 30, 0.5) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255, 255, 255, 0.06) 49px, rgba(255, 255, 255, 0.06) 50px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.mc-pitch::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.mc-pitch__formation {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.mc-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 3;
  min-width: 52px;
}

.mc-player__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #7f1d1d);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.mc-player.is-gavi .mc-player__dot {
  border-color: #edbb00;
  box-shadow: 0 0 16px rgba(237, 187, 0, 0.55);
  background: linear-gradient(135deg, #004d98, #a50044);
}

.mc-player__name {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  max-width: 64px;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Quiz */
.mc-quiz__question {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.mc-quiz__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 18, 36, 0.85);
  color: #f4f4f5;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.mc-quiz__option-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #ffffff;
}

.mc-quiz__option-pct {
  flex-shrink: 0;
  min-width: 2.5rem;
  font-weight: 700;
  color: #edbb00;
  text-align: right;
}

.mc-quiz__option:hover {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 77, 152, 0.35);
}

.mc-quiz__option.is-voted {
  border-color: #edbb00;
  background: rgba(237, 187, 0, 0.15);
}

.mc-quiz__option.is-voted .mc-quiz__option-label {
  color: #fff8e0;
}

.mc-quiz__bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 120px;
}

.mc-quiz__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #004d98, #a50044);
  border-radius: 3px;
}

.mc-quiz__hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: rgba(244, 244, 245, 0.5);
}

/* Stats */
.mc-stats-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mc-stats-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mc-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mc-stats-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-stats-table td:first-child {
  color: rgba(244, 244, 245, 0.75);
  font-weight: 500;
}

.mc-stats-table td:nth-child(2),
.mc-stats-table td:nth-child(3) {
  text-align: center;
  font-weight: 700;
  width: 22%;
}

/* Gavi spotlight */
.mc-gavi-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
}

.mc-gavi-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(237, 187, 0, 0.45);
}

.mc-gavi-card__head {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.mc-gavi-stat {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.mc-gavi-stat strong {
  color: #edbb00;
}

/* Standings */
.mc-table-wrap {
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mc-standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mc-standings th {
  text-align: left;
  padding: 8px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(244, 244, 245, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mc-standings td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mc-standings tr.is-highlight td {
  background: rgba(0, 77, 152, 0.25);
  font-weight: 700;
}

/* Match news carousel */
.mc-match-news {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  align-items: center;
}

.mc-match-news__viewport {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border-radius: 10px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.mc-match-news__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.mc-match-news__caption {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f4f4f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mc-match-news__arrow {
  grid-row: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.mc-match-news__arrow:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

.mc-match-news__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.mc-match-news__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mc-match-news__dots {
  display: flex;
  gap: 8px;
}

.mc-match-news__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.mc-match-news__dot.is-active {
  background: #edbb00;
  box-shadow: 0 0 0 2px rgba(237, 187, 0, 0.35);
}

.mc-match-news__counter {
  font-size: 0.78rem;
  color: rgba(244, 244, 245, 0.55);
  font-variant-numeric: tabular-nums;
}

.mc-match-news__empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(244, 244, 245, 0.55);
}

/* Chat panel */
.mc-panel--chat {
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.98) 0%, rgba(8, 8, 14, 1) 100%);
}

.mc-chat-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: rgba(244, 244, 245, 0.65);
}

/* ─── Cornerist live chat (match center) ─────────────────────────────── */
.mc-live-chat {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-live-chat__feed {
  position: relative;
  min-height: 420px;
  max-height: min(62vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(6, 8, 14, 0.85);
  overflow: hidden;
}

.mc-live-chat__messages {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  max-height: none;
  min-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.35) transparent;
}

.mc-live-chat__messages .home-shoutbox__msg {
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-live-chat__messages .home-shoutbox__avatar {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.mc-live-chat__messages .home-shoutbox__name {
  font-size: 0.9rem;
  color: #fff;
}

.mc-live-chat__messages .home-shoutbox__body {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mc-live-chat__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(244, 244, 245, 0.5);
  pointer-events: none;
}

.mc-live-chat__messages:not(:empty) + .mc-live-chat__empty {
  display: none;
}

.mc-live-chat__closed {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: rgba(255, 180, 80, 0.08);
  color: rgba(255, 220, 170, 0.95);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mc-live-chat.is-chat-closed .mc-live-chat__composer.is-window-closed .mc-live-chat__compose {
  opacity: 0.55;
  pointer-events: none;
}

.mc-live-chat__composer.is-window-closed .mc-live-chat__signedout {
  display: none;
}

.mc-live-chat__composer {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 71, 87, 0.22);
  background: rgba(12, 10, 18, 0.92);
}

.mc-live-chat__signedout {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(196, 16, 46, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.25);
  font-size: 0.88rem;
  color: #f4f4f5;
}

.mc-live-chat__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.mc-live-chat__input-wrap {
  position: relative;
  min-width: 0;
}

.mc-live-chat__textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  padding: 14px 16px 44px;
  margin: 0;
  resize: vertical;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-sizing: border-box;
}

.mc-live-chat__textarea::placeholder {
  color: #6b7785;
}

.mc-live-chat__textarea:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.55);
  outline-offset: 2px;
  border-color: rgba(0, 212, 255, 0.4);
}

.mc-live-chat__toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mc-live-chat__emoji-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

.mc-live-chat__emoji-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.35);
}

.mc-live-chat__count {
  font-size: 0.75rem;
  color: #6b7785;
  font-variant-numeric: tabular-nums;
}

.mc-live-chat__count.is-near-limit {
  color: #ff7e88;
}

.mc-live-chat__emoji-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px;
  max-height: 160px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: #12141c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mc-live-chat__emoji-panel[hidden] {
  display: none;
}

.mc-live-chat__emoji-panel button {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.mc-live-chat__emoji-panel button:hover {
  background: rgba(0, 212, 255, 0.12);
}

.mc-live-chat__send {
  align-self: end;
  min-width: 100px;
  min-height: 48px;
  padding: 0 1.4rem;
  white-space: nowrap;
}

.mc-live-chat__status {
  margin: 10px 0 0;
  min-height: 1.25em;
  font-size: 0.88rem;
  font-weight: 600;
}

.mc-live-chat__status.is-error {
  color: #ff7e88;
}

.mc-live-chat__status.is-success {
  color: #5ce6ff;
}

.mc-live-chat__form.is-signed-out .mc-live-chat__textarea {
  opacity: 0.55;
  cursor: not-allowed;
}

.mc-live-chat__label.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .mc-live-chat__compose {
    grid-template-columns: 1fr;
  }
  .mc-live-chat__send {
    width: 100%;
  }
  .mc-live-chat__emoji-panel {
    grid-template-columns: repeat(6, 1fr);
  }
}
