/* Layout app public */
body.app-public {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--color-text-primary);
}
.match-card-header-content {
  width: 40%;
}
.team{
    width: 31%;
}
.ranking-table tbody tr.is-tied {
  opacity: 0.8;
  background-color: rgba(255, 200, 0, 0.10) !important;
}
.sheet-overlay {
  position: fixed;
  inset: 0;
  margin-top: 64px;
  bottom: 64px;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); /* iOS Safari */
  transition: backdrop-filter .25s ease;
  z-index: 4000;
}

.score-pen {
  margin-top: 6px;
  line-height: 1.05;
  margin-bottom: 25px;
}

.sheet{
      height: calc(100dvh - 128px);
}

/* zone centrale */
.app-content {
  overflow-x: hidden;
  color: var(--color-text-primary);
  position: absolute;
  top: 64px;
  bottom: 56px;
  left: 0;
  right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: var(--content-bg);
  padding: 0 16px 16px 16px;
}
/* footer visible */
.admin-footer {
  flex-shrink: 0;
    z-index: 4002;
}

.filter-group .but-2.on,
.filter-group .but-2.on:hover,
.filter-group .but-2.on:active,
.filter-group .but-2.on:disabled,
.media-tabs .but-2.on,
.media-tabs .but-2.on:hover,
.media-tabs .but-2.on:active {
  background: var(--color-primary-base);
  color: var(--color-text-onprimary);
}

/* Classe dédiée tabs galerie — bulletproof */
.media-tab-on {
  background: var(--color-primary-base) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px var(--color-primary-base) !important;
}


#appSheetView {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* TRÈS IMPORTANT pour le scroll */
}

.sheet .page-header {
  min-height: 70px;
  flex-shrink: 0;
}

.sheet-footer {
  flex-shrink: 0;
}

.sheet-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  overscroll-behavior: contain;
}

header form{
  margin: 0;
}

#app-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  top: 30%;
  left: 50%;
  margin-left: -20px;
}
.app-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-spinner.hidden {
  display: none !important;
}

.app-content{
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
}

.app-more{
  margin-top: 24px;
}

#appSheet .programming-item{
  width: calc(100% - 33px);
}

#appSheet .programming-left.icon-right svg{
  position: absolute;
  right: 24px;
}
.app-filters{
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px 16px;
    text-align: center;
}

.lang-switcher{
    width: 100%;
}
.match-card{
  position: relative;

}
.match-card .team {
  color: var(--color-text-primary);
}
.match-card-footer span {
  text-transform: initial;
}
.match-card-header-content.end svg {
  width: 24px;
  height: 24px;
  float: right;
  margin-top: -4px;
  margin-left: 3px;
}
.app-dashboard {
  max-width: 700px;
  margin-right: auto;
    margin-left: auto;
}
.dashboard-section {
  margin-bottom: var(--sp-24);
  text-align: center;
}
.dashboard-section h2, .dashboard-section p {
  color: var(--color-primary-base);
  padding-left: 16px;
  padding-right: 16px;
}
.app-dashboard .phase-list{
  text-transform: capitalize;
  padding-left: 20px;
}

.phases-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.phase-column {
  background: var(--color-bg-soft);
  border-radius: 12px;
  padding: 14px;
}

