* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #6A1B9A 0%, #8A2BE2 50%, #9C27B0 100%);
    min-height: 100vh;
    color: #F5F0E1;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #F5F0E1;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Wrapper - Layout en 3 colonnes */
.content-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* LIVE Badge */
.live-badge {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.6s ease-out, pulse 2s infinite;
    flex-wrap: wrap;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.watch-button {
    padding: 10px 20px;
    background: white;
    color: #9146FF;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.watch-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Left Card (gauche) - Mini Player + Chat */
.left-card {
    background: rgba(28, 37, 38, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 0;
    border: 2px solid rgba(186, 85, 211, 0.3);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    overflow: hidden;
    animation: slideDown 0.6s ease-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-container {
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.chat-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.chat-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Links Section (centre) */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Title au-dessus des boutons */
.main-title {
    color: #F5F0E1;
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 0 20px #BA55D3;
    text-align: center;
    margin-bottom: 10px;
    animation: slideDown 0.6s ease-out;
}

/* Profile Section (droite) */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 650px;
    justify-content: center;
}

/* Stream Info */
.stream-info {
    display: none;
    background: rgba(28, 37, 38, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(186, 85, 211, 0.3);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
    animation: slideDown 0.6s ease-out;
}

.stream-title {
    font-size: 18px;
    font-weight: 700;
    color: #F5F0E1;
    margin-bottom: 12px;
    text-shadow: 0 0 10px #BA55D3;
    line-height: 1.4;
}

.stream-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

.stream-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Profile */
.profile {
    text-align: center;
    background: rgba(28, 37, 38, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid rgba(186, 85, 211, 0.3);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(186, 85, 211, 0.5);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    background: rgba(28, 37, 38, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio {
    color: rgba(245, 240, 225, 0.9);
    font-size: 18px;
    font-weight:  600;
    margin-bottom: 5px;
}

.tagline {
    color: rgba(245, 240, 225, 0.8);
    font-size: 16px;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(28, 37,  38, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-decoration: none;
    color: #F5F0E1;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(186, 85, 211, 0.3);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
    position: relative;
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #8A2BE2, #BA55D3);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link:hover::before {
    transform: scaleY(1);
}

.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
    border-color: rgba(186, 85, 211, 0.6);
}

.link i:first-child {
    font-size: 24px;
    width: 32px;
    height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BA55D3;
}

.link .custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.link span {
    color: #F5F0E1;
    font-weight: 600;
}

.link i:last-child {
    font-size: 12px;
    color: rgba(245, 240, 225, 0.5);
    margin-left: 8px;
}

/* Link Live State */
.link-live {
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%) !important;
    border-color: #9146FF !important;
    animation: liveGlow 2s infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(145, 70, 255, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(145, 70, 255, 0.7); }
}

.link-live:hover {
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.8) !important;
}

/* Primary Link (Twitch) */
.link-primary {
    background: linear-gradient(135deg, #8A2BE2, #BA55D3);
    border-color: #BA55D3;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.link-primary:hover {
    box-shadow: 0 8px 28px rgba(186, 85, 211, 0.6);
    transform: translateY(-2px) scale(1.02);
}

.link-primary i:first-child {
    color: #F5F0E1;
}

/* VIP Link (Sub) */
.link-vip {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(186, 85, 211, 0.6));
    border-color: #BA55D3;
    border-width: 3px;
    font-size: 17px;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.link-vip:hover {
    box-shadow: 0 8px 28px rgba(186, 85, 211, 0.7);
    transform: translateY(-2px) scale(1.02);
}

.link-vip .custom-icon {
    width: 32px;
    height: 32px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

.footer-text {
    color: rgba(245, 240, 225, 0.9);
    font-size: 14px;
    margin-bottom: 10px;
}

.goat-counter {
    color: #F5F0E1;
    font-size: 18px;
    font-weight: 700;
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px #BA55D3;
}

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

/* ========== RESPONSIVE DESIGN ========== */

/* Tablettes */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body {
        align-items: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .container {
        padding: 30px 20px;
    }

    .left-card {
        order: 1;
    }

    .player-container {
        aspect-ratio: 16/9;
        min-height: 300px;
    }

    .chat-container {
        height: 300px;
    }

    .main-title {
        font-size: 36px;
        order: 0;
    }

    .links-section {
        order: 2;
    }

    .profile-section {
        order: 3;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .container {
        padding: 20px 15px;
    }

    .content-wrapper {
        gap: 20px;
    }

    .player-container {
        aspect-ratio: 16/9;
        min-height: 200px;
    }

    .chat-container {
        height: 250px;
    }

    .main-title {
        font-size: 28px;
    }

    .profile {
        padding: 20px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .bio {
        font-size: 16px;
    }

    .tagline {
        font-size: 14px;
    }

    .link {
        padding: 14px 18px;
        font-size: 14px;
    }

    .link-primary {
        font-size: 15px;
    }

    .link-vip {
        font-size: 15px;
    }

    .link i:first-child {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    .link .custom-icon {
        width: 28px;
        height: 28px;
    }

    .link-vip .custom-icon {
        width: 28px;
        height: 28px;
    }

    .stream-meta {
        gap: 12px;
        font-size: 12px;
    }

    .live-badge {
        padding: 12px 15px;
        gap: 10px;
    }

    .live-text {
        font-size: 14px;
    }

    .watch-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    footer {
        margin-top: 30px;
        padding: 15px;
    }

    .footer-text {
        font-size: 12px;
    }

    .goat-counter {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    .player-container {
        aspect-ratio: 16/9;
        min-height: 180px;
    }

    .chat-container {
        height: 200px;
    }

    .main-title {
        font-size: 24px;
    }

    .profile {
        padding: 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .bio {
        font-size: 14px;
    }

    .tagline {
        font-size: 13px;
    }

    .link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .link-primary {
        font-size: 14px;
    }

    .link-vip {
        font-size: 14px;
    }

    .link i:first-child {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }

    .link .custom-icon {
        width: 24px;
        height: 24px;
    }

    .link-vip .custom-icon {
        width: 24px;
        height: 24px;
    }

    .link i:last-child {
        font-size: 10px;
        margin-left: 6px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(28, 37, 38, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(186, 85, 211, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(186, 85, 211, 0.7);
}
