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

:root {
    --bg-dark: #1a1a1a;
    --bg-card: rgba(20, 20, 20, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-red: #dc2626;
    --accent-yellow: #fbbf24;
    --status-online: #10b981;
    --status-offline: #6b7280;
    --border-radius: 15px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.splash-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.splash-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: pulse 2s infinite;
}

.splash-arrow {
    font-size: 3em;
    color: var(--text-primary);
    opacity: 0.8;
    animation: bounce 1.5s infinite;
}

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

.background-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1b1b 50%, #1a1a1a 100%);
}

#background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* przycina bez rozciągania */
    z-index: -1;
}


.background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in 0.3s forwards;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    max-width: 520px;
    width: 100%;
    min-width: 300px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-in;
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-info {
    flex: 1;
}

.username {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tagline {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.3;
}

.status-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
    animation: pulse 2s infinite;
}

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

.status-indicator.offline .status-dot {
    background: var(--status-offline);
    box-shadow: none;
    animation: none;
}

.status-message {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.8em;
    margin-top: 5px;
    line-height: 1.4;
}

/* Activity / Now Playing Styles */
.activity-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.activity-art {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

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

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-title strong {
    font-weight: 700;
}

.activity-details {
    font-size: 0.75em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    margin-top: 8px;
}

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

.time-bar-progress {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 0.5s linear;
}

.time-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.65em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.social-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    flex-shrink: 0;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link:hover img {
    opacity: 1;
}

/* Social link colors removed - using local icons instead */

.video-controls {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.sound-toggle {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sound-toggle:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateY(-2px);
}

.sound-toggle.muted i {
    opacity: 0.5;
}


/* Responsive */
@media (max-width: 768px) {
    .main-container {
        align-items: flex-start;
        padding: 32px 16px calc(120px + env(safe-area-inset-bottom, 0px));
    }

    .profile-card {
        padding: 18px;
        max-width: 92vw;
        width: 100%;
        min-width: auto;
        border-radius: 18px;
    }

    .username {
        font-size: 1.4em;
    }

    .tagline {
        font-size: 0.8em;
    }

    .profile-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .profile-picture {
        width: 64px;
        height: 64px;
    }

    .status-section {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .social-links {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .video-controls {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}
