/* ═══════════════════════════════════════════════════════════
   InsideGaming Twitch Team — Frontend Styles
   Modelled after twitch.tv/team — dark, sharp, authentic
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ig-twitch-team {
    --tw-bg:        #0e0e10;
    --tw-surface:   #18181b;
    --tw-surface2:  #1f1f23;
    --tw-surface3:  #26262c;
    --tw-border:    #3a3a3d;
    --tw-purple:    #9147ff;
    --tw-purple-h:  #772ce8;
    --tw-purple-s:  #bf94ff;
    --tw-live:      #eb0400;
    --tw-text:      #efeff1;
    --tw-text-2:    #adadb8;
    --tw-text-3:    #737379;
    --tw-radius:    6px;
    --tw-radius-lg: 10px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--tw-bg);
    color: var(--tw-text);
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ─── Live dot ─────────────────────────────────────────── */
.ig-live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--tw-live);
    border-radius: 50%;
    flex-shrink: 0;
    animation: ig-pulse 1.8s ease-in-out infinite;
}
@keyframes ig-pulse {
    0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(235,4,0,.5); }
    50%      { opacity:.8; box-shadow: 0 0 0 5px rgba(235,4,0,0); }
}

/* ─── Header ───────────────────────────────────────────── */
.ig-tt-header {
    background: var(--tw-surface);
    border-bottom: 1px solid var(--tw-border);
    padding: 0 20px;
}
.ig-tt-header__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 0;
}
.ig-tt-logo {
    width: 24px; height: 24px;
    fill: var(--tw-purple);
    flex-shrink: 0;
}
.ig-tt-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tw-text);
    margin: 0 0 2px;
    line-height: 1.2;
}
.ig-tt-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--tw-text-2);
}
.ig-tt-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(235,4,0,.12);
    border: 1px solid rgba(235,4,0,.25);
    color: #ff6b68;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 12px;
}

/* Apply button in header */
.ig-tt-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid var(--tw-purple);
    color: var(--tw-purple);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--tw-radius);
    cursor: pointer;
    transition: background .15s, color .15s, transform .1s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    margin-left: auto;
}
.ig-tt-apply-btn svg { width: 15px; height: 15px; fill: currentColor; }
.ig-tt-apply-btn:hover {
    background: var(--tw-purple);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Apply Modal ───────────────────────────────────────── */
.ig-tt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ig-tt-modal-overlay.is-open {
    display: flex;
    animation: ig-modal-in .2s ease;
}
@keyframes ig-modal-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.ig-tt-modal {
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    position: relative;
}

.ig-tt-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--tw-border);
}
.ig-tt-modal__header svg {
    width: 22px; height: 22px;
    fill: var(--tw-purple);
    flex-shrink: 0;
}
.ig-tt-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tw-text);
    margin: 0;
}
.ig-tt-modal__subtitle {
    font-size: 12px;
    color: var(--tw-text-2);
    margin: 2px 0 0;
}
.ig-tt-modal__close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--tw-text-2);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s, background .15s;
    font-family: sans-serif;
}
.ig-tt-modal__close:hover { color: var(--tw-text); background: var(--tw-surface2); }

.ig-tt-modal__body { padding: 22px 24px; }

/* Form fields */
.ig-tt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ig-tt-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.ig-tt-form-group:last-child { margin-bottom: 0; }

.ig-tt-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tw-text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ig-tt-form-group label span { color: var(--tw-live); }

.ig-tt-form-group input,
.ig-tt-form-group select,
.ig-tt-form-group textarea {
    background: var(--tw-surface2);
    border: 1.5px solid var(--tw-border);
    border-radius: var(--tw-radius);
    color: var(--tw-text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.ig-tt-form-group input::placeholder,
.ig-tt-form-group textarea::placeholder { color: var(--tw-text-3); }
.ig-tt-form-group select { cursor: pointer; }
.ig-tt-form-group textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.ig-tt-form-group input:focus,
.ig-tt-form-group select:focus,
.ig-tt-form-group textarea:focus {
    border-color: var(--tw-purple);
    box-shadow: 0 0 0 3px rgba(145,71,255,.15);
}

/* Twitch URL prefix */
.ig-tt-input-prefix {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1.5px solid var(--tw-border);
    border-radius: var(--tw-radius);
    transition: border-color .15s, box-shadow .15s;
    background: var(--tw-surface2);
}
.ig-tt-input-prefix:focus-within {
    border-color: var(--tw-purple);
    box-shadow: 0 0 0 3px rgba(145,71,255,.15);
}
.ig-tt-input-prefix span {
    padding: 10px 10px;
    font-size: 13px;
    color: var(--tw-text-3);
    background: var(--tw-surface3);
    border-right: 1.5px solid var(--tw-border);
    white-space: nowrap;
    flex-shrink: 0;
}
.ig-tt-input-prefix input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    background: transparent;
}
.ig-tt-input-prefix input:focus { box-shadow: none !important; }

/* Social platform fields */
.ig-tt-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.ig-tt-social-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ig-tt-social-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tw-text-2);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ig-tt-social-field label svg {
    width: 14px; height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}
