/* SPORTELIVO 4.0 */

/* Naglowek bez zwiekszania wysokosci */
@media(min-width:901px) {
  .top .bar {
    height:45px!important;
    min-height:45px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  .top .sportelivo-brand {
    gap:0!important;
  }
  .site-nav-link,.site-nav-toggle {
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
}

.sportelivo-search-expand {
  position:relative;
  flex:0 1 165px;
  width:165px;
  height:30px;
  margin-left:auto;
  transition:flex-basis .25s ease,width .25s ease;
  color:#76b7fa;
}

.sportelivo-search-expand:focus-within {
  flex-basis:370px;
  width:370px;
}

.sportelivo-search-expand input {
  display:block;
  width:100%;
  height:30px;
  padding:0 12px 0 35px;
  border:1px solid #315477;
  border-radius:9px;
  background:#13253a;
  color:#fff;
  outline:none;
  font-size:11px;
}

.sportelivo-search-expand input:focus {
  border-color:#489ef1;
  box-shadow:0 0 0 2px rgba(72,158,241,.12);
}

.sportelivo-search-expand input::placeholder {
  color:transparent;
}

.sportelivo-search-expand input:focus::placeholder {
  color:#a9bfd8;
}

.sportelivo-search-label {
  position:absolute;
  z-index:1;
  left:11px;
  top:6px;
  height:17px;
  display:flex;
  align-items:center;
  pointer-events:none;
}

/* Gora: duzy artykul + trzy mniejsze + LIVE */
@media(min-width:1051px) {
  main .hero {
    height:390px!important;
    min-height:0!important;
    grid-template-rows:390px!important;
  }
  main .hero > .side {
    display:grid!important;
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    height:390px!important;
    min-height:0!important;
    gap:10px!important;
    overflow:hidden;
  }
  main .hero > .side > .small {
    min-height:0!important;
    height:auto!important;
    padding:10px 12px!important;
    overflow:hidden;
  }
  main .hero > .side > .small h3 {
    font-size:13px!important;
    line-height:1.2!important;
    margin:7px 0 3px!important;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  main .hero > .side > .small .badge {
    font-size:9px!important;
    padding:4px 6px!important;
  }
}

/* NEWS + historia po lewej, czat po prawej */
@media(min-width:951px) {
  .sportelivo-content-layout {
    align-items:stretch!important;
  }
  .sportelivo-main-content {
    display:flex;
    flex-direction:column;
    min-width:0;
  }
  .sportelivo-chat-column {
    display:flex;
    padding-top:9px!important;
  }
  .sportelivo-chat-column .sportelivo-chat {
    display:flex;
    flex-direction:column;
    width:100%;
    min-height:100%;
  }
  .sportelivo-chat-messages {
    flex:1 1 auto;
    height:auto!important;
    min-height:200px;
    max-height:none!important;
  }
}

#dispatch-panel {
  margin:9px 0 10px!important;
  min-height:115px;
}

.sportelivo-dispatch-history {
  background:#111e2f;
  border:1px solid #293e56;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:12px;
}

.sportelivo-history-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 15px;
  background:#0c1726;
  border-bottom:1px solid #293e56;
}

.sportelivo-history-title strong {
  color:#fff;
  font-size:13px;
  letter-spacing:.4px;
}

.sportelivo-history-title span {
  color:#93a8c3;
  font-size:11px;
}

.sportelivo-history-list {
  max-height:340px;
  overflow-y:auto;
}

.sportelivo-history-row {
  display:grid;
  grid-template-columns:45px minmax(0,1fr) 14px;
  gap:12px;
  align-items:center;
  padding:11px 15px;
  border-bottom:1px solid #23364c;
  color:#e7f0fc;
  font-size:12px;
}

.sportelivo-history-row:hover {
  background:#1a2c43;
}

.sportelivo-history-row time {
  color:#ff4567;
  font-weight:800;
}

.sportelivo-history-row span:nth-child(2) {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.sportelivo-history-arrow {
  color:#8aa6c8;
  font-size:20px;
}

.sportelivo-history-empty {
  padding:16px;
  color:#aebdd0;
  font-size:12px;
}

/* Starsze artykuly dopiero pod historia i czatem */
.sportelivo-older-articles {
  margin-top:14px;
}

.sportelivo-older-articles .grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px;
}

.sportelivo-older-articles .card {
  min-width:0;
  height:100%;
}

.sportelivo-older-articles .card .pic {
  height:170px;
}

.sportelivo-older-articles .card .body {
  min-height:115px;
}

/* Podpisy zdjec nie zajmuja miejsca na stronie glownej */
main .photo-credit {
  display:none!important;
}

/* Mniejsze ekrany */
@media(max-width:1050px) {
  main .hero > .side {
    height:auto!important;
    grid-template-rows:none!important;
  }
  main .hero > .side > .small {
    min-height:110px!important;
  }
}

@media(max-width:900px) {
  .sportelivo-search-expand,
  .sportelivo-search-expand:focus-within {
    flex:1 1 100%;
    width:100%;
    margin-left:0;
    order:3;
  }
  .sportelivo-search-expand input::placeholder {
    color:#9cb3cd;
  }
}

@media(max-width:700px) {
  .sportelivo-older-articles .grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .sportelivo-older-articles .card .pic {
    height:140px;
  }
}

@media(max-width:480px) {
  .sportelivo-older-articles .grid {
    grid-template-columns:1fr!important;
  }
}


/* SPORTELIVO 4.1.2 */

/* 5 kolumn */
@media(min-width:1301px){
 .sportelivo-older-articles .grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
 }
 .sportelivo-older-articles .card .pic{
  height:125px!important;
 }
 .sportelivo-older-articles .card .body{
  padding:10px!important;
  min-height:105px!important;
 }
 .sportelivo-older-articles .card h3{
  font-size:12px!important;
  line-height:1.35!important;
 }
}

@media(min-width:701px) and (max-width:1300px){
 .sportelivo-older-articles .grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}

/* Kompaktowy czat */
@media(min-width:951px){
 .sportelivo-content-layout{
  align-items:stretch!important;
 }
 .sportelivo-chat-column{
  align-self:stretch!important;
 }
 .sportelivo-chat-column .sportelivo-chat{
  height:100%!important;
  min-height:0!important;
 }
 .sportelivo-chat-messages{
  flex:1 1 0!important;
  height:0!important;
  min-height:0!important;
  overflow-y:auto!important;
 }
}

.sportelivo-chat-messages{
 font-size:11px!important;
 line-height:1.35!important;
 padding:9px!important;
}
.sportelivo-chat-welcome{
 font-size:11px!important;
 padding:9px!important;
}
.sportelivo-chat-compose{
 padding:7px!important;
 gap:6px!important;
}
.sportelivo-chat-compose input{
 font-size:11px!important;
 padding:8px!important;
}
.sportelivo-chat-compose button{
 font-size:11px!important;
 padding:0 10px!important;
}
.sportelivo-chat-header{
 padding:10px 12px!important;
}
.sportelivo-chat-header strong{
 font-size:12px!important;
}
