.tournament-guide {
  background: #fff;
  font-size: 14px;
  font-weight: 300;
  color: #333;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  position: relative;
}
@media (min-width: 992px) {
  .tournament-guide {
    font-size: 16px;
  }
}
.tab-content.knockout {
  overflow: auto;
}
.tab-content .knockout-wrap {
  width: 1285px;
}
.tournament-guide-tz {
  position: absolute;
  right: 15px;
  top: 10px;
  border-bottom: 1px dashed;
  padding-bottom: 2px;
  font-size: 12px;
}
.tournament-guide-table {
  height: 170px;
}
.tournament-guide-table thead {
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}
.tournament-guide-table tbody {
  background: #f4f4f4;
}
.tournament-guide-table td {
  padding: 5px 0;
  text-align: center;
  vertical-align: middle;
}
.tournament-guide-table td:first-child {
  text-align: left;
  padding-left: 10px;
}
.tournament-guide-country {
  width: 170px;
}
.tournament-guide-wdl,
.tournament-guide-gd,
.tournament-guide-pts {
  width: 26px;
}
.tournament-guide-table-team,
.tournament-guide-flag {
  vertical-align: middle;
}
.tournament-guide-flag {
  border-radius: 2px;
  height: 16px;
  margin-right: 2px;
}
@media (min-width: 576px) and (max-width: 991px) {
  .tournament-guide-group {
    width: 50%;
    margin: 0;
    float: left;
  }
  .tournament-guide-group:nth-child(odd) {
    border-right: 1px solid;
  }
}
.tournament-guide-group-matches {
  border-top: 1px dashed #111;
}
@media (max-width: 991px) {
  .tournament-guide-group-matchday:last-child .tournament-guide-match:last-child {
    border-bottom: none;
    margin-bottom: 10px;
  }
}
.tournament-guide-match {
  position: relative;
  padding: 10px 15px;
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
}
@media (max-width: 991px) {
  .tournament-guide-match {
    border-bottom: 1px dashed #ddd;
  }
}
@media (min-width: 992px) {
  .tournament-guide-match:first-child {
    border-bottom: 1px solid #111;
  }
}
.tournament-guide-match:hover .tournament-guide-overlay {
  display: block;
}
.tournament-guide-team {
  margin-right: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tournament-guide-date {
  color: #afafaf;
  margin-bottom: 4px;
  font-size: 13px;
}
.tournament-guide-icon {
  position: absolute;
  right: 14px;
  top: 12px;
  color: #333;
}
.tournament-guide-status {
  position: absolute;
  right: 14px;
  top: 43px;
  background: #eee;
  padding: 0 9px;
  border-radius: 3px;
}
.tournament-guide-table {
  width: 100%;
}
.tournament-guide-logo {
  height: 5em;
  display: block;
  margin: 0 auto;
}
.tournament-guide-header {
  background: linear-gradient(#eee, #fff 50%);
}
.tournament-guide-title-col {
  width: 325px;
  padding-top: 20px;
}
@media (max-width: 991px) {
  .tournament-guide-title-col,
  .tournament-guide-menu-col {
    display: block;
    width: 100%;
    padding: 20px 0;
  }
}
@media (max-width: 991px) {
  .tournament-guide-menu-col {
    border-top: 1px dashed #ddd;
  }
}
.tournament-guide-title-text {
  font-size: 1.2em;
  margin: 10px 15px 0;
  padding-top: 6px;
  display: inline-block;
  border-top: 1px solid #111;
}
.tournament-guide-group-matches {
  width: 100%;
}
.tournament-guide-matchdays {
  padding-bottom: 8px;
}
@media (max-width: 991px) {
  .tournament-guide-matchdays {
    display: none;
  }
}
.tournament-guide-menu {
  display: inline-block;
}
.tournament-guide-overlay {
  background: #fff;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: inherit;
  line-height: 83px;
  color: #333;
}
/**
 * Knockout
 */
.knockout-matches {
  position: relative;
  margin: 0 11px;
  z-index: 1;
  min-height: 1425px;
}
.ko-match {
  border-radius: 5px;
  width: 125px;
  font-size: 14px;
  text-align: center;
  position: absolute;
  background: #f4f4f4;
}
.ko-match .team {
  height: 40px;
  font-weight: bold;
}
.ko-match .middle {
  background: #fff;
  line-height: 30px;
  height: 30px;
  margin: 0 10px;
  border-radius: 4px;
}
.ko-match .middle .icons {
  position: absolute;
  top: 49px;
  right: 14px;
}
.ko-match .middle.finished-with-pens {
  font-size: 12px;
  text-align: left;
  padding-left: 6px;
}
.ko-match .date {
  height: 30px;
  border-top: 1px solid #ccc;
  line-height: 29px;
  font-size: 10px;
}
.ko-match .overlay-link {
  height: 100%;
  width: 100%;
  line-height: 140px;
  display: none;
  border-radius: inherit;
  background: #222;
  color: #fff;
  position: absolute;
  z-index: 1;
}
.ko-match:hover .overlay-link {
  display: block;
}
.tournament-guide-third-place {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
}
.stage-names {
  margin: 25px 11px;
  border-bottom: 1px dashed;
  padding-bottom: 10px;
}
.stage-names li {
  float: left;
  width: 125px;
  margin-right: 17px;
}
.stage-names li:last-child {
  margin-right: 0;
}
/* Старый метод построения линий с помощью псевдоэлементов */
.bracket:after {
  width: 65%;
  height: 135%;
  display: block;
  position: absolute;
  top: 40%;
  left: 100%;
  content: '';
  z-index: -1;
  border: 1px solid;
  border-left: none;
  pointer-events: none;
}
.bracket--right:after {
  border-right: none;
  border-left: 1px solid;
  left: auto;
  right: 100%;
}
.bracket--qf:after {
  height: 450%;
}
.bracket--sf:after {
  height: 10%;
  border-bottom: none;
}
.bracket--r16:after {
  height: 250%;
}
/* Новый метод построения линий с помощью SVG */
.knockout-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.knockout-connector {
  stroke: #333;
  stroke-width: 1px;
  fill: none;
}
.ko-1 {
  top: 0;
  left: 0;
}
.ko-2 {
  top: 158px;
  left: 0;
}
.ko-3 {
  top: 316px;
  left: 0;
}
.ko-4 {
  top: 474px;
  left: 0;
}
.ko-5 {
  top: 632px;
  left: 0;
}
.ko-6 {
  top: 790px;
  left: 0;
}
.ko-7 {
  top: 948px;
  left: 0;
}
.ko-8 {
  top: 1106px;
  left: 0;
}
.ko-9 {
  top: 0;
  right: 0;
}
.ko-10 {
  top: 158px;
  right: 0;
}
.ko-11 {
  top: 316px;
  right: 0;
}
.ko-12 {
  top: 474px;
  right: 0;
}
.ko-13 {
  top: 632px;
  right: 0;
}
.ko-14 {
  top: 790px;
  right: 0;
}
.ko-15 {
  top: 948px;
  right: 0;
}
.ko-16 {
  top: 1106px;
  right: 0;
}
.ko-17 {
  top: 79px;
  left: 142px;
}
.ko-18 {
  top: 395px;
  left: 142px;
}
.ko-19 {
  top: 711px;
  left: 142px;
}
.ko-20 {
  top: 1027px;
  left: 142px;
}
.ko-21 {
  top: 79px;
  right: 142px;
}
.ko-22 {
  top: 395px;
  right: 142px;
}
.ko-23 {
  top: 711px;
  right: 142px;
}
.ko-24 {
  top: 1027px;
  right: 142px;
}
.ko-25 {
  top: 237px;
  left: 284px;
}
.ko-26 {
  top: 869px;
  left: 284px;
}
.ko-27 {
  top: 237px;
  right: 284px;
}
.ko-28 {
  top: 869px;
  right: 284px;
}
.ko-29 {
  top: 553px;
  left: 426px;
}
.ko-30 {
  top: 553px;
  right: 426px;
}
.ko-31 {
  top: 553px;
  left: 568px;
}
.ko-32 {
  top: 741px;
  left: 568px;
}