/* Platform accent colours */
.ig-tt-social-field--instagram label { color: #e1306c; }
.ig-tt-social-field--youtube   label { color: #ff0000; }
.ig-tt-social-field--x         label { color: #efeff1; }
.ig-tt-social-field--kick      label { color: #53fc18; }
.ig-tt-social-field--discord   label { color: #5865f2; }

.ig-tt-social-field .ig-tt-input-prefix span {
    font-size: 12px;
    padding: 9px 8px;
}
.ig-tt-social-field input {
    background: var(--tw-surface2);
    border: 1.5px solid var(--tw-border);
    border-radius: var(--tw-radius);
    color: var(--tw-text);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    padding: 9px 11px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.ig-tt-social-field input::placeholder { color: var(--tw-text-3); }
.ig-tt-social-field input:focus {
    border-color: var(--tw-purple);
    box-shadow: 0 0 0 3px rgba(145,71,255,.15);
}
/* Per-platform focus colours */
.ig-tt-social-field--instagram .ig-tt-input-prefix:focus-within { border-color: #e1306c; box-shadow: 0 0 0 3px rgba(225,48,108,.15); }
.ig-tt-social-field--youtube   .ig-tt-input-prefix:focus-within { border-color: #ff0000; box-shadow: 0 0 0 3px rgba(255,0,0,.12); }
.ig-tt-social-field--kick      .ig-tt-input-prefix:focus-within { border-color: #53fc18; box-shadow: 0 0 0 3px rgba(83,252,24,.12); }
.ig-tt-social-field--discord   .ig-tt-input-prefix:focus-within { border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88,101,242,.15); }

.ig-tt-social-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--tw-text-3);
    margin: 4px 0 10px;
    padding-top: 4px;
    border-top: 1px solid var(--tw-border);
}

.ig-tt-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--tw-border);
}
.ig-tt-form-cancel {
    background: none;
    border: 1.5px solid var(--tw-border);
    color: var(--tw-text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--tw-radius);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s, color .15s;
}
.ig-tt-form-cancel:hover { border-color: var(--tw-text-2); color: var(--tw-text); }

.ig-tt-form-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tw-purple);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--tw-radius);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s, transform .1s;
}
.ig-tt-form-submit svg { width: 15px; height: 15px; fill: currentColor; }
.ig-tt-form-submit:hover { background: var(--tw-purple-h); transform: translateY(-1px); }
.ig-tt-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Success state */
.ig-tt-modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}
.ig-tt-modal-success.is-visible { display: flex; animation: ig-modal-in .25s ease; }
.ig-tt-modal-success__icon {
    width: 64px; height: 64px;
    background: rgba(145,71,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ig-tt-modal-success__icon svg { width: 32px; height: 32px; fill: var(--tw-purple); }
.ig-tt-modal-success h3 { font-size: 20px; font-weight: 700; margin: 0; color: var(--tw-text); }
.ig-tt-modal-success p { font-size: 14px; color: var(--tw-text-2); margin: 0; line-height: 1.6; }

/* ─── Featured Section ─────────────────────────────────── */
.ig-tt-featured {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    background: var(--tw-surface);
    border-bottom: 1px solid var(--tw-border);
    max-width: 100%;
    margin-bottom: 8px;
}

/* Player */
.ig-tt-player-wrap {
    position: relative;
    background: #000;
    overflow: hidden;
}
.ig-tt-player-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}
.ig-tt-player-inner iframe,
.ig-tt-player-inner .ig-tt-offline-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Offline player */
.ig-tt-offline-player {
    background: var(--tw-surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}
.ig-tt-offline-banner {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .3;
    filter: blur(4px);
}
.ig-tt-offline-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.ig-tt-offline-avatar-big {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid var(--tw-border);
}
.ig-tt-offline-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--tw-text);
}
.ig-tt-offline-label {
    font-size: 13px;
    color: var(--tw-text-2);
    background: rgba(0,0,0,.5);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Sidebar */
.ig-tt-sidebar {
    background: var(--tw-surface2);
    border-left: 1px solid var(--tw-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 600px;
}

.ig-tt-sb-streamer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ig-tt-sb-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--tw-purple);
    flex-shrink: 0;
}
.ig-tt-sb-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tw-text);
    line-height: 1.2;
}
.ig-tt-sb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
}
.ig-tt-sb-badge--live {
    background: var(--tw-live);
    color: #fff;
}
.ig-tt-sb-badge--offline {
    background: var(--tw-surface3);
    color: var(--tw-text-3);
}

