body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.horizontal-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-section {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-5px);
}

.profile-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.channel-name {
    font-size: 24px;
    margin: 10px 0;
    color: #fff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-link.discord {
    background: #5865F2;
}

.social-link.youtube {
    background: #FF0000;
}

.social-link.twitch {
    background: #9146FF;
}

.stats-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    padding-top: 60px;
    position: relative;
    margin-top: 40px;
}

.stats-title {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #fff;
    margin: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-card h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.stat-change {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-change.increase {
    color: #4CAF50;
    opacity: 1;
}

.stat-change.decrease {
    color: #f44336;
    opacity: 1;
}

.highlight-increase {
    animation: pulseGreen 2s ease-out;
}

.highlight-decrease {
    animation: pulseRed 2s ease-out;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.connection-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    font-size: 14px;
    z-index: 1000;
}

.connection-indicator.online {
    color: #4CAF50;
}

.connection-indicator.offline {
    color: #f44336;
}

.refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.status-message {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    font-size: 14px;
    color: #fff;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.error {
    opacity: 1;
    background: rgba(244, 67, 54, 0.2);
}

@keyframes pulseLeft {
    0% { box-shadow: -3px 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: -3px 0 0 5px rgba(255, 255, 255, 0); }
    100% { box-shadow: -3px 0 0 0 rgba(255, 255, 255, 0); }
}

.pulse {
    animation: pulseLeft 2s infinite;
}

@media (max-width: 900px) {
    body {
        align-items: flex-start;
    }
    
    .horizontal-layout {
        flex-direction: column;
    }
    
    .profile-section {
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 100%;
    }
    
    .horizontal-layout {
        padding: 15px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .stat-card {
        padding: 15px;
        min-height: 120px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .connection-indicator,
    .refresh-indicator {
        font-size: 12px;
        padding: 6px 12px;
    }
}