@import url('https://fonts.cdnfonts.com/css/bleeding-cowboys');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #000;
}

/* Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8) saturate(1.3) contrast(1.05);
}

/* Overlay with vignette */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.65) 100%);
}

/* Main container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 50px 20px 160px;
    width: 100%;
    max-width: 450px;
}

/* Profile picture with animated ring */
.pfp-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.pfp-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff0000,
        #ff4040,
        #cc0000,
        #ff0000,
        transparent,
        #ff0000
    );
    animation: ringRotate 3s linear infinite;
    opacity: 0.7;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pfp-ring::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: #000;
}

.pfp {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0,0,0,0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.pfp:hover {
    transform: scale(1.08);
}

/* Username - Bleeding Cowboys, no glow, clean white */
.username {
    font-family: 'Bleeding Cowboys', sans-serif;
    color: #fff;
    font-size: 3rem;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
}

/* Links widget */
.links-widget {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 30, 30, 0.3);
    border-radius: 22px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 0, 0.15);
    animation: fadeSlideUp 0.8s ease-out, widgetGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes widgetGlow {
    0%, 100% { box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.1); border-color: rgba(255, 30, 30, 0.2); }
    50% { box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3), 0 0 40px rgba(255, 0, 0, 0.1); border-color: rgba(255, 30, 30, 0.5); }
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.links-widget h2 {
    display: none;
}

/* Link buttons */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Animated gradient border on hover */
.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,50,50,0.5), transparent, rgba(255,50,50,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover::before {
    opacity: 1;
}

.link-btn:hover {
    background: rgba(200, 20, 20, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.link-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.link-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* ========== MUSIC PLAYER ========== */
.music-widget {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 92%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 30, 30, 0.3);
    border-radius: 18px;
    padding: 14px 16px;
    animation: widgetGlow 3s ease-in-out infinite;
}

.music-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-art {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-radius 0.4s ease;
    flex-shrink: 0;
}

.track-art.playing {
    border-radius: 50%;
    animation: vinylSpin 4s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-family: 'Bleeding Cowboys', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    flex-shrink: 0;
}

.visualizer .bar {
    width: 2.5px;
    background: linear-gradient(to top, #cc1010, #ff4040);
    border-radius: 1px;
    height: 3px;
}

.visualizer.active .bar {
    animation: vizBounce 0.5s ease-in-out infinite alternate;
}

.visualizer .bar:nth-child(1) { animation-delay: 0s; }
.visualizer .bar:nth-child(2) { animation-delay: 0.08s; }
.visualizer .bar:nth-child(3) { animation-delay: 0.16s; }
.visualizer .bar:nth-child(4) { animation-delay: 0.04s; }
.visualizer .bar:nth-child(5) { animation-delay: 0.12s; }
.visualizer .bar:nth-child(6) { animation-delay: 0.2s; }
.visualizer .bar:nth-child(7) { animation-delay: 0.06s; }
.visualizer .bar:nth-child(8) { animation-delay: 0.14s; }
.visualizer .bar:nth-child(9) { animation-delay: 0.02s; }
.visualizer .bar:nth-child(10) { animation-delay: 0.1s; }
.visualizer .bar:nth-child(11) { animation-delay: 0.18s; }
.visualizer .bar:nth-child(12) { animation-delay: 0.07s; }

@keyframes vizBounce {
    0% { height: 3px; }
    100% { height: 18px; }
}

/* Controls row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 30, 30, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.2), inset 0 0 8px rgba(255, 0, 0, 0.1);
}

.play-btn:hover {
    transform: scale(1.12);
    border-color: rgba(255, 50, 50, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 12px rgba(255, 0, 0, 0.15);
}

.play-btn:active {
    transform: scale(0.93);
}

.play-btn svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 3px rgba(255, 50, 50, 0.5));
}

.mute-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 0;
}

.mute-btn:hover {
    color: #ff4040;
    border-color: rgba(255, 50, 50, 0.3);
}

.mute-btn svg {
    width: 14px;
    height: 14px;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #aa1010, #e03030);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Volume - removed, using mute button instead */

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 30, 30, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 10, 10, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.08s ease-out, top 0.08s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px 160px;
    }

    .pfp-wrapper {
        width: 110px;
        height: 110px;
    }

    .pfp-ring {
        width: 122px;
        height: 122px;
    }

    .pfp {
        width: 110px;
        height: 110px;
    }

    .username {
        font-size: 2.2rem;
    }
}
