:root {
	--m-header-h: 58px;
	--m-footer-h: 58px;
	--m-bg: #000;
	--m-card: #151515;
	--m-line: #2a2a2a;
	--m-text: #f2f2f2;
	--m-muted: #8d8d8d;
	--m-accent: #ff9900;
	--m-live: #ff3b30;
	--m-ok: #39d353;
}

* {
  scrollbar-width: none;  
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--m-bg);
	color: var(--m-text);
	font-family: Arial, sans-serif;
}
body.is-team-sheet-open {
	overflow: hidden;
}
.m-body {
	background: var(--m-bg);
}

.m-app {
	min-height: 100svh;
	background: var(--m-bg);
}
.m-header {
	position: sticky;
	top: 0;
	z-index: 30;
	height: var(--m-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px 0 0;
    background: #000;
}

.m-header__brand {
	font-size: 1.1rem;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    /*text-transform: uppercase;*/
    font-variant: small-caps;
}

.m-header__team {
	min-height: 38px;
	padding: 0 20px;
	border: 1px solid var(--m-line);
	border-radius: 999px;
	background: #111;
	color: var(--m-text);
	font-size: .92rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.m-header__team.is-active {
	max-width: 50%;
}

.m-header__team-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m-main {
	padding-bottom: calc(var(--m-footer-h) + env(safe-area-inset-bottom, 0px) + 8px);
}

.m-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	height: calc(var(--m-footer-h) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	background: #0a0a0a;
	border-top: 1px solid var(--m-line);
}

.m-footer__item {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 6px;
	color: var(--m-muted);
	text-decoration: none;
}

.m-footer__item.is-active {
	color: var(--m-accent);
}

.m-footer__item.is-disabled {
	opacity: .35;
	pointer-events: none;
}

.m-footer__icon {
	font-size: 1.1rem;
	line-height: 1;
}

.m-footer__label {
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.m-footer__chrono-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/*min-width: 70px;
	padding: 8px 10px;
	border-radius: 999px;*/
	background: #111;
	color: #fff;
	font-size: .95rem;
	font-weight: 800;
}

.m-footer__chrono-state.is-pending {
	color: #fff;
}

.m-footer__chrono-state.is-live {
	color: var(--m-ok);
}

.m-footer__chrono-state.is-half {
	color: var(--m-accent);
}

.m-footer__chrono-state.is-finished,
.m-footer__chrono-state.is-done {
	color: var(--m-live);
}



.m-group-tabs {
	position: sticky;
	top: var(--m-header-h);
	z-index: 25;
	gap: 2px;
	padding: 0;
    display: grid;    
    background: #292929;
}

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

.m-group-tabs__btn {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--m-muted);
	font-size: .84rem;
	font-weight: 800;
	line-height: 38px;
	text-transform: uppercase;
	text-decoration: none;
    /*background: #dedede;*/
    text-align: center;
    align-content: center;
    /*border-radius: 10px;*/
}

.m-group-tabs__btn.is-active {
	background-color: var(--m-accent);
    color: #fff;
}

.m-team-active {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--m-line);
	background: #0b0b0b;
}

.m-team-active__back,
.m-team-active__reset {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #141414;
	color: #fff;
	text-decoration: none;
	flex: 0 0 auto;
}

.m-team-active__name {
	min-width: 0;
	flex: 1;
	font-size: .95rem;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.m-ranking-card {
    margin-top: 10px;
    margin-bottom: 10px;
	/*margin: 12px 10px 10px;
	border: 1px solid var(--m-line);
	border-radius: 14px;
	background: var(--m-card);
	overflow: hidden;*/
}

.m-section-title {
	padding: 12px 14px;
	font-size: .92rem;
	font-weight: 800;
	color: var(--m-accent);
	border-bottom: 1px solid var(--m-line);
	text-transform: uppercase;
}

.m-ranking-head,
.m-ranking-row {
	display: grid;
	grid-template-columns: 20px 1fr 30px 30px 30px;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	font-size: .84rem;
}

.m-ranking-head {
	color: var(--m-muted);
	font-weight: 800;
	border-bottom: 1px solid var(--m-line);
}

.m-ranking-row {
	border-bottom: 1px solid rgba(255,255,255,.3);
    display: grid;
    
}
.m-ranking-row SPAN.center, .m-ranking-head SPAN.center  {
    text-align: center;
}
.m-ranking-row.qualif-1 {
    background-color: #6274a7;
}

.m-ranking-row:last-child {
	border-bottom: 0;
}

.m-ranking-row.is-team {
    color: #dd811f;
}


.m-ranking-row__team {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
}


.all {
    padding: 0 10px;   
    overflow: hidden;
    overflow-Y: auto;
    height: calc(100svh - 145px);
}
.p2.all {
    height: calc(100svh - 110px);   
}


.m-slot-card {
	margin-bottom: 12px;
}

.m-slot-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
}

.m-slot-card__time {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 900;
	color: #fff;
    width: 100%;
}
.m-slot-card__time em {
    margin-left: auto;
    justify-content: flex-end;
    font-style: normal;
}

.m-slot-card__time i {
	color: var(--m-accent);
	font-size: .95rem;
}

