:root {
  --bg-color: #edeff3;
  --text-color: #1a1a1a;
  --strong-color: #000;
  --secondary-text: #555;
  --accent: #007aff;
  --card-bg: #ffffff;
  --border-color: #e5e5e5;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 12px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
/*
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
*/
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
max-width: 100%;

}

[data-theme="dark"] {
  --bg-color: #0f0f0f;
  --text-color: #f2f2f2;
  --strong-color: #fff;
  --secondary-text: #aaa;
  --card-bg: #1a1a1a;
  --border-color: #333;
  --shadow: 0 2px 10px rgba(0,0,0,0.6);

	.status-wrapper img {filter: invert(1);}
	img.titleImg { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-color);
  padding: 16px 10px;
  transition: background 0.3s ease, color 0.3s ease;
}
h1 {font-size: 1.6em}
h1, h2, h3, h4, h5 {font-weight: 600; color:var(--strong-color)}
b, strong {font-weight: 600; color:var(--strong-color)}

#time {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 20px;
  text-align: center;
  color: var(--secondary-text);
}

/* Переключатель темы */
#theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 10000;
}
#theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

div#sb1 img {float:left;width:100%; margin-bottom:20px;	border: 1px solid var(--border-color);border-radius: var(--radius);}

a#onAir:link
{
	text-decoration:none;
	font-weight: 600; 
	color:var(--strong-color) !important;
}

/* Список */
.my-new-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}


.my-new-list li {
  margin-bottom: 16px;
}

img.titleImg {width:60%; max-width:500px; margin: 0 auto 20px; display: block;}

div.content {margin: 0 auto;  max-width: 800px;}
div.content, .my-new-list li a {
  display: block;
  text-decoration: none;
text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.my-new-list li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  background: rgba(0, 122, 255, 0.08);
	cursor:pointer;
}

/* Текстовые элементы */
.titleCat {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin: 0 0 6px;
}

.title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-color);
}

a#onAir, .dateTime {
  font-size: 16px;
  color: var(--secondary-text);
  margin: 0;
}
div.preMatch, div.postMatch
{
	margin:20px 0 20px;
	text-align:center;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 16px;
	color: inherit;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
div.score-text
{
    font-weight: bold;
    font-size: 2em;
    color: var(--text-color);
	margin:10px auto;
display:table;
}
div.onAirMatch {width:100%; margin-top:5px; padding: 0px !important; border: none !important; box-shadow: none !important;}

a#onAir, .dateTime {
    display: inline-flex;    
    align-items: center;    
    gap: 5px;                  
    font-size: 16px;     
}

a#onAir img, .dateTime img {
    display: block;       
    width: 15px;           
    height: 15px;          
}
/* бейджи */
.status {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}
.status.live {
  background: #d32f2f;
  color: #fff;
}
.status.finished {
  background: #388e3c;
  color: #fff;
}

.my-new-list .match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-new-list .match-score {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-color);
  min-width: 50px;
  text-align: right;
}

.my-new-list .match-score .fade-change {
  transition: all 0.5s ease-in-out;
  color: #e63946;
}

/* плавное исчезновение */
.fade-out {
  opacity: 0;
  transition: opacity 1s ease-out;
}

/* плавное обновление статуса */
.fade-change {
  animation: fade 0.5s ease;
}
@keyframes fade {
  from { opacity: 0.3; }
  to { opacity: 1; }
}


/* Таблица событий */
#events-block {
  margin: 20px 0;
  font-size: 14px;
}

#events-block h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

#events-block table.eventlist {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

#events-block table.eventlist td {
  padding: 6px 4px;
  vertical-align: middle;
}

/* Выравнивания */
#events-block table.eventlist td[align="center"] {
  text-align: center;
}
#events-block table.eventlist td[align="right"] {
  text-align: right;
}

/* Флажки (гол, карточка и т.п.) */

/* Flags BEGIN */
.flag { padding-left:20px; padding-bottom:5px; background: url('/i/ico/flags16x16.png') no-repeat; text-decoration:none; }
.yellowcard { background-position: 0px -19404px; padding-left:16px; }
.redcard { background-position: 0px -19470px; padding-left:16px; }
.yellowred { background-position: 0px -19536px; padding-left:16px; }
.goal { background-position: 0px -19602px; padding-left:16px; }
.var { background-position: 0px -22566px; }
.substitution { background-position: 0px -20720px; }


