/*
* Styles for games page
*/

.game {
display: block;
width: 100%;
line-height: 2.8em;
color: #34495e;
vertical-align: top;
clear: both;
border-bottom: 1px solid #ecf0f1;
background: #f7f7f7;
}

.game:hover {
background: #ecf0f1;
}

.game-head {
display: block;
width: 100%;
line-height: 2.8em;
vertical-align: top;
clear: both;
color: #34495e;
background: #dadfe1;
}

.game span {
display: inline-block;
vertical-align: top;
}

.game-head span {
display: inline-block;
vertical-align: top;
font-weight: bold;
}

span.tm {
width: 40px;
padding: 0 0 0 4px;
white-space: nowrap;
}

span.tm-head {
width: 40px;
padding: 0 0 0 4px;
text-align: center;
}

span.fl {
width: 25px;
margin: 0 8px;
text-align: center;
}

span.fl img {
margin: 0;
padding: 0;
width: 25px;
height: 15px;
vertical-align: -2px;
}

span.fl-head {
width: 25px;
margin: 0 8px;
text-align: center;
}

span.cn {
width: 52px;
white-space: nowrap;
overflow: hidden;
}

span.cn-head {
width: 42px;
padding-right: 10px;
text-align: center;
}

span.nms {
width: calc(100% - 592px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

span.nm {
display: inline;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

span.nms-head {
width: calc(100% - 592px);
text-align: center;
}

span.os {
width: 176px;
float: left;
}

span.o {
width: 50px;
text-align: right;
}

span.os-head {
width: 176px;
float: right;
}

span.o-head {
width: 34px;
padding-left: 16px;
text-align: center;
}

span.ts {
width: 120px;
float: right;
}

span.t {
width: 26px;
padding-right: 12px;
text-align: right;
}

span.ts-head {
width: 120px;
float: right;
}

span.t-head {
width: 38px;
text-align: center;
}

span.to {
width: 102px;
font-weight: bold;
}

span.tip {
width: 42px;
text-align: center;
}

span.odd {
width: 42px;
text-align: right;
}

span.to-head {
width: 102px;
}

span.tip-head {
width: 42px;
text-align: center;
}

span.odd-head {
width: 32px;
padding-left: 8px;
text-align: center;
}

span.res {
width: 56px;
text-align: center;
}

span.res-head {
width: 56px;
text-align: center;
}

span.data {
display: block;
vertical-align: top;
float: right;
}

span.sp {
display: inline;
}

span.data-head {
display: block;
vertical-align: top;
float: right;
}

span.sp-head {
display: none;
}

span.lv {
position: relative;
font-size: 14px;
line-height: 1.72em;
color: #d64541;
}

span.lvs {
position: absolute;
font-size: 13px;
line-height: 1em;
top: 2em;
right: 0;
text-align: center;
min-width: 100%;
white-space: nowrap;
overflow: hidden;
}

.event {
background: #c5eff7;
}

.bl {
animation: blink 1.2s step-end infinite;
}

@keyframes blink {  
50% { opacity: 0; }
}

span.rsl {
font-weight: bold;
}

span.wn {
color: #008010;
}

span.ls {
color: #d64541;
}

span.postp {
color: #95a5a6;
}

span.head-sort, span.head-sort-reverse {
background-position: center 27px;
background-repeat: no-repeat;
background-size: 20px 20px;
background-origin: content-box;
background-clip: border-box;
}

span.head-sort {
color: #1e824c;
background-image: url("../images/svg/sort-up.svg");
}

span.head-sort-reverse {
color: #c0392b;
background-image: url("../images/svg/sort-down.svg");
}

span.os2 {
width: 148px;
float: left;
}

span.o2 {
width: 58px;
text-align: right;
}

span.os2-head {
width: 148px;
float: right;
}

span.o2-head {
width: 54px;
padding-right: 4px;
text-align: right;
}

span.ts2 {
width: 124px;
float: right;
}

span.t2 {
width: 40px;
padding-right: 12px;
text-align: right;
}

span.ts2-head {
width: 124px;
float: right;
}

span.t2-head {
width: 44px;
padding-left: 8px;
text-align: center;
}

span.to2 {
width: 122px;
font-weight: bold;
}

span.tip2 {
width: 52px;
text-align: center;
}

span.odd2 {
width: 46px;
text-align: right;
}

span.to2-head {
width: 122px;
}

span.tip2-head {
width: 52px;
text-align: center;
}

span.odd2-head {
width: 30px;
padding-left: 16px;
text-align: center;
}

/*
* Date navigation
*/
#date-nav-wrapper {
margin: 20px 20px 20px 20px;
height: 48px;
}

#date-nav {
float: right;
width: 100%;
max-width: 432px;
height: 36px;
text-align: center;
background: #ecf0f1;
border: 6px solid #f7f7f7;
pointer-events: none; /* DESABILITA QUALQUER CLIQUE */
user-select: none; /* Evita seleção acidental */
}

#dn-title {
margin: 0;
padding: 0;
display: inline-block;
line-height: 36px;
font-size: 1.12em;
font-weight: normal;
color: #34495e;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 82px);
}

