:root {
  --green-950: #001d12;
  --green-900: #00331f;
  --green-800: #005c32;
  --green-700: #087a3d;
  --green-600: #0aa34f;
  --green-500: #18c763;
  --green-100: #e9f8ef;
  --gold: #e1b044;
  --red: #ef233c;
  --slate-950: #07111f;
  --slate-800: #172033;
  --slate-600: #647084;
  --slate-400: #9aa3b2;
  --slate-200: #e7e9ee;
  --slate-100: #f4f6f9;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(7, 17, 31, .08);
  --shadow-md: 0 18px 45px rgba(7, 17, 31, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 22%, rgba(10, 163, 79, .12), transparent 24rem),
    radial-gradient(circle at 90% 34%, rgba(24, 199, 99, .08), transparent 18rem),
    var(--slate-100);
  color: var(--slate-950);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.app {
  width: 100%;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 350px;
  padding: 34px 28px 44px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 48%, rgba(21, 220, 110, .36), transparent 18rem),
    radial-gradient(circle at 74% 85%, rgba(24, 199, 99, .17), transparent 18rem),
    linear-gradient(135deg, #00180f 0%, #002d1b 42%, #001409 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(42, 255, 132, .12) 44%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px);
  opacity: .55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -100px;
  top: 42px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(45deg, rgba(255,255,255,.08), transparent),
    radial-gradient(circle, transparent 0 50%, rgba(255,255,255,.05) 51%, transparent 53%);
  box-shadow: inset 0 0 80px rgba(24, 199, 99, .32);
  opacity: .65;
}

.hero-bg {
  position: absolute;
  inset: auto -100px 0 auto;
  width: 55%;
  height: 140px;
  background: linear-gradient(95deg, transparent, rgba(37, 255, 131, .16), transparent);
  transform: skewY(-8deg);
  filter: blur(.2px);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  text-align: center;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 35px;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -3px;
  text-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(24, 199, 99, .48);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: inherit;
  transform: rotate(-18deg);
}

.brand-mark span {
  color: var(--green-500);
}

.brand small {
  display: block;
  margin-top: -3px;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.72);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.icon-btn {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
  color: var(--white);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  transition: .2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 199, 99, .65);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
}

.menu-btn {
  justify-self: start;
  display: none;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.notification-dot {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(225, 176, 68, .16);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 26px auto 0;
  width: min(100%, var(--max));
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 76px);
  line-height: 1;
  letter-spacing: -2.5px;
  font-weight: 950;
}

.hero h1 span {
  color: var(--green-500);
}

.hero p {
  margin: 14px 0 26px;
  font-size: clamp(16px, 1.6vw, 22px);
  color: rgba(255,255,255,.8);
}

.tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  min-width: 124px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: .2s ease;
  white-space: nowrap;
}

.tabs button:hover,
.tabs button.active {
  border-color: rgba(24, 199, 99, .7);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(10, 163, 79, .26);
}

.live-dot {
  display: inline-block;
  vertical-align: middle;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(239, 35, 60, .12);
}

.shell {
  position: relative;
  width: min(calc(100% - 56px), var(--max));
  margin: -34px auto 60px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 6% 16%, rgba(10, 163, 79, .05), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9));
  box-shadow: var(--shadow-md);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr auto;
  gap: 18px;
  align-items: center;
}

.select-control,
.search-control,
.filter-btn {
  min-height: 58px;
  border: 1px solid var(--slate-200);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 9px 22px rgba(7, 17, 31, .05);
}

.select-control,
.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--slate-800);
  font-weight: 800;
}

.select-control .chevron {
  margin-left: auto;
  font-size: 22px;
}

.ball-icon {
  font-size: 23px;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: var(--slate-400);
}

.search-control input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--slate-950);
  font-weight: 700;
}

.search-control input::placeholder {
  color: var(--slate-400);
}

.filter-btn {
  justify-content: center;
  min-width: 140px;
}

.stats {
  display: none;
  margin-top: 18px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stats article {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  position: relative;
}

.stats article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--slate-200);
}

.stats strong {
  font-size: 34px;
  line-height: 1;
}

.stats small {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
}

.stat-icon {
  font-size: 20px;
}

.stat-icon.green {
  color: var(--green-700);
}

.stat-icon.red {
  color: var(--red);
}

.stat-icon.slate {
  color: #344054;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
  gap: 16px;
}

.section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.section-title h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.4px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 176, 68, .6), transparent);
}

.section-title a {
  color: var(--green-800);
  font-weight: 900;
  white-space: nowrap;
}