.ig-tt-sb-stream-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--tw-surface3);
    border-radius: var(--tw-radius);
    border: 1px solid var(--tw-border);
}
.ig-tt-sb-stream-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tw-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ig-tt-sb-game,
.ig-tt-sb-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tw-text-2);
    margin: 0;
}
.ig-tt-sb-icon {
    width: 13px; height: 13px;
    flex-shrink: 0;
    fill: currentColor;
}
.ig-tt-sb-game { color: var(--tw-purple-s); }

.ig-tt-sb-desc {
    font-size: 12px;
    color: var(--tw-text-2);
    line-height: 1.5;
    margin: 0;
}

/* "Zu Twitch" button */
.ig-tt-sb-twitch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--tw-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--tw-radius);
    text-decoration: none;
    transition: background .15s, transform .1s;
    border: none;
    cursor: pointer;
}
.ig-tt-sb-twitch-btn svg { width: 16px; height: 16px; fill: currentColor; }
.ig-tt-sb-twitch-btn:hover {
    background: var(--tw-purple-h);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Live stream switcher */
.ig-tt-sb-switch { display: flex; flex-direction: column; gap: 6px; }
.ig-tt-sb-switch-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--tw-text-3);
    margin: 0 0 4px;
}

.ig-tt-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tw-surface3);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--tw-text);
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, border-color .15s;
    text-align: left;
    width: 100%;
}
.ig-tt-switch-btn:hover {
    background: var(--tw-surface);
    border-color: var(--tw-purple);
}
.ig-tt-switch-btn img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--tw-live);
}
.ig-tt-switch-name { flex: 1; }
.ig-tt-switch-viewers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--tw-text-2);
    white-space: nowrap;
}
.ig-tt-switch-viewers svg { width: 11px; height: 11px; fill: currentColor; }

/* ─── Section label ────────────────────────────────────── */
.ig-tt-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 20px 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--tw-text-2);
}

