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

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 25%, #ffb347 50%, #ffd700 75%, #ff6b6b 100%);
    background-size: 400% 400%;
    animation: sunsetGradient 15s ease infinite;
    min-height: 100vh;
    color: #8b0000;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="8" fill="%23ffd700" opacity="0.3"/><circle cx="80" cy="70" r="6" fill="%23ff6b6b" opacity="0.2"/><circle cx="50" cy="20" r="4" fill="%23ffb347" opacity="0.4"/><circle cx="30" cy="80" r="5" fill="%23ffd700" opacity="0.3"/><circle cx="70" cy="40" r="3" fill="%23ff8e8e" opacity="0.2"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

@keyframes sunsetGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(139, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
    position: relative;
    flex: 1;
    min-width: 0;
}

header h1::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -25px;
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

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

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #8b0000;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.3);
    color: #8b0000;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.song-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 205, 0.9));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.song-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
    transform: scale(0);
}

.song-card:hover::before {
    transform: scale(1);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.7);
}

.song-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.song-card:hover .song-image {
    border-color: rgba(255, 215, 0, 0.8);
}

.song-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #8b0000;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
    line-height: 1.2;
}

.song-artist {
    color: #b22222;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    font-style: italic;
    font-size: 0.9rem;
}

.song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffb347, #ffd700);
    color: #8b0000;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ffa500, #ffdf00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 179, 71, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 1.0rem !important;
    min-width: 120px !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 235, 205, 0.95));
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Modal Header - Fisso in alto */
.modal-header {
    position: sticky;
    top: 0;
    z-index: 1002;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 235, 205, 0.98));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #8b0000;
    transition: all 0.3s ease;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #8b0000;
    font-size: 1rem;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #8b0000;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Admin Panel */
.admin-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 205, 0.9));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 1.8rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.admin-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.admin-song-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(3px);
}

.admin-song-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.admin-song-info h4 {
    margin-bottom: 0.25rem;
    color: #8b0000;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-song-info p {
    color: #b22222;
    font-size: 0.85rem;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-song-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #8b0000;
}

.spinner {
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ff6b6b;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Audio/Video Players */
.media-player {
    width: 100%;
    margin: 1rem 0;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.9);
    max-height: 300px;
}

.lyrics-container {
    background: linear-gradient(145deg, rgba(255, 235, 205, 0.8), rgba(255, 255, 255, 0.8));
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    white-space: pre-wrap;
    line-height: 1.6;
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #8b0000;
    font-style: italic;
    box-shadow: inset 0 3px 10px rgba(255, 215, 0, 0.2);
    font-size: 0.9rem;
}

/* Song Details */
.song-details-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.song-details-header h2 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
    line-height: 1.2;
}

.song-details-header h3 {
    color: #b22222;
    font-size: 1.1rem;
    font-style: italic;
}

.song-details-content {
    /* Contenuto scrollabile */
}

.media-section {
    margin: 1.5rem 0;
}

.media-section h4 {
    color: #8b0000;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 600;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.notification.success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
}

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

/* Romantic touches */
.song-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover::after {
    opacity: 1;
}