.match-list {
  display: grid;
  gap: 14px;
}

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  min-height: 104px;
  padding: 17px 24px;
  border: 1px solid var(--slate-200);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(10, 163, 79, .045), transparent 22%),
    var(--white);
  box-shadow: 0 12px 30px rgba(7, 17, 31, .065);
  overflow: hidden;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green-700);
}

.match-card.is-ended::before {
  background: linear-gradient(180deg, var(--green-700), #333);
}

.team {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.team.right {
  justify-content: flex-end;
  text-align: right;
}

.team-name {
  font-weight: 900;
  color: var(--slate-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flag {
  width: 72px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid rgba(7, 17, 31, .08);
  font-size: 42px;
  line-height: 1;
  box-shadow: inset 0 -10px 18px rgba(7, 17, 31, .05);
}

.center-info {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 70px;
  border-left: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-200);
  padding: 0 18px;
}

.score,
.time {
  color: var(--slate-950);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.7px;
}

.score span {
  display: inline-block;
  margin: 0 12px;
  color: var(--slate-600);
  font-size: .72em;
  font-weight: 700;
}

.status {
  min-width: 118px;
  text-align: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #3d3f44;
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .4px;
}

.status.live {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 35, 60, .1);
}

.status.soon {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.stage {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.channels {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
}

.channel {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 950;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.side-card {
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: linear-gradient(135deg, #00321f, #001b11);
  color: var(--white);
}

.side-head strong {
  font-size: 14px;
  letter-spacing: .6px;
}

.side-head span {
  color: var(--gold);
  font-size: 27px;
  line-height: 1;
}

.mini-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 18px 16px;
  gap: 14px;
}

.mini-match > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.mini-match > div:last-child {
  justify-content: flex-end;
}

.mini-match .flag {
  width: 52px;
  height: 34px;
  font-size: 28px;
}

.mini-score {
  flex-direction: column;
  text-align: center;
  gap: 5px !important;
}

.mini-score b {
  font-size: 30px;
  color: #c40820;
  line-height: 1;
}

.mini-score em {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.side-link {
  display: block;
  padding: 12px 18px 16px;
  color: var(--green-800);
  text-align: center;
  font-weight: 900;
}

.table-card {
  padding-bottom: 2px;
}

.group-label {
  display: block;
  margin: 14px 18px 0;
  color: var(--slate-600);
  font-weight: 900;
}

table {
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px 5px;
  text-align: center;
  border-bottom: 1px solid rgba(231,233,238,.8);
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  color: var(--slate-600);
  font-size: 11px;
}

.highlight-banner {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  gap: 12px;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 40%, rgba(225, 176, 68, .32), transparent 10rem),
    radial-gradient(circle at 80% 45%, rgba(24, 199, 99, .28), transparent 10rem),
    linear-gradient(135deg, #0b160f, #1d2c22 48%, #07110c);
  color: var(--white);
}

.highlight-banner span {
  width: 92px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  font-size: 58px;
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}

.highlight-banner b {
  font-size: 28px;
}

.highlight-info {
  text-align: center;
  padding: 18px 20px 22px;
}

.highlight-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.highlight-info p {
  margin: 0 0 3px;
  color: var(--slate-800);
  font-weight: 700;
}

.highlight-info small {
  color: var(--slate-600);
  font-weight: 700;
}

.float-actions {
  position: fixed;
  right: 28px;
  bottom: 24px;
  display: grid;
  gap: 13px;
  z-index: 10;
}

.float-actions a {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 14px 35px rgba(7, 17, 31, .2);
}

.telegram {
  background: #1da1f2;
}

.whatsapp {
  background: #0bbf53;
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .highlight-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--slate-100);
  }

  .hero {
    min-height: 325px;
    padding: 20px 20px 36px;
  }

  .hero::after {
    width: 230px;
    height: 230px;
    left: -80px;
    top: 18px;
  }

  .topbar {
    grid-template-columns: 54px 1fr auto;
  }

  .menu-btn {
    display: inline-grid;
  }

  .brand {
    transform: translateX(10px);
  }

  .brand-mark {
    min-width: 93px;
    height: 44px;
    font-size: 29px;
  }

  .brand small {
    font-size: 7px;
  }

  .link-btn {
    display: none;
  }

  .icon-btn {
    width: 48px;
    height: 48px;
  }

  .top-actions {
    gap: 8px;
  }

  .hero-content {
    margin-top: 28px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .hero p {
    margin: 10px 0 22px;
    font-size: 16px;
  }

  .tabs {
    width: calc(100vw - 38px);
    justify-content: flex-start;
    padding-left: 0;
  }

  .tabs button {
    min-width: max-content;
    height: 49px;
    padding: 0 21px;
  }

  .shell {
    width: calc(100% - 20px);
    margin-top: -24px;
    padding: 18px 14px 18px;
    border-radius: 24px;
  }

  .toolbar {
    grid-template-columns: 1fr 52px;
    gap: 10px;
  }

  .select-control {
    grid-column: 1 / 2;
    min-height: 58px;
  }

  .search-control {
    grid-column: 1 / 2;
    grid-row: 2;
    min-height: 58px;
  }

  .filter-btn {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 52px;
    min-height: 126px;
    padding: 0;
  }

  .filter-btn span {
    display: none;
  }

  .stats {
    display: grid;
  }

  .content-grid {
    display: block;
    margin-top: 22px;
  }

  .section-title {
    margin: 0 4px 14px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .section-title::after {
    display: none;
  }

  .match-list {
    gap: 10px;
  }

  .match-card {
    grid-template-columns: 1fr 116px 1fr;
    min-height: 92px;
    padding: 12px 13px;
    border-radius: 15px;
    gap: 4px;
  }

  .team {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .team.right {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .team-name {
    font-size: 14px;
    max-width: 102px;
  }

  .flag {
    width: 56px;
    height: 38px;
    font-size: 34px;
    border-radius: 7px;
  }

  .center-info {
    min-height: 68px;
    padding: 0 8px;
  }

  .score,
  .time {
    font-size: 26px;
  }

  .score span {
    margin: 0 6px;
  }

  .stage {
    max-width: 116px;
    padding: 5px 8px;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status {
    min-width: 92px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .channels {
    margin-top: 10px;
    gap: 7px;
  }

  .channel {
    padding: 5px 11px;
    font-size: 11px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .table-card {
    display: none;
  }

  .side-card {
    border-radius: 15px;
  }

  .side-head {
    min-height: 46px;
  }

  .mini-match {
    padding: 14px 12px 14px;
  }

  .mini-match .flag {
    width: 46px;
    height: 32px;
    font-size: 26px;
  }

  .mini-score b {
    font-size: 28px;
  }

  .highlight-banner {
    min-height: 136px;
  }

  .highlight-banner span {
    width: 76px;
    height: 58px;
    font-size: 46px;
  }

  .float-actions {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 14px;
  }

  .tabs button {
    padding: 0 17px;
    height: 46px;
    font-size: 14px;
  }

  .toolbar {
    grid-template-columns: 1fr 48px;
  }

  .select-control,
  .search-control {
    padding: 0 13px;
    font-size: 14px;
  }

  .stats article {
    min-height: 92px;
  }

  .stats strong {
    font-size: 30px;
  }

  .stats small {
    font-size: 12px;
  }

  .match-card {
    grid-template-columns: 1fr 102px 1fr;
    padding: 11px 10px;
  }

  .team-name {
    max-width: 82px;
    font-size: 13px;
  }

  .flag {
    width: 50px;
    height: 34px;
    font-size: 29px;
  }

  .score,
  .time {
    font-size: 24px;
  }

  .stage {
    max-width: 102px;
    font-size: 8px;
  }
}

/* ============================================================
   Ajustes MSX (dados reais/dinâmico) — ADITIVO, não altera o design acima
   ============================================================ */
/* abas viram <a> (navegação) — mesmos estilos do .tabs button */
.tabs a{min-width:124px;height:50px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(0,0,0,.18);color:rgba(255,255,255,.9);font-weight:800;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);transition:.2s ease;white-space:nowrap}
.tabs a:hover,.tabs a.active{border-color:rgba(24,199,99,.7);background:linear-gradient(135deg,var(--green-500),var(--green-700));color:var(--white);box-shadow:0 14px 34px rgba(10,163,79,.26)}
.live-dot{animation:msxpulse 1.4s infinite}
@keyframes msxpulse{0%,100%{opacity:1}50%{opacity:.4}}
/* escudo/bandeira REAL dentro do .flag (em vez de emoji).
   Os escudos são quadrados; a caixa do design era retângulo deitado (p/ bandeira de país)
   e com overflow:hidden cortava o escudo pela metade. Deixamos a caixa quadrada. */
.flag{overflow:hidden;height:auto !important;aspect-ratio:1/1;background:transparent;border:0;box-shadow:none}
.flag img{width:100%;height:100%;object-fit:contain;padding:2px}
.mini-match .flag img{padding:2px}
.highlight-banner span{height:auto !important;aspect-ratio:1/1}
.highlight-banner span img{width:100%;height:100%;object-fit:contain;padding:6px}
/* tira as linhas verticais que ficavam dentro do card (em volta da hora/placar) */
.center-info{border-left:0;border-right:0}
.brand-mark img{height:54px;max-width:170px;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}
/* logo da liga no título da seção */
.section-title img{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
/* classificação rápida (sidebar) e completa: escudo + nome */
td .tname{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
td .tname img{width:20px;height:20px;object-fit:contain;flex:0 0 auto}
td .tname span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* select real mantendo o look do .select-control */
.select-control select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;font-weight:800;color:var(--slate-800);width:100%;height:56px;cursor:pointer;outline:none}
/* canal com logo opcional */
.channel{display:inline-flex;align-items:center;gap:6px}
.channel img{height:14px;width:auto;object-fit:contain}
/* aba Classificação — tabela completa no estilo do design */
.tbl-full{border:1px solid var(--slate-200);border-radius:18px;background:var(--white);box-shadow:var(--shadow-sm);overflow:hidden;margin-top:24px}
.tbl-full .tbl-title{padding:14px 18px;font-weight:900;background:linear-gradient(135deg,#00321f,#001b11);color:#fff}
.tbl-full table{width:100%;border-collapse:collapse;font-size:14px;margin:0}
.tbl-full th,.tbl-full td{padding:11px 8px;text-align:center;border-bottom:1px solid var(--slate-200)}
.tbl-full th:nth-child(2),.tbl-full td:nth-child(2){text-align:left}
.tbl-full th{color:var(--slate-600);font-size:12px}
.tbl-full td .tname img{width:22px;height:22px}
.tbl-full tr.top td:first-child{box-shadow:inset 3px 0 0 var(--green-500)}
.tbl-full tr.rel td:first-child{box-shadow:inset 3px 0 0 var(--red)}
/* no celular as 8 colunas não cabem (Pts cortava) — aperta padding/fonte */
@media (max-width:760px){
  .tbl-full table{font-size:12.5px}
  .tbl-full th,.tbl-full td{padding:9px 3px}
  .tbl-full th{font-size:10.5px}
  .tbl-full td .tname{gap:5px}
  .tbl-full td .tname img{width:18px;height:18px}
}
.liga + .liga{margin-top:30px}
.empty{padding:48px 20px;text-align:center;color:var(--slate-600);font-weight:800}
.rodape{text-align:center;color:var(--slate-600);font-size:12px;font-weight:600;padding:18px 0 30px}
/* logo do user: sem a moldura/pílula torta do "MSX", centralizada */
.brand-mark.has-logo{min-width:0;padding:0;height:54px;letter-spacing:normal}
.brand-mark.has-logo::before{display:none}
/* FABs telegram/whatsapp: ícone SVG e visíveis também no mobile */
.float-actions a svg{display:block}
@media (max-width:1180px){ .float-actions{display:grid} }
/* modo escuro opcional (via vars) — não afeta o tema claro padrão */
body.dark{--white:#131a26;--slate-100:#0b0f17;--slate-200:#26304a;--slate-950:#e7e9ee;--slate-800:#cbd3e1;--slate-600:#9aa3b2;--slate-400:#6b7585;background:#070b12}
body.dark .shell{background:linear-gradient(180deg,#131a26,#0f1521)}
/* o hero é sempre verde escuro; no dark mode o --white vira escuro (pros cards),
   então o texto do hero precisa continuar branco explicitamente */
body.dark .hero{color:#fff}
/* cabeçalho verde escuro dos cards da sidebar: texto sempre branco */
body.dark .side-head, body.dark .side-head strong, body.dark .side-head a{color:#fff}
body.dark .tbl-full .tbl-title{color:#fff}
/* toolbar (select/busca/filtro) tinha fundo branco fixo -> no dark fica escuro pra ler */
body.dark .select-control, body.dark .search-control{background:#10182a;border-color:var(--slate-200)}
/* inputs/selects no dark: texto claro, placeholder visível, opções do dropdown escuras */
body.dark .search-control input, body.dark .select-control select{color:#e7e9ee;background:transparent}
body.dark .search-control input::placeholder{color:#7c8698}
body.dark .search-control span, body.dark .ball-icon{filter:none;opacity:.85}
body.dark select option{background:#131a26;color:#e7e9ee}
body.dark .stats.one{background:var(--white);border-color:var(--slate-200)}
body.dark .fav-chip .fav-ava{background:#0e1626}
body.dark .channel{background:rgba(255,255,255,.04)}
/* deixa o site um pouco menor (a pedido) — escala tudo proporcionalmente */
.app{zoom:.9}
@media (max-width:760px){ .app{zoom:.82} }

/* topo do card BRANCO SÓLIDO — não deixa o hero vazar nem mostra "linha"/tom verde no topo */
.shell{background:var(--white)}

/* resultado de favorito/busca (jogo do time no conteúdo) */
.fav-tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:900;letter-spacing:.5px;color:var(--green-800);background:var(--slate-100);border:1px solid var(--slate-200);padding:4px 10px;border-radius:999px;margin-left:8px}
.fav-tag.live{color:#fff;background:var(--red);border-color:var(--red)}
.fav-back{color:var(--green-800);font-weight:900;white-space:nowrap;cursor:pointer}
/* seletor de competição: setinha de dropdown (não parecer só um rótulo) */
.select-control{position:relative}
.select-control select{flex:1 1 auto;width:auto;min-width:0}
/* setinha desenhada (v limpo apontando pra baixo) em vez do caractere */
.select-control .chevron{width:9px;height:9px;margin-left:8px;flex:0 0 auto;pointer-events:none;border-right:2.5px solid var(--slate-600);border-bottom:2.5px solid var(--slate-600);transform:translateY(-2px) rotate(45deg);transition:transform .18s ease,border-color .15s ease}
.select-control:hover .chevron{border-color:var(--slate-950)}
.select-control.open .chevron{transform:translateY(2px) rotate(-135deg)}  /* aponta pra cima quando aberto */
/* ===== Dropdown personalizado (lista temada) ===== */
.select-control{cursor:pointer}
.sc-label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--slate-800);font-weight:800}
.sc-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:45;background:var(--white);border:1px solid var(--slate-200);border-radius:14px;box-shadow:0 22px 54px rgba(7,17,31,.20);padding:6px;max-height:340px;overflow-y:auto;display:none;animation:scpop .14s ease}
.select-control.open .sc-panel{display:block}
@keyframes scpop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.sc-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:11px 12px;border-radius:10px;font:inherit;font-weight:700;color:var(--slate-950);cursor:pointer;line-height:1.2}
.sc-opt:hover{background:var(--slate-100)}
.sc-opt.sel{background:rgba(var(--accent-rgb),.14);color:var(--green-800)}
.sc-panel::-webkit-scrollbar{width:8px}
.sc-panel::-webkit-scrollbar-thumb{background:var(--slate-200);border-radius:8px}
/* seletor da Classificação com a MESMA largura do "Todas as competições" */
.toolbar-tabela{grid-template-columns:minmax(230px,330px)}
/* filtros mais "vivos": hover e foco */
.select-control:hover,.search-control:hover,.filter-btn:hover{border-color:var(--slate-400)}
.select-control:focus-within,.search-control:focus-within{border-color:rgba(var(--accent-rgb),.6);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.14)}
@media (max-width:760px){ .toolbar-tabela{grid-template-columns:1fr} }

/* ===== Topo estilo popfut: só a logo grande no centro, toggle de tema no canto ===== */
/* botão de tema no canto superior direito (no fluxo, tamanho de antes) */
.topbar{display:flex;justify-content:flex-end;align-items:center}
.brand small{display:none}
/* fundo do hero limpo — sem as linhas/scanlines, faixas diagonais e o círculo (achados feios) */
.hero::before{display:none !important}
.hero::after{display:none !important}
.hero-bg{display:none !important}
/* tamanho do topo como antes (não cortado): respiro em cima e embaixo */
.hero{min-height:0 !important;padding-top:14px !important;padding-bottom:50px !important}
.hero-content{margin-top:2px}
.hero-brand{display:flex;justify-content:center;align-items:center;margin-bottom:2px}
.hero-logo{height:200px;max-width:90%;width:auto;object-fit:contain;filter:drop-shadow(0 12px 26px rgba(0,0,0,.45))}
.hero-name{margin:0;font-size:clamp(34px,5vw,64px);font-weight:950;font-style:italic;letter-spacing:-2px;line-height:1}
.hero-name span{color:var(--green-500)}
.hero-content .tabs{margin-top:20px}
/* stats agora aparecem tambem no PC (os dois mockups mostram) */
.stats{display:grid}

/* ===== Cards estilo popfut: escudo grande em cima, nome embaixo, + estrela de favoritar ===== */
.team{flex-direction:column !important;align-items:center !important;justify-content:flex-start;gap:8px;text-align:center}
.team.right{align-items:center !important;flex-direction:column !important}
.flag{position:relative;width:62px;overflow:visible}
.team-name{max-width:130px;text-align:center;white-space:normal;line-height:1.15;font-size:14px}
/* estrela de favoritar no canto do escudo (estilo popfut: estrelinha, sem caixa) */
.fav{position:absolute;top:-8px;right:-8px;z-index:3;width:22px;height:22px;padding:0;border:0;background:transparent;
     color:#b9c2d0;font-size:17px;line-height:1;cursor:pointer;display:grid;place-items:center;
     text-shadow:0 1px 3px rgba(7,17,31,.3);transition:.15s ease}
.fav:hover{transform:scale(1.18)}
.fav.on{color:#f5b301;text-shadow:0 1px 6px rgba(245,179,1,.6)}
/* AO VIVO igual popfut: pílula vermelha COMPACTA (ajustada ao conteúdo) com ponto pulsante + minuto */
.status.live{display:inline-flex;align-items:center;gap:6px;min-width:0;width:max-content;padding:5px 12px}
.status.live .live-dot{width:7px;height:7px;border-radius:50%;background:#fff;flex:0 0 auto}
.match-card:has(.status.live)::before{background:var(--red)}  /* barra lateral vermelha quando ao vivo */

/* ===== "Meus Favoritos": fileira de avatares circulares (escudo + nome), igual popfut ===== */
.fav-bar{margin-bottom:16px;padding:2px 2px 4px}
.fav-head{font-size:12px;font-weight:800;letter-spacing:1.2px;color:var(--slate-400);text-transform:uppercase;margin-bottom:12px}
.fav-chips{display:flex;gap:14px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.fav-chips::-webkit-scrollbar{display:none}
.fav-chip{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:62px;border:0;background:transparent;cursor:pointer;padding:0}
.fav-ava{width:58px;height:58px;border-radius:50%;border:2px solid var(--green-500);background:var(--white);display:grid;place-items:center;overflow:hidden;transition:.15s ease}
.fav-ava img{width:74%;height:74%;object-fit:contain}
.fav-nm{font-size:11px;font-weight:700;color:var(--slate-800);max-width:62px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.fav-chip:hover .fav-ava{border-color:var(--green-700);transform:scale(1.05)}
/* destaque rápido ao clicar no favorito (pula pro jogo do time) */
.match-card.flash{animation:msxflash 1.6s ease}
@keyframes msxflash{0%,100%{box-shadow:0 12px 30px rgba(7,17,31,.065)}20%,60%{box-shadow:0 0 0 3px var(--green-500),0 12px 30px rgba(10,163,79,.25)}}

/* ===== Stats: só "Ao vivo", com o ícone (bolinha) do lado do nome ===== */
.stats.one{display:flex;justify-content:center}
.stats.one article{min-height:0;display:flex;flex-direction:row;align-items:center;gap:9px;padding:15px 26px}
.stats.one .stat-live-dot{width:11px;height:11px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(239,35,60,.16);animation:msxpulse 1.4s infinite}
.stats.one small{font-size:15px;font-weight:800}
.stats.one strong{font-size:21px;color:var(--red)}

/* toolbar sem o botão de Filtros (removido): só competição + busca */
.toolbar{grid-template-columns:minmax(230px,330px) 1fr}

@media (max-width:760px){
  /* toolbar do mobile: competição em cima, busca embaixo (sem filtro) */
  .toolbar{grid-template-columns:1fr;gap:10px}
  .select-control{grid-column:1;grid-row:1;min-height:54px}
  .search-control{grid-column:1;grid-row:2;min-height:54px}
  .hero-logo{height:150px;max-width:84%}
  .hero{padding-top:10px !important;padding-bottom:42px !important}
  .flag{width:54px}
  .team-name{max-width:104px;font-size:13px}
  /* tabs no mobile: NÃO arrastar — 3 por linha; a 2ª linha (Ao Vivo + Classificação) fica CENTRALIZADA */
  .tabs{display:flex !important;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;overflow:visible;padding:2px 0}
  .tabs a{flex:0 0 calc((100% - 16px)/3);min-width:0 !important;width:auto;height:44px;padding:0 6px;font-size:12.5px;white-space:nowrap}
  /* classificação rápida aparece também no celular (abaixo, mostrando todos) */
  .table-card{display:block}
}
