@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-purple: #1DB954;
    /* Spotify Green vibe to match industry standard or keep purple but cleaner? User said remove purple gradient but maybe keep branding color. Let's use a stylish white/grey accent for premium look, or keep purple but very subtle. Let's stick to the user request 'orbina el degradado morado' -> eliminate purple gradient. We can keep the purple ACCENT button but background should be dark. */
    --primary-accent: #7E35DC;
    /* Keeping branding */
    --dark-bg: #000000;
    --card-bg: #121212;
    --card-hover: #282828;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --sidebar-width: 240px;
    --player-height: 90px;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Anti-FOUC (Flash of Unstyled Content) */
body {
    font-family: 'Inter', sans-serif;
    /* Cleaner font */
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow: hidden;
    /* Fix double scrollbar issues */
    opacity: 1;
    /* Changed from 0 to 1 to fix black screen issue */
    transition: opacity 0.2s ease-in;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: #000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
}

.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    background: #121212;
    padding-bottom: 90px;
    /* Flat dark, no gradients */
    position: relative;
    border-radius: 8px;
    /* Slight roundness like modern web apps */
    margin: 8px 8px 0 0;
}

.player-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: var(--player-height);
    background-color: #000;
    border-top: 1px solid #282828;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

/* Components */
.btn {
    padding: 12px 24px;
    border-radius: 500px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.04);
    background-color: #904ce8;
}

.input-field {
    background-color: #121212;
    border: 1px solid #333;
    color: white;
    padding: 14px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 14px;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-accent);
    background-color: #1a1a1a;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Auth Screens */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
    /* Pure black instead of purple gradient */
}

.auth-box {
    width: 100%;
    max-width: 450px;
    /* Slightly wider */
    padding: 60px 40px;
    /* More padding */
    background: #000;
    /* Blend with bg */
    text-align: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, .3);
    min-height: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, .5);
}

/* Utilities */
.track-card {
    background-color: #181818;
    transition: background-color .3s ease;
}

.track-card:hover {
    background-color: #282828;
}

.track-img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}