/* Bachata rhythm animation */
@keyframes bachataRhythm {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.song-card:hover {
    animation: bachataRhythm 0.5s ease-in-out;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header mobile */
    header {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }

    header .container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    header h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    header h1::after {
        right: -20px;
        font-size: 1rem;
    }

    nav {
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    /* Songs grid mobile */
    .songs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .song-card {
        padding: 1.2rem;
        min-height: 320px;
    }

    .song-image {
        height: 160px;
    }

    .song-title {
        font-size: 1.2rem;
    }

    .song-artist {
        font-size: 0.85rem;
    }

    .song-actions {
        gap: 0.3rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 60px;
    }

    .btn-small {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }

    /* Modal mobile */
    .modal-content {
        margin: 1% auto;
        width: 98%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-body {
        padding: 1rem;
    }

    .close {
        font-size: 1.5rem;
        right: 0.8rem;
        top: 0.8rem;
        width: 35px;
        height: 35px;
    }

    /* Song details mobile */
    .song-details-header h2 {
        font-size: 1.6rem;
    }

    .song-details-header h3 {
        font-size: 1rem;
    }

    .media-section h4 {
        font-size: 1rem;
    }

    /* Form mobile */
    .form-group {
        margin-bottom: 1rem;
    }

    label {
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="file"],
    textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    textarea {
        min-height: 100px;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Admin panel mobile */
    .admin-panel {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .admin-header h2 {
        font-size: 1.5rem;
    }

    .admin-song-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 1rem;
    }

    .admin-song-info {
        margin-right: 0;
        text-align: center;
    }

    .admin-song-info h4,
    .admin-song-info p {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .admin-song-actions {
        justify-content: center;
    }

    /* Media player mobile */
    .media-player {
        max-height: 250px;
    }

    .lyrics-container {
        padding: 1rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Loading mobile */
    .loading {
        padding: 2rem 1rem;
    }

    .spinner {
        width: 35px;
        height: 35px;
    }

    /* Notification mobile */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .song-card {
        padding: 1rem;
    }

    .song-image {
        height: 140px;
    }

    .song-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .modal-content {
        margin: 0.5% auto;
        width: 99%;
        max-height: 98vh;
    }

    .modal-header {
        padding: 0.8rem;
    }

    .modal-body {
        padding: 0.8rem;
    }

    .song-details-header h2 {
        font-size: 1.4rem;
    }

    .admin-header h2 {
        font-size: 1.3rem;
    }

    .lyrics-container {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* TOUCH IMPROVEMENTS */
@media (hover: none) and (pointer: coarse) {
    .song-card:hover {
        transform: none;
        animation: none;
    }

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

    .btn:hover {
        transform: none;
    }

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

    .nav-link:hover {
        transform: none;
    }

    .nav-link:active {
        transform: scale(0.95);
    }
}



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

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 25%, #ffb347 50%, #ffd700 75%, #ff6b6b 100%);
    background-size: 400% 400%;
    animation: sunsetGradient 15s ease infinite;
    min-height: 100vh;
    color: #8b0000;
    position: relative;
    padding-bottom: 120px; /* Spazio per il player fisso */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="8" fill="%23ffd700" opacity="0.3"/><circle cx="80" cy="70" r="6" fill="%23ff6b6b" opacity="0.2"/><circle cx="50" cy="20" r="4" fill="%23ffb347" opacity="0.4"/><circle cx="30" cy="80" r="5" fill="%23ffd700" opacity="0.3"/><circle cx="70" cy="40" r="3" fill="%23ff8e8e" opacity="0.2"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

@keyframes sunsetGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fixed Music Player Styles */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(139, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    z-index: 1000;
    padding: 10px 15px;
    box-shadow: 0 -5px 20px rgba(139, 0, 0, 0.3);
}

.player-controls-top {
    position: absolute;
    top: 30px;
    right: 15px;
    list-style: none;
    display: flex;
}

.close-player {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-player:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.close-player svg {
    width: 18px;
    height: 18px;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.song-cover {
    flex-shrink: 0;
}

.player-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffd700;
}

.song-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-title {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
}

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

.time-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8e8e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.media-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.play-btn {
    background: #ffd700;
    color: #8b0000;
    width: 40px;
    height: 40px;
}

.play-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.play-btn svg {
    width: 16px;
    height: 16px;
}

/* Loop Button Styles */
.loop-btn {
    position: relative;
}

.loop-btn.active {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.2) !important;
}

.loop-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.2); }
}

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

.volume-slider {
    width: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-section:hover .volume-slider {
    opacity: 1;
}

.volume-control {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
}

.volume-control::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-bottom: 140px;
    }

    .fixed-player {
        padding: 8px 10px;
    }

    .player-content {
        flex-direction: column;
        gap: 12px;
    }

    .song-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .player-controls {
        width: 100%;
        max-width: none;
    }

    .media-controls {
        gap: 20px;
    }

    .volume-section .volume-slider {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(139, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
    position: relative;
    flex: 1;
    min-width: 0;
}

header h1::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -25px;
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

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

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #8b0000;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.3);
    color: #8b0000;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.song-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 205, 0.9));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.song-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
    transform: scale(0);
}

.song-card:hover::before {
    transform: scale(1);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.7);
}

.song-image {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.song-card:hover .song-image {
    border-color: rgba(255, 215, 0, 0.8);
}

.song-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #8b0000;
    text-align: center;
}

.song-artist {
    color: #8b0000;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.8;
}

.song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rest of existing styles... */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 1.50rem !important;
    min-width: 140px !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffb347, #ffd700);
    color: #8b0000;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ffa500, #ffdf00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 179, 71, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 1.50rem !important;
    min-width: 140px !important;
}

/* Modal styles... */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 235, 205, 0.95));
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 1002;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 235, 205, 0.98));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #8b0000;
    transition: all 0.3s ease;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #8b0000;
}

.spinner {
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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


/* Aggiungi questi stili alla fine del file style.css esistente */

/* Filters Section */
.filters-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 205, 0.9));
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.filters-section h3 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.filter-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.filter-btn.active:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
}

