#livescores {
  background-color: #fff;
  font-size: 12px;
}

.livescores .titleblock {
  background-color: #232323;
  color: white;
  display: flex;
  height: 44px;
  align-items: center;
}
.livescores .titleblock > h1,
.livescores .titleblock > div {
  flex: 1;
  margin: 10px;
  text-transform: uppercase;
  font-size: 14px;
}
.livescores .titleblock > div {
  text-align: right;
}
.expand-icon {
  display: block;
  border: none;
  border-right: 2px solid #4f4f4f;
  border-bottom: 2px solid #4f4f4f;
  width: 10px;
  height: 10px;
  transform: rotate(-315deg);
  margin-top: -4px;
  background-color: transparent;
  cursor: pointer;
}

.events-button .expand-icon {
  display: none;
}

.events-button[data-hasevents="1"] .expand-icon {
  display: block;
  border-color: #999;
  margin: 0 5px;
}

.events-button[data-expanded="1"] .expand-icon {
  transform: rotate(225deg);
  margin-top: 5px;
}

.livescores-comp[data-expanded="1"]:not(.status-playing) h2 .expand-icon {
  border-color: #fff;
}

.livescores-comp div.scorers[data-expanded="0"] {
  display: none;
}

div.livescores-comps {
  min-height: 246px;
}

.livescores-comp[data-expanded="1"] h2 .expand-icon {
  transform: rotate(225deg);
  margin-top: 5px;
}
div.block .livescores-comp h2 {
  color: #000;
  text-transform: none;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
  background-color: #fff;
  border-top: 1px solid #d5d3d6;
  padding: 2px 10px;
  cursor: pointer;
  font-weight: bold;
}

div.block .livescores-comp h2 > a {
  display: flex;
  align-items: center;
  background: none;
  color: #4a4a4a;
  text-transform: none;
}
div.block .livescores-comp h2 > a:hover {
  text-decoration: underline;
}
div.block .livescores-comp[data-expanded="1"] h2 {
  background-color: #4f4f4f;
  color: #fff;
}
div.block .livescores-comp[data-expanded="1"] h2 > a,
div.block .livescores-comp[data-expanded="1"] span.area-name {
  background-color: #4f4f4f;
  color: #fff;
}

div.block .livescores-comp.status-playing h2,
div.block .livescores-comp.status-playing h2 > a,
div.block .livescores-comp.status-playing span.area-name {
  background-color: #ffe2dc;
  color: black;
}

div.block .livescores-comp[data-comp="72"] h2,
div.block .livescores-comp[data-comp="72"] h2 > a,
div.block .livescores-comp[data-comp="72"] span.area-name,
div.block .livescores-comp[data-comp="72"].status-playing h2,
div.block .livescores-comp[data-comp="72"].status-playing h2 > a,
div.block .livescores-comp[data-comp="72"].status-playing span.area-name {
  background-color: #981B37;
  color: white;
}

.livescores-comp[data-comp="72"] .expand-icon {
  border-color: white;
}

.livescores-comp .flag {
  padding-right: 10px;
}
.livescores-comp h2 img {
  display: inline-block;
  vertical-align: middle;
}
.livescores-comp h2 span.area-name {
  color: #666;
}
.livescores-comp h2 span.area-name::after {
  content: " - ";
}
.livescores-comp ol > li:nth-child(odd) {
  background-color: #f4f4f4;
}
.livescores-comp ol > li:hover {
  background-color: beige;
}
.livescores-comp .comp_content {
  display: none;
}
.livescores-comp[data-expanded="1"] .comp_content {
  display: block;
}
.livescores-comp .comp_content h3 {
  background-color: #eee;
  text-transform: uppercase;
  padding: 5px;
  font-size: 12px;
}
#livescores[data-filter="playing"] h3 {
  display: none;
}
.livescores-comp ol > li > div {
  display: flex;
  align-items: center;
}
.details .hid a,
.livescores-comp.hid,
.livescore_match.hid {
  display: none!important;
}
.livescores .timebox {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  padding: 5px;
  border-right: 1px solid #eee;
  min-width: 50px;
}
.livescores .timebox span.timestamp {
  visibility: visible;
}

.livescore_match.status-playing .match_status {
  color: black;
  background: beige;
  border-radius: 3px;
  padding: 1px 3px;
}

