:root {
    --bg-color: #000000;
    --card-bg: rgba(0, 0, 0, 0.4);
    --text-primary: #f5f5f5;
    --text-secondary: rgba(245, 245, 245, 0.65);
    --accent: #ff2d55;
    --accent-2: #7c3aed;
    --border: rgba(255, 255, 255, 0.08);
    /* Performance variables */
    --fast-transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --gpu-accelerated: translateZ(0);
}

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

/* Optimize rendering */
html {
    scroll-behavior: smooth;
    /* Enable GPU acceleration */
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform;
    /* Reduce paint complexity */
    contain: layout style paint;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Performance optimizations */
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform;
    contain: layout style paint;
    /* Optimize scrolling */
    overscroll-behavior: contain;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: -2;
}

.bg-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
    contain: layout style paint;
    backface-visibility: hidden;
}

.deleted-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    background: rgba(255, 45, 85, 0.22);
    border: 1px solid rgba(255, 45, 85, 0.42);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
    color: rgba(245, 245, 245, 0.95);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
    contain: layout style paint;
    backface-visibility: hidden;
}

.deleted-btn:hover {
    background: rgba(255, 45, 85, 0.28);
    border-color: rgba(255, 45, 85, 0.55);
}

.deleted-btn:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.75);
    outline-offset: 4px;
}

.back-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
    color: rgba(245, 245, 245, 0.95);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
    contain: layout style paint;
    backface-visibility: hidden;
}

.back-btn:hover {
    background: rgba(10, 10, 10, 0.68);
    transform: translateY(-2px);
}

.back-btn:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 4px;
}

/* Contact Page Styles - Clean Black Design */
.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
    will-change: opacity, transform;
}

.contact-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: translateZ(0);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.9);
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.875rem;
    color: rgba(245, 245, 245, 0.95);
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
    transform: translateZ(0);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.6);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

.submit-btn {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(255, 45, 85, 0.7));
    border: 1px solid rgba(124, 58, 237, 0.9);
    color: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: 1rem;
    transform: translateZ(0);
    will-change: transform, background;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(255, 45, 85, 0.8));
    border-color: rgba(124, 58, 237, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.submit-btn:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.75);
    outline-offset: 4px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
}

.info-item i {
    color: rgba(124, 58, 237, 0.8);
}

.bg-toggle:hover {
    background: rgba(10, 10, 10, 0.68);
    transform: translateY(-2px) translateZ(0);
}

.bg-toggle:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 4px;
}

.contact-btn {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(124, 58, 237, 0.42);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
    color: rgba(245, 245, 245, 0.95);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
    contain: layout style paint;
    backface-visibility: hidden;
}

.contact-btn:hover {
    background: rgba(124, 58, 237, 0.28);
    border-color: rgba(124, 58, 237, 0.55);
    transform: translateY(-2px);
}

.contact-btn:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.75);
    outline-offset: 4px;
}

button {
    font: inherit;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Enter Screen */
.enter-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.enter-content {
    text-align: center;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    text-transform: uppercase;
    color: var(--text-primary);
}

.blink {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    opacity: 0.3;
    animation: blink 1.5s infinite;
    color: var(--text-primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Performance optimizations */
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform;
    contain: layout style paint;
    /* Optimize background rendering */
    will-change: background-image;
    backface-visibility: hidden;
}

.background-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: 0;
    /* Performance optimizations */
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: opacity, transform;
    contain: layout style paint;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.background-layer.layer-a {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.profile-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    will-change: opacity, transform;
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    contain: layout style paint;
    backface-visibility: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.profile-card::before {
    content: none;
}

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

.avatar-container {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto 1.75rem;
}

.avatar-container::before {
    display: none;
}

.avatar-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.avatar {
    display: none;
}

.profile-info h1 {
    font-size: 3.1rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.02em;
    color: rgba(245, 245, 245, 0.95);
    letter-spacing: 0.05em;
}

.profile-info p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 1.15rem;
    line-height: 1.4;
    max-width: 300px;
    margin: 0 auto;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 2rem;
}

.flag-badge {
    font-size: 1.1em;
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(255, 45, 85, 0.18));
}

.social-row {
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.92);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background, border-color;
    contain: layout style paint;
    backface-visibility: hidden;
}

.social-icon:hover {
    transform: translateY(-2px) translateZ(0);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.social-icon:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 4px;
}

.discord-live-panel {
    margin: 1.6rem auto 0;
    width: min(100%, 560px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 0.95rem;
    text-align: left;
}

.discord-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.discord-live-header h2 {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.9);
    letter-spacing: 0.03em;
    margin: 0;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 45, 85, 0.34);
    border: 1px solid rgba(255, 45, 85, 0.55);
}

