:root {
    --bg-dark: #0f0f0f;
    --card-bg: rgba(15, 15, 15, 0.9);
    --item-bg: rgba(20, 20, 20, 0.7);
    --text-white: #ffffff;
    --text-dim: #909090;
    --border: rgba(255, 255, 255, 0.03);
    
    --online: #23a55a;
    --idle: #f0b232;
    --dnd: #f23f43;
    --offline: #80848e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    height: 100vh;
    user-select: none; /* Zablokowanie zaznaczania tekstu */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* --- Background --- */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

/* --- Custom Cursor --- */
.cursor {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s linear;
}

.cursor-follower {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}

.cursor.hover { transform: translate(-50%, -50%) scale(0.5); }
.cursor-follower.hover { transform: translate(-50%, -50%) scale(1.6); background: rgba(255, 255, 255, 0.1); }

/* --- Entry Screen --- */
.entry-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-screen.fade-out { opacity: 0; visibility: hidden; transition: 0.8s; }

.entry-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    animation: entryPulse 2.5s infinite ease-in-out;
}

@keyframes entryPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Main Layout --- */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.layout-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* --- Widgets Side --- */
.widgets-side {
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget {
    padding: 18px 22px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.widget-header i { font-size: 1rem; color: var(--text-dim); }

.header-dot {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--offline);
}

.divider-mini {
    height: 1px;
    background: var(--border);
    margin: 0 -22px 14px -22px;
}

.discord-mini-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.mini-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mini-status-icon {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0f0f0f;
    background: var(--offline);
}

.mini-info h4 { font-size: 1rem; font-weight: 700; }
.mini-info p { font-size: 0.8rem; color: var(--text-dim); font-style: italic; }

.spotify-mini-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.spotify-mini-content p { font-size: 0.8rem; color: var(--text-dim); }

/* --- Discord Server Widget --- */
.server-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-icon-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.server-icon {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    background: var(--item-bg);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.server-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.server-stats, .website-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.website-stats-row {
    margin-top: 2px;
    opacity: 0.85;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.stat-item i {
    font-size: 0.75rem;
    color: #00d2ff;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.online { background: var(--online); box-shadow: 0 0 5px var(--online); }
.stat-dot.members { background: var(--text-dim); }

.header-dot.spotify { background: #1DB954; box-shadow: 0 0 8px #1DB954; }
.header-dot.discord-server { background: #5f078f; box-shadow: 0 0 8px #5f078f; }

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.6rem; /* Zmniejszona czcionka etykiet */
    letter-spacing: 0.3px;
}

.server-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    background: #23a55a;
    color: white !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.filmowo-btn {
    background: #00d2ff;
}

.filmowo-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.2);
}

/* --- Bio Stats (Integrated) --- */
.bio-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 25px;
    margin-bottom: 25px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.bio-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-stat-item i {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.bio-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-white);
    font-family: 'JetBrains Mono', monospace;
}

.bio-stat-value.online {
    color: var(--online);
}

.bio-stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--online);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--online);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* --- Profile Side --- */
.profile-side {
    width: 600px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.spotify-profile-link {
    text-decoration: none;
    color: inherit;
}

.profile-card {
    padding: 40px;
}

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

.avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

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

.profile-info-text {
    flex: 1;
}

.badges-container {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.badge-icon:hover {
    transform: scale(1.15);
}

.username {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.discord-joined {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.bio {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    height: 1.3rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* --- Social Grid --- */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-arrow {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s ease;
}

.social-item:hover .social-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-white);
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.03);
}

.view-profile-btn {
    display: inline-block;
    padding: 4px 12px;
    background: #1DB954;
    color: white;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 8px;
    transition: 0.2s;
    text-align: center;
    width: fit-content;
}

.view-profile-btn:hover {
    background: #19a34a;
    transform: scale(1.05);
}

.social-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.social-label {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.footer-right { font-family: 'JetBrains Mono', monospace; }

/* --- Volume Button --- */
.volume-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 100;
}

/* --- Status Colors --- */
.status-dot.online, .mini-status-icon.online, .header-dot.online { background: var(--online); box-shadow: 0 0 6px var(--online); }
.status-dot.idle, .mini-status-icon.idle, .header-dot.idle { background: var(--idle); }
.status-dot.dnd, .mini-status-icon.dnd, .header-dot.dnd { background: var(--dnd); }
.status-dot.offline, .mini-status-icon.offline, .header-dot.offline { background: var(--offline); }

/* --- Responsive --- */
@media (max-width: 900px) {
    * { cursor: auto !important; }
    .cursor, .cursor-follower { display: none; }
    
    body { overflow-y: auto; height: auto; }
    .main-content { padding: 40px 20px; align-items: flex-start; }
    
    .layout-container {
        flex-direction: column;
        width: 100%;
        max-width: 550px;
        gap: 20px;
    }
    
    .widgets-side { width: 100%; order: 2; }
    .profile-side { width: 100%; order: 1; }
    
    .profile-header { gap: 20px; }
    .avatar-container { width: 90px; height: 90px; }
    .username { font-size: 2rem; }
    
    .social-grid { grid-template-columns: 1fr; }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover { color: var(--text-white); }

.modal-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.crypto-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.crypto-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 10px 25px;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.crypto-tab[data-crypto="ltc"].active { background: #345d9d; color: white; border-color: #345d9d; box-shadow: 0 0 15px rgba(52, 93, 157, 0.4); }
.crypto-tab[data-crypto="btc"].active { background: #f7931a; color: white; border-color: #f7931a; box-shadow: 0 0 15px rgba(247, 147, 26, 0.4); }
.crypto-tab[data-crypto="eth"].active { background: #627eea; color: white; border-color: #627eea; box-shadow: 0 0 15px rgba(98, 126, 234, 0.4); }

.crypto-display {
    display: none;
}

.crypto-display.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.qr-container {
    width: 180px;
    height: 180px;
    background: white;
    margin: 0 auto 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crypto-address-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: relative;
    text-align: left;
}

.address-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.address-text {
    font-size: 0.85rem;
    word-break: break-all;
    padding-right: 35px;
}

.copy-addr {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.copy-addr:hover { color: var(--online); }

/* --- YouTube Background --- */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden; /* Przycina powiększone wideo */
    pointer-events: none;
}

#youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw; /* Drastycznie powiększone, by strzałki YT wylądowały poza ekranem */
    height: 150vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.8s ease;
}

@media (min-aspect-ratio: 16/9) {
    #youtube-bg { width: 150vw; height: 85vw; }
}
@media (max-aspect-ratio: 16/9) {
    #youtube-bg { width: 270vh; height: 150vh; }
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* --- Music Player Widget (Bottom Left) --- */
.music-player-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.music-player-widget.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.player-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.track-art {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

#player-title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    color: white;
}

#player-artist {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.progress-area {
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #1DB954;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
    border-radius: 3px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s ease;
    opacity: 0.8;
}

.player-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.player-btn.play-pause {
    font-size: 1.6rem;
    color: #1DB954;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.volume-container i {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.volume-slider {
    width: 70px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* --- Playlist Section --- */
.playlist-header {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    cursor: pointer; /* Cały nagłówek klika */
}

#playlist-toggle {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    color: #1DB954; /* Spotify Green for prominence */
}

.music-player-widget.playlist-open #playlist-toggle {
    transform: rotate(180deg);
}

.playlist-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-player-widget.playlist-open .playlist-drawer {
    max-height: 320px;
    margin-top: 10px;
}

.playlist-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.playlist-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 5px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(29, 185, 84, 0.15);
}

.item-thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.item-title {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.item-artist {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.item-active-icon {
    color: #1DB954;
    font-size: 0.8rem;
    display: none;
}

.playlist-item.active .item-active-icon {
    display: block;
}
