body {
    margin: 0;
    padding: 0;
    font-family: 'Monocraft', Arial, sans-serif;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Monocraft';
    src: local('Monocraft'),
         url('assets/fonts/Monocraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/media/background.gif') no-repeat center center;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
    transition: all 0.3s ease;
    margin: 5px;
}

.icon-wrapper:hover {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 12px rgba(0, 191, 255, 1);
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

#song-title {
    color: white;
    text-align: center;
}

.container {
    perspective: 1000px;
    background: rgba(66, 45, 71, 0.5);
    border-radius: 20px;
    padding: 20px;
    -webkit-backdrop-filter: blur(36px);
    backdrop-filter: blur(36px);
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0 auto;
}

.text {
    color: rgb(255, 255, 255);
}

.track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

.control-btn:hover .control-icon {
    filter: invert(39%) sepia(98%) saturate(3669%) hue-rotate(180deg) brightness(110%) contrast(120%);
}

.time-controls {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    justify-content: center;
}

.top-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}

.top-menu a {
    position: relative;
    display: inline-block;
}

.icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    filter: invert(39%) sepia(98%) saturate(3669%) hue-rotate(180deg) brightness(97%) contrast(103%);
    transition: all 0.3s ease;
}

.icon-l {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a:hover .tooltips,
.social-links a:hover .tooltipss,
.social-links a:hover .tooltipsss,
.social-links a:hover .tooltipssss,
.social-links a:hover .tooltip {
    opacity: 1;
}

.tooltip, .tooltips, .tooltipss, .tooltipsss, .tooltipssss {
    position: absolute;
    bottom: -30px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tooltips { left: 34%; }
.tooltipss { left: 50%; }
.tooltipsss { left: 67%; }
.tooltipssss { left: 83%; }

.profile {
    position: relative;
    margin-top: 20px;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(0, 191, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

h1 {
    font-family: 'Monocraft', Arial, sans-serif;
    font-weight: 700;
    margin: 20px 0;
    color: white;
}

.typewriter {
    font-family: 'Monocraft', Arial, sans-serif;
    font-size: 1.2em;
    color: #ffffff;
    margin: 0 auto;
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 3px;
    background: rgba(0, 191, 255, 0.9);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .panel {
        width: 90%;
        height: 180px;
    }

    .panel h1 {
        font-size: 28px;
    }

    .typewriter {
        font-size: 18px;
    }

    .player-panel {
        width: 90%;
    }

    .audio-player button {
        font-size: 18px;
    }

    .track-title {
        font-size: 14px;
    }

    .current-time, .duration {
        font-size: 10px;
    }

    .links {
        bottom: 15px;
    }

    .links a {
        width: 36px;
        height: 36px;
    }

    .links a i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .panel {
        width: 100%;
        height: 150px;
        margin-bottom: 15px;
    }

    .panel h1 {
        font-size: 24px;
    }

    .typewriter {
        font-size: 16px;
    }

    .player-panel {
        width: 100%;
        padding: 8px;
    }

    .audio-player {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .audio-player button {
        font-size: 16px;
    }

    .track-title {
        font-size: 12px;
        margin: 5px 0;
    }

    .progress-container {
        flex-grow: 0;
        width: 100%;
        justify-content: space-between;
    }

    .current-time, .duration {
        font-size: 10px;
    }

    .progress-bar {
        width: 100%;
    }

    .links {
        bottom: 10px;
        padding: 0 10px;
    }

    .links a {
        width: 32px;
        height: 32px;
        margin: 0 3px;
    }

    .links a i {
        font-size: 18px;
    }

    .links a::before {
        font-size: 12px;
        padding: 3px 6px;
    }
}

.discord-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 3;
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
}

.discord-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discord-menu button {
    background: rgba(0, 191, 255, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.discord-menu button:hover {
    background: rgba(0, 191, 255, 0.9);
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5em;
    }

    .typewriter {
        font-size: 1em;
    }

    .icon-wrapper {
        width: 35px;
        height: 35px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .tooltips, .tooltipss, .tooltipsss, .tooltipssss {
        display: none;
    }

    .container {
        transform: none !important;
        transition: none !important;
    }
}

@media screen and (max-width: 360px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 1.2em;
    }

    .typewriter {
        font-size: 0.9em;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    .main-container {
        padding: 10px;
    }

    .container,
    .custom-music-player {
        margin: 10px auto;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }
}

.chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 70vh;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Monocraft', 'Courier New', monospace;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
}

.chat-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: rgba(105, 205, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(12deg);
    background: rgba(105, 205, 255, 1);
    box-shadow: 0 6px 16px rgba(105, 205, 255, 0.3);
}

.chat-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.chat-header {
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    color: #69cdff;
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(105, 205, 255, 0.1);
}

.chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 120px;
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.4s ease forwards;
    word-break: break-word;
    line-height: 1.5;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background: linear-gradient(135deg, rgba(105, 205, 255, 0.15), rgba(105, 205, 255, 0.05));
    color: #fff;
    margin-left: auto;
    border: 1px solid rgba(105, 205, 255, 0.15);
}

.ai-message {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    color: #fff;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    display: flex;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(105, 205, 255, 0.1);
}

.chat-input input {
    flex-grow: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-family: 'Monocraft', 'Courier New', monospace;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(105, 205, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.chat-input button {
    background: rgba(105, 205, 255, 0.25);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input button:hover {
    background: rgba(105, 205, 255, 0.4);
    transform: translateY(-1px);
}

.chat-input button i {
    transition: transform 0.3s ease;
}

.chat-input button:hover i {
    transform: translateX(2px);
}

.loading-indicator {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(105, 205, 255, 0.1);
    color: rgba(105, 205, 255, 0.8);
    font-style: italic;
}

.loading-indicator::after {
    content: '...';
    display: inline-block;
    animation: typingDots 1.5s infinite;
}

@keyframes typingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error-message {
    background: rgba(255, 80, 80, 0.15) !important;
    border-color: rgba(255, 80, 80, 0.2) !important;
    color: #ff5050 !important;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(105, 205, 255, 0.3);
    border-radius: 4px;
}

@media (max-width: 480px) {
    .chat-container {
        width: calc(100% - 40px);
        max-height: 65vh;
        right: 20px;
        bottom: 70px;
    }
    
    .chat-toggle {
        bottom: 16px;
        right: 16px;
    }
}

.context-menu {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(105, 205, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.context-menu-item {
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(105, 205, 255, 0.1);
}