/* ============================================================
   TWITCH — Community Streams Übersicht
   ============================================================ */

/* ───────────────────────── HEADLINE BADGE ───────────────────────── */

.twitch-live-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e91916;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    margin-left: auto;
}

.twitch-live-count .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: twitch-pulse 1.4s ease infinite;
}

.twitch-live-count .text {
    animation: none;
}

/* ───────────────────────── SECTION LABEL ───────────────────────── */

.twitch-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twitch-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* ───────────────────────── GRID ───────────────────────── */

.twitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
}

/* ───────────────────────── CARD ───────────────────────── */

.twitch-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.twitch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(145,70,255,0.4);
}

/* ───────────────────────── MEDIA ───────────────────────── */

.twitch-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a2e;
}

.twitch-card-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.twitch-card-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
}

/* ───────────────────────── BADGES ───────────────────────── */

.twitch-badge-live {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #e91916;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.twitch-badge-live span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: twitch-pulse 1.4s ease infinite;
}

.twitch-badge-viewers,
.twitch-badge-duration {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    color: #ddd;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ───────────────────────── BODY ───────────────────────── */

.twitch-card-body {
    padding: 9px 11px 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.twitch-card-user {
    display: flex;
    align-items: center;
    gap: 7px;
}

.twitch-avatar {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    object-fit: cover;
    border: 2px solid rgba(145,70,255,0.35);
}

.twitch-card-username {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitch-card-title {
    font-size: 12px;
    color: #ccc;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.twitch-card-game {
    font-size: 11px;
    color: #9146ff;
}

.twitch-card-ago {
    font-size: 11px;
    color: #888;
}