.live-dot.offline {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.discord-live-subtitle {
    font-size: 0.83rem;
    color: rgba(245, 245, 245, 0.62);
    margin: 0 0 0.8rem;
}

.discord-live-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.discord-live-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.discord-live-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.discord-live-type {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 45, 85, 0.86);
}

.discord-live-text {
    font-size: 0.87rem;
    color: rgba(245, 245, 245, 0.9);
    line-height: 1.35;
}

.discord-live-time {
    font-size: 0.74rem;
    color: rgba(245, 245, 245, 0.52);
    white-space: nowrap;
}

.discord-live-empty {
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.55rem;
    padding: 0.75rem;
    text-align: center;
}

.discord-svg {
    filter: drop-shadow(0 0 14px rgba(255, 45, 85, 0.15));
}

.discord-card {
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto;
    width: fit-content;
    text-align: left;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('avatar.jpg');
    background-size: cover;
}

.discord-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b0000;
}

.discord-status {
    font-size: 0.7rem;
    color: rgba(139, 0, 0, 0.4);
}

.view-counter {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.35);
}

/* Music Player Bottom */
.music-player {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 560px;
    padding: 0 2rem;
}

.player-container {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
}

.player-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.18), rgba(124, 58, 237, 0.14));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.92);
}

.player-details {
    flex: 1;
}

.player-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.92);
    margin-bottom: 0.25rem;
}

.player-artist {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.55);
    margin-bottom: 0.4rem;
}

.player-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.45);
}

.progress-container {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    overflow: visible;
    cursor: pointer;
    touch-action: none;
}

.progress-bar {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 45, 85, 1), rgba(124, 58, 237, 1));
    width: 0%;
    transition: width 120ms linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(245, 245, 245, 0.95);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(0, 0, 0, 0.35);
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(245, 245, 245, 0.9);
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, color;
}

.icon-btn:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 4px;
    border-radius: 0.5rem;
}

/* Music Library */
.music-library {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 100%;
    max-width: 560px;
    max-height: 400px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.7);
    display: none;
    overflow: hidden;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 245, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all var(--fast-transition);
    position: relative;
    z-index: 10;
}

.close-btn:hover {
    color: rgba(245, 245, 245, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.music-library.active {
    display: block;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.library-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.92);
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.55);
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: rgba(245, 245, 245, 0.9);
}

.close-btn:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 2px;
}

.library-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.library-list::-webkit-scrollbar {
    width: 6px;
}

.library-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

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

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

.library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
    transform: translateZ(0);
    will-change: transform, background;
}

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

.library-item:last-child {
    margin-bottom: 0;
}

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

.song-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.92);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.9);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.75rem;
    transform: translateZ(0);
    will-change: transform, background, color;
}

.play-btn:hover {
    background: rgba(255, 45, 85, 0.2);
    transform: scale(1.05);
}

.play-btn:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 2px;
}

/* Settings */
.settings-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#settings-toggle {
    background: transparent;
    border: none;
    color: rgba(245, 245, 245, 0.35);
    cursor: pointer;
}

.settings-content {
    position: absolute;
    top: 40px;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    border-radius: 0.75rem;
    width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.settings-content label {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
    color: rgba(245, 245, 245, 0.55);
}

.settings-content input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 245, 245, 0.9);
    padding: 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.settings-content button {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(124, 58, 237, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 245, 245, 0.92);
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.settings-content button:hover {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.28), rgba(124, 58, 237, 0.22));
}

/* Legal Notice Page */
.legal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
    will-change: opacity, transform;
    margin-bottom: 2rem;
}

.legal-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    contain: layout style paint;
    backface-visibility: hidden;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin: 0;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.legal-text-section {
    text-align: center;
    max-width: 600px;
}

.legal-main-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(245, 245, 245, 0.95);
    margin-bottom: 1rem;
    text-align: center;
}

