/* ============================================================
   Stream Status — Widget Styles  v1.3.0
   ============================================================ */

.ss-widget-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: inherit;
    opacity: 1;
}

/* ── Theme: Compact ────────────────────────────────────────── */
.ss-widget-wrap.ss-theme-compact {
    gap: 2px;
}
.ss-theme-compact .ss-item {
    padding: 4px 6px;
}

/* ── Theme: Minimal ────────────────────────────────────────── */
.ss-widget-wrap.ss-theme-minimal {
    gap: 6px;
}
.ss-theme-minimal .ss-item {
    border: none !important;
    padding: 6px 0;
    background: none !important;
}
.ss-theme-minimal .ss-item:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* ── Row ──────────────────────────────────────────────────── */

.ss-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.ss-item:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.07);
}

.ss-item--offline {
    opacity: 0.55;
}
.ss-item--offline:hover {
    opacity: 1;
}

/* Hide avatar column when disabled */
.ss-widget-wrap.ss-no-avatars .ss-item {
    grid-template-columns: 1fr auto;
}
.ss-widget-wrap.ss-no-avatars .ss-avatar-wrap {
    display: none;
}

/* Hide badge column when disabled */
.ss-widget-wrap.ss-no-badges .ss-platforms {
    display: none;
}

/* ── Avatar ───────────────────────────────────────────────── */

.ss-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Default: medium (40px) */
.ss-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #e0e0e0;
}
.ss-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b6b6b, #3a3a3a);
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Small (32px) */
.ss-widget-wrap.ss-avatar-small .ss-avatar,
.ss-widget-wrap.ss-avatar-small .ss-avatar-fallback {
    width: 32px;
    height: 32px;
    font-size: 0.95em;
}

/* Large (52px) */
.ss-widget-wrap.ss-avatar-large .ss-avatar,
.ss-widget-wrap.ss-avatar-large .ss-avatar-fallback {
    width: 52px;
    height: 52px;
    font-size: 1.3em;
}

/* Pulsing pip on avatar when live */
.ss-live-pip {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #53fc18; /* Overridden by inline style */
    border: 2px solid #fff;
    animation: ss-pip-pulse 2.2s ease-in-out infinite;
}

@keyframes ss-pip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.5); }
    50%       { box-shadow: 0 0 0 4px rgba(83, 252, 24, 0); }
}

/* ── Text info ────────────────────────────────────────────── */

.ss-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ss-name {
    font-weight: 600;
    font-size: 0.88em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ss-title {
    font-size: 0.76em;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ss-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72em;
    opacity: 0.55;
    line-height: 1.3;
    white-space: nowrap;
}

.ss-offline-label {
    font-size: 0.72em;
    opacity: 0.5;
    font-style: italic;
}

/* ── Platform badges ──────────────────────────────────────── */

.ss-platforms {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

.ss-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 4px;
    padding: 2px 6px 2px 4px;
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    line-height: 1.6;
    border: 1px solid transparent;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.ss-badge img {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.ss-badge:hover { opacity: 0.8; }

/* Kick badge (color overridden by inline style for live) */
.ss-badge--kick.ss-badge--live {
    background: #53fc18;
    color: #0a0a0a;
    border-color: #3dcc10;
}
.ss-badge--kick.ss-badge--offline {
    background: rgba(83, 252, 24, 0.1);
    color: #2a7a00;
    border-color: rgba(83, 252, 24, 0.3);
}

/* YouTube badge */
.ss-badge--yt.ss-badge--live {
    background: #ff0000;
    color: #fff;
    border-color: #cc0000;
}
.ss-badge--yt.ss-badge--offline {
    background: rgba(255, 0, 0, 0.08);
    color: #990000;
    border-color: rgba(255, 0, 0, 0.25);
}

/* ── Empty state ─────────────────────────────────────────── */

.ss-no-streamers {
    font-size: 0.85em;
    opacity: 0.55;
    font-style: italic;
}