.livescores .teams {
  padding: 0 5px;
  flex: 1;
}
.livescores .team {
  display: flex;
  max-width: 360px;
}
.livescores .team_name {
  flex: 1;
  white-space: nowrap;
  max-width: 372px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livescores.odds_on .has-match-odds .team_name {
  max-width: 248px;
}
.livescores.odd_off .team_name {
  max-width: 400px;
}
.livescores .key_events {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
}
.livescores .key_events li {
  display: inline;
}

.livescores .team_name img.crest {
  width: 15px;
  vertical-align: middle;
  padding: 2px 2px 2px 0;
}
.livescores .team_score {
  text-align: center;
  white-space: nowrap;
}
.livescores .details {
  display: flex;
}
.livescores .details ul {
  display: flex;
}
.livescores .details li {
  margin: 0 2px;
  min-width: 16px;
}
.livescores .details a {
  display: block;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}
.livescores .minute_glyph {
  font-weight: bold;
}

#matchfilter {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3px;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
}

#matchfilter li {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  padding: 2px 5px;
  margin: 2px 5px;
  cursor: pointer;
  color: #666;
  white-space: nowrap;
  border-radius: 3px;
}

#matchfilter li a {
  color: #666;
}

#matchfilter label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#matchfilter li.favourites {
  line-height: 9px;
}

#matchfilter li:first-child {
  margin-left: 0;
}

#matchfilter li.selected {
  background-color: #ff7d03;
  color: #fff;
}
div.scores {
  padding: 0 2px;
  min-width: 43px;
}
.score > span {
  min-width: 15px;
  display: inline-block;
  text-align: center;
}
div.score.winner,
div.team.winner {
  font-weight: bold;
}
div.score {
  white-space: nowrap;
}
span.team_htscore {
  min-width: 20px;
  color: #999;
}
span.team_score,
span.team_pens {
  min-width: 20px;
}
.has_htscore.team_htscore::before {
  content: "(";
  padding-left: 3px;
}
.has_htscore.team_htscore::after {
  content: ")";
}

#favcount:not(:empty),
#livecount.live {
  display: inline-block;
  background-color: #ff7d03;
  border-radius: 100px;
  padding: 4px;
  margin-left: 5px;
  color: #fff;
  min-width: 15px;
  text-align: center;
}

#matchfilter li[data-type="live"].selected #livecount.live {
  background-color: #fff;
  color: #666;
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
  margin-left: 5px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #fe7b06;
}

input:focus + .slider {
  box-shadow: 0 0 1px #fe7b06;
}

input:checked + .slider:before {
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 99px;
}

.slider.round:before {
  border-radius: 50%;
}

#livescores .scorers td {
  padding: 3px 5px;
  width: 48%;
}

#livescores .scorers td:first-child {
  text-align: right;
}

#livescores .scorers td.eventscore {
  width: 4%;
  white-space: nowrap;
  text-align: center;
}

#livescores .scorers td.eventtime {
  color: #4a4a4a;
}

#livescores .extra {
  width: 30px;
}
#livescores .extra .events-button {
  padding-left: 5px;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes livecount {
  0% {
    box-shadow: 0 0 0px #ff7d03;
  }
  100% {
    box-shadow: 0 0 5px #ff7d03;
  }
}

@keyframes loadspin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

.blink {
  animation: blinker 1s step-start infinite;
}

.pulse {
  animation: pulse 1s infinite;
  animation-direction: alternate-reverse;
  animation-timing-function: ease-in-out;
}

.livecount {
  animation: livecount 1s infinite;
  animation-direction: alternate-reverse;
  animation-timing-function: ease-in-out;
}

.loadspin {
  animation: loadspin 2s infinite;
  animation-timing-function: ease-in-out;
  width: 50px;
  height: 50px;
  background: url(/media/img/soccerway_square_transparent.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100%;
  margin: 0 auto;
}

#livescores .fav {
  cursor: pointer;
}
#livescores .loading {
  overflow: hidden;
}

#livescores-icons path {
  fill: #444;
}
.details svg.icon {
  display: block;
  margin: 0 auto;
}


#icon-provisionalLineup path,
#icon-feed path {
  fill: #ff7d03;
}
#icon-star-empty path {
  fill: #999;
}
#icon-star-full path {
  fill: gold;
  stroke-width: 2px;
  stroke: #999;
}

.odds_off .hid,
.hid {
  display: none;
}

.odds_on .hid:not(.oddstooltip) {
  display: block;
}

.odds_off .hid > * {
  display: none;
}

.invisible {
  visibility: hidden;
}

#livescores li.livescore_match .details .invisible {
  opacity: 0.1;
  pointer-events: none;
  visibility: visible;
}

#livescores li.livescore_match.status-playing .details .live {
  opacity: 1;
  pointer-events: initial;
}

.oddsrow {
  display: flex;
  font-size: 10px;
  min-width: 38px;
}
.oddsrow a {
  display: block;
}

.oddsval {
  display: none;
}

body[data-oddsfmt="dec"] .oddsval[data-type="dec"] {
  display: block;
}
body[data-oddsfmt="fr"] .oddsval[data-type="fr"] {
  display: block;
}
body[data-oddsfmt="am"] .oddsval[data-type="am"] {
  display: block;
}

