/* STARTSEITE */

.badge-row {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1f6feb;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table tr:hover {
    background: rgba(255,255,255,.28);
    transition: .18s ease;
}

.text-right { text-align: right; }
.text-left { text-align: left; }

.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.podium-box {
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    color: #111;
    font-weight: 600;
    min-height: 72px;
}

.place-1 {
    background: linear-gradient(135deg,#ffd700,#ffef9a);
    transform: scale(1.04);
}

.place-2 {
    background: linear-gradient(135deg,#d7d7d7,#f5f5f5);
}

.place-3 {
    background: linear-gradient(135deg,#d48b52,#f0c09c);
}

.pts {
    font-size: 1rem;
    margin-bottom: 2px;
}

.place,
.name {
    font-size: .82rem;
    line-height: 1.15;
}

.next-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.next-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .92rem;
}

hr {
    border: 0;
    border-top: 1px solid rgba(0,0,0,.08);
    margin: 18px 0;
}

h3 {
    font-size: 1rem;
    margin: 0 0 10px;
}

.table th,
.table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .92rem;
}

.table th {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.table td:first-child,
.table th:first-child {
    white-space: nowrap;
    width: 14%;
    font-size: .88rem;
    color: #555;
}

.text-center {
    font-weight: 700;
    width: 70px;
    text-align: center;
}

.team-home{
    text-align:right;
}

.team-away{
    text-align:left;
}

.team-home,
.team-away{
    width: 32%;
}

.result-cell{
    width: 19%;
}

.team-home-wrap,
.team-away-wrap{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.team-logo{
    width:22px;
    height:22px;
    object-fit:contain;
    flex-shrink:0;
}

.team-name{
    white-space:nowrap;
}

.winner{
    font-weight:700;
    color:#198754;
}

.ts-podium{display:flex;justify-content:center;align-items:flex-end;gap:40px;max-width:720px;margin:0 auto}
.ts-podium__box{background:#f6f7f9;border:1px solid #dfe3e8;border-radius:8px;padding:6px 10px;min-width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ts-podium__pts{font-weight:700;font-size:1rem;line-height:1}
.ts-podium__place{font-size:.8rem;color:#666;line-height:1.1;margin-top:2px}
.ts-podium__name{margin-top:6px;font-size:.9rem;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.ts-medal--gold{background:#ffd700!important}.ts-medal--silver{background:#c0c0c0!important}.ts-medal--bronze{background:#cd7f32!important}
/* Gold/Silber/Bronze mit sanftem Verlauf + feinem inneren Glanz */
.ts-medal--gold{
  background: linear-gradient(180deg, #ffe781 0%, #ffd700 60%, #e6bd00 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 4px rgba(0,0,0,.08);
  border-color: #e0b600 !important;
}
.ts-medal--silver{
  background: linear-gradient(180deg, #f0f0f0 0%, #cfcfcf 60%, #b8b8b8 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 4px rgba(0,0,0,.08);
  border-color: #b9b9b9 !important;
}
.ts-medal--bronze{
  background: linear-gradient(180deg, #eab184 0%, #cd7f32 60%, #a86022 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 4px rgba(0,0,0,.08);
  border-color: #b36828 !important;
}

.ts-live-score-wrap{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:700;
    color:#d62828;
}

.ts-live-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#ff2d2d;
    box-shadow:0 0 0 rgba(255,45,45,.7);
    animation:livePulse 1.2s infinite;
}

.ts-live-score-text{
    color:#d62828;
    font-weight:800;
}

.ts-finished-score{
    font-weight:700;
    color:#111;
}

@keyframes livePulse{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(255,45,45,.7);
    }
    70%{
        transform:scale(1.15);
        box-shadow:0 0 0 8px rgba(255,45,45,0);
    }
    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(255,45,45,0);
    }
}

.topmatch {
    text-align: center;
    padding: 15px;
}

.topmatch-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topmatch .team {
    width: 40%;
}

.topmatch img {
    height: 40px;
    margin-bottom: 5px;
}

.topmatch .vs {
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 900px) {
    .podium {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 16px;
    }

    .table th,
    .table td {
        padding: 10px 6px;
        font-size: .92rem;
    }
}

.podium-card {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.podium-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
}

.medal-gold   { background: linear-gradient(180deg,#ffd700,#e6b800); }
.medal-silver { background: linear-gradient(180deg,#ccc,#999); }
.medal-bronze { background: linear-gradient(180deg,#d28b4d,#a65e2e); }

.podium-card .name {
    font-weight: 600;
    margin-top: 10px;
}

.podium-card .points {
    font-size: 13px;
    color: #666;
}

/* Gewinner hervorheben */
.winner-box {
    border: 2px solid #ffd700;
    background: linear-gradient(to bottom, #fff8dc, #fff);
}

.ts-matchday-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 15px;
}

/* einzelne Spalte */
.ts-podium-item {
    text-align: center;
}

/* Box */
.ts-podium-box {
    position: relative;
    width: 120px;
    padding: 15px 10px;
    border-radius: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

/* Sieger größer */
.ts-winner {
    transform: translateY(-10px);
    /*border: 2px solid #ffd700;*/
    background: linear-gradient(to bottom, #fff8dc, #fff);
}

/* Badge oben */
.ts-podium-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
}

/* Farben */
.ts-medal--gold .ts-podium-badge {
    background: linear-gradient(#ffd700, #e6b800);
}

.ts-medal--silver .ts-podium-badge {
    background: linear-gradient(#ccc, #999);
}

.ts-medal--bronze .ts-podium-badge {
    background: linear-gradient(#d28b4d, #a65e2e);
}

.ts-podium-name {
    font-weight: 600;
    margin-top: 10px;
}

.ts-podium-points {
    font-size: 13px;
    color: #666;
}

.ts-divider-soft {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 25px 0;
}

.ts-topmatch {
    margin-top: 15px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    backdrop-filter: blur(6px);
    text-align: center;
}

.ts-topmatch-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ts-team {
    width: 40%;
}

.ts-topmatch-logo {
    height: 50px;
    margin-bottom: 8px;
}

.ts-team-name {
    font-weight: 600;
}

.ts-vs {
    font-size: 20px;
    font-weight: bold;
    opacity: 0.7;
}

.ts-topmatch-time {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.ts-topmatch-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #ffc107;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.ts-topmatch-action {
    margin-top: 12px;
}

.ts-topmatch-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(#ffd54f, #ffc107);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.ts-topmatch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* === BONUS-MATCH HIGHLIGHT === */
.match-row.bonus-match,
.bonus-match {
  position: relative;
  border: 2px solid gold !important;
  box-shadow: 0 0 10px rgba(255,215,0,0.6);
  background: rgba(255, 255, 200, 0.07);
  animation: bonusGlow 2s infinite alternate;
  transition: box-shadow .3s ease, transform .3s ease;
}