#dn-left, #dn-right {
display: block;
width: 36px;
height: 36px;
line-height: 36px;
background: #0c59a3;
}
#dn-left {
float: left;
}
#dn-right {
float: right;
}

.dn-left-arrow, .dn-right-arrow {
display: block;
width: 100%;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
}
.dn-left-arrow {
background-image: url("../images/svg/nav-left-arrow.svg");
}
.dn-right-arrow {
background-image: url("../images/svg/nav-right-arrow.svg");
}
.dn-disabled {
background-color: #bdc3c7;
}

.odds-info {
margin: 1.6em 0 3.2em 0;
padding: 0 0.6em;
font-size: 0.92em;
line-height: 1.6em;
text-indent: 0.8em;
color: #d64541;
}

.modal-window {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 11000;
background: #f7f7f7;
max-height: calc(100% - 20px);
display: flex;
flex-direction: column;
}

.modal-links {
flex-grow: 1;
overflow: auto;
}

.modal-links a {
display: block;
font-size: 18px;
text-decoration: none;
padding: 12px 32px 12px 32px;
color: #34495e;
border-bottom: 1px solid #ecf0f1;
max-width: 240px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.modal-links-long a {
padding-left: 52px;
max-width: 220px;
}

.modal-links a:visited {
color: #34495e;
}

.modal-links a:hover {
background-color: #ecf0f1;
}

.modal-links .modal-selected {
color: #1e824c;
font-weight: bold;
}

.modal-links .modal-selected:visited {
color: #1e824c;
}

.modal-links .modal-selected-reverse {
color: #c0392b;
font-weight: bold;
}

.modal-links .modal-selected-reverse:visited {
color: #c0392b;
}

.modal-links .modal-selected-image, .modal-links .modal-selected-image-reverse {
background-position: 10px center;
background-repeat: no-repeat;
background-size: 30px 30px;
}

.modal-links .modal-selected-image {
background-image: url("../images/svg/sort-up.svg");
}

.modal-links .modal-selected-image-reverse {
background-image: url("../images/svg/sort-down.svg");
}

.modal-links a img {
margin-left: -42px;
margin-right: 10px;
vertical-align: -8px;
width: 30px;
height: 30px;
}

.modal-header {
position: relative;
padding: 12px 52px 12px 32px;
white-space: nowrap;
font-size: 18px;
font-weight: bold;
background: #2574a9;
color: #ffffff;
}

.modal-header span {
display: inline-block;
vertical-align: middle;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.modal-header-long span {
padding-left: 20px;
}

.modal-close-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 6px;
cursor: pointer;
width: 24px;
height: 24px;
}

/*
* Styles included everywhere
*/
html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Droid Sans Mono', 'Courier New', monospace, sans-serif, -apple-system, "Roboto";
font-size: 16px;
background: #2574a9;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
}

html {
overflow-y: scroll;
}

body {
display: flex;
flex-direction: column;
}

img {
border-width: 0;
}

iframe {
border: 0;
overflow: hidden;
}

.center {
text-align: center;
}

#main {
margin: 0 auto;
width: 100%;
max-width: 980px;
background: #ffffff;
flex: 1;
}

/*
* Header and top navigation
*/
header {
margin: 0 auto;
width: 100%;
max-width: 980px;
clear: both;
position: relative;
}

nav {
height: 2.8em;
background: #0c59a3;
}

nav a {
display: block;
margin: 0;
float: left;
height: 2.8em;
line-height: 2.8em;
padding: 0 20px;
color: #ffffff;
text-decoration: none;
text-transform: uppercase;
border-right: 1px solid #013a70;
border-left: 1px solid #1666b3;
}

