/* 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);
}

/* ==========================================================
   Spieltags-Podest
   Mehrere Tipper pro Platzierung möglich
   ========================================================== */

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

    margin-top: 25px;
}

/* Eine Gruppe entspricht EINER Platzierung */
.ts-podium-place {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
}

/* Einzelner Tipper innerhalb einer Platzierung */
.ts-podium-item {
    text-align: center;
}

/* Tipper-Karte */
.ts-podium-box {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 140px;
    min-height: 76px;
    padding: 16px 12px 13px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #f5f5f5;
}

/* Sieger */
.ts-podium-place--1 .ts-podium-box {
    min-height: 88px;

    background: linear-gradient(
        to bottom,
        #fff8dc,
        #fff
    );
}

/* Platz 2 */
.ts-podium-place--2 .ts-podium-box {
    min-height: 80px;
}

/* Platz 3 */
.ts-podium-place--3 .ts-podium-box {
    min-height: 72px;
}

/* Rang-Badge */
.ts-podium-badge {
    position: absolute;
    top: -11px;
    left: 50%;

    transform: translateX(-50%);

    min-width: 32px;
    padding: 4px 10px;

    border-radius: 8px;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}

/* Medaillenfarben */
.ts-podium-badge.ts-medal--gold {
    background: linear-gradient(
        180deg,
        #ffe781 0%,
        #ffd700 60%,
        #e6bd00 100%
    ) !important;

    border-color: #e0b600 !important;
}

.ts-podium-badge.ts-medal--silver {
    background: linear-gradient(
        180deg,
        #f0f0f0 0%,
        #cfcfcf 60%,
        #b8b8b8 100%
    ) !important;

    border-color: #b9b9b9 !important;
}

.ts-podium-badge.ts-medal--bronze {
    background: linear-gradient(
        180deg,
        #eab184 0%,
        #cd7f32 60%,
        #a86022 100%
    ) !important;

    border-color: #b36828 !important;
}

/* Name */
.ts-podium-name {
    max-width: 120px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-weight: 700;
}

/* Punkte */
.ts-podium-points {
    margin-top: 3px;

    color: #666;

    font-size: 13px;
}

.ts-podium-place--empty .ts-podium-box {
    opacity: .55;
}

.ts-podium-empty {
    color: #999;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 700px) {
    .ts-matchday-podium {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 18px;
    }

    .ts-podium-place {
        flex-wrap: wrap;
    }

    .ts-podium-box {
        width: 130px;
    }
}

.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;
}

/* ==========================================================
   Frisch ausgezeichnet
   ========================================================== */

.ts-fresh-awards,
.ts-fresh-awards * {
    box-sizing: border-box;
}

.ts-fresh-awards .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-fresh-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ts-fresh-award {
    position: relative;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 13px;

    min-width: 0;
    padding: 17px;

    border: 1px solid #dfe3e8;
    border-top: 3px solid #4f8fdf;
    border-radius: 13px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .96),
        rgba(246, 248, 251, .96)
    );

    box-shadow: 0 5px 14px rgba(27, 39, 55, .07);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ts-fresh-award::after {
    content: '';

    position: absolute;
    top: -38px;
    right: -38px;

    width: 90px;
    height: 90px;

    border-radius: 50%;
    background: rgba(79, 143, 223, .08);

    pointer-events: none;
}

.ts-fresh-award:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 39, 55, .12);
}


/* Kategorien */

.ts-fresh-award--ruhm {
    border-top-color: #e0ad00;
}

.ts-fresh-award--ruhm::after {
    background: rgba(224, 173, 0, .10);
}

.ts-fresh-award--schande {
    border-top-color: #d95b5b;
}

.ts-fresh-award--schande::after {
    background: rgba(217, 91, 91, .09);
}

.ts-fresh-award--kuriositaet {
    border-top-color: #4f8fdf;
}


/* Icon */

.ts-fresh-award-icon {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 13px;

    background: rgba(79, 143, 223, .12);
    color: #3978c7;

    font-size: 1.2rem;
}

.ts-fresh-award--ruhm .ts-fresh-award-icon {
    background: rgba(224, 173, 0, .14);
    color: #b88c00;
}

.ts-fresh-award--schande .ts-fresh-award-icon {
    background: rgba(217, 91, 91, .13);
    color: #c34444;
}


/* Inhalt */

.ts-fresh-award-content {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.ts-fresh-award-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #202733;

    font-size: .84rem;
    font-weight: 600;
}

.ts-fresh-award-title {
    margin-top: 2px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #111827;

    font-size: 1rem;
    font-weight: 800;
}

.ts-fresh-award--ruhm .ts-fresh-award-title {
    color: #936f00;
}

.ts-fresh-award--schande .ts-fresh-award-title {
    color: #a73939;
}

.ts-fresh-award-context {
    margin-top: 7px;

    color: #68717d;

    font-size: .78rem;
    line-height: 1.4;
}


/* Spieltag */

.ts-fresh-award-matchday {
    position: relative;
    z-index: 1;

    grid-column: 1 / -1;

    padding-top: 10px;

    border-top: 1px solid rgba(25, 35, 48, .08);

    color: #8a929c;

    font-size: .72rem;
    font-weight: 600;
    text-align: right;
}

.home-topmatch-reason {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 10px;
    padding: 6px 12px;

    border-radius: 999px;
    background: rgba(255, 193, 7, 0.12);

    font-size: 0.9rem;
    font-weight: 600;
    color: #665000;
}

.home-topmatch-reason i {
    font-size: 0.8rem;
}


/* Responsive */

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

    .ts-fresh-award {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .ts-fresh-award-icon {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .ts-fresh-award {
        padding: 14px;
    }
}