:root {
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #2d3436;
    --twitch-color: #9146FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 90%; 
    max-width: 450px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
    margin: 20px; 
}

.profile-pic-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: #45a366;
    border: 3px solid white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.status-badge.live {
    background-color: #9146FF;
    animation: pulse-purple 2s infinite;
    box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.7);
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(145, 70, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(145, 70, 255, 0); }
}

h1.gradient-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff69b4 0%, #ff69b4 60%, #00bfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px black;
    filter: drop-shadow(4px 4px 0px #000000);
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 1px;
}

.bio {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
}

.icon-box {
    width: 35px;
    display: flex;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 10px;
}

.social-link:hover {
    transform: scale(1.02) translateY(-2px);
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-link.twitch:hover { color: var(--twitch-color); }
.social-link.youtube:hover { color: #FF0000; }
.social-link.discord:hover { color: #5865F2; }
.social-link.instagram:hover { color: #C13584; }
.social-link.tiktok:hover { color: #000000; }
.social-link.twitter:hover { color: #1DA1F2; }

.footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

.sparkle {
    position: absolute;
    color: white;
    opacity: 0.6;
    animation: twinkle 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.live-box-link {
    text-decoration: none;
    display: block;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.live-box-link:hover {
    transform: scale(1.02);
}

.live-box {
    background: rgba(145, 70, 255, 0.15);
    border: 2px solid #9146FF;
    border-radius: 16px;
    padding: 1.2rem;
    text-align: left;
    color: white;
    position: relative;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.2);
}

.live-header {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px 12px;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.live-header .dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff4757;
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink { 
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.stream-title-display {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stream-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.game-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 8px;
    color: #e0c8ff;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-text {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 380px) {
    .container {
        padding: 1.5rem 1rem;
        width: 95%;
        margin: 10px;
    }
    
    h1.gradient-text { font-size: 2rem; }
    
    .social-link {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 2.5rem;
    }

    .social-link:active {
        transform: scale(0.98);
    }
}