nav a:first-of-type {
border-left: 0 none #013a70;
}

nav a:last-of-type {
border-right: 0 none #1666b3;
}

nav a:hover {
background: #07457f;
}

#nav-label {
text-decoration: none;
color: #ffffff;
text-align: left;
padding: 10px 10px;
margin-right: 6px;
float: left;
display: none;
transform: translate3d(0, 0, 0);
transition: transform ease-out 200ms;
}

#nav-label:hover {
cursor: pointer;
}

#nav-checkbox {
display: none;
}

#nav-checkbox:checked ~ #top-nav {
display: block;
}

#burger {
margin-top: 5px;
display: inline-block;
position: relative;
width: 26px;
height: 22px;
}

.hamburger {
width: 26px;
height: 3px;
background: #ffffff;
display: block;
position: absolute;
top: 50%;
left: 50%;
margin-left: -12px;
margin-top: -3px;
transition: transform 200ms;
}

#brg1 {
transform: translate3d(0, -8px, 0);
}
#brg2 {
transform: translate3d(0, 0, 0);
}
#brg3 {
transform: translate3d(0, 8px, 0);
}

#nav-checkbox:checked ~ #nav-label #brg1 {
transform: translate3d(0, 0, 0) rotate(45deg) scale(1.2, 1);
}
#nav-checkbox:checked ~ #nav-label #brg2 {
transform: translate3d(0, 0, 0) scale(0.1, 1);
}
#nav-checkbox:checked ~ #nav-label #brg3 {
transform: translate3d(0, 0, 0) rotate(-45deg) scale(1.2, 1);
}

#nav-title {
float: left;
display: none;
line-height: 2.6em;
font-weight: bold;
font-size: 1.2em;
color: #ecf0f1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 192px);
}

#nav-controls {
position: absolute;
top: 6px;
right: 8px;
height: 32px;
}

.nav-icons {
display: inline-block;
width: 32px;
height: 32px;
margin-left: 10px;
background-size: contain;
}

#nav-icon-settings {
background-image: url("../images/svg/settings.svg");
}

#nav-icon-sort {
background-image: url("../images/svg/sort.svg");
}

#nav-icon-show {
background-image: url("../images/svg/show.svg");
}

#nav-close {
display: block;
width: 100%;
background: #0c59a3;
}

#nav-close:hover {
cursor: pointer;
background: #07457f;
}

#burger-close {
display: none;
padding: 0.6em 0;
}

#burgerc {
display: inline-block;
position: relative;
}

.hamburger1 {
width: 26px;
height: 3px;
background: #ffffff;
display: block;
position: absolute;
top: 50%;
left: 50%;
margin-left: -13px;
margin-top: -6px;
}

#brgc1 {
transform: rotate(45deg) scale(1.2, 1);
}
#brgc2 {
transform: rotate(-45deg) scale(1.2, 1);
}

#header-logo {
display: none;
}

/*
* Footer
*/
footer {
width: 100%;
max-width: 980px;
clear: both;
margin: 0 auto 1.6em auto;
padding-top: 2em;
text-align: center;
font-size: 0.92em;
line-height: 1.8em;
}

footer a {
display: inline-block;
margin: 0 1em;
text-decoration: none;
}

footer a:hover {
text-decoration: underline;
}

#notice {
max-width: 680px;
text-align: center;
margin: 0 auto 1em auto;
color: #ffd32a;
}

#notice span {
text-wrap: nowrap;
}

#notice a {
color: #ffd32a;
}

#notice a:hover {
color: #ffdd59;
}

#notice a:visited {
color: #ffd32a;
}

#footer-gamblelinks {
margin-top: 1.8em;
}

#footer-gambleaware {
margin-top: 1.8em;
}

#footer-gambleaware img {
width: 260px;
}

#footer-nav {
margin: 2.00em 0 1.6em 0;
}

#footer-nav a {
color: #ecf0f1;
}

#footer-nav a:hover {
color: #ffffff;
}

#footer-nav a:visited {
color: #ecf0f1;
}

#copyright {
color: #d2d7d3;
font-size: 0.90em;
line-height: 1.6em;
}

/*
* Styles about error and info messages
*/
#system-message {
position: relative;
max-width: 626px;
margin: 20px auto 20px auto;
padding: 25px;
text-align: left;
font-weight: bold;
line-height: 1.6em;
border: 3px solid #a4b0be;
background: #dfe6e9;
}