.livescore_match .odds {
  margin-right: 10px;
  /* min-width: 114px; */
}

.oddssel {
  min-width: 34px;
  margin: 0 2px;
  /* padding: 1px 3px; */
  text-align: center;
  background-color: beige;
}
.oddskey {
  padding: 1px 10px;
  background-color: #ff7c05;
  color: white;
}
.oddsval {
  padding: 1px 3px;
  background-color: black;
  color: white;
}

.oddstooltip {
  background: #333;
  color: white;
  font-weight: bold;
  padding: 4px;
  font-size: 13px;
  border-radius: 4px;
}
.oddstooltip .arrow,
.oddstooltip .arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}
.oddstooltip .arrow {
  visibility: hidden;
}
.oddstooltip .arrow::before {
  visibility: visible;
  content: "";
  transform: rotate(45deg);
}
.oddstooltip[data-popper-placement^="top"] > .arrow {
  bottom: -4px;
}
.oddstooltip[data-popper-placement^="bottom"] > .arrow {
  top: -4px;
}
.oddstooltip[data-popper-placement^="left"] > .arrow {
  right: -4px;
}
.oddstooltip[data-popper-placement^="right"] > .arrow {
  left: -4px;
}

.oddstooltip .text {
  display: flex;
  text-align: left;
}
.oddstooltip .text > div:last-child {
  flex: 1;
}
.oddstooltip img {
  display: block;
  margin-right: 4px;
}
.oddstooltip .text p {
  margin: 0;
  font-weight: normal;
}

#livescores div.datedd {
  margin: 0;
}

#livescores div.datedd .top-right {
  position: initial;
  white-space: nowrap;
}

#favourites li[data-type="favourites"] {
  display: none;
}

#favourites h2 .expand-icon {
  display: none;
}

#favourites .livescores-comp ol {
  display: block;
}

#livescores li[data-type="search"] {
  display: none;
}
#favourites li[data-type="search"] {
  display: flex;
}

#livescores li[data-type="search"] form {
  position: relative;
}

.livescores .placement {
  margin-top: 10px;
}

li[data-type="search"] #search-input-submit-mobile {
  height: 24px;
  top: 0;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  background-position: -271px -4px;
}

li[data-type="search"] #search-input-mobile {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  width: auto;
}

@media only screen and (max-width: 1000px) {
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 308px;
  }
  .livescores .team,
  .livescores .team_name {
    max-width: 422px;
  }
  div.scores {
    min-width: 70px;
  }
}
@media only screen and (max-width: 767px) {
  .livescores .team_name {
    max-width: 304px;
  }
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 190px;
  }
}
@media only screen and (max-width: 650px) {
  .livescores .details {
    flex-direction: column;
    align-items: flex-end;
  }
  .livescores:not(.odds_on) .details {
    min-width: auto;
  }
  .livescores .team_name {
    max-width: 360px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 236px;
  }
  .livescores .team_name img {
    width: 13px;
    margin-right: 0;
  }
  .livescores .timebox {
    padding: 0;
  }
  div.scores {
    min-width: 43px;
  }
  span.team_htscore {
    display: none;
  }
  .oddsrow a {
    margin: 3px 0 5px 0;
  }
}
@media only screen and (max-width: 600px) {
  .livescores .team_name {
    max-width: 260px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 136px;
  }
}
@media only screen and (max-width: 500px) {
  #matchfilter {
    justify-content: space-evenly;
  }
  .livescores-comp ol > li > div {
    flex-wrap: wrap;
    justify-content: center;
  }
  .livescores .team_name {
    max-width: 210px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 162px;
  }
  .livescores .details {
    min-width: 108px;
  }
  .odds:empty,
  .odds_on .has-match-odds .details {
    display: none;
  }
  .matchinfo .odds {
    order: 5;
    margin: 0;
    min-width: 107px;
  }
  .oddssel {
    margin: 0 1px;
  }
  .price_oa .oddssel {
    margin: 0;
  }
  .livescores .has-match-odds .extra {
    order: 6;
  }
}
@media only screen and (max-width: 450px) {
  .livescores .team_name {
    max-width: 138px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 114px;
  }
}
@media only screen and (max-width: 400px) {
  .livescores .team_name {
    max-width: 110px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 94px;
  }
  .odds_on .extra {
    display: none;
  }
}
@media only screen and (max-width: 350px) {
  .livescores .team_name {
    max-width: 88px;
  }
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 62px;
  }
  .extra,
  .livescores .team_name img {
    display: none;
  }
}
@media only screen and (max-width: 319px) {
  .livescores.odds_on .team_name,
  .livescores.odds_on .has-match-odds .team_name {
    max-width: 41px;
  }
}