/* ─── Grid ─────────────────────────────────────────────── */
/*
   Twitch-faithful: cards have a fixed pixel width, row wraps
   left-to-right. The container never stretches cards to fill.
   Gap between featured area and grid is tight (4px border only).
*/
.ig-tt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 32px;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Each card is a fixed fraction of the container minus padding & gaps */
.ig-tt-card {
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

/* col counts — use CSS custom property so media queries override cleanly */
.ig-tt-grid--cols-2 .ig-tt-card  { flex-basis: calc((100% - 10px  * 1) / 2); max-width: calc((100% - 10px  * 1) / 2); }
.ig-tt-grid--cols-3 .ig-tt-card  { flex-basis: calc((100% - 10px  * 2) / 3); max-width: calc((100% - 10px  * 2) / 3); }
.ig-tt-grid--cols-4 .ig-tt-card  { flex-basis: calc((100% - 10px  * 3) / 4); max-width: calc((100% - 10px  * 3) / 4); }
.ig-tt-grid--cols-5 .ig-tt-card  { flex-basis: calc((100% - 10px  * 4) / 5); max-width: calc((100% - 10px  * 4) / 5); }
.ig-tt-grid--cols-6 .ig-tt-card  { flex-basis: calc((100% - 10px  * 5) / 6); max-width: calc((100% - 10px  * 5) / 6); }

@media (max-width:1200px) {
    .ig-tt-grid--cols-5 .ig-tt-card,
    .ig-tt-grid--cols-6 .ig-tt-card {
        flex-basis: calc((100% - 10px * 3) / 4);
        max-width:  calc((100% - 10px * 3) / 4);
    }
}
@media (max-width:960px) {
    .ig-tt-featured { grid-template-columns: 1fr; }
    .ig-tt-sidebar { max-height: none; border-left: none; border-top: 1px solid var(--tw-border); }
    .ig-tt-grid--cols-4 .ig-tt-card,
    .ig-tt-grid--cols-5 .ig-tt-card,
    .ig-tt-grid--cols-6 .ig-tt-card {
        flex-basis: calc((100% - 10px * 2) / 3);
        max-width:  calc((100% - 10px * 2) / 3);
    }
}
@media (max-width:680px) {
    .ig-tt-grid { padding: 0 12px 20px; gap: 8px; }
    .ig-tt-section-label { padding: 10px 12px 6px; }
    .ig-tt-header { padding: 0 12px; }
    .ig-tt-grid .ig-tt-card {
        flex-basis: calc((100% - 8px) / 2) !important;
        max-width:  calc((100% - 8px) / 2) !important;
    }
}
@media (max-width:400px) {
    .ig-tt-grid .ig-tt-card {
        flex-basis: 100% !important;
        max-width:  100% !important;
    }
}

/* ─── Cards ────────────────────────────────────────────── */
.ig-tt-card {
    background: var(--tw-surface);
    border-radius: var(--tw-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    /* flex-basis / max-width set by grid column rules above */
    min-width: 0;
}
.ig-tt-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    z-index: 2;
}
.ig-tt-card--offline {
    cursor: default;
}
.ig-tt-card--offline:hover {
    transform: none;
    box-shadow: none;
}
.ig-tt-card--active .ig-tt-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--tw-purple);
    border-radius: var(--tw-radius) var(--tw-radius) 0 0;
    pointer-events: none;
}

/* Thumb */
.ig-tt-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tw-surface2);
    flex-shrink: 0;
}
.ig-tt-card__thumb > img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.ig-tt-card--live:hover .ig-tt-card__thumb > img { transform: scale(1.05); }

/* Live badge */
.ig-tt-card__live-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--tw-live);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 3px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Viewer count */
.ig-tt-card__viewers {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 7px 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.ig-tt-card__viewers svg { width: 12px; height: 12px; fill: currentColor; }

/* Play overlay */
.ig-tt-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.ig-tt-card--live:hover .ig-tt-card__play-overlay { opacity: 1; }
.ig-tt-card__play-circle {
    width: 52px; height: 52px;
    background: var(--tw-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(145,71,255,.5);
}
.ig-tt-card__play-circle svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.ig-tt-card__play-overlay span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

/* Offline thumbnail */
.ig-tt-card__offline-bg {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ig-tt-card__offline-bg > img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .18;
    filter: grayscale(40%);
}
.ig-tt-card__offline-shade {
    position: relative;
    z-index: 1;
    color: var(--tw-text-3);
}
.ig-tt-card__offline-shade svg { width: 28px; height: 28px; fill: currentColor; }

/* Info row */
.ig-tt-card__info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    flex: 1;
}
.ig-tt-card__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--tw-border);
}
.ig-tt-card--live .ig-tt-card__avatar { border-color: var(--tw-purple); }
.ig-tt-card__avatar--ph {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--tw-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.ig-tt-card__details { flex: 1; min-width: 0; }
.ig-tt-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.ig-tt-card__game {
    font-size: 12px;
    color: var(--tw-purple-s);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-weight: 500;
}
.ig-tt-card__offline-txt {
    font-size: 12px;
    color: var(--tw-text-3);
    margin-top: 2px;
}

/* "Zu Twitch" card button */
.ig-tt-card__twitch-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--tw-border);
    color: var(--tw-text-2);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: var(--tw-radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}
.ig-tt-card__twitch-btn svg { width: 12px; height: 12px; fill: currentColor; }
.ig-tt-card__twitch-btn:hover {
    background: var(--tw-purple);
    border-color: var(--tw-purple);
    color: #fff;
    text-decoration: none;
}

/* ─── Empty state ──────────────────────────────────────── */
.ig-twitch-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--tw-text-2);
    font-size: 14px;
    background: var(--tw-surface);
    border-radius: var(--tw-radius-lg);
    font-family: 'Inter', sans-serif;
}