.legal-subtext {
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-description {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.legal-video-section {
    text-align: center;
    width: 100%;
}

.legal-video-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.video-container {
    display: inline-block;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.music-library-full {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 100%;
    max-width: 560px;
    max-height: 400px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    display: none;
    overflow: hidden;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
}

.contact-form.active {
    display: block;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h3 {
    color: rgba(245, 245, 245, 0.95);
    font-size: 1.1rem;
    font-weight: 600;
}

.email-form {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.9rem;
    transition: all var(--fast-transition);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 45, 85, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: rgba(245, 245, 245, 0.9);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
}

.form-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.submit-btn,
.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fast-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover,
.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(245, 245, 245, 0.3);
    border-top-color: rgba(245, 245, 245, 0.9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Page */
.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(245, 245, 245, 0.95);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-header p {
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 245, 245, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--fast-transition);
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 245, 0.9);
    transform: translateY(-1px);
}

.contact-form-full {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-full .email-form {
    padding: 0;
}

.contact-form-full .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-full .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-full .form-group label {
    display: block;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form-full .form-group input,
.contact-form-full .form-group textarea,
.contact-form-full .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.9rem;
    transition: all var(--fast-transition);
    box-sizing: border-box;
}

.contact-form-full .form-group input:focus,
.contact-form-full .form-group textarea:focus,
.contact-form-full .form-group select:focus {
    outline: none;
    border-color: rgba(255, 45, 85, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form-full .form-group input::placeholder,
.contact-form-full .form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

.contact-form-full .form-group select {
    cursor: pointer;
}

.contact-form-full .form-group select option {
    background: #1a1a1a;
    color: rgba(245, 245, 245, 0.9);
}

.contact-form-full .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-form-full .form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
}

.contact-form-full .form-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-form-full .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.contact-form-full .submit-btn,
.contact-form-full .reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fast-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form-full .submit-btn:hover,
.contact-form-full .reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-form-full .submit-btn:active {
    transform: translateY(0);
}

.contact-form-full .submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form-full .submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(245, 245, 245, 0.3);
    border-top-color: rgba(245, 245, 245, 0.9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.contact-form-full .reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-form-full .reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-full {
        padding: 1.5rem;
    }
    
    .contact-form-full .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-full .form-actions {
        flex-direction: column;
    }
    
    .contact-form-full .submit-btn,
    .contact-form-full .reset-btn {
        width: 100%;
        justify-content: center;
    }
}


.library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    transition: all var(--fast-transition);
    cursor: pointer;
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
    contain: layout style paint;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.library-item:hover {
    background: #000000;
    transform: translateY(-2px) var(--gpu-accelerated);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.95);
    margin-bottom: 0.25rem;
}

.song-artist {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.7);
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.9);
    cursor: pointer;
    transition: all var(--fast-transition);
    transform: var(--gpu-accelerated);
    -webkit-transform: var(--gpu-accelerated);
    will-change: transform, background;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05) var(--gpu-accelerated);
}

.legal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.legal-copyright {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.5);
    margin: 0;
}

@media (max-width: 600px) {
    .legal-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .legal-card {
        padding: 1.5rem;
    }
    
    .legal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-main-text {
        font-size: 1.5rem;
    }
    
    .legal-subtext {
        font-size: 1rem;
    }
    
    .legal-description {
        font-size: 0.9rem;
    }
    
    .legal-video-section h3 {
        font-size: 1.25rem;
    }
    
    .video-container video {
        max-width: 100%;
    }
}

/* Legal Notice Footer */
.legal-notice {
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    padding: 0.5rem 1rem;
    margin-top: auto;
}

.legal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.legal-text {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
}

.legal-text-link {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.legal-text-link:hover {
    color: rgba(255, 45, 85, 0.9);
    text-decoration: underline;
}

.legal-text-link:focus-visible {
    outline: 2px solid rgba(255, 45, 85, 0.55);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

.legal-video {
    display: none; /* Hide video in footer */
}

@media (max-width: 600px) {
    .legal-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-video video {
        width: 250px;
        height: auto;
    }
    
    .main-content {
        padding-bottom: 12rem;
    }
}

@media (max-width: 600px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .main-content {
        min-height: calc(100vh - 250px);
        height: auto;
        justify-content: flex-start;
        padding: 5rem 1rem 2rem;
        overflow: visible;
    }

    .profile-card {
        max-width: 100%;
    }

    .profile-info h1 {
        font-size: 2.25rem;
    }

    .profile-info p {
        font-size: 1rem;
        max-width: 100%;
    }

    .music-player {
        bottom: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .player-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .player-details {
        min-width: 100%;
        text-align: center;
    }

    .player-actions {
        width: 100%;
        justify-content: center;
        gap: 0.9rem;
    }

    .player-timeline {
        gap: 0.5rem;
    }

    .progress-container {
        height: 4px;
    }

    .deleted-btn {
        height: 42px;
        padding: 0 14px;
        border-radius: 12px;
        letter-spacing: 0.06em;
    }

    .contact-container {
        padding: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .back-btn {
        height: 42px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 0.8rem;
    }
}

