/* ==========================================
   🎵 KOLEKCJA MUZYKI - Style CSS v3.0
   ========================================== */

/* Zmienne kolorów - Ciemny motyw */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-card: rgba(255,255,255,0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-green: #4ade80;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-yellow: #fbbf24;
    --accent-purple: #a855f7;
}

/* Jasny motyw */
body.light-theme {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --bg-card: rgba(0,0,0,0.05);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

body.light-theme {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* ==========================================
   NAGŁÓWEK
   ========================================== */

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-secondary {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-random {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
}

.btn-random:hover {
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

.sync-status {
    padding: 8px 15px;
    background: rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-green);
}

.sync-status.firebase {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
}

/* ==========================================
   MINI ODTWARZACZ
   ========================================== */

.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

.mini-player.hidden {
    display: none;
}

.mini-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-player-info img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-player-info div {
    display: flex;
    flex-direction: column;
}

#miniPlayerTitle {
    font-weight: 600;
    font-size: 1rem;
}

#miniPlayerArtist {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mini-player-controls button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.mini-player-controls button:hover {
    background: rgba(255,255,255,0.2);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==========================================
   FORMULARZ
   ========================================== */

.add-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.add-section h2 {
    margin-bottom: 20px;
    color: var(--accent-green);
}

#albumForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 2px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: all 0.3s;
    font-family: inherit;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.cover-input-group {
    display: flex;
    gap: 10px;
}

.cover-input-group input {
    flex: 1;
}

.btn-search-cover {
    padding: 12px 20px;
    background: var(--accent-blue);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.cover-preview {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.cover-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-input input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--accent-green), var(--accent-yellow));
    border-radius: 5px;
    cursor: pointer;
}

.rating-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.btn-add {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
}

/* ==========================================
   STATYSTYKI
   ========================================== */

.stats-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 110px;
    cursor: pointer;
    transition: all 0.3s;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================
   FILTRY
   ========================================== */

.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-section input,
.filter-section select {
    flex: 1;
    min-width: 180px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-section select option {
    background: var(--bg-primary);
}

/* ==========================================
   WIDOK
   ========================================== */

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.view-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: var(--accent-green);
    color: #000;
}

.favorites-only {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* ==========================================
   ALBUMY
   ========================================== */

.albums-section h2 {
    margin-bottom: 20px;
}

.albums-section h2 span {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: normal;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.albums-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.album-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.album-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.album-cover .no-cover {
    font-size: 4rem;
    opacity: 0.3;
}

/* Play overlay */
.album-cover::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.7);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.album-card:hover .album-cover::after {
    transform: translate(-50%, -50%) scale(1);
}

.album-info {
    padding: 15px;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.album-artist {
    font-size: 0.85rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-favorite {
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s;
}

.album-favorite:hover {
    transform: scale(1.2);
}

.album-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.album-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.album-meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 15px;
}

.album-rating {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.album-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-play,
.btn-spotify,
.btn-youtube,
.btn-edit,
.btn-delete {
    flex: 1;
    min-width: 60px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
}

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

.btn-youtube {
    background: #FF0000;
    color: #fff;
}

.btn-edit {
    background: var(--accent-blue);
    color: #fff;
}

.btn-delete {
    background: var(--accent-red);
    color: #fff;
}

.album-actions button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
    font-size: 1.1rem;
}

/* Lista view */
.albums-list .album-card {
    display: flex;
}

.albums-list .album-cover {
    width: 100px;
    height: 100px;
    min-width: 100px;
}

.albums-list .album-cover::after {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
}

.albums-list .album-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.albums-list .album-main {
    flex: 1;
}

.albums-list .album-title {
    margin-bottom: 5px;
}

/* ==========================================
   MODALS
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 12px;
    width: 100%;
    max-width: 260px;
    position: relative;
    max-height: 60vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-stats {
    max-width: 700px;
}

.modal-player {
    max-width: 800px;
}

.modal-random {
    max-width: 500px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--accent-blue);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    line-height: 1;
}

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

.btn-save {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* ==========================================
   STATYSTYKI MODAL
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stats-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
}

.stats-card .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.chart-section {
    margin-bottom: 30px;
}

.chart-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.chart-bar .label {
    width: 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chart-bar .bar-container {
    flex: 1;
    height: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
}

.top-albums {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-album-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 10px;
}

.top-album-item .rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-yellow);
    width: 40px;
}

.top-album-item .info {
    flex: 1;
}

.top-album-item .title {
    font-weight: 600;
}

.top-album-item .artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.top-album-item .rating {
    font-size: 0.9rem;
}

/* ==========================================
   RANDOM MODAL
   ========================================== */

.random-album {
    padding: 20px;
}

.random-album h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.random-album img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.random-album .no-cover-big {
    width: 200px;
    height: 200px;
    background: var(--bg-card);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 20px auto;
}

.random-album .artist {
    font-size: 1.1rem;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.random-album .title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.random-album .meta {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.random-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.random-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-another {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
}

.btn-listen {
    background: var(--accent-green);
    color: #000;
}

/* ==========================================
   PLAYER MODAL
   ========================================== */

.player-container {
    text-align: center;
}

.player-container h3 {
    margin-bottom: 5px;
}

.player-container .artist {
    color: var(--accent-green);
    margin-bottom: 20px;
}

.player-container iframe {
    border-radius: 12px;
    margin: 20px 0;
}

.player-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.player-links a {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link-spotify {
    background: #1DB954;
    color: #fff;
}

.link-youtube {
    background: #FF0000;
    color: #fff;
}

.link-spotify:hover,
.link-youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ==========================================
   SZCZEGÓŁY
   ========================================== */

.details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.details-cover {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-card);
}

.details-main h2 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.details-artist {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.details-rating {
    font-size: 1.2rem;
}

.details-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.details-item {
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 10px;
}

.details-item label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.details-notes {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.details-notes h4 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.details-actions button {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

/* ==========================================
   ANIMACJE
   ========================================== */

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

.album-card {
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-secondary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .stats-section {
        gap: 10px;
    }
    
    .stat {
        padding: 15px 20px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .details-info {
        grid-template-columns: 1fr;
    }
    
    .mini-player {
        padding: 10px 15px;
    }
    
    .mini-player-info img {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
/* ==========================================
   SKANER KODÓW KRESKOWYCH
   ========================================== */

.modal-scanner {
    max-width: 500px;
}

.scanner-container {
    text-align: center;
}

#scannerPreview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto 20px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

#scannerPreview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-hint {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.scanner-manual {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.scanner-manual p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.manual-input-group {
    display: flex;
    gap: 10px;
}

.manual-input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 1rem;
}

.manual-input-group {
    display: flex;
    gap: 5px;
}

.manual-input-group input {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.manual-input-group button {
    padding: 6px 12px;
    background: var(--accent-green);
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.scanner-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    text-align: left;
}

.scanner-result.hidden {
    display: none;
}

.scanner-result h4 {
    color: var(--accent-green);
    margin-bottom: 10px;
}

.scanner-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.scanner-result-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.scanner-result-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.scanner-result-item .info {
    flex: 1;
}

.scanner-result-item .title {
    font-weight: 600;
    margin-bottom: 3px;
}

.scanner-result-item .artist {
    color: var(--accent-green);
    font-size: 0.9rem;
}

.scanner-result-item .meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 5px;
}

.scanner-loading {
    text-align: center;
    padding: 30px;
}

.scanner-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* ==========================================
   SKANER MP3
   ========================================== */

.modal-mp3 {
    max-width: 600px;
}

.mp3-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mp3-option {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.mp3-option h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mp3-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-mp3-action {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-mp3-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.mp3-progress {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.mp3-progress.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transition: width 0.3s;
}

.mp3-results {
    margin-top: 20px;
}

.mp3-results.hidden {
    display: none;
}

.mp3-results h3 {
    margin-bottom: 15px;
}

#foundAlbums {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.found-album {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 10px;
}

.found-album input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.found-album .album-cover-small {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.found-album .album-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.found-album .info {
    flex: 1;
}

.found-album .title {
    font-weight: 600;
}

.found-album .artist {
    color: var(--accent-green);
    font-size: 0.9rem;
}

.found-album .tracks {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mp3-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-add-all {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    border: none;
    border-radius: 25px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Quick add buttons */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.quick-add-buttons {
    display: flex;
    gap: 10px;
}

.btn-quick {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.btn-scan, .btn-mp3 {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)) !important;
}

/* Responsywność dla skanerów */
@media (max-width: 768px) {
    .mp3-options {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-add-buttons {
        width: 100%;
    }
    
    .btn-quick {
        flex: 1;
    }
    
    .manual-input-group {
        flex-direction: column;
    }
}
/* ==========================================
   SZCZEGÓŁY ALBUMU Z UTWORAMI
   ========================================== */

.modal-details-large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.album-details-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .album-details-grid {
        grid-template-columns: 1fr;
    }
}

.album-cover-large {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.album-cover-large-placeholder {
    width: 250px;
    height: 250px;
    background: var(--bg-card);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.album-details-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.album-details-artist {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.album-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.album-details-meta span {
    background: var(--bg-card);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.album-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.album-details-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* Lista utworów */
.tracks-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.tracks-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.track-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.track-item.playing {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(59, 130, 246, 0.2));
    border-left: 3px solid var(--accent-green);
}

.track-number {
    width: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.track-info {
    flex: 1;
}

.track-title {
    font-weight: 500;
}

.track-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.track-actions {
    display: flex;
    gap: 5px;
}

.track-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.track-actions button:hover {
    opacity: 1;
}

/* ==========================================
   WBUDOWANY ODTWARZACZ AUDIO
   ========================================== */

.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
}

.audio-player-bar.hidden {
    display: none;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.player-track-info img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.player-text {
    display: flex;
    flex-direction: column;
}

#playerTrackTitle {
    font-weight: 600;
    font-size: 0.95rem;
}

#playerTrackArtist {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-controls button:hover {
    transform: scale(1.1);
}

#playPauseBtn {
    background: var(--accent-green);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-progress span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 40px;
}

#progressBar {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    cursor: pointer;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

#volumeBar {
    width: 80px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
}

#volumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.player-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsywność odtwarzacza */
@media (max-width: 768px) {
    .audio-player-bar {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .player-track-info {
        min-width: 150px;
    }
    
    .player-volume {
        display: none;
    }
    
    .player-progress {
        order: 3;
        width: 100%;
    }
}

/* Link do tekstów */
.lyrics-links {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
}

.lyrics-links h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.lyrics-links a {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.lyrics-links a:hover {
    background: var(--accent-blue);
}
/* ==========================================
   ODTWARZACZ AUDIO
   ========================================== */

.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
}

.audio-player-bar.hidden {
    display: none;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.player-track-info img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
}

.player-text {
    display: flex;
    flex-direction: column;
}

#playerTrackTitle {
    font-weight: 600;
    font-size: 0.95rem;
}

#playerTrackArtist {
    color: #888;
    font-size: 0.8rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#playPauseBtn {
    background: #4ade80;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-progress span {
    font-size: 0.8rem;
    color: #888;
    min-width: 40px;
}

#progressBar {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #4ade80;
    border-radius: 50%;
    cursor: pointer;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volumeBar {
    width: 80px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

#volumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.player-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .audio-player-bar {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }
    .player-volume { display: none; }
    .player-progress { order: 3; width: 100%; }
}
/* ==========================================
   📋 WISHLIST STYLES
   ========================================== */

.btn-wishlist {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
}

.btn-wishlist:hover {
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-print {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
}

.btn-print:hover {
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4) !important;
}

.wishlist-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

.album-card.wishlist-item {
    border: 2px solid rgba(245, 158, 11, 0.5);
}

.album-card.wishlist-item .album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
    pointer-events: none;
}

.album-header-btns {
    display: flex;
    gap: 5px;
}

.album-wishlist {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.album-wishlist:hover {
    opacity: 1;
    transform: scale(1.1);
}

.stat-wishlist {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1)) !important;
}

.stat-wishlist .stat-number {
    color: #f59e0b !important;
}

.wishlist-only {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 20px;
    transition: all 0.2s;
}

.wishlist-only:hover {
    background: rgba(245, 158, 11, 0.2);
}

.wishlist-only input {
    cursor: pointer;
}

/* ==========================================
   🎤 KARAOKE STYLES
   ========================================== */

.modal-karaoke {
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.karaoke-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.karaoke-album-art {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.karaoke-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.karaoke-artist {
    color: var(--accent-green);
    margin: 5px 0 0;
}

.karaoke-lyrics {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    max-height: 50vh;
}

.karaoke-loading,
.karaoke-not-found {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.karaoke-not-found p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.karaoke-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    margin: 5px;
    transition: all 0.2s;
}

.karaoke-link:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

.karaoke-synced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.karaoke-line {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.karaoke-line.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: #000;
    font-weight: bold;
    font-size: 1.3rem;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.3);
}

.karaoke-line.past {
    opacity: 0.5;
}

.karaoke-plain {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
}

.karaoke-plain pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    line-height: 1.8;
}

.karaoke-controls {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.btn-karaoke-sync {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    border: none;
    border-radius: 25px;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-karaoke-sync:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
}

.karaoke-hint {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Przycisk karaoke przy utworach */
.btn-karaoke {
    background: linear-gradient(135deg, #ec4899, #d946ef) !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 15px !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-karaoke:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(236, 72, 153, 0.4);
}

/* ==========================================
   RESPONSYWNOŚĆ DLA NOWYCH ELEMENTÓW
   ========================================== */

@media (max-width: 768px) {
    .karaoke-header {
        flex-direction: column;
        text-align: center;
    }
    
    .karaoke-album-art {
        width: 80px;
        height: 80px;
    }
    
    .karaoke-line {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .karaoke-line.active {
        font-size: 1.1rem;
    }
    
    .wishlist-only {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .album-header-btns {
        flex-direction: row;
    }
}

/* Karaoke - klikalne linijki */
.karaoke-line {
    cursor: pointer;
    transition: all 0.2s ease;
}

.karaoke-line:hover {
    background: rgba(74, 222, 128, 0.1);
    padding-left: 25px;
}

/* Textarea do wklejania tekstów */
#manualLyricsInput {
    font-family: inherit;
}

#manualLyricsInput:focus {
    outline: none;
    border-color: #4ade80;
}

/* Status odtwarzacza w karaoke */
#karaokePlayerStatus {
    text-align: center;
    transition: all 0.3s ease;
}

.btn-karaoke-manual:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
}
