/* KNC TOPLIST START — dán vào cuối Flatsome > Advanced > Custom CSS. */

.knc-toplist {
  --tl-green: var(--knc-green, #00B94F);
  --tl-green-light: var(--knc-green-light, #20E866);
  --tl-green-dark: var(--knc-green-dark, #013E2B);
  --tl-green-deep: var(--background-dark, #012D22);
  --tl-soft: var(--knc-green-bg, #E9FFF2);
  --tl-text: var(--knc-text, #0C2440);
  --tl-muted: #718096;
  --tl-border: #DDE9E3;
  --tl-gold: #F5B800;
  width: 100%;
  color: var(--tl-text);
  font-family: inherit;
  container-name: knc-toplist;
  container-type: inline-size;
}

.knc-toplist,
.knc-toplist *,
.knc-toplist *::before,
.knc-toplist *::after {
  box-sizing: border-box;
}

.knc-toplist-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.knc-toplist-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(225px, 1.25fr) 92px minmax(145px, .72fr) minmax(255px, 1.25fr) 126px;
  align-items: stretch;
  min-width: 0;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgba(0, 185, 79, .24);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(1, 62, 43, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.knc-toplist-item:hover {
  border-color: rgba(0, 185, 79, .62);
  box-shadow: 0 10px 24px rgba(1, 62, 43, .12);
  transform: translateY(-2px);
}

/* Ranking panel */
.knc-toplist-rank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  color: #FFFFFF;
  background:
    linear-gradient(135deg, rgba(32, 232, 102, .22) 0 24%, transparent 24% 48%, rgba(32, 232, 102, .13) 48% 66%, transparent 66%),
    linear-gradient(160deg, #006B3A, var(--tl-green-dark));
}

.knc-toplist-rank::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 22px;
  height: 100%;
  background: #FFFFFF;
  transform: skewX(-8deg);
}

.knc-toplist-rank strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  margin: 0;
  clip-path: polygon(50% 0, 92% 20%, 92% 75%, 50% 100%, 8% 75%, 8% 20%);
  color: #FFFFFF;
  background: linear-gradient(145deg, #20E866, #008D46 72%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .48), 0 4px 8px rgba(0, 0, 0, .20);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.knc-toplist-crown {
  position: absolute;
  top: 5px;
  z-index: 2;
  color: #FFE36A;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28));
}

.knc-toplist-item--first .knc-toplist-rank strong {
  padding-top: 13px;
  color: #FFFFFF;
  background: linear-gradient(145deg, #FFD85B, #D59500 76%);
}

.knc-toplist-item--second .knc-toplist-rank strong {
  background: linear-gradient(145deg, #E8F2F5, #7F98A5 78%);
}

.knc-toplist-item--third .knc-toplist-rank strong {
  background: linear-gradient(145deg, #F1AA70, #A95327 78%);
}

/* Logo and bookmaker name */
.knc-toplist-brand {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 14px 12px 8px;
}

.knc-toplist-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 62px;
  min-width: 96px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.knc-toplist-logo img {
  display: block;
  width: 96px !important;
  height: 56px !important;
  max-width: 96px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.knc-toplist-brand-copy {
  min-width: 0;
}

.knc-toplist-name {
  margin: 0 0 2px;
  color: var(--tl-green-dark);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.knc-toplist-tagline {
  overflow: hidden;
  margin-bottom: 8px;
  color: #53657A;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knc-toplist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  color: #64748B;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.knc-toplist-meta span:first-child {
  color: #159B55;
}

/* Rating */
.knc-toplist-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 8px;
  border-left: 1px solid var(--tl-border);
  text-align: center;
}

.knc-toplist-rating > span {
  color: #39775F;
  font-size: 11px;
}

.knc-toplist-rating > strong {
  margin: 2px 0 3px;
  color: #0A253C;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.knc-toplist-rating > strong small {
  color: var(--tl-green);
  font-size: 12px;
  font-weight: 700;
}

.knc-toplist-stars {
  color: var(--tl-gold);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Bonus box */
.knc-toplist-bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 9px 0;
  padding: 9px 8px;
  border: 2px solid var(--tl-green-light);
  border-radius: 8px;
  color: #FFFFFF;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .15), transparent 38%),
    linear-gradient(145deg, #007A3B 0%, #00B94F 72%, #20E866 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 10px rgba(0, 185, 79, .18);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.knc-toplist-bonus span {
  font-size: 11px;
  font-weight: 700;
}

.knc-toplist-bonus strong {
  margin: 2px 0;
  color: #DDFF61;
  font-size: 31px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.knc-toplist-bonus small {
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Three compact fact columns */
.knc-toplist-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  padding: 12px 4px;
}

.knc-toplist-facts > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 4px 8px;
  border-left: 1px solid var(--tl-border);
  text-align: center;
}

.knc-toplist-facts b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(145deg, var(--tl-green-light), var(--tl-green-dark));
  box-shadow: 0 2px 5px rgba(1, 62, 43, .18);
  font-size: 13px;
  line-height: 1;
}

.knc-toplist-facts span {
  color: #39775F;
  font-size: 10px;
  line-height: 1.25;
}

.knc-toplist-facts strong {
  display: block;
  margin-top: 2px;
  color: var(--tl-text);
  font-size: 11px;
  font-weight: 800;
}

/* Actions */
.knc-toplist-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.knc-toplist-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 39px;
  margin: 0 !important;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.knc-toplist-review {
  border: 1px solid var(--tl-green) !important;
  color: #075A3D !important;
  background: #FFFFFF !important;
}

.knc-toplist-join {
  border: 1px solid var(--tl-green) !important;
  color: #FFFFFF !important;
  background: linear-gradient(180deg, var(--tl-green-light), #00A948 58%, #007A37) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), 0 4px 9px rgba(0, 185, 79, .20);
}

.knc-toplist-actions a:hover {
  transform: translateY(-1px);
}

.knc-toplist-review:hover {
  color: var(--tl-green-dark) !important;
  background: var(--tl-soft) !important;
}

.knc-toplist-join:hover {
  color: #FFFFFF !important;
  background: linear-gradient(180deg, #35EE79, #00B94F 58%, #006C31) !important;
  box-shadow: 0 6px 14px rgba(0, 185, 79, .28);
}

/* Tablet: keep important information and move actions to a full-width row. */
@media (max-width: 1199px) {
  .knc-toplist-item {
    grid-template-columns: 66px minmax(220px, 1.25fr) 88px minmax(138px, .72fr) minmax(230px, 1.15fr);
  }

  .knc-toplist-actions {
    grid-column: 2 / -1;
    flex-direction: row;
    padding: 0 12px 12px;
  }

  .knc-toplist-rank {
    grid-row: 1 / span 2;
  }

  .knc-toplist-actions a {
    flex: 1 1 0;
    min-height: 36px;
  }
}

@media (max-width: 849px) {
  .knc-toplist-list {
    gap: 9px;
  }

  .knc-toplist-item {
    grid-template-columns: 58px minmax(0, 1fr) 78px;
    min-height: 0;
  }

  .knc-toplist-rank {
    grid-row: 1 / span 4;
  }

  .knc-toplist-rank strong {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }

  .knc-toplist-brand {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 8px;
  }

  .knc-toplist-logo {
    width: 96px;
    height: 50px;
    min-width: 96px;
  }

  .knc-toplist-logo img {
    width: 96px !important;
    height: 46px !important;
    max-width: 96px !important;
    max-height: 46px !important;
  }

  .knc-toplist-name {
    font-size: 17px;
  }

  .knc-toplist-tagline {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .knc-toplist-meta {
    font-size: 9px;
  }

  .knc-toplist-rating {
    padding: 8px 5px;
  }

  .knc-toplist-rating > strong {
    font-size: 27px;
  }

  .knc-toplist-bonus {
    grid-column: 2 / 4;
    margin: 0 8px 8px;
    min-height: 64px;
  }

  .knc-toplist-bonus strong {
    font-size: 25px;
  }

  .knc-toplist-facts {
    grid-column: 2 / 4;
    padding: 5px 8px 8px;
  }

  .knc-toplist-actions {
    grid-column: 2 / 4;
    padding: 0 8px 10px;
  }
}

@media (max-width: 549px) {
  .knc-toplist-item {
    grid-template-columns: 48px minmax(0, 1fr) 68px;
    border-radius: 8px;
  }

  .knc-toplist-rank strong {
    width: 36px;
    height: 42px;
    font-size: 18px;
  }

  .knc-toplist-crown {
    top: 9px;
    font-size: 18px;
  }

  .knc-toplist-brand {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 5px;
  }

  .knc-toplist-logo {
    width: 76px;
    height: 44px;
    min-width: 76px;
  }

  .knc-toplist-logo img {
    width: 76px !important;
    height: 42px !important;
    max-width: 76px !important;
    max-height: 42px !important;
  }

  .knc-toplist-name {
    font-size: 15px;
  }

  .knc-toplist-tagline {
    display: none;
  }

  .knc-toplist-meta {
    display: block;
    font-size: 8px;
  }

  .knc-toplist-meta span {
    display: block;
  }

  .knc-toplist-rating > span,
  .knc-toplist-rating > strong small {
    font-size: 9px;
  }

  .knc-toplist-rating > strong {
    font-size: 23px;
  }

  .knc-toplist-stars {
    font-size: 10px;
  }

  .knc-toplist-facts strong {
    font-size: 9px;
  }

  .knc-toplist-actions a {
    min-height: 34px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knc-toplist-item,
  .knc-toplist-actions a {
    transition: none !important;
  }
}

/*
 * Component responsive rules.
 * These use the real width of the toplist instead of the browser viewport,
 * so the table also fits when Flatsome places it between two sidebars.
 */
@container knc-toplist (max-width: 1000px) {
  .knc-toplist-item {
    grid-template-columns: 60px minmax(190px, 1.3fr) 76px 130px minmax(180px, 1fr) 100px;
    min-height: 108px;
  }

  .knc-toplist-rank strong {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }

  .knc-toplist-rank {
    grid-row: auto;
  }

  .knc-toplist-brand {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 8px 10px 5px;
  }

  .knc-toplist-logo {
    width: 82px;
    height: 52px;
    min-width: 82px;
  }

  .knc-toplist-logo img {
    width: 82px !important;
    height: 50px !important;
    max-width: 82px !important;
    max-height: 50px !important;
  }

  .knc-toplist-name {
    font-size: 17px;
  }

  .knc-toplist-tagline {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .knc-toplist-meta {
    gap: 3px 6px;
    font-size: 8px;
  }

  .knc-toplist-rating {
    padding: 8px 4px;
  }

  .knc-toplist-rating > span {
    font-size: 9px;
  }

  .knc-toplist-rating > strong {
    font-size: 27px;
  }

  .knc-toplist-rating > strong small {
    font-size: 9px;
  }

  .knc-toplist-stars {
    font-size: 10px;
  }

  .knc-toplist-bonus {
    margin: 8px 0;
    padding: 7px 5px;
  }

  .knc-toplist-bonus span {
    font-size: 9px;
  }

  .knc-toplist-bonus strong {
    font-size: 25px;
  }

  .knc-toplist-bonus small {
    font-size: 8px;
  }

  .knc-toplist-facts {
    padding: 8px 2px;
  }

  .knc-toplist-facts > div {
    padding: 3px 4px;
  }

  .knc-toplist-facts b {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }

  .knc-toplist-facts span {
    font-size: 8px;
  }

  .knc-toplist-facts strong {
    font-size: 9px;
  }

  .knc-toplist-actions {
    grid-column: auto;
    flex-direction: column;
    gap: 7px;
    padding: 9px 7px;
  }

  .knc-toplist-actions a {
    flex: none;
    min-height: 35px;
    padding: 6px 4px;
    font-size: 10px;
  }
}

@container knc-toplist (max-width: 760px) {
  .knc-toplist-list {
    gap: 12px;
  }

  .knc-toplist-item {
    grid-template-columns: 56px minmax(0, 1fr) 74px;
    min-height: 0;
    overflow: hidden;
    border-radius: 11px;
  }

  .knc-toplist-rank {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 48px;
    height: 54px;
    margin: 12px 0;
    overflow: visible;
    background: transparent !important;
  }

  .knc-toplist-rank::after {
    display: none;
    content: none;
  }

  .knc-toplist-rank strong {
    width: 44px;
    height: 50px;
    font-size: 20px;
  }

  .knc-toplist-crown {
    top: -5px;
    font-size: 20px;
  }

  .knc-toplist-item--first .knc-toplist-rank strong {
    padding-top: 10px;
  }

  .knc-toplist-brand {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 5px;
  }

  .knc-toplist-logo {
    width: 80px;
    height: 48px;
    min-width: 80px;
  }

  .knc-toplist-logo img {
    width: 80px !important;
    height: 46px !important;
    max-width: 80px !important;
    max-height: 46px !important;
  }

  .knc-toplist-name {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .knc-toplist-tagline {
    display: none;
  }

  .knc-toplist-meta {
    display: block;
    font-size: 8px;
    line-height: 1.35;
  }

  .knc-toplist-meta span {
    display: block;
  }

  .knc-toplist-rating {
    grid-column: 3;
    grid-row: 1;
    padding: 10px 4px;
    border-left: 1px solid var(--tl-border);
  }

  .knc-toplist-rating > span {
    font-size: 9px;
  }

  .knc-toplist-rating > strong {
    font-size: 26px;
  }

  .knc-toplist-rating > strong small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
  }

  .knc-toplist-stars {
    font-size: 10px;
  }

  .knc-toplist-bonus {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 70px;
    margin: 0 10px 10px;
    padding: 8px;
  }

  .knc-toplist-bonus span {
    font-size: 10px;
  }

  .knc-toplist-bonus strong {
    font-size: 30px;
  }

  .knc-toplist-bonus small {
    font-size: 9px;
  }

  .knc-toplist-facts {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 2px 10px 10px;
  }

  .knc-toplist-facts > div {
    min-height: 78px;
    padding: 5px 7px;
  }

  .knc-toplist-facts > div:first-child {
    border-left: 0;
  }

  .knc-toplist-facts b {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    font-size: 13px;
  }

  .knc-toplist-facts span {
    font-size: 9px;
  }

  .knc-toplist-facts strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .knc-toplist-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-direction: row;
    gap: 8px;
    padding: 0 10px 12px;
  }

  .knc-toplist-actions a {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 12px;
  }
}

@container knc-toplist (max-width: 480px) {
  .knc-toplist-item {
    grid-template-columns: 50px minmax(0, 1fr) 68px;
  }

  .knc-toplist-rank {
    width: 42px;
    height: 48px;
  }

  .knc-toplist-rank strong {
    width: 40px;
    height: 46px;
    font-size: 18px;
  }

  .knc-toplist-brand {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px;
    padding: 10px 4px;
  }

  .knc-toplist-logo {
    width: 72px;
    height: 42px;
    min-width: 72px;
  }

  .knc-toplist-logo img {
    width: 72px !important;
    height: 40px !important;
    max-width: 72px !important;
    max-height: 40px !important;
  }

  .knc-toplist-name {
    font-size: 15px;
  }

  .knc-toplist-meta {
    font-size: 7.5px;
  }

  .knc-toplist-rating > strong {
    font-size: 23px;
  }

  .knc-toplist-bonus {
    min-height: 66px;
    margin-right: 8px;
    margin-left: 8px;
  }

  .knc-toplist-bonus strong {
    font-size: 27px;
  }

  .knc-toplist-facts {
    padding-right: 7px;
    padding-left: 7px;
  }

  .knc-toplist-facts > div {
    min-height: 74px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .knc-toplist-facts strong {
    font-size: 9px;
  }

  .knc-toplist-actions {
    padding-right: 8px;
    padding-left: 8px;
  }

  .knc-toplist-actions a {
    min-height: 42px;
    font-size: 11px;
  }
}

/* KNC TOPLIST END */
