:root {
    --gts-accent: #9146ff;
    --live-accent: var(--gts-accent);
    --live-hover: #772ce8;
    --card-bg: rgba(18, 18, 18, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
}

.live-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.live-header {
    text-align: center;
    margin-bottom: 3rem;
}

.live-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--live-accent) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-count {
    font-size: 1.2rem;
    color: #b4b4b4;
    font-weight: 600;
}

.live-count .count {
    color: var(--live-accent);
    font-weight: 800;
}

.live-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--live-accent);
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.streamer-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.streamer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(145, 70, 255, 0.3);
    border-color: var(--live-accent);
}

.streamer-card.live::before {
    content: 'LIVE';
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

.streamer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.streamer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--live-accent);
    object-fit: cover;
}

.streamer-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.twitch-username {
    font-size: 0.9rem;
    color: #b4b4b4;
}

.premium-badge {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.premium-badge img {
    width: 24px;
    height: 24px;
}

.stream-title {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.stream-game {
    font-size: 0.9rem;
    color: var(--live-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stream-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #b4b4b4;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: var(--live-accent);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-stream {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--live-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--live-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #b4b4b4;
}

.empty-state i {
    font-size: 4rem;
    color: #555;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: 1fr;
    }
    
    .live-header h1 {
        font-size: 2rem;
    }
}
