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

:root {
    --theme-color: #e11d48; /* rose néon */
    --icon-color: #22d3ee;
    --primary-text-color: #f9fafb;
    --secondary-text-color: #9ca3af;
    --background-color: #020617;
    --box-color: #020617;
    --box-opacity: 100;
    --box-width: 820px;
    --box-spacing: 28px;
    --box-blur: 26px;
    --box-radius: 18px;
    --box-shadow-color: #020617;
    --box-shadow-opacity: 80;
    --border-width: 1px;
    --border-color: #1f2937;
    --border-opacity: 100;
    --border-style: solid;
    --avatar-radius: 999px;
    --reveal-screen-blur: 18px;
}

body {
    font-family: 'Unbounded', sans-serif;
    background:
        radial-gradient(circle at top left, #0f172a 0, #020617 45%),
        radial-gradient(circle at bottom right, #020617 0, #000000 55%);
    color: var(--primary-text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 15;
    opacity: 0.3;
}

/* Écran de révélation */
.reveal-screen-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--reveal-screen-blur));
    -webkit-backdrop-filter: blur(var(--reveal-screen-blur));
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.reveal-screen-blur.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.reveal-text {
    color: var(--primary-text-color);
    font-size: 1.125rem;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 1rem;
    text-align: center;
    user-select: none;
    animation: fadeIn 0.5s ease;
}

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

/* Vidéo de fond */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.05);
    pointer-events: none;
}

.background-color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 0;
    pointer-events: none;
}

/* Contenu principal */
main {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    padding: 80px 16px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

main.visible {
    opacity: 1;
    transform: translateY(0);
}

main.hidden {
    display: none;
}

.container {
    max-width: var(--box-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--box-spacing);
}

/* Box style */
.box-style {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 55%),
                rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(var(--box-blur));
    -webkit-backdrop-filter: blur(var(--box-blur));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--box-radius);
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.95);
    padding: 22px 22px 20px;
    position: relative;
    animation: slideUp 0.35s ease;
    overflow: hidden;
}

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

/* Banner */
.banner-container {
    margin: -24px -24px 0 -24px;
    overflow: hidden;
    border-radius: var(--box-radius) var(--box-radius) 0 0;
}

.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(1.15);
}

/* Contenu section */
.content-section {
    margin-top: -48px;
    padding: 18px 8px 4px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

/* Avatar */
.avatar-container {
    position: relative;
    margin: 0;
}

.avatar-wrapper {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    height: 96px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: var(--avatar-radius);
    border: 2px solid rgba(248, 113, 113, 0.5);
    object-fit: cover;
    box-shadow: 0 0 25px rgba(248, 113, 113, 0.45);
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    margin: -4px;
    width: 24px;
    height: 24px;
}

/* Username section */
.username-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 10;
    flex: 1;
}

.username {
    color: var(--primary-text-color);
    font-size: 1.35rem;
    font-weight: 600;
    text-align: left;
    word-break: break-word;
    text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

/* Badge container */
.badge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-item {
    position: relative;
    z-index: 20;
}

.badge-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
}

.badge-button:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.badge-button svg {
    fill: var(--theme-color);
    filter: drop-shadow(0 0 3.5px var(--theme-color));
}

.badge-item .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(4px) scale(0.9);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--box-radius);
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.badge-item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.tag {
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 3px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-text-color);
    user-select: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Links */
.links-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.link-item {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    text-decoration: none;
}

.link-item:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.link-icon svg {
    fill: #4D4FB7;
    filter: drop-shadow(0 0 3.5px #4D4FB7);
}

.link-item .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(4px) scale(0.9);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--box-radius);
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.link-item .tooltip::after {
    content: '→';
    font-size: 0.875rem;
}

/* Discord box */
.discord-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.discord-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.discord-right {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 40%;
    justify-content: flex-end;
}

.discord-avatar-placeholder {
    aspect-ratio: 1;
    height: 64px;
    border-radius: var(--avatar-radius);
    border: var(--border-width) solid rgba(78, 74, 70, calc(var(--border-opacity) / 100));
    background: rgba(255, 255, 255, 0.1);
}

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

.discord-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discord-loading {
    color: var(--primary-text-color);
    font-size: 1.125rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

.discord-name {
    color: var(--primary-text-color);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
}

.discord-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-status-text {
    color: var(--secondary-text-color);
    font-size: 0.875rem;
    margin: 0;
}

.discord-bio {
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

.discord-custom-status {
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

.discord-rpc-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: var(--border-width) solid rgba(78, 74, 70, calc(var(--border-opacity) / 100));
    object-fit: cover;
}

.discord-rpc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
}

.discord-rpc-title {
    font-weight: 500;
    color: var(--primary-text-color);
}

.discord-rpc-subtitle,
.discord-rpc-time {
    color: var(--secondary-text-color);
}

.discord-rpc-progress-container {
    margin-top: 2px;
}

.discord-rpc-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.discord-rpc-progress-filled {
    height: 100%;
    width: 0%;
    background: var(--theme-color);
    border-radius: 2px;
    transition: width 0.25s linear;
}

.hidden {
    display: none !important;
}

/* Spotify box */
.spotify-box {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.spotify-embed {
    width: 100%;
    height: 80px;
    border: none;
    display: block;
}

/* Audio box */
.audio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 18px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.audio-cover {
    aspect-ratio: 1;
    width: 64px;
    height: 64px;
    border-radius: var(--avatar-radius);
    border: var(--border-width) solid rgba(78, 74, 70, calc(var(--border-opacity) / 100));
    object-fit: cover;
}

.audio-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-info {
    margin-bottom: 4px;
}

.audio-title {
    color: var(--primary-text-color);
    font-size: 0.875rem;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.2;
}

.audio-progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-time {
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    min-width: 40px;
    text-align: center;
}

.audio-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.audio-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.audio-progress-filled {
    height: 100%;
    background: var(--theme-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-progress-indicator {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--theme-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.audio-progress-container:hover .audio-progress-indicator {
    opacity: 1;
}

.audio-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    transition: transform 0.3s, filter 0.3s;
}

.audio-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.audio-btn svg {
    fill: currentColor;
    filter: drop-shadow(0 0 3.5px currentColor);
    width: 20px;
    height: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-bar-container {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.volume-filled {
    height: 100%;
    background: var(--theme-color);
    border-radius: 2px;
    width: 10%;
    transition: width 0.1s linear;
}

.volume-indicator {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--theme-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-bar-container:hover .volume-indicator {
    opacity: 1;
}

/* Views counter */
.views-counter {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 30;
}

.views-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--box-blur));
    -webkit-backdrop-filter: blur(var(--box-blur));
    border: var(--border-width) solid rgba(78, 74, 70, calc(var(--border-opacity) / 100));
    border-radius: var(--box-radius);
    padding: 6px 12px;
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

.views-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.views-btn svg {
    fill: var(--theme-color);
    filter: drop-shadow(0 0 3.5px var(--theme-color));
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .box-style {
        padding: 16px;
    }
    
    .avatar-wrapper {
        height: 80px;
    }

    .content-section {
        flex-direction: column;
        align-items: center;
        padding: 16px 8px 0;
    }

    .username-section {
        align-items: center;
        text-align: center;
    }
    
    .username {
        font-size: 1.25rem;
    }
    
    .banner-image {
        height: 120px;
    }
    
    .content-section {
        margin-top: -40px;
    }
}

