html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #0f1116;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-top: 80px;
    padding-bottom: 40px;
    overflow-x: hidden;
    overflow-y: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #0f1116;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: #fbbf24;
}

.header-actions {
    display: flex;
    align-items: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 25px 0 15px 0;
}

.section-header ion-icon {
    color: #fbbf24;
    font-size: 1.1rem;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
    max-width: 600px;
    margin: 0 auto;
}

.stream-card {
    background: #18181b;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.s-header {
    position: relative;
    height: 80px;
    background: linear-gradient(180deg, #4f46e5 0%, #312e81 100%);
    width: 100%;
}

.s-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #18181b;
    position: absolute;
    bottom: -20px;
    left: 12px;
    object-fit: cover;
    background: #000;
    z-index: 2;
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.s-body {
    padding: 25px 12px 12px 12px;
}

.s-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-topic {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.s-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.status-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.cost-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 700;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
