/* DESKTOP */
.article-thumb {
  width: 240px;
  height: 200px;
  flex: 0 0 240px;
  overflow: hidden;
  border-radius: .25rem;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* MOBILE */
@media (max-width: 767.98px) {
  .article-thumb {
    width: 100% !important;
    flex: 0 0 100% !important;
    height: 250px;
    max-height: 250px;
    overflow: hidden;
  }

  .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.article-content img.article-img{
  float: left;
  max-width: 532px;
  width: 100%;
  height: auto;
  margin: 0 20px 12px 0;
}

/* mobile override */
@media (max-width: 576px){
  .article-content img.article-img{
    float: none;
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 0 0 12px 0;
  }
}

.profile-cover {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 1rem 1rem 0 0;
  position: relative;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15),
    rgba(0,0,0,.45)
  );
  border-radius: inherit;
}

.profile-photo-wrapper {
  position: absolute;
  left: 2rem;
  bottom: -80px;
  z-index: 2;
}

.profile-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: .75rem;
  border: 4px solid #fff;
  background: #fff;
}


.theme-switch{
  display:flex;
  align-items:center;
  gap:10px;
}

.theme-chip{
  display:inline-block;
  width:18px;
  height:18px;
  border-radius:999px;
  cursor:pointer;

  /* reset aby to nevyzeralo ako link */
  text-decoration:none;
  border:2px solid rgba(255,255,255,.65);
  background:#14b8a6;

  box-shadow: 0 0 0 3px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  opacity:.95;
}

.theme-chip:hover{
  transform: translateY(-1px) scale(1.12);
  box-shadow: 0 0 0 3px rgba(0,0,0,.18);
  opacity: 1;
}

.theme-chip.active{
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 2px;
}

/* farby */
.theme-turquoise{ background:#14b8a6; }
.theme-genesis{ background:#BE530C; }
.theme-blue{ background:#3b82f6; }
.theme-dark{ background:#0f172a; border-color: rgba(255,255,255,.35); }

.table-soft-striped tbody tr:nth-child(odd) > td,
.table-soft-striped tbody tr:nth-child(odd) > th{
  background-color: rgba(15, 23, 42, 0.03);
}

.link-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  text-decoration:none;
  color:#0f172a;
  transition: background .15s ease, transform .1s ease;
}

.link-card:hover{
  background: rgba(13,110,253,.05);
  transform: translateX(2px);
}

.link-card .icon{
  font-size:1.3rem;
  width:32px;
  text-align:center;
}

.link-card .text{
  flex:1;
}

.link-card small{
  display:block;
  color:#64748b;
  font-size:.82rem;
  margin-top:2px;
}

.link-card .arrow{
  font-size: 1.2rem;
  color:#94a3b8;
  transition: transform .15s ease, color .15s ease;
}

.link-card:hover .arrow{
  transform: translateX(4px);
  color:#0d6efd;
}

/* ===== Live Rating (sidebar card) ===== */
/* Live Rating – compact */
#live-rating table{
  font-size: .82rem;       /* trochu menšie */
  line-height: 1.15;       /* zrazí výšku riadku */
  margin: 0;
}

#live-rating td{
  padding: 2px 6px;        /* kľúč: zmenši padding */
  vertical-align: middle;
  border: 0;
}

/* jemný delič bez veľkého "vzduchu" */
#live-rating tbody tr{
  border-bottom: 1px solid rgba(15,23,42,.06);
}
#live-rating tbody tr:last-child{
  border-bottom: 0;
}

/* stĺpce – drž úzke */
#live-rating td.rank{
  width: 22px;
  padding-right: 4px;
  text-align: right;
  color:#64748b;
  font-weight: 700;
  white-space: nowrap;
}

#live-rating td.player a,
#live-rating td.player span{
  display: inline-block;
  max-width: 170px;        /* menšie => viac kompaktné */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  color:#0f172a;
}

#live-rating td.rating{
  width: 46px;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}

#live-rating td.delta{
  width: 44px;
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

#live-rating td.delta.up{ color:#16a34a; }
#live-rating td.delta.down{ color:#dc2626; }
#live-rating td.delta.neutral{ color:#94a3b8; }

/* nech to nikdy nerobí interný scroll */
#live-rating .live-rating-list{
  max-height: none;
  overflow: visible;
}

/* header bez sticky – ušetrí “layout problémy” */
#live-rating .card-header{
  position: static;
}

.sidebar-card {
  border-radius: 12px;
}

