/* Modern Music App CSS - Based on Screenshot Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors inspired by the screenshot */
    --bg-primary: #121212;
    --bg-secondary: #1f1f23;
    --bg-card: #2a2a2e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;
    --accent-purple: #6366f1;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --border-color: #3a3a3e;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient-evening: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-liked: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-recent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-trending: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.modern-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px; /* Space for bottom nav and player */
}

/* Mobile Header */
.mobile-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.menu-btn, .icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn:hover, .icon-btn:hover {
    background: var(--bg-card);
    transform: scale(1.05);
}

/* Repeat Mode Indicator */
.repeat-mode {
    font-size: 8px;
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--accent-purple);
    color: white;
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: bold;
}

.control-btn.active {
    background: var(--accent-purple);
    color: white;
}

.control-btn.shuffle-active {
    background: var(--accent-pink);
    color: white;
}

/* Song Suggestions */
.song-suggestions {
    padding: 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.song-suggestions h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.suggestion-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.suggestion-card:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.suggestion-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.suggestion-card .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-card .artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
}

.brand-icon {
    color: var(--accent-purple);
    font-size: 24px;
}

/* Search Section */
.search-section {
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 12px 16px;
    gap: 12px;
    box-shadow: var(--shadow-light);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 16px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.voice-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 16px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Greeting Section */
.greeting-section {
    margin-bottom: 24px;
}

.greeting-card {
    background: var(--gradient-evening);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.greeting-content {
    position: relative;
    z-index: 2;
}

.greeting-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.greeting-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.greeting-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.liked-songs {
    background: var(--gradient-liked);
    color: white;
}

.recent-played {
    background: var(--gradient-recent);
    color: white;
}

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

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.action-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.action-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Show All Section */
.show-all-section {
    text-align: center;
    margin-bottom: 32px;
}

.show-all-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-all-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.spinner-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

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

/* Music Grid - Different layouts for different sections */
.music-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

/* Home page recommendations - larger cards */
.home-view .music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Search results - compact Instagram-style */
.search-view .music-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

/* Home page cards - larger layout */
.home-view .music-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    min-height: auto;
    border-radius: 12px;
}

.music-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-purple);
}

.music-card:active {
    transform: scale(0.98);
}

.card-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

/* Home page thumbnails - larger */
.home-view .card-thumbnail {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.music-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-channel {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-duration {
    color: var(--text-secondary);
    font-size: 11px;
    flex-shrink: 0;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 10px;
    min-width: 35px;
    text-align: center;
}

.card-views {
    display: none; /* Hide views for cleaner look */
}

/* Modern Music Player */
.modern-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    overflow-y: auto;
}

.modern-player.show {
    transform: translateY(0);
}

.modern-player.minimized {
    height: 80px;
    transform: translateY(0);
    overflow: hidden;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 70px; /* Above bottom nav */
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1800;
    height: 70px;
    display: none;
    padding: 12px 16px;
    backdrop-filter: blur(20px);
}

.mini-player.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mini-thumbnail {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-card);
}

.mini-details {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-play-btn {
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-play-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.05);
}

.expand-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.player-container {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: var(--bg-card);
}

.player-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Player Artwork */
.player-artwork {
    margin-bottom: 32px;
}

.artwork-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-card);
}

.artwork-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.like-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.like-btn:hover, .like-btn.liked {
    background: var(--accent-red);
    transform: scale(1.1);
}

.like-btn.liked i {
    color: white;
}

/* Player Info */
.player-info {
    text-align: center;
    margin-bottom: 32px;
}

.track-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.track-artist {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Player Progress */
.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.time-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-purple);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    left: 0%;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn {
    font-size: 28px;
}

.play-btn {
    background: var(--accent-purple);
    color: white;
    font-size: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.play-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

/* Player Actions */
.player-actions {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--accent-purple);
    background: var(--bg-card);
    transform: scale(1.1);
}

/* Volume Control */
.volume-control {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.volume-btn:hover {
    background: var(--bg-secondary);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}




/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none; /* hidden by default */
}

.share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay behind the modal */
.share-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* Modal box */
.share-modal .modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color-inverse);
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Theme-based border color */
.light-theme .share-modal .modal-content {
    border-color: rgba(0, 0, 0, 0.2);
}
.dark-theme .share-modal .modal-content {
    border-color: rgba(255, 255, 255, 0.2);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 3;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

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

.modal-body {
    padding: 0 20px 20px;
}

.share-song-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.share-song-info:hover {
    background: var(--bg-hover);
}

.share-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.share-details {
    flex: 1;
    min-width: 0;
}

.share-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-details p {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.share-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.share-btn i {
    font-size: 18px;
}

.share-btn.whatsapp { color: #25d366; }
.share-btn.facebook { color: #1877f2; }
.share-btn.twitter { color: #1da1f2; }
.share-btn.telegram { color: #0088cc; }
.share-btn.copy { color: var(--accent-purple); }

.share-btn.whatsapp:hover { border-color: #25d366; }
.share-btn.facebook:hover { border-color: #1877f2; }
.share-btn.twitter:hover { border-color: #1da1f2; }
.share-btn.telegram:hover { border-color: #0088cc; }
.share-btn.copy:hover { border-color: var(--accent-purple); }

/* Responsive adjustments */
@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-modal .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 0 16px 16px;
    }
}
/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    z-index: 1500;
    backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.1);
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Error Toast */
.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-heavy);
    z-index: 3000;
    max-width: 90%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: auto;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Instagram-style compact mobile optimizations */
    .music-grid {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .music-card {
        padding: 8px 10px;
        gap: 10px;
        min-height: 65px;
        border-radius: 6px;
    }
    
    .card-thumbnail {
        width: 55px;
        height: 55px;
        border-radius: 4px;
    }
    
    .card-title {
        font-size: 13px;
        line-height: 1.1;
    }
    
    .card-channel {
        font-size: 11px;
    }
    
    .card-duration {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 30px;
    }
    
    .quick-actions {
        gap: 12px;
    }
    
    .action-card {
        padding: 14px;
    }
    
    .greeting-card {
        padding: 20px;
    }
    
    .greeting-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .music-card {
        padding: 6px 8px;
        gap: 8px;
        min-height: 60px;
    }
    
    .card-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-channel {
        font-size: 10px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .artwork-container {
        width: 240px;
        height: 240px;
    }
    
    .player-controls {
        gap: 16px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .play-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
button:focus,
input:focus,
[tabindex]:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
    }
    
    [data-theme="light"] {
        --border-color: #ffffff;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-heavy);
    z-index: 3001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-purple);
    max-width: 320px;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: var(--accent-green);
}

.toast.toast-error {
    border-left-color: var(--accent-red);
}

.toast.toast-info {
    border-left-color: var(--accent-purple);
}

.toast .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.toast .toast-content i {
    font-size: 16px;
}

.toast.toast-success .toast-content i {
    color: var(--accent-green);
}

.toast.toast-error .toast-content i {
    color: var(--accent-red);
}

.toast.toast-info .toast-content i {
    color: var(--accent-purple);
}

/* Card overlay for play button */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.music-card:hover .card-overlay {
    opacity: 1;
}

.play-overlay-btn {
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.play-overlay-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Active states for shuffle and repeat */
.control-btn.active {
    color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.2);
}

/* Print styles */
@media print {
    .modern-player,
    .bottom-nav,
    .mobile-header {
        display: none !important;
    }
}
