/* Top 5 casino table — bedste-casinoer.dk
   Modern table using site palette: #3E4A59, #E59100, #C22D20 */

.toplist-section {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding: 0 0 40px;
}

.toplist-card {
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  box-shadow: 0 10px 48px rgba(0,0,0,0.25);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Card header */
.toplist-head {
  background: linear-gradient(135deg, #2e3744 0%, #3E4A59 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #E59100;
}
.toplist-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}
.toplist-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin: 3px 0 0;
}
.toplist-head-badge {
  background: #C22D20;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Table */
.toplist-table {
  width: 100%;
  border-collapse: collapse;
}

/* Table header */
.toplist-table thead th {
  background: #343f4d;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.toplist-table thead .th-logo {
  text-align: left;
  padding-left: 16px;
}
.toplist-table thead .th-bonus {
  text-align: left;
}

/* Data rows */
.tl-row td {
  padding: 18px 12px;
  vertical-align: middle;
  text-align: center;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.tl-row:hover td {
  background: rgba(255,255,255,0.06);
}

/* Featured (first) row */
.tl-featured td {
  background: rgba(229,145,0,0.06);
  border-bottom-color: rgba(229,145,0,0.12);
}
.tl-featured:hover td {
  background: rgba(229,145,0,0.1);
}

/* Position number */
.tl-pos {
  font-size: 20px;
  font-weight: 800;
  color: #E59100;
  width: 44px;
  min-width: 44px;
}
.tl-featured .tl-pos {
  font-size: 24px;
}

/* Logo cell */
.tl-row .tl-logo {
  text-align: left;
  padding-left: 8px;
  width: 160px;
  min-width: 140px;
}
.tl-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  height: 52px;
  justify-content: center;
}
.tl-logo a:hover {
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(229,145,0,0.2);
}
.tl-logo img {
  max-width: 130px;
  height: 36px;
  object-fit: contain;
}

/* Rating */
.tl-rating {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}
.tl-star {
  color: #E59100;
  font-size: 16px;
}
.tl-rating-max {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}

/* Stat cells (RTP, deposit, payout) */
.tl-stat {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

/* Bonus cell */
.tl-row .tl-bonus {
  text-align: left;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  padding-left: 16px;
}
.tl-bonus strong {
  color: #E59100;
  font-size: 17px;
  font-weight: 800;
  display: block;
  margin-top: 2px;
}

/* CTA button */
.tl-cta {
  width: 125px;
  min-width: 110px;
}
.tl-btn {
  display: inline-block;
  background: #C22D20;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}
.tl-btn:hover {
  background: #a82318;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,45,32,0.35);
}
.tl-featured .tl-btn {
  background: #E59100;
  box-shadow: 0 4px 16px rgba(229,145,0,0.3);
  font-size: 15px;
}
.tl-featured .tl-btn:hover {
  background: #cc8000;
  box-shadow: 0 6px 20px rgba(229,145,0,0.4);
}

/* Terms row */
tr.tl-terms-row td {
  padding: 5px 16px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.08);
}

/* Footer link */
.toplist-foot {
  text-align: center;
  padding: 13px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.1);
}
.toplist-foot a {
  font-size: 14px;
  font-weight: 600;
  color: #E59100;
  text-decoration: none;
  transition: color 0.15s;
}
.toplist-foot a:hover { color: #ffb930; text-decoration: none; }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .toplist-section { padding: 0 0 32px; }
  .toplist-card { border-radius: 10px; }
  .toplist-head { padding: 12px 14px; }
  .toplist-head h2 { font-size: 14px; }
  .toplist-sub { display: none; }

  .toplist-table thead { display: none; }

  .tl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .tl-row td {
    display: block;
    border: none;
    padding: 4px 6px;
    text-align: left;
    background: transparent;
  }
  .tl-row:hover td { background: transparent; }
  .tl-featured td { background: transparent; }

  .tl-row {
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
  }
  .tl-row:hover { background: rgba(255,255,255,0.05); }
  .tl-featured {
    background: rgba(229,145,0,0.06);
    border-left: 3px solid #E59100;
  }

  .tl-pos { width: auto; min-width: auto; font-size: 16px; }
  .tl-row .tl-logo { width: auto; min-width: auto; padding: 0; }
  .tl-logo a { padding: 4px 8px; height: 40px; }
  .tl-logo img { height: 28px; max-width: 100px; }
  .tl-rating { font-size: 13px; }
  .tl-stat { display: none; }
  .tl-row .tl-bonus {
    flex-basis: 100%;
    padding: 4px 0;
    font-size: 13px;
  }
  .tl-bonus strong { display: inline; font-size: 14px; }
  .tl-cta {
    width: auto;
    min-width: auto;
    margin-left: auto;
  }
  .tl-btn { font-size: 13px; padding: 9px 16px; }

  tr.tl-terms-row { display: none; }
}

/* ── Tablet ─────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .tl-stat { font-size: 12px; }
  .tl-row .tl-logo { width: 130px; min-width: 120px; }
  .tl-logo img { height: 32px; max-width: 120px; }
  .tl-btn { padding: 10px 16px; font-size: 13px; }
}

/* ── Desktop ─────────────────────────────────────────── */
@media (min-width: 1024px) {
  .toplist-section { margin-top: -68px; padding: 0 0 48px; }
  .toplist-card { border-radius: 16px; }
  .tl-row td { padding: 20px 14px; }
  .tl-row .tl-bonus { font-size: 13px; }
  .tl-bonus strong { font-size: 18px; }
  .tl-btn { font-size: 15px; padding: 13px 24px; }
  .tl-row .tl-logo { width: 170px; min-width: 160px; }
  .tl-logo a { padding: 6px 14px; height: 56px; }
  .tl-logo img { height: 40px; max-width: 150px; }
}