.info-message {
color: #008010;
}

.error-message {
color: #d64541;
}

#system-message-close-button {
position: absolute;
top: 3px;
right: 3px;
}

.missing-object {
text-align: center;
color: #d64541;
font-weight: bold;
margin-bottom: 80px;
}

.no-data {
margin-top: 10vh;
margin-bottom: 5vh;
padding: 0 0.6em;
text-align: center;
font-size: 1.32em;
line-height: 1.6em;
color: #d64541;
}

.no-data-msg {
margin-top: 1.2em;
margin-bottom: 1.2em;
padding: 0 0.6em;
text-align: center;
font-size: 1.32em;
line-height: 1.6em;
color: #d64541;
}

.clear {
clear: both;
}

.modal-hidden {
display: none;
}

.modal-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10000;
background: rgba(0, 0, 0, 0.8);
overflow: hidden;
}

.modal-over {
z-index: 11500;
}

.settings-window {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 11000;
background: #ecf0f1;
max-height: calc(100% - 20px);
display: flex;
flex-direction: column;
min-width: 340px;
}

.settings-wrapper {
flex-grow: 1;
overflow: auto;
}

.settings-header {
position: relative;
padding: 12px 62px 12px 32px;
white-space: nowrap;
font-size: 18px;
font-weight: bold;
background: #2574a9;
color: #ffffff;
}

.settings-header span {
display: inline-block;
vertical-align: middle;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.settings-title {
margin: 38px 32px 8px 32px;
color: #34495e;
font-size: 18px;
max-width: 260px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.settings-option {
margin: 0 32px;
}

.settings-option a {
color: #0c59a3;
text-decoration: none;
line-height: 32px;
padding: 8px 8px 8px 12px;
font-size: 18px;
white-space: nowrap;
}

.settings-option a span {
display: inline-block;
vertical-align: middle;
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.settings-option a:visited {
color: #0c59a3;
}

.settings-option a:hover {
background: #dfe6e9;
}

.settings-language-flag {
width: 32px;
margin-left: -4px;
margin-right: 8px;
vertical-align: -6px;
}

.settings-edit-button {
width: 28px;
margin-left: 20px;
vertical-align: -6px;
}

.settings-space {
height: 42px;
}

.settings-close-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 8px;
cursor: pointer;
width: 24px;
height: 24px;
}

.settings-close-button2 {
position: absolute;
top: 0;
right: 0;
cursor: pointer;
width: 38px;
height: 38px;
background-position: center;
background-repeat: no-repeat;
background-size: 24px 24px;
background-image: url("../images/svg/close2.svg");
}

.settings-select {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 12000;
background: #ecf0f1;
max-height: 50%;
display: flex;
flex-direction: column;
}

.settings-select-arrow {
position: relative;
display: block;
width: 100%;
height: 38px;
flex: none;
cursor: pointer;
background-color: #808e9b;
background-position: center;
background-repeat: no-repeat;
background-size: 38px 38px;
}

.settings-select-arrow-up {
background-image: url("../images/svg/move-up2.svg");
}

.settings-select-arrow-down {
background-image: url("../images/svg/move-down2.svg");
}

.settings-select-items {
min-height: 0;
flex-grow: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
height: 100%;
}

.settings-select-item {
display: block;
color: #0c59a3;
text-decoration: none;
line-height: 32px;
padding: 4px 16px 4px 16px;
font-size: 18px;
white-space: nowrap;
}

.settings-select-item:visited {
color: #0c59a3;
}

.settings-select-item:hover {
background: #dfe6e9;
}

.settings-select-item span {
display: inline-block;
vertical-align: middle;
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.settings-select-item-image {
width: 32px;
height: 24px;
margin-left: -4px;
margin-right: 8px;
vertical-align: -6px;
}

.settings-select-space {
display: block;
height: 12px;
padding: 4px 16px 4px 16px;
}

/* ========== CORREÇÃO PARA O HEADER FIXO NO MOBILE ========== */
@media screen and (min-width: 768px) {
body {
background-image: linear-gradient(to bottom, #165e8e 0%, #2574a9 100%);
}
#header-logo {
display: block;
width: 100%;
height: 136px;
background: url("../images/yow_tips.png") no-repeat 10px center, url("../images/yow_tips_top_header.png") no-repeat center;
background-size: 112px 112px, 100% 100%;
}
#nav-controls {
top: 142px;
}
footer {
background: url("../images/yow_tips_footer.png") no-repeat center -12px;
background-size: 100% 100%;
}
}

@media screen and (max-width: 720px) {
#system-message {
max-width: 720px;
margin-left: 10px;
margin-right: 10px;
}
}

@media screen and (max-width: 640px) {
header {
background: #0b58a1;
z-index: 1000;
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
max-width: 980px;
margin: 0 auto;
}
#main {
padding-top: 4.4em; /* Compensa a altura do header fixo */
/* remove qualquer margin-top antigo */
margin-top: 0;
}
nav {
display: none;
margin-left: 0;
}
nav a {
width: 100%;
text-align: center;
font-weight: bold;
padding: 0;
height: 3.2em;
line-height: 3.2em;
border-right: 0 none #1666b3;
border-left: 0 none #013a70;
border-top: 1px solid #1666b3;
border-bottom: 1px solid #013a70;
}
#nav-label {
display: inline-block;
}
#nav-title {
display: inline-block;
}
#burger-close {
display: inline-block;
}
#nav-controls {
top: 8px;
}
#copyright span {
display: block;
}
footer a {
display: block;
width: max-content;		
margin: 0.36em auto;
padding: 0.04em 0.28em;
}
}

