/* Detail zápasu - doplněk k existujícímu css/styles.css */

.match-detail-page {
  
}

.match-detail-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 116px 0 56px;
  background-image:
        linear-gradient(
            180deg,
            rgba(3, 20, 40, .82) 0%,
            rgba(0, 65, 120, .78) 42%,
            rgba(0, 126, 209, .96) 100%
        ),
        var(--match-bg);

    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.match-detail-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(58, 192, 255, .15), transparent 34%),
    radial-gradient(circle at 83% 23%, rgba(255, 142, 19, .10), transparent 30%);
}

.match-detail-container {
  position: relative;
  z-index: 1;
}

.match-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 22px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 600;
}

.match-back-link:hover {
  color: #fff;
}

.match-header {
  text-align: center;
  margin-bottom: 24px;
}

.match-meta-line {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.match-meta-dot {
  color: rgba(255,255,255,.35);
}

.match-scoreboard 
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.match-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.match-team {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

    .match-team.away {
        margin-left: auto;
    }

.match-team {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.match-team-home {
  justify-content: flex-end;
  text-align: right;
}

.match-team-away {
  justify-content: flex-start;
  text-align: left;
}

.team-logo-shell {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.team-logo {
  display: block;
  max-width: 92px;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity .15s ease;
}

.team-logo.is-visible {
  opacity: 1;
}

.team-logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: 0;
}

.team-logo-fallback.is-hidden {
  display: none;
}

.team-name {
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.match-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .32rem .72rem;
  margin-bottom: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(7, 25, 42, .34);
  backdrop-filter: blur(8px);
}

.match-status.is-live {
  background: rgba(239,67,67,.92);
  border-color: rgba(255,255,255,.16);
}

.match-status.is-archive {
  background: rgba(6,104,195,.75);
}

.match-status.is-upcoming {
  background: rgba(255,142,19,.92);
}

.match-score-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .18em;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
  text-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.score-separator {
  opacity: .72;
}

.match-vs {
  color: rgba(255,255,255,.88);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

.match-player-section {
  width: 100%;
}

.match-player-shell {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  box-shadow: 0 28px 68px rgba(0, 28, 60, .42);
}

.match-player-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.highlight-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(8, 71, 126, .42);
  backdrop-filter: blur(12px);
}

.highlight-label {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.highlight-copy {
  margin-top: 2px;
  color: rgba(255,255,255,.65);
  font-size: .84rem;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  min-height: 42px;
  padding: .65rem .95rem;
  border-radius: 9px;
  background: var(--orange, #ff8e13);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.highlight-link:hover {
  color: #fff;
  background: #ffa23a;
}

.highlight-play {
  font-size: .78rem;
}

@media (max-width: 767.98px) {
  .match-detail-main {
    padding-top: 90px;
    padding-bottom: 28px;
    background-attachment: scroll;
  }

  .match-back-link {
    margin-bottom: 14px;
  }

  .match-meta-line {
    margin-bottom: 18px;
    gap: .4rem;
    font-size: .74rem;
  }

  .match-scoreboard {
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    gap: 10px;
  }

  .match-team {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .match-team-home,
  .match-team-away {
    justify-content: center;
    text-align: center;
  }
    .match-team-away {
        flex-direction: column-reverse;
    }
    .team-logo-shell {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

  .team-logo {
    max-width: 60px;
    max-height: 60px;
  }

  .team-logo-fallback {
    border-radius: 15px;
    font-size: .8rem;
  }

  .team-name {
    max-width: 130px;
    font-size: .86rem;
    line-height: 1.2;
  }

  .match-status {
    min-height: 23px;
    padding: .28rem .5rem;
    margin-bottom: 6px;
    font-size: .56rem;
  }

  .match-score-main {
    font-size: 2rem;
  }

  .match-vs {
    font-size: 1.05rem;
  }

  .match-player-shell {
    border-radius: 10px;
  }

  .highlight-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .highlight-link {
    width: 100%;
    justify-content: center;
  }
}



.match-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;

    background-image: var(--match-bg);
    background-size: cover;
    background-position: center;
}

.match-placeholder-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .10),
            rgba(0, 0, 0, .35)
        );
}

.match-placeholder-content {
  
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: clamp(20px, 3vw, 50px);
    display: none;
}


/* CELÁ STŘEDOVÁ ČÁST */
.match-teams {
    width: min(1100px, 88%);

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, .9fr)
        minmax(0, 1fr);

    align-items: center;
    gap: clamp(25px, 3vw, 55px);

    color: #fff;
}


/* TÝM */
.match-team-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    text-align: center;
}


/* LOGO */
.match-team-logo {
    display: block;

    width: clamp(140px, 15vw, 240px);
    height: clamp(140px, 15vw, 240px);

    object-fit: contain;

    margin-bottom: clamp(15px, 1.5vw, 22px);

    filter:
        drop-shadow(0 4px 2px rgba(0, 0, 0, .8))
        drop-shadow(0 10px 8px rgba(0, 0, 0, .55))
        drop-shadow(0 18px 18px rgba(0, 0, 0, .35));
}


/* NÁZEV TÝMU */
.match-team-name {
    width: 100%;

    font-size: clamp(24px, 2.1vw, 36px);
    line-height: 1;
    font-weight: 900;

    text-transform: uppercase;
    color: #fff;

    text-shadow:
        0 3px 0 #111,
        0 5px 4px rgba(0, 0, 0, .9),
        0 9px 12px rgba(0, 0, 0, .55);
}


/* STŘED */
.match-vs-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
}


