/* =======================================
   TV Guide – Premium 2026 | fussballtv.at
   ======================================= */

#tv-guide {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 48px;
    color: #1a1a1a;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.spieltag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #111827;
    padding: 0 0 12px;
    margin: 40px 0 8px;
    border-bottom: 2px solid #f0f0f0;
}

.spieltag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.competition-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 4px 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9ca3af;
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
}

.competition-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
}

.spiel-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 3px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    position: relative;
}

.spiel-card:hover {
    border-color: #e0e0e0;
    background: #fafafa;
}

.spiel-card:active {
    transform: scale(0.998);
}

.uhrzeit {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.paarung {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1;
}

.paarung .team1,
.paarung .team2 {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
    margin: 0;
}

.liga {
    display: none;
}

.sender {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

/* =============================================
   TV-Badges
   ============================================= */
.tv-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.025em;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    border: none;
    background: #555;
    transition: opacity 0.15s ease, transform 0.12s ease;
    cursor: pointer;
    line-height: 1;
}

.tv-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.tv-link:active {
    transform: scale(0.96);
    opacity: 0.95;
}

.tv-link img {
    height: 13px;
    width: auto;
    display: block;
}

/* Sender-Farben */
.tv-link.sky              { background: #1a1f8e; }
.tv-link.skyx             { background: #0090d4; }
.tv-link.dazn             { background: #111111; }
.tv-link.servustv         { background: #c8011a; }
.tv-link.amazon           { background: #008bb5; }
.tv-link.zdf              { background: #e8680f; }
.tv-link.canalplus        { background: #1a1a1a; }
.tv-link.wow              { background: #1a7a7e; }
.tv-link.rtl              { background: #d10024; }
.tv-link.rtlplus          { background: #c90072; }
.tv-link.rtlnitro         { background: #007a47; }
.tv-link.sat1             { background: #cc0068; }
.tv-link.orf1             { background: #b50000; }
.tv-link.orfon            { background: #b50000; }
.tv-link.orfsportplus     { background: #067d06; }
.tv-link.sportdigitalplus { background: #d97000; }
.tv-link.fcbayerntvplus   { background: #c8041a; }
.tv-link.appletvplus      { background: #111111; }
.tv-link.erste            { background: #005eab; }
.tv-link.puls4            { background: #e4001b; }
.tv-link.puls24           { background: #b5000f; }
.tv-link.default          { background: #6b7280; }

/* =======================================
   Mobile ( ≤ 600px )
   ======================================= */
@media (max-width: 600px) {
    #tv-guide {
        padding: 0 0 32px;
    }

    .spiel-card {
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 11px 13px;
        border-radius: 9px;
    }

    .uhrzeit { font-size: 12px; }

    .paarung .team1,
    .paarung .team2 { font-size: 13px; }

    .tv-link {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 5px;
    }

    .competition-title {
        padding: 10px 2px 4px;
        font-size: 10px;
    }

    .spieltag {
        font-size: 15px;
        margin-top: 28px;
    }
}

/* =======================================
   MODAL
   ======================================= */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    overflow: auto !important;
    justify-content: center;
    align-items: center;
    animation: tvFadeIn 0.2s ease forwards;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px 24px;
    max-width: 400px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    animation: tvSlideUp 0.25s ease;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #6b7280;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
    font-weight: 400;
}

.modal-close:hover { color: #374151; }

#modalSender {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

#modalSender .tv-link {
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 8px;
}

@keyframes tvFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes tvSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-banner {
    margin-top: 16px;
    text-align: center;
}

.modal-banner img {
    width: 280px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
