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

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #1DB954;
    --secondary-color: #191414;
    --accent-color: #1ed760;
    --danger-color: #ff4444;
    --warning-color: #ff9500;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --background: #121212;
    --surface: #181818;
    --surface-hover: #282828;
    --border: #282828;
    --gradient: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(29, 185, 84, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(30, 215, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(29, 185, 84, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Floating Music Notes */
.music-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.music-note {
    position: absolute;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Song Card Animations */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(20px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes swipeUpOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: var(--primary-color);
    }
}

/* Streak Animation */
.streak-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: streakPop 3s ease-out forwards;
    pointer-events: none;
}

.streak-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(29, 185, 84, 0.5);
    text-align: center;
    animation: streakBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.streak-fire {
    font-size: 4rem;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

.streak-number {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 0;
}

.streak-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.streak-record {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    animation: recordPulse 1s ease-in-out infinite;
}

@keyframes streakPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes streakBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fireFlicker {
    0% {
        transform: scale(1) rotate(-5deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: scale(1.1) rotate(5deg);
        filter: hue-rotate(10deg);
    }
}

@keyframes recordPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    top: -10px;
    animation: confettiFall 2s ease-out forwards;
    opacity: 0.8;
}

.confetti:nth-child(2n) {
    background: var(--accent-color);
}

.confetti:nth-child(3n) {
    background: #ffd700;
}

.confetti:nth-child(4n) {
    background: #ff6b6b;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.streak-milestone {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    animation: milestoneGlow 1.5s ease-in-out infinite;
}

@keyframes milestoneGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

/* Posted Today Message */
.posted-today-message {
    animation: fadeInScale 0.5s ease-out;
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(29, 185, 84, 0.6);
    }
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}



/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.landing-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.landing-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(29, 185, 84, 0.8));
    }
}

.tagline {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.landing-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.3);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

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

/* Authentication Pages */
.auth-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(29, 185, 84, 0.6);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

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

.btn-block {
    width: 100%;
}

.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    font-size: 1.2rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(29, 185, 84, 0.1);
    transform: scale(1.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.btn-logout {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-spotify {
    background: #1DB954;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    margin-top: 1rem;
}

/* Navigation */
.navbar {
    background: var(--surface);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-width: 100vw;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-align: center;
}

.btn-logout-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-logout-icon:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger-color);
    transform: scale(1.1);
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 0.35rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    width: 100%;
    min-width: 100vw;
}

/* Desktop Navigation - hidden by default */
.desktop-nav {
    display: none;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.7rem;
    flex: 1;
    text-align: center;
}

.nav-link:hover {
    background: rgba(29, 185, 84, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active i {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link span {
    font-size: 0.65rem;
}

/* User Panel */
.user-panel {
    position: relative;
    margin-left: auto;
}

.user-menu-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.user-menu-btn:hover {
    background: rgba(29, 185, 84, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-header {
    padding: 1rem;
    background: rgba(29, 185, 84, 0.1);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.user-menu-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.user-menu-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
}

.user-menu-item:hover {
    background: rgba(29, 185, 84, 0.05);
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-item-content i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-menu-divider {
    height: 2px;
    background: var(--border);
    margin: 0.5rem 0;
}

.user-menu-btn-item {
    cursor: pointer;
    font-weight: 500;
}

.user-menu-btn-item:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger-color);
}

.toggle-switch-small {
    width: 50px;
    height: 28px;
}

.toggle-switch-small .toggle-slider:before {
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
}

.toggle-switch-small input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 100px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Streak Banner */
.streak-banner {
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streak-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.streak-info i {
    font-size: 2.5rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.streak-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.streak-info p {
    color: rgba(255, 255, 255, 0.9);
}

.streak-keeper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid gold;
}

.streak-keeper i {
    color: gold;
    font-size: 1.5rem;
}

/* Post Card */
.post-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.2);
}

.post-card h3 {
    margin-bottom: 1rem;
}

/* Currently Playing Section */
.currently-playing {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.15), rgba(30, 215, 96, 0.1));
    border: 2px solid rgba(29, 185, 84, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(29, 185, 84, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
    }
}

.currently-playing-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.currently-playing-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.currently-playing-content span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.currently-playing-content strong {
    color: var(--primary-color);
}

.btn-share-current {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-share-current:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.post-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.song-item:hover {
    background: var(--surface-hover);
}

.song-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.song-info {
    flex: 1;
}

.song-info h4 {
    margin-bottom: 0.25rem;
}

.song-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.selected-song {
    margin-top: 2rem;
    transition: all 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.selected-song.sending {
    animation: swipeUpOut 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.selected-song .song-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(145deg, var(--surface), var(--background));
    border-radius: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
    cursor: grab;
    position: relative;
    will-change: transform;
}

.selected-song .song-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.selected-song .song-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 8px var(--surface),
        0 0 0 10px rgba(29, 185, 84, 0.3),
        inset 0 0 50px rgba(255, 255, 255, 0.05);
    transform: translateZ(50px);
    transition: all 0.3s ease;
    animation: vinylSpin 3s linear infinite paused;
    will-change: transform;
}

.selected-song .song-item:hover img {
    animation-play-state: running;
    box-shadow: 
        0 30px 80px rgba(29, 185, 84, 0.4),
        0 0 0 8px var(--surface),
        0 0 0 10px var(--primary-color),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
}

@keyframes vinylSpin {
    from { transform: translateZ(50px) rotate(0deg); }
    to { transform: translateZ(50px) rotate(360deg); }
}

.selected-song .song-info {
    text-align: center;
    transform: translateZ(20px);
}

.selected-song .song-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.selected-song .btn {
    transform: translateZ(30px);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.selected-song .btn::before {
    content: '⬆️ Swipe Up to Send';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--gradient);
    transition: top 0.3s ease;
}

.selected-song .btn:hover::before {
    top: 0;
}

/* Preview Time Selector */
.preview-time-selector {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
}

/* Integrated Audio Player */
.integrated-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 15px;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

.audio-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-control-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.audio-control-btn:active {
    transform: scale(0.95);
}

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audio-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.no-preview-message {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    margin: 1rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.no-preview-message i {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.no-preview-message p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.clickable-vinyl {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-vinyl:hover {
    transform: scale(1.05);
}

.clickable-vinyl.playing {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.preview-time-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.preview-time-selector label i {
    color: var(--primary-color);
}

#preview-time-display {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.time-slider {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}

.time-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.6);
}

.time-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.6);
}

.time-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--value), var(--border) var(--value), var(--border) 100%);
    height: 6px;
    border-radius: 5px;
}

