/* ****** matchesinfo_v2 — pasek meczów (mbar_v2) ****** */
.matchesinfo_v2 {
  padding: 10px 0;
  background: #111; }
  .matchesinfo_v2 .viewport {
    position: relative;
    min-height: 84px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch; }
    .matchesinfo_v2 .viewport.is-dragging .inside .card {
      pointer-events: none; }
    .matchesinfo_v2 .viewport .prev, .matchesinfo_v2 .viewport .next {
      position: absolute;
      z-index: 10;
      top: 0;
      bottom: 0;
      width: 100px;
      background: transparent;
      cursor: default;
      opacity: 0; }
    .matchesinfo_v2 .viewport .prev {
      left: 0; }
    .matchesinfo_v2 .viewport .next {
      right: 0; }
    .matchesinfo_v2 .viewport .inside {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      width: max-content;
      will-change: left; }
  .matchesinfo_v2 .inside .card {
    flex: 0 0 360px;
    margin: 0 5px;
    display: flex;
    height: 84px;
    max-height: 84px;
    text-decoration: none;
    color: #eee;
    border: 1px solid #444;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.6);
    overflow: hidden; }
    .matchesinfo_v2 .inside .card .card-top {
      flex: 0 0 76px;
      position: relative;
      background-color: var(--card-accent, #222);
      background-image: url("/img/new/onebg.png");
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center; }
      .matchesinfo_v2 .inside .card .card-top .match-youtube-icon {
        position: absolute;
        top: 2px;
        right: 2px;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.92);
        color: #c00;
        font-size: 12px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
        transition: background .2s ease, transform .2s ease; }
        .matchesinfo_v2 .inside .card .card-top .match-youtube-icon:hover {
          background: #fff;
          color: #f00;
          transform: scale(1.08); }
      .matchesinfo_v2 .inside .card .card-top .logo, .matchesinfo_v2 .inside .card .card-top .logo2 {
        position: absolute;
        top: 2px;
        bottom: 2px;
        left: 3px;
        right: 3px;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        transition: opacity .5s ease;
        opacity: 1; }
      .matchesinfo_v2 .inside .card .card-top .logo2 {
        opacity: 0; }
    .matchesinfo_v2 .inside .card .card-mid {
      flex: 1;
      min-width: 0;
      background: #2a2a2a;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6px 10px;
      gap: 3px; }
      .matchesinfo_v2 .inside .card .card-mid .teams {
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: bold;
        font-size: 12px;
        line-height: 1.15;
        color: #f0f0f0; }
        .matchesinfo_v2 .inside .card .card-mid .teams .team1, .matchesinfo_v2 .inside .card .card-mid .teams .team2 {
          flex: 1;
          min-width: 0;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap; }
        .matchesinfo_v2 .inside .card .card-mid .teams .team1 {
          text-align: right; }
        .matchesinfo_v2 .inside .card .card-mid .teams .team2 {
          text-align: left; }
        .matchesinfo_v2 .inside .card .card-mid .teams .vs {
          flex: 0 0 auto;
          color: #999;
          font-size: 10px;
          transition: color .35s ease; }
      .matchesinfo_v2 .inside .card .card-mid .row2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px; }
        .matchesinfo_v2 .inside .card .card-mid .row2 .dates {
          min-width: 0;
          flex: 1; }
          .matchesinfo_v2 .inside .card .card-mid .row2 .dates .oneDate {
            display: block;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.65);
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; }
        .matchesinfo_v2 .inside .card .card-mid .row2 .score {
          display: flex;
          align-items: center;
          gap: 8px;
          flex-shrink: 0; }
          .matchesinfo_v2 .inside .card .card-mid .row2 .score .sbox {
            width: 30px;
            height: 30px;
            background: #444;
            color: #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
            font-weight: bold;
            font-size: 16px;
            box-shadow: 0 0 0 2px #555;
            border: 1px dashed rgba(255, 255, 255, 0.2); }
            .matchesinfo_v2 .inside .card .card-mid .row2 .score .sbox.win {
              background: #176a17;
              box-shadow: 0 0 0 2px #176a17;
              color: #fff; }
            .matchesinfo_v2 .inside .card .card-mid .row2 .score .sbox.lose {
              background: #d42427;
              box-shadow: 0 0 0 1px #d42427;
              color: #fff; }
    .matchesinfo_v2 .inside .card:hover .card-top .logo {
      opacity: 0; }
    .matchesinfo_v2 .inside .card:hover .card-top .logo2 {
      opacity: 1; }
    .matchesinfo_v2 .inside .card:hover .card-mid .teams .vs {
      color: #d42427; }
  @media only screen and (max-width: 860px) {
    .matchesinfo_v2 .viewport {
      overflow-x: auto;
      overflow-y: hidden;
      touch-action: pan-x;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      min-height: 92px; }
      .matchesinfo_v2 .viewport .inside {
        position: relative;
        left: auto !important;
        top: auto;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        will-change: auto;
        padding: 0 6px;
        gap: 8px; }
    .matchesinfo_v2 .inside .card {
      flex: 0 0 calc(100vw - 32px);
      max-width: 360px;
      margin: 0;
      scroll-snap-align: center; } }