a.backToList {
	float:none;
	max-width: 774px;
	text-decoration:none;
	background-color: #00b;
	padding: 13px 35px 13px 30px;
	color: #fff;
	display: block;
	border-radius: 40px;
	-moz-border-radius: 40px;
	-webkit-border-radius: 40px;
	margin: 50px auto 50px auto;
	clear: both;
}



a.backToList:hover {
	background-color: #000000 !important;
	color: #fff;
}

/* === PLAYER IFRAME STYLES === */
#player-container iframe, #match-block iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 5;
  border: none;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* если хочешь, можно добавить эффект плавного появления */
#player-container iframe, #match-block iframe  {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#player-container iframe[src], #match-block iframe[src] {
  opacity: 1;
}

@media screen and (min-width: 0px)	{a#onAir {font-size: 12px;}}
@media screen and (min-width: 500px)	{a#onAir {font-size: 17px;}}
@media screen and (min-width: 600px)	{img.titleImg {width:50%;}}

*/
div.1winPromo {padding:0px 0px 20px 0px; margin:0px 0px 20px 0px; border:0px;border-style:none;border-style:none; background-color:#000; width:100%;}
div.melbetPromo2 {padding:0px; margin:0px; border:0px; background-color:#f3ce58; width:100%; cursor:pointer}
div.melbetPromo {padding:0px; margin:0px; border:0px; background-color:#000; width:100%; cursor:pointer}


@media (max-width: 600px) {
  .title {
    font-size: 16px;
  }
  .dateTime {
    font-size: 15px;
  }
}


// FOR APP 

.match-view {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-color); 
  color: var(--text-color);
  transition: right 0.4s ease, background 0.4s ease, color 0.4s ease;
}

div.singleMatch {padding:16px; max-width: 800px; margin:0 auto}
p#local-time {margin-bottom:10px}
.match-view.active {
  right: 0;
}
#back-button {
	float:none;
	text-decoration:none;
	background-color: #007bff; 
	padding: 8px 17px 8px 12px;
	color: #fff; 
	display: block;
	border-radius: 40px;
	-moz-border-radius: 40px;
	-webkit-border-radius: 40px;
	margin: 0 auto 20px auto; 

}

/* player controls */
.player-controls {
  display:flex;
  gap:10px;
  align-items:center;
  margin: 12px 0;
}

/* базовый вид стрим кнопок */
.btn-stream {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* активная — основной (цвет зависит от темы / переменных) */
.btn-stream.active {
  background: var(--btn-active-bg, #0d6efd);
  color: var(--btn-active-color, #fff);
  box-shadow: 0 6px 18px rgba(13,110,253,0.12);
}

/* неактивная — серый стиль как reload */
.btn-stream:not(.active) {
  background: var(--btn-inactive-bg, #6c757d);
  color: #fff;
  opacity: 0.95;
}

/* reload button (общий) */
#reload-player, .btn-reload-all {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: var(--btn-reload-bg, #6c757d);
  color: #fff;
  cursor: pointer;
}

/* hover/active */
.btn-stream:hover, #reload-player:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* dark theme tweaks */
@media (prefers-color-scheme: dark) {
  :root {
    --btn-active-bg: #2196f3;
    --btn-inactive-bg: #444;
    --btn-reload-bg: #444;
  }
  .more-toggle {
    background: #222;
    color: #fff;
  }
}

/* Learn more */
.more-block {
  margin: 20px 0;
}

.more-toggle {
/*  display: block; */
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  background: var(--btn-bg, #007bff);
  color: var(--btn-text, #fff);
  transition: background 0.2s ease-in-out;
}

.more-toggle:hover {
  filter: brightness(1.1);
}

.more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin-top: 8px;
}

.more-content.active {
  max-height: 2000px; /* большое значение для плавного раскрытия */
  opacity: 1;
}

/* Темная тема */
body.dark .more-toggle {
  background: #2196f3;
}