.time-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Preview Controls */
.preview-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.preview-hint i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

#preview-vinyl {
    transition: all 0.3s ease;
}

#preview-vinyl.playing {
    animation: vinylSpin 2s linear infinite !important;
    animation-play-state: running !important;
    box-shadow: 
        0 30px 80px rgba(29, 185, 84, 0.5),
        0 0 0 8px var(--surface),
        0 0 0 10px var(--primary-color),
        0 0 30px rgba(29, 185, 84, 0.6),
        inset 0 0 50px rgba(255, 255, 255, 0.15);
}

.selected-song .song-item {
    cursor: pointer;
}

.selected-song .song-item:hover #preview-vinyl {
    transform: translateZ(60px) scale(1.05);
}

/* Feed */
.feed-locked {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: 15px;
}

.feed-locked i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feed-locked h3 {
    margin-bottom: 0.5rem;
}

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

.posts-container {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.post {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    animation: slideInFromBottom 0.5s ease-out;
    position: relative;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.post::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    z-index: -1;
}

.post:hover::before {
    opacity: 0.3;
}

/* Received song animation */
.post.received {
    animation: slideInFromTop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 3px solid var(--primary-color);
}

/* Sent song animation */
.post.sent {
    animation: slideInFromBottom 0.5s ease-out;
    border-left: 3px solid var(--accent-color);
    opacity: 0.9;
}

.post.sending {
    animation: swipeUpOut 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 50px rgba(29, 185, 84, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.post-status-badge {
    position: absolute;
    top: -0.5rem;
    right: 0;
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}

.post-status-badge.received {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
}

.post-status-badge.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-status-badge.locked {
    background: linear-gradient(135deg, #555 0%, #333 100%);
}

/* Locked posts */
.post.locked-post {
    cursor: not-allowed;
    opacity: 0.85;
}

.post.locked-post:hover {
    transform: none;
}

.locked-content {
    position: relative;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vinyl-record-locked {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-vinyl-disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
    position: relative;
}

.locked-message {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.post-user-info h4 {
    margin-bottom: 0.25rem;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-song {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: radial-gradient(circle, rgba(30, 30, 30, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    position: relative;
}

.post-song::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.3) 70%);
    pointer-events: none;
}

.vinyl-container {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    user-select: none;
    overflow: visible;
}

.vinyl-record {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        #1a1a1a 0%,
        #0a0a0a 30%,
        #1a1a1a 31%,
        #0a0a0a 35%,
        #1a1a1a 36%,
        #000 100%
    );
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 0 3px rgba(255, 255, 255, 0.05);
    position: absolute;
    animation: vinylIdle 3s ease-in-out infinite;
}

.vinyl-record.playing {
    animation: vinylSpin 2s linear infinite;
}

.vinyl-record.liked {
    animation: vinylSpinFast 1s linear infinite;
}

@keyframes vinylIdle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes vinylSpinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.album-art {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 3px #000,
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: cover !important;
    object-position: center !important;
    z-index: 2;
    display: block !important;
    max-width: none !important;
}

.vinyl-center {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #1DB954 0%, #0a4a20 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 2px #000,
        0 2px 8px rgba(29, 185, 84, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.vinyl-hole {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.post-song-info {
    text-align: center;
    z-index: 1;
    width: 100%;
}

.post-song-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-song-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.like-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 4rem;
    color: #ff4757;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
    animation: likeHeart 0.6s ease-out;
}

@keyframes likeHeart {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Spotify Embedded Player */
.spotify-player {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.spotify-player iframe {
    display: block;
}

.post-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.post-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-actions button:hover {
    color: var(--primary-color);
}

.btn-spotify-open {
    background: rgba(29, 185, 84, 0.1) !important;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.btn-spotify-open:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Post Comments */
.post-comments {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-content strong {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.comment-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-input {
    flex: 1;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.btn-comment {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-comment:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Friends */
.friends-section {
    margin-bottom: 3rem;
}

.friends-section h3 {
    margin-bottom: 1rem;
}

.search-friends {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.send-friend-request {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, rgba(30, 215, 96, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.send-friend-request .search-input {
    flex: 1;
    background: var(--surface);
    border: 2px solid var(--border);
}

.send-friend-request .search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.send-friend-request .btn {
    white-space: nowrap;
    min-width: 150px;
}

.user-list {
    display: grid;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface);
    border-radius: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.user-details h4 {
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Friend Suggestions */
.suggestion-item {
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
    transform: translateY(-2px);
}

.suggestion-item .user-details small {
    display: block;
    margin-top: 0.25rem;
}

/* Groups */
.create-group-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.group-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.group-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.group-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-header h4 i {
    color: var(--primary-color);
}

.group-member-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.group-card .btn {
    width: 100%;
}

.feed-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feed-filter label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.group-filter-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

/* Group Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--background);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.modal-header h3 {
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.group-friends-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: 8px;
    border: 2px solid var(--border);
}

.group-friend-item span {
    font-weight: 500;
}

.group-friend-item .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Emoji Reactions */
.post-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.reaction-bubble {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.reaction-bubble:hover {
    transform: scale(1.1);
    background: var(--background);
}

.reaction-bubble.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.add-reaction-btn {
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.add-reaction-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
}

.emoji-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.emoji-picker {
    background: var(--background);
    border-radius: 15px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border);
}

.emoji-picker-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-option {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-option:hover {
    transform: scale(1.2);
    background: var(--background);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.stats-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.stats-section h3 {
    margin-bottom: 1.5rem;
}

.top-list {
    display: grid;
    gap: 1rem;
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.top-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-item-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.genre-tag {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
}

.calendar {
    background: var(--surface);
    border-radius: 10px;
    padding: 1rem;
}

.calendar-month-container {
    margin-bottom: 2rem;
}

.calendar-month-container:last-child {
    margin-bottom: 0;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--background);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover:not(.empty) {
    opacity: 0.9;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day .calendar-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.calendar-day .calendar-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calendar-day.posted {
    background: transparent;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

.calendar-day.today .calendar-day-number,
.calendar-day.today .calendar-date {
    color: var(--primary-color);
    font-weight: 700;
}

/* Multiple posts indicator */
.calendar-day.multiple-posts {
    position: relative;
}

.post-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.calendar-day.multiple-posts .calendar-cover {
    opacity: 1;
}

.calendar-day.multiple-posts:hover .post-count {
    transform: scale(1.1);
}

/* Profile */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--primary-color);
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background);
    border: 4px solid var(--border);
}

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

.profile-avatar i {
    font-size: 5rem;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.avatar-upload-btn:hover {
    background: #1ed760;
    transform: scale(1.1);
}

.avatar-upload-btn i {
    font-size: 1rem;
}

.profile-info h2 {
    margin-bottom: 0.5rem;
}

.profile-username-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-username-container h2 {
    margin: 0;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

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

.profile-stats strong {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.profile-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notification Toggle */
.notification-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
    border: 2px solid var(--border);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Streak Panel in Profile */
.streak-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.streak-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(30, 215, 96, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(29, 185, 84, 0.3);
    min-width: 150px;
}

.streak-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(29, 185, 84, 0.3);
}

.streak-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.streak-message {
    text-align: center;
    padding: 1rem;
    background: rgba(29, 185, 84, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 90%;
}

.toast {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    border-left: 4px solid var(--primary-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* Add padding to content for bottom nav */
.main-content {
    padding-bottom: 80px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface-hover);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation for new notifications */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .landing-buttons {
        flex-direction: column;
        width: 100%;
    }

    .landing-buttons .btn {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .navbar .logo {
        font-size: 1.1rem;
        letter-spacing: -0.3px;
    }

    .user-panel {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 101;
    }

    .user-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .user-menu {
        right: 0;
        min-width: 220px;
    }

    .nav-links {
        display: flex;
        justify-content: space-around;
        gap: 0;
        width: 100%;
        max-width: 500px;
        background: rgba(24, 24, 24, 0.95);
        padding: 0.5rem;
        border-radius: 15px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
        min-width: 70px;
        border-radius: 12px;
    }

    .nav-link span {
        display: block;
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

    .main-content {
        padding: 1rem;
    }

    .streak-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .streak-info {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }

    .profile-avatar i {
        font-size: 4rem;
    }

    .avatar-upload-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .avatar-upload-btn i {
        font-size: 0.9rem;
    }

    .profile-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-form {
        flex-direction: column;
    }

    .search-friends {
        flex-direction: column;
    }

    .send-friend-request {
        flex-direction: column;
        padding: 1rem;
    }

    .send-friend-request .btn {
        width: 100%;
    }

    .post {
        padding: 1.25rem;
        border-radius: 16px;
        margin-bottom: 0.5rem;
    }

    .post:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .post-song {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    /* Don't override vinyl album art in media queries */
    .vinyl-container {
        width: 160px;
        height: 160px;
    }
    
    .vinyl-record {
        width: 160px;
        height: 160px;
    }
    
    .album-art {
        width: 110px !important;
        height: 110px !important;
        border-radius: 50% !important;
    }

    .song-item {
        flex-wrap: wrap;
        justify-content: center;
    }

    .auth-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.7rem;
        padding: 0.25rem;
    }

    .user-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .btn-logout {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        grid-template-columns: repeat(2, 1fr);
        font-size: 0.8rem;
    }

    .streak-info h3 {
        font-size: 1.2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature i {
        font-size: 2rem;
    }
    
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: 100%;
    }
    
    .main-content {
        padding: 1rem;
        padding-bottom: 120px;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .logo {
        font-size: 1.2rem;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
        padding-bottom: 120px;
        max-width: 100%;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .bottom-nav {
        padding: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.25rem;
        gap: 0.1rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    .nav-link span {
        font-size: 0.6rem;
    }
    
    .post {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }
    
    .vinyl-container {
        width: 120px;
        height: 120px;
        margin: 0.75rem auto;
    }
    
    .vinyl-record {
        width: 120px;
        height: 120px;
    }
    
    .album-art {
        width: 85px !important;
        height: 85px !important;
    }
    
    .vinyl-center {
        width: 25px;
        height: 25px;
    }
    
    .vinyl-hole {
        width: 8px;
        height: 8px;
    }
    
    .post-header {
        margin-bottom: 0.5rem;
    }
    
    .post-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .post-user-info h4 {
        font-size: 0.85rem;
    }
    
    .post-time {
        font-size: 0.65rem;
    }
    
    .post-song-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .post-song-info p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0;
    }
    
    .post-actions {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .post-actions button {
        font-size: 0.75rem;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .post-actions button i {
        font-size: 0.9rem;
    }
    
    .spotify-player iframe {
        height: 120px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem;
    }
    
    .song-item {
        padding: 1.25rem;
    }
    
    .user-item {
        padding: 1.25rem;
    }
    
    .post-actions button {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
}

/* Improved animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before,
    .landing-container::before,
    .music-note {
        animation: none !important;
    }
}

/* Desktop: Show bottom nav as vertical sidebar */
/* Desktop: Show navigation in header and hide mobile bottom nav */
@media (min-width: 769px) {
    /* Hide mobile bottom nav */
    .bottom-nav {
        display: none;
    }
    
    /* Show desktop nav */
    .desktop-nav {
        display: flex;
        gap: 0.5rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .navbar .logo {
        font-size: 1.8rem;
    }
    
    .desktop-nav .nav-link {
        flex-direction: row;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        font-size: 0.95rem;
    }
    
    .desktop-nav .nav-link i {
        font-size: 1.1rem;
    }
    
    .desktop-nav .nav-link span {
        font-size: 0.95rem;
    }
    
    /* No extra padding needed on desktop */
    .main-content {
        padding-bottom: 2rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.form-feedback.success {
    color: var(--primary-color);
}

.form-feedback.error {
    color: var(--danger-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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