.sidebar-card .card-body {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sidebar-block {
  padding: .65rem .65rem;
  border-radius: 12px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.sidebar-block:hover {
  background: rgba(15, 23, 42, .03);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .25rem;
}

.sidebar-title {
  font-weight: 900;
  font-size: .88rem;
  //text-transform: uppercase;
  letter-spacing: .05em;
  color: #334155;
}

.sidebar-icon {
  font-size: 1rem;
  opacity: .7;
}

.sidebar-text {
  font-size: .92rem;
  color: #475569;
  line-height: 1.45;
}

.sidebar-divider {
  margin: .6rem 0;
  border-color: rgba(15, 23, 42, .08);
}

.item-action {
  display: flex;
  justify-content: flex-end;
  margin-top: .45rem;
}

.sidebar-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .9);
  font-size: .78rem;
  font-weight: 800;
  color: #475569;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}

.sidebar-action:hover {
  background: rgba(15, 23, 42, .04);
  color: #0f172a;
  transform: translateY(-1px);
}

.sidebar-action::after {
  content: "›";
  font-weight: 900;
  opacity: .65;
}





/* ===== AUTH SPLIT LAYOUT ===== */

:root{
  --ksn-primary: #1aa6a6;
  --ksn-primary-dark: #148a8a;
}

.auth-page{
  min-height: 100vh;
  /* neutrálne pozadie, nech vynikne karta */
  background: #eef3f7;
}

.auth-split{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 991.98px){
  .auth-split{ grid-template-columns: 1fr; }
  .auth-left{ min-height: 220px; }
}

/* LEFT PANEL (vizuál) */
.auth-left{
  position: relative;
  color: #fff;
  padding: 28px;
  background: linear-gradient(135deg, var(--ksn-primary, #1aa6a6) 0%, #1677ff 100%);
}

.auth-left-top{
  display: flex;
  align-items: center;
  opacity: .95;
}

.auth-left-content{
  margin-top: 70px;
  max-width: 420px;
}

.auth-kicker{
  font-size: .95rem;
  opacity: .9;
  letter-spacing: .2px;
}

.auth-title{
  margin-top: 6px;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-sub{
  margin-top: 14px;
  font-size: .95rem;
  opacity: .9;
  max-width: 360px;
}

/* jemná mriežka + bublinky ako na obrázku */
.auth-left-decor{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px),
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.65) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.55) 0 10px, transparent 11px),
    radial-gradient(circle at 70% 72%, rgba(255,255,255,.45) 0 7px, transparent 8px);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

/* RIGHT PANEL */
.auth-right{
  padding: 38px 44px;
}

@media (max-width: 575.98px){
  .auth-right{ padding: 28px 22px; }
}

/* moderné inputy s ikonou */
.auth-field{
  position: relative;
}

.auth-field i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-size: 1.05rem;
}

.auth-field .form-control{
  padding-left: 42px;
  height: 46px;
  border-radius: 10px;
  background: #f6f8fb;
  border: 1px solid #e6edf5;
}

.auth-field .form-control:focus{
  background: #fff;
  border-color: rgba(26,166,166,.45);
  box-shadow: 0 0 0 .2rem rgba(26,166,166,.12);
}

/* veľké farebné tlačidlo */
.btn-auth{
  height: 46px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: var(--ksn-primary, #1aa6a6);
  color: #fff;
}

.btn-auth:hover{
  filter: brightness(.95);
  color: #fff;
}

/* optional: aby checkbox nebol "tiny" */
.form-check-input{ cursor: pointer; }


/* udrž rovnakú výšku pre celý carousel */
#tournamentCarousel .carousel-inner{
  min-height: 220px; /* desktop/tablet */
}

/* na mobile treba viac, lebo tlačidlá sú pod sebou */
@media (max-width: 575.98px){
  #tournamentCarousel .carousel-inner{
    min-height: 290px;
  }
}

/* nech každý slide vyplní rovnakú výšku */
#tournamentCarousel .carousel-item{
  height: 100%;
}

#tournamentCarousel .carousel-item .card-body{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* akcie vždy dole */
#tournamentCarousel .tournament-actions{
  margin-top: auto;
}

#tournamentCarousel .card-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* max 2 riadky */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;          /* rezervuj miesto pre 2 riadky */
}

/* spoločný helper pre skrátený text */
.clamp-1{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.clamp-2{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.clamp-3{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.response-badge{
  font-weight: 900;
  letter-spacing: .2px;
  padding: .38rem .6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.response-badge i{ opacity: .9; }

.resp-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  align-items:center;
}

/* zvýrazni aktívne tlačidlo */
.resp-actions .btn.active{
  color: #fff !important;
}

.col-elo{ width: 84px; white-space: nowrap; }
.col-role{ width: 150px; }
.col-play{ width: 120px; text-align:center; }

@media (max-width: 576px){
  .col-elo{ width:auto; }
}


  .subnav {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(6px);
  }
  .subnav .nav-link {
    color: rgba(0,0,0,.72);
    border-radius: 10px;
    padding: .45rem .7rem;
  }
  .subnav .nav-link:hover {
    background: rgba(0,0,0,.04);
    color: rgba(0,0,0,.9);
  }
  .subnav .nav-link.active {
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.95);
    font-weight: 700;
  }
  .subnav-badge{
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.75);
  }


.league-badge {
    background: linear-gradient(135deg, #20c997, #198754); /* tyrkys → zelená */
    color: #fff !important;
}

.league-badge:hover {
    background: linear-gradient(135deg, #1ab386, #157347);
    color: #fff !important;
    text-decoration: none;
}
.league-badge {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.6);
    animation: league-pulse 2s infinite;
}

@keyframes league-pulse {
    0% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(32, 201, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}