@media screen and (max-width: 480px) {
.settings-title, .settings-option {
margin-left: 24px;
margin-right: 24px;
}
.settings-window {
min-width: 320px;
}
}

@media screen and (max-width: 360px) {
.settings-title, .settings-option {
margin-left: 12px;
margin-right: 12px;
}
.settings-option a span {
max-width: 180px;
}
.settings-window {
min-width: 300px;
}
}

@media screen and (max-height: 768px) {
.settings-select {
max-height: 60%;
}
}

@media screen and (max-height: 640px) {
.settings-select {
max-height: 70%;
}
}

@media screen and (max-height: 480px) {
.settings-select {
max-height: calc(100% - 20px);
}
}

/*
* Responsive adjustments for the games list (from games.css)
*/
@media screen and (max-width: 800px) {
span.tm, span.tm-head {
padding-left: 2px;
}
span.fl, span.fl-head {
margin-left: 6px;
margin-right: 6px;
}
span.cn {
width: 42px;
}
span.cn-head {
width: 34px;
padding-right: 8px;
}
span.nms, span.nms-head {
width: calc(100% - 516px);
}
span.os, span.os-head {
width: 158px;
}
span.o {
width: 46px;
}
span.o-head {
width: 32px;
padding-left: 14px;
}
span.ts, span.ts-head {
width: 102px;
}
span.t {
width: 24px;
padding-right: 8px;
}
span.t-head {
width: 32px;
}
span.to, span.to-head {
width: 84px;
}
span.tip, span.tip-head {
width: 32px;
}
span.odd {
width: 38px;
}
span.odd-head {
width: 34px;
padding-left: 4px;
}
span.res, span.res-head {
width: 48px;
}
span.os2, span.os2-head {
width: 128px;
}
span.o2 {
width: 52px;
}
span.o2-head {
width: 48px;
}
span.ts2, span.ts2-head {
width: 102px;
}
span.t2 {
width: 34px;
padding-right: 8px;
}
span.t2-head {
width: 38px;
padding-left: 4px;
}
span.to2, span.to2-head {
width: 112px;
}
span.tip2, span.tip2-head {
width: 48px;
}
span.odd2 {
width: 38px;
}
span.odd2-head {
width: 34px;
padding-left: 4px;
}
}

@media screen and (max-width: 720px) {
#date-nav-wrapper {
height: 100px;
}
}