.phase-title {
  margin-bottom: 8px;
  text-align: left;
  padding-left: 20px;
  text-transform: capitalize;
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-list li {
  padding: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.phase-list li:last-child {
  border-bottom: none;
}




.cat-pill.on {
  background: #fff;
  color: #1e2f5b;
  opacity: 1;
}

.stadium-list {
  padding-left: 18px;
  opacity: .9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-12);
}

.stats-card {
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
  padding: var(--sp-12);
  text-align: left;
}

.match-detail-section {
  text-align: left;
  max-width: 394px;
  display: inline-block;
  width: calc(100% - 10px);
    margin: 10px 0px 0 10px;
  vertical-align: top;
}

.match-detail-section h2{
  margin-bottom: 28px;
}

.match-detail-section .info-row{
  margin-bottom: 24px;
  text-transform: capitalize;
}

.match-detail-section .info-row .text-caption-12-reg{
  margin-bottom: 6px;
}

.match-detail-section.eventos{
  border-top: 1px solid var(--border-base);
  padding-top: 10px;
}
.match-detail-section.eventos .events-list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.match-detail-section.eventos .events-list li{
  font-family: var(--font-family); font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: 0%;
  margin: 0 0 2px 0;
  padding: 0;
  list-style: none;
}

.match-detail-section.eventos .events-team-title{
  margin-bottom: 10px;
}

.match-detail-section.eventos .events-team.end{
  margin-top: 24px;
}
.match-detail-section .info-row.end {
    margin-bottom: 4px;
}

.sedes{
  margin-bottom: 50px;
}
.reglamentos{
  margin-bottom: 50px;
  white-space: pre-line;
  text-align: left;
}


.logement{
    width: calc(50% - 2px);
    display: inline-block;
    margin-bottom: 50px;
    vertical-align: top;
}
.logement h2.text-h2-18-sb{
    margin: 0;
}

.logement h2.text-h2-18-sb{
    margin: 0;
}

.sponsorCard{
  width: calc(100% - 16px);
    display: inline-block;
    padding: 30px 0;
    background: #fff;
    text-align: center;
    margin: 8px;
}
.sponsorCard img{
  max-width: 100%;
}

#sponsorView{
  text-align: left;
}

.streaming,
.streaming-info,
#matchDetailsContent .programming-item,
.verPartidoOnline
 {
  display: none;
}

.streaming.is-active,
.streaming-info.is-active,
#matchDetailsContent .programming-item.is-active,
.verPartidoOnline.is-active {
  display: block;
}
#matchDetailsContent .programming-item.is-active .programming-left{
    height: 56px;
}
.streaming{
  background: var(--color-primary-base);
  position: relative;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-top: -16px;
  border-radius: 10px 10px 0 0;
  color: #fff;
  padding: 5px 18px 5px 15px;
  margin-bottom: 10px;
}
.stremaing-text{
  width: 60%;
  text-align: left;
    display: inline-block;
}
.stremaing-text span{
  display: inline-block;
  margin-right: 11px;
  background: var(--color-feedback-error);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
}
.stremaing-icon{
  width: 40%;
  text-align: right;
    display: inline-block;
}
.stremaing-icon svg {
  float: right;
    margin-top: -5px;
    margin-left: 7px;
    height: 23px;
    width: 23px;
}
.streaming-info{
  position: absolute;
    text-align: center;
    width: calc(100% - 32px);
    margin-top: 33px;
    font-size: 12px;
    color: var(--color-text-primary)
}
#appSheet .match-detail .programming-item {
  max-width: 363px;
  width: calc(100% - 32px);
  margin: 10px;
    margin-right: 10px;
    margin-left: 10px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
#appSheet .match-detail .programming-left.icon-right svg{
  right: 10px;
}
#matchDetailsContent .streaming
{
  display: block;
}

.ico-streaming{
  background: #fff;
  border-radius: 10px;
}
.stremaing-icon {
  width: 40%;
  text-align: right;
  float: right;
  padding: 5px;
}
#matchDetailsContent .stremaing-icon {
  padding: 0;
}
.stremaing-icon .ico-streaming {
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  float: right;
  height: 25px;
}
#veoliveView{
  text-align: center;
  padding-top: 30px;
}
#veoliveView img{
  width: calc(100% - 16px);
  margin: 10px;
    margin-right: 10px;
    margin-left: 10px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.verPartidoOnline{
  text-align: left;
  max-width: 394px;
  width: calc(100% - 30px);
  margin: 10px 20px 0 10px;
    margin-top: 10px;
  margin-top: 10px;
  vertical-align: top;
}
/* Mobile */
@media (max-width: 720px) {
  .phases-table {
    grid-template-columns: 1fr;
  }
}
