:root {
    --primary-color: #1db954;
    --bg-dark: #0f0f0f;
    --bg-card: #181818;
    --player-bg: #282828;
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
    --accent: #1ed760;
    --danger: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: #111;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

input::placeholder {
    color: #555;
}

.input-premium {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    color: var(--primary-color) !important;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3) !important;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    color: black;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.btn:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #444;
    color: white;
}

/* Playlist Items */
.music-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: #181818;
    border: 1px solid transparent;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease-in-out;
}

.music-card:hover {
    background: #282828;
    border-color: #333;
    transform: scale(1.01);
}

.music-info {
    flex: 1;
}

.music-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.music-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Audio-Only Player Premium UI */
#player-container {
    background: var(--player-bg);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.player-ui {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-art {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.player-info {
    flex: 1;
}

.player-controls-mini {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.player-controls-mini i {
    cursor: pointer;
    transition: color 0.2s;
}

.player-controls-mini i:hover {
    color: var(--primary-color);
}

#yt-video-wrapper {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.1;
    pointer-events: none;
    overflow: hidden;
    left: -1000px;
}

/* Waveform Animation */
.waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.wave-bar {
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite alternate;
}

@keyframes wave {
    from {
        height: 5px;
    }

    to {
        height: 20px;
    }
}

.wave-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.4s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.3s;
}

.fa-spin-slow {
    animation: fa-spin 5s linear infinite;
}

@keyframes fa-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}