@media screen and (max-width: 640px) {
span.tf {
position: relative;
}
span.tm {
font-size: 14px;
line-height: 1.8em;
}
span.cn {
position: absolute;
line-height: 1.32em;
top: 1.72em;
left: 2px;
font-size: 14px;
}
span.cn-head {
display: none;
}
span.fl, span.fl-head {
margin-left: 4px;
margin-right: 4px;
}
span.nms, span.nms-head {
width: calc(100% - 420px);
}
span.os, span.os-head {
width: 142px;
}
span.o {
width: 42px;
}
span.o-head {
width: 30px;
padding-left: 12px;
}
span.ts, span.ts-head {
width: 90px;
}
span.t {
width: 20px;
padding-right: 10px;
}
span.t-head {
width: 30px;
}
span.to, span.to-head {
width: 74px;
}
span.tip, span.tip-head {
width: 28px;
}
span.odd {
width: 36px;
}
span.odd-head {
width: 32px;
padding-left: 4px;
}
span.res, span.res-head {
width: 38px;
}
span.os2, span.os2-head {
width: 118px;
}
span.o2 {
width: 50px;
}
span.o2-head {
width: 46px;
}
span.ts2, span.ts2-head {
width: 86px;
}
span.t2 {
width: 30px;
padding-right: 8px;
}
span.t2-head {
width: 34px;
padding-left: 4px;
}
span.to2, span.to2-head {
width: 102px;
}
span.tip2, span.tip2-head {
width: 48px;
}
span.odd2 {
width: 36px;
}
span.odd2-head {
width: 32px;
padding-left: 4px;
}
}

@media screen and (max-width: 568px) {
.game {
padding: 3px 0;
}
span.tf {
width: 36px;
padding-right: 10px;
line-height: 0;
}
span.tm {
display: block;
width: 100%;
padding-top: 3px;
line-height: 1.38em;
font-size: 11px;
}
span.cn {
top: 3.52em;
font-size: 11px;
}
span.fl {
display: block;
margin: 0;
margin-left: 2px;
text-align: left;
width: 100%;
line-height: 1.38em;
}
span.fl img {
margin-top: 3px;
}
span.tf-head {
width: 36px;
padding-right: 10px;
text-align: center;
}
span.tm-head {
display: inline-block;
width: auto;
padding: 0;
margin: 0;
}
span.fl-head {
display: inline-block;
width: auto;
margin: 0;
padding: 0;
}
span.nms {
width: calc(100% - 288px);
line-height: 1.72em;
}
span.nm {
display: block;
width: 100%;
}
span.nms-head {
width: calc(100% - 288px);
}
span.tos {
width: 146px;
line-height: 1.72em;
}
span.os, span.ts {
display: block;
width: 100%;
float: none;
}
span.o, span.t {
width: 44px;
padding: 0;
text-align: center;
}
span.tos-head {
width: 146px;
}
span.ts-head {
width: 100%;
float: none;
text-align: left;
}
span.os-head {
display: none;
}
span.t-head {
width: 44px;
padding: 0;
text-align: center;
}
span.o, span.odd {
font-size: 14px;
}
span.to {
width: 36px;
text-align: center;
line-height: 1.72em;
}
span.tip {
display: block;
width: 100%;
text-align: center;
}
span.odd {
display: block;
width: 100%;
text-align: center;
}
span.to-head {
width: 36px;
padding: 0;
text-align: center;
}
span.tip-head {
display: inline-block;
width: auto;
padding: 0;
margin: 0;
}
span.odd-head {
display: inline-block;
width: auto;
padding: 0;
margin: 0;
}
span.res {
width: 56px;
line-height: 1.72em;
}
span.r, span.l {
display: block;
width: 100%;
}
span.res-head {
width: 56px;
}
span.sp {
display: none;
}
span.sp-head {
display: inline;
}
span.lv {
line-height: 1.72em;
}
span.lvs {
font-size: 12px;
line-height: 1em;
top: 1.92em;
}
span.l {
line-height: 1.32em;
}
span.la {
position: absolute;
top: 2.72em;
left: 0;
right: 0;
}
span.head-sort, span.head-sort-reverse {
background-origin: border-box;
}
span.tos2 {
width: 132px;
line-height: 1.72em;
}
span.os2, span.ts2 {
display: block;
width: 100%;
float: none;
}
span.o2, span.t2 {
width: 52px;
padding: 0;
text-align: center;
}
span.tos2-head {
width: 132px;
}
span.ts2-head {
width: 100%;
float: none;
text-align: left;
}
span.os2-head {
display: none;
}
span.t2-head {
width: 52px;
padding: 0;
text-align: center;
}
span.o2, span.odd2 {
font-size: 14px;
}
span.to2 {
width: 50px;
text-align: center;
line-height: 1.72em;
}
span.tip2 {
display: block;
width: 100%;
text-align: center;
}
span.odd2 {
display: block;
width: 100%;
text-align: center;
}
span.to2-head {
width: 50px;
padding: 0;
text-align: center;
}
span.tip2-head {
display: inline-block;
width: auto;
padding: 0;
margin: 0;
}
span.odd2-head {
display: inline-block;
width: auto;
padding: 0;
margin: 0;
}
}