/* Song Tags */
.song-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.song-tag {
    background: linear-gradient(45deg, rgba(255, 179, 71, 0.8), rgba(255, 215, 0, 0.8));
    color: #8b0000;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(139, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.song-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.5);
}

/* Tag Input e Suggestions */
.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.tag-suggestion {
    background: rgba(255, 215, 0, 0.2);
    color: #8b0000;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.tag-suggestion:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

/* Admin Tags Display */
.admin-song-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.admin-song-tag {
    background: rgba(255, 215, 0, 0.3);
    color: #8b0000;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Song Details Tags */
.song-details-tags {
    margin: 1rem 0;
    text-align: center;
}

.song-details-tags h4 {
    color: #8b0000;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Dancing Script', cursive;
}

.song-details-tags .song-tags {
    justify-content: center;
}

.song-details-tags .song-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* Mobile Responsive per Tags e Filtri */
@media (max-width: 768px) {
    .filters-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .filters-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .filters-container {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .song-tags {
        margin: 0.3rem 0;
        gap: 0.2rem;
    }

    .song-tag {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }

    .tag-suggestions {
        gap: 0.2rem;
        margin-top: 0.3rem;
    }

    .tag-suggestion {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 0.8rem;
    }

    .filters-section h3 {
        font-size: 1.1rem;
    }

    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .song-tag {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
    }

    .admin-song-tag {
        padding: 0.05rem 0.3rem;
        font-size: 0.6rem;
    }
}

/* Animazioni per il filtro */
.song-card.filtering-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.song-card.filtering-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Loading state per filtri */
.filters-loading {
    text-align: center;
    padding: 1rem;
    color: #8b0000;
    font-style: italic;
}

/* Tag emoji icons per generi specifici */
.filter-btn[data-tag="pop"]::before { content: "🎤 "; }
.filter-btn[data-tag="romantic"]::before { content: "💕 "; }
.filter-btn[data-tag="bachata"]::before { content: "💃 "; }
.filter-btn[data-tag="edm"]::before { content: "🎧 "; }
.filter-btn[data-tag="rock"]::before { content: "🎸 "; }
.filter-btn[data-tag="jazz"]::before { content: "🎷 "; }
.filter-btn[data-tag="blues"]::before { content: "🎺 "; }
.filter-btn[data-tag="reggae"]::before { content: "🌴 "; }
.filter-btn[data-tag="hip-hop"]::before { content: "🎤 "; }
.filter-btn[data-tag="country"]::before { content: "🤠 "; }
.filter-btn[data-tag="latin"]::before { content: "🌶️ "; }
.filter-btn[data-tag="folk"]::before { content: "🎻 "; }
.filter-btn[data-tag="ballad"]::before { content: "🌙 "; }
.filter-btn[data-tag="remix"]::before { content: "🔀 "; }

/* Stessi emoji per i tag delle canzoni */
.song-tag[data-tag="pop"]::before { content: "🎤 "; }
.song-tag[data-tag="romantic"]::before { content: "💕 "; }
.song-tag[data-tag="bachata"]::before { content: "💃 "; }
.song-tag[data-tag="edm"]::before { content: "🎧 "; }
.song-tag[data-tag="rock"]::before { content: "🎸 "; }
.song-tag[data-tag="jazz"]::before { content: "🎷 "; }
.song-tag[data-tag="blues"]::before { content: "🎺 "; }
.song-tag[data-tag="reggae"]::before { content: "🌴 "; }
.song-tag[data-tag="hip-hop"]::before { content: "🎤 "; }
.song-tag[data-tag="country"]::before { content: "🤠 "; }
.song-tag[data-tag="latin"]::before { content: "🌶️ "; }
.song-tag[data-tag="folk"]::before { content: "🎻 "; }
.song-tag[data-tag="ballad"]::before { content: "🌙 "; }
.song-tag[data-tag="remix"]::before { content: "🔀 "; }


/* Messaggio nessuna canzone trovata */
.no-songs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 205, 0.9));
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 2rem 0;
}

.no-songs-message h3 {
    font-family: 'Dancing Script', cursive;
    color: #8b0000;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

.no-songs-message p {
    color: #b22222;
    font-size: 1rem;
    line-height: 1.5;
}

#lyrics-container .active {
    color: #b22222;
    font-size: 16px;
    font-weight: bold;
}

.player-song-lyrics {
    padding-bottom: 10px;
    text-align: center;
}

.player-song-lyrics p{
    color: wheat;
}