/* ŘÁDEK ČÁRA VS ČÁRA */
.match-vs-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 32px);
}

.match-vs-line::before,
.match-vs-line::after {
    content: "";
    display: block;

    width: clamp(70px, 9vw, 170px);
    height: 3px;

    flex-shrink: 0;

    background: #fff;
    border-radius: 2px;

    box-shadow:
        0 2px 2px rgba(0, 0, 0, .65),
        0 4px 7px rgba(0, 0, 0, .35);
}


/* VS */
.match-vs-line strong {
      font-size: clamp(52px, 5vw, 82px);
    line-height: 1;
    font-weight: 900;

    color: #fff;

    text-shadow:
        0 3px 0 rgba(0, 0, 0, .9),
        0 5px 5px rgba(0, 0, 0, .8),
        0 10px 14px rgba(0, 0, 0, .5);
}


/* SOUTĚŽ */
.match-vs-placeholder small {
    margin-top: clamp(10px, 1.2vw, 18px);

    font-size: clamp(14px, 1.25vw, 20px);
    line-height: 1;
    font-weight: 800;

    text-transform: uppercase;
    text-align: center;

    color: #fff;

    text-shadow:
        0 2px 2px rgba(0, 0, 0, .9),
        0 4px 7px rgba(0, 0, 0, .7);
}


/* SPODNÍ PRAVÝ ROH */
.match-placeholder-bottom {
    position: absolute;

    left: clamp(12px, 2vw, 26px);
    right: clamp(12px, 2vw, 26px);
    bottom: clamp(12px, 2vw, 26px);

    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.match-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding:
        clamp(6px, .8vw, 9px)
        clamp(9px, 1.2vw, 14px);

    border-radius: 8px;

    background: #1768cc;
    color: #fff;

    font-size: clamp(12px, 1vw, 16px);
    font-weight: 800;

    box-shadow:
        0 3px 8px rgba(0,0,0,.30);
}

.match-language svg {
    flex: 0 0 auto;
}
@media (max-width: 600px) {

    .match-teams {
        width: 100%;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(100px, .7fr)
            minmax(0, 1fr);

        gap: 8px;
    }

    .match-vs-line {
        gap: 7px;
    }

    .match-vs-line::before,
    .match-vs-line::after {
        width: clamp(18px, 6vw, 40px);
        height: 2px;
    }

    .match-vs-line strong {
        font-size: clamp(28px, 8vw, 42px);
    }

    .match-team-logo {
        width: clamp(65px, 19vw, 100px);
        height: clamp(65px, 19vw, 100px);
        margin-bottom: 7px;
    }

    .match-team-name {
        font-size: clamp(11px, 3vw, 16px);
    }

    .match-vs-placeholder small {
        margin-top: 7px;
        font-size: clamp(8px, 2.2vw, 11px);
    }
}