@media screen and (max-width: 500px) {
#date-nav-wrapper {
margin-left: 0;
margin-right: 0;
}
#date-nav {
margin-left: auto;
margin-right: auto;
float: none;
width: inherit;
}
}

@media screen and (max-width: 480px) {
span.tf, span.tf-head {
padding-right: 6px;
}
span.nms, span.nms-head {
width: calc(100% - 252px);
}
span.tos, span.tos-head {
width: 132px;
}
span.to, span.to-head {
width: 48px;
}
span.res, span.res-head {
width: 22px;
}
span.tos2, span.tos2-head {
width: 106px;
}
span.to2, span.to2-head {
width: 74px;
}
}

@media screen and (max-width: 420px) {
span.tf, span.tf-head {
padding-right: 4px;
}
span.nms, span.nms-head {
width: calc(100% - 224px);
}
span.tos, span.tos-head {
width: 120px;
}
span.o, span.t, span.t-head {
width: 40px;
}
span.to, span.to-head {
width: 42px;
}
span.nms, span.tos, span.to, span.res, span.lv {
line-height: 1.82em;
}
.game {
padding-top: 6px;
padding-bottom: 6px;
}
span.tos2, span.tos2-head {
width: 100px;
}
span.o2, span.t2, span.t2-head {
width: 50px;
}
span.to2, span.to2-head {
width: 60px;
}
span.tos2, span.to2 {
line-height: 1.82em;
}
}

/*
* NEW: Table layout for matches (PredictionFootball style)
*/
#games-container {
    padding: 10px;
}
.table-section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    background: #fff;
}
.table-section h2 {
    background: #071685;
    color: #fff;
    padding: 7px 12px;
    font-size: 17px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 700;
}
.table-section h2 .league-flag {
    width: 24px;
    max-height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
}
.table-section h2 .league-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    background: rgba(255,255,255,0.2);
    padding: 0 10px;
    border-radius: 10px;
}
.table-section h2 .performance-badge {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    padding: 1px 10px;
    border-radius: 10px;
    margin-left: 4px;
}
.table-section h2 .performance-badge.undefeated { background: #1b5e20; color: #fff; }
.table-section h2 .performance-badge.positive { background: #2e7d32; color: #fff; }
.table-section h2 .performance-badge.negative { background: #c62828; color: #fff; }
.table-section h2 .performance-badge.neutral { background: #f9a825; color: #333; }

.table-wrapper { overflow-x: auto; }
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table-wrapper th {
    background: #e9edf5;
    color: #1a1a1a;
    padding: 5px 6px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 2px solid #ccc;
}
.table-wrapper td {
    padding: 4px 6px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}
.table-wrapper tr:nth-child(even) { background: #f9f9f9; }
.table-wrapper tr:hover { background: #e6f0ff; }

.hora-col { white-space: nowrap; font-weight: 600; }
.match-cell { display: flex; flex-direction: column; }
.teams { font-weight: 600; }
.liga-name { font-size: 10px; color: #777; margin-top: 1px; }
.pick {
    font-weight: 700;
    color: #00549e;
    text-shadow: -1px -1px 1px #ffa200;
    font-size: 16px;
}
.score {
    font-weight: 700;
    font-size: 12px;
    color: #1a1a1a;
    text-align: center;
}
.odd { font-weight: 700; color: #2d2d2d; }
.result-icon img { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.result-icon .fallback-emoji { display: none; }

/* New Markets Modal */
#markets-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}
#markets-overlay.active {
    display: flex;
}
#markets-modal {
    background: #f7f7f7;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.markets-header {
    background: #2574a9;
    color: #fff;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}
.markets-close {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.markets-close:hover {
    opacity: 1;
}
.markets-list {
    padding: 10px 0;
    overflow-y: auto;
    flex-grow: 1;
}
.markets-list a {
    display: block;
    padding: 12px 24px;
    font-size: 17px;
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.15s;
}
.markets-list a:hover {
    background: #ecf0f1;
}
.markets-list a.selected {
    background: #d4e6f1;
    font-weight: bold;
    color: #0c59a3;
}
.markets-list a:last-child {
    border-bottom: none;
}