/* TikTok Realtime Embed CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

::-webkit-scrollbar {
    display: none;
}

.embed-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 280px;
    height: 76px;
}

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

.embed-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00f2ea;
}

.tiktok-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.tiktok-badge svg {
    width: 10px;
    height: 10px;
}

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

.embed-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.main-odo {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.embed-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark theme variant */
.embed-container.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .embed-name,
.dark .main-odo {
    color: #ffffff;
}

.dark .embed-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Compact variant for smaller spaces */
.embed-container.compact {
    padding: 6px 10px;
    height: 60px;
    min-width: 220px;
}

.compact .embed-avatar img {
    width: 44px;
    height: 44px;
}

.compact .tiktok-badge {
    width: 16px;
    height: 16px;
}

.compact .tiktok-badge svg {
    width: 8px;
    height: 8px;
}

.compact .embed-name {
    font-size: 12px;
}

.compact .main-odo {
    font-size: 20px;
}

.compact .embed-label {
    font-size: 9px;
}

/* Gradient border variant */
.embed-container.gradient-border {
    background: white;
    border: none;
    position: relative;
}

.embed-container.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 300px) {
    .embed-container {
        padding: 6px 8px;
        gap: 8px;
        height: 64px;
        min-width: auto;
    }
    
    .embed-avatar img {
        width: 48px;
        height: 48px;
    }
    
    .embed-name {
        font-size: 12px;
        max-width: 120px;
    }
    
    .main-odo {
        font-size: 22px;
    }
    
    .embed-label {
        font-size: 10px;
    }
}
