/* Dashboard/Rangliste/Ergebnisse: reine Anzeige-Gimmicks ohne Änderung der Kernlogik */

/* Eigene Ranglisten-Zeile */
#rangliste-body tr.ranking-current-user-row {
    position: relative;
    outline: 1px solid rgba(255, 215, 0, 0.72);
    outline-offset: -1px;
    box-shadow: inset 4px 0 0 rgba(255, 215, 0, 0.88), 0 0 18px rgba(255, 215, 0, 0.16);
}

#rangliste-body tr.ranking-current-user-row td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.13), rgba(255, 215, 0, 0.045) 44%, rgba(255, 215, 0, 0.02));
}

.ranking-you-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    color: #1a1200;
    background: linear-gradient(135deg, #fff1a8, #d5a514);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.26);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Tipp-Erinnerung Dashboard */
.tip-reminder-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background:
        radial-gradient(circle at 11% 0%, rgba(255, 215, 0, 0.17), transparent 34%),
        linear-gradient(135deg, rgba(19, 26, 39, 0.96), rgba(7, 10, 17, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tip-reminder-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 34%, rgba(255, 255, 255, 0.035));
}

.tip-reminder-card.tip-reminder-hidden {
    display: none;
}

.tip-reminder-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.tip-reminder-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #1a1200;
    background: linear-gradient(135deg, #fff1a8, #d6a51b);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
    font-size: 1.45rem;
}

.tip-reminder-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
    margin-bottom: 3px;
}

.tip-reminder-title strong {
    color: var(--gold);
}

.tip-reminder-text {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.87rem;
    line-height: 1.35;
}

.tip-reminder-next {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 9px 10px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
    font-weight: 800;
}

.tip-reminder-next-label {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tip-reminder-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tip-reminder-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 7px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.tip-reminder-team .team-flag {
    flex: 0 0 auto;
    width: 25px !important;
    height: 18px !important;
    object-fit: cover !important;
    border-radius: 3px;
    margin: 0 !important;
}

.tip-reminder-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
}

.tip-reminder-vs {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.tip-reminder-time {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.tip-reminder-button {
    appearance: none;
    align-self: end;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #b80000, #7e0000);
    box-shadow: 0 0 16px rgba(184, 0, 0, 0.24);
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.tip-reminder-button:hover {
    filter: brightness(1.08);
}

.tip-reminder-card.tip-reminder-done {
    border-color: rgba(80, 210, 120, 0.26);
    background:
        radial-gradient(circle at 11% 0%, rgba(80, 210, 120, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(16, 31, 25, 0.96), rgba(7, 10, 17, 0.98));
}

.tip-reminder-card.tip-reminder-done .tip-reminder-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #55d982, #15843c);
}

/* Ergebnisse: optische Karten */
#results-container.results-enhanced-grid {
    align-items: stretch;
}

.result-pro-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 178px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.09), transparent 34%),
        linear-gradient(145deg, rgba(20, 28, 42, 0.98), rgba(8, 11, 18, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-pro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 35%, rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at 90% 8%, rgba(184, 0, 0, 0.16), transparent 28%);
}

.result-pro-card.result-finished {
    border-color: rgba(76, 175, 80, 0.26);
}

.result-pro-head,
.result-pro-body,
.result-pro-footer {
    position: relative;
    z-index: 1;
}

.result-pro-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.result-pro-id {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-pro-date {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: right;
}

.result-pro-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.result-pro-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-pro-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
}

.result-pro-team.result-team-winner {
    border-color: rgba(255, 215, 0, 0.32);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.13), rgba(0, 0, 0, 0.22));
    box-shadow: inset 0 0 14px rgba(255, 215, 0, 0.07);
}

.result-pro-team.result-team-winner .result-pro-team-name {
    color: var(--gold);
}

.result-pro-scorebox {
    min-width: 74px;
    text-align: center;
}

.result-pro-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 9px 10px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.result-pro-score.result-pro-score-live {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.92), rgba(14, 92, 34, 0.95));
    border-color: rgba(135, 255, 160, 0.28);
}

.result-pro-footer {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.result-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-finished .result-status-pill {
    color: #ffffff;
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.24);
}

@media (max-width: 700px) {
    .tip-reminder-card {
        margin: 0 0 12px 0;
        padding: 11px 12px;
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .tip-reminder-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
    }

    .tip-reminder-icon {
        display: none;
    }

    .tip-reminder-title {
        font-size: 0.9rem;
        line-height: 1.18;
        margin-bottom: 2px;
    }

    .tip-reminder-text {
        font-size: 0.72rem;
        line-height: 1.25;
        opacity: 0.8;
    }

    .tip-reminder-next {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 7px 8px;
        margin-top: 7px;
        border-radius: 12px;
    }

    .tip-reminder-next-label {
        text-align: left;
        white-space: nowrap;
        font-size: 0.64rem;
        line-height: 1;
    }

    .tip-reminder-match {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 5px;
    }

    .tip-reminder-team {
        min-height: 28px;
        padding: 4px 5px;
        border-radius: 9px;
        gap: 4px;
    }

    .tip-reminder-team .team-flag {
        width: 21px !important;
        height: 15px !important;
        border-radius: 2px;
    }

    .tip-reminder-team-name {
        font-size: 0.72rem;
        line-height: 1;
    }

    .tip-reminder-vs {
        font-size: 0.58rem;
        align-self: center;
    }

    .tip-reminder-time {
        text-align: left;
        white-space: nowrap;
        font-size: 0.66rem;
        line-height: 1;
        opacity: 0.82;
    }

    .tip-reminder-button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 38px;
        border-radius: 12px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .ranking-you-badge {
        height: 19px;
        padding: 0 7px;
        font-size: 0.62rem;
    }

    .result-pro-card {
        min-height: 0;
    }

    .result-pro-body {
        grid-template-columns: 1fr;
    }

    .result-pro-scorebox {
        order: 2;
    }

    .result-pro-team:first-child {
        order: 1;
    }

    .result-pro-team:last-child {
        order: 3;
    }

    .result-pro-score {
        min-width: 92px;
    }
}


@media (max-width: 430px) {
    .tip-reminder-card {
        padding: 10px;
    }

    .tip-reminder-title {
        font-size: 0.86rem;
    }

    .tip-reminder-text {
        font-size: 0.68rem;
    }

    .tip-reminder-next {
        padding: 6px 7px;
    }

    .tip-reminder-match {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 4px;
    }

    .tip-reminder-team {
        min-height: 26px;
        padding: 3px 4px;
    }

    .tip-reminder-team .team-flag {
        width: 19px !important;
        height: 14px !important;
    }

    .tip-reminder-team-name {
        font-size: 0.68rem;
    }

    .tip-reminder-button {
        min-height: 36px;
        font-size: 0.78rem;
    }
}

/* Rangliste: Platz-1-Pulsrahmen entfernen, Podium bleibt unverändert */
#rangliste-body tr.der-gejagte {
    box-shadow: none !important;
}

#rangliste-body tr.der-gejagte td {
    animation: none !important;
    border-top: none !important;
    border-bottom: 1px solid #333 !important;
    box-shadow: none !important;
}

#rangliste-body tr.der-gejagte td:first-child {
    border-left: none !important;
}

#rangliste-body tr.der-gejagte td:last-child {
    border-right: none !important;
}