.m-slot-card__body {
	padding: 0;
}
.m-slot-match {
	padding: 10px 0 10px 10px;
    background: #202020;
    border-radius: 4px;
    margin-bottom: 5px;
    display: grid;
   border-left: 4px solid #202020;
}

.group .m-slot-match {
     grid-template-columns: 105px 1fr;
}
.p2 .m-slot-match {
    grid-template-columns: 85px 35px 1fr;
}
.hour .m-slot-match {
     grid-template-columns: 80px 1fr;
}

.m-slot-match:last-child {
	border-bottom: 0;
}

.m-slot-match.is-live {
	border-left: 4px solid #2ca2d8;    
}



.m-slot-match__meta {
    position: relative;
    display: grid;
    align-content: center;
}
.m-slot-match__meta::after {
	position: absolute;
    right: 0;
    top: 5px;
    border-right: 1px solid #dedede;
    width: 1px;
    height: 30px;
    content: "";
}

.m-slot-match__group,
.m-slot-match__pitch {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.m-slot-match__group span,
.m-slot-match__pitch span {
	font-size: .68rem;
	font-weight: 800;
	color: var(--m-muted);
	text-transform: uppercase;
    display: inline-block;
    width: 53px;
}

.m-slot-match__group strong,
.m-slot-match__pitch strong {
	font-size: .9rem;
	font-weight: 900;
	color: #fff;
}
.m-slot-match__source {
    position: relative;
    font-size: 12px;
    display: grid;
    align-content: center;
    text-align: center;
}
.m-slot-match__source STRONG {
    display: block;
    line-height: 18px;
}
.m-slot-match__source::after {
	position: absolute;
    right: 0;
    top: 5px;
    border-right: 1px solid #dedede;
    width: 1px;
    height: 30px;
    content: "";
}


.m-slot-match__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	gap: 10px;
	align-items: center;
    margin-left: 10px;
}

.m-slot-match__teams {
	min-width: 0;
}

.m-slot-match__team {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
	font-size: .85rem;
	font-weight: 700;
}

.m-slot-match__team--home {
	color: #fff;
}

.m-slot-match__team--away {
	color: #d0d0d0;
	margin-top: 2px;
}
.is-winner{
	font-weight:700;
	color:#b45309;
}
.m-slot-match__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.2;
	color: #fff;
    text-align: right;
}

.m-slot-match__score.is-empty {
	color: #777;
}
.m-slot-match__score SMALL {
    font-size: 8px;
}


.m-team-drawer[hidden]{
	display:none !important;
}

.m-team-drawer{
	position:fixed;
	inset:0;
	z-index:80;
	opacity:0;
	pointer-events:none;
	transition:opacity .22s ease;
}

.m-team-drawer.is-open{
	opacity:1;
	pointer-events:auto;
}

.m-team-drawer__backdrop{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.35);
	backdrop-filter:blur(2px);
	opacity:0;
	transition:opacity .22s ease;
}

.m-team-drawer.is-open .m-team-drawer__backdrop{
	opacity:1;
}

.m-team-drawer__panel{
	position:absolute;
	top:0;
	right:0;
	width:min(95vw, 380px);
	height:100%;
	background:#0f0f10;
	box-shadow:-10px 0 30px rgba(0,0,0,.35);
	display:flex;
	flex-direction:column;
	transform:translateX(100%);
	transition:transform .22s ease;
	will-change:transform;
}

.m-team-drawer.is-open .m-team-drawer__panel{
	transform:translateX(0);
}

.m-team-drawer__head{
	height:56px;
	display:grid;
	grid-template-columns:44px 1fr auto;
	align-items:center;
	gap:10px;
	padding:0 12px;
	border-bottom:1px solid rgba(255,255,255,.06);
	background:rgba(255,255,255,.02);
	flex-shrink:0;
}

.m-team-drawer__back{
	width:36px;
	height:36px;
	border:none;
	border-radius:10px;
	background:rgba(255,255,255,.06);
	color:#fff;
	font-size:20px;
	cursor:pointer;
}

.m-team-drawer__title{
	color:#fff;
	font-size:1rem;
	font-weight:800;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.m-team-drawer__reset{
	border:none;
	background:none;
	color:var(--m-accent);
	font-size:.85rem;
	font-weight:800;
	cursor:pointer;
}

.m-team-drawer__list{
	flex:1;
	overflow-y:auto;
	display:flex;
	flex-direction:column;
    background: #f7f7f7;
}

.m-team-drawer__item{
	display:flex;
	align-items:center;
	justify-content:space-between;
	width:100%;
	padding: 10px 5px 10px 14px;
	border:none;
	background:#fff;
	color:#000;
	text-align:left;    
	cursor:pointer;
    margin-bottom: 2px;
}

.m-team-drawer__item:active{
	transform:scale(.985);
	background:#1d1d1f;
}

.m-team-drawer__item-name{
	min-width:0;
	font-size:.85rem;
	font-weight:700;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.m-team-drawer__item-group{
	flex:0 0 auto;
	padding:4px 8px;
	border-radius:4px;
	background:rgba(255,255,255,.06);
	font-size:.72rem;
	font-weight:800;
	color:var(--m-muted);
}

body.is-team-sheet-open{
	overflow:hidden;
}