* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff385c;
    --secondary-color: #222222;
    --background: #ffffff;
    --text-primary: #222222;
    --text-secondary: #717171;
    --border-color: #dddddd;
    --shadow: 0 1.5px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.logo i {
    font-size: 28px;
}

.admin-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-upload {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background-color: #ff1744;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-public {
    background-color: #6B8DBE;
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-public:hover {
    background-color: #87CEEB;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-spotify {
    background-color: #1DB954;
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-spotify:hover {
    background-color: #1ed760;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-youtube {
    background-color: #FF0000;
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    margin-left: -10px;
}

.btn-youtube:hover {
    background-color: #CC0000;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6B8DBE 0%, #87CEEB 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff1744;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Music Section */
.music-section {
    padding: 80px 20px;
    background-color: #fafafa;
}

.music-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Messages Section */
.messages-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.messages-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.messages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.message-card {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.message-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.message-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.message-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.message-card .message-time {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-header div {
    flex: 1;
}

.message-email {
    font-size: 14px;
    color: #0066cc;
    margin-top: 5px;
    margin-bottom: 0;
}

.delete-msg-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.delete-msg-btn:hover {
    color: #d32f2f;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.music-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.music-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.edit-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    background-color: rgba(0, 122, 255, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.edit-btn:hover {
    background-color: #0051D5;
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 56, 92, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.4);
}

.delete-btn:hover {
    background-color: #ff1744;
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.music-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: fit-content;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    background: linear-gradient(135deg, #6B8DBE 0%, #87CEEB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover .card-overlay {
    opacity: 0;
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: #ff1744;
    transform: scale(1.1);
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-type {
    display: inline-block;
    background-color: #f0f0f0;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    width: fit-content;
}

.card-type.album {
    background-color: #e3f2fd;
    color: #1976d2;
}

.card-type.single {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.2;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-artist {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-release-date {
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.card-tracks {
    display: block;
    margin: 8px 0;
    max-height: 150px;
    overflow-y: auto;
}

.spotify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1DB954;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.spotify-link:hover {
    background-color: #1ed760;
    transform: scale(1.1);
}

.download-btn {
    flex: 1;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-detail {
    max-width: 600px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    margin-left: 0;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

/* Preview Player */
.preview-player {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preview-player-detail {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.preview-player-detail h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.preview-player-detail small {
    color: var(--text-secondary);
}
.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6B8DBE 0%, #87CEEB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.detail-info p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.detail-actions button,
.detail-actions a {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.detail-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.detail-actions .btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.detail-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.detail-description h4 {
    margin-bottom: 15px;
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Artwork Gallery */
.artwork-gallery {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.artwork-gallery h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.artwork-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.artwork-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-item:hover img {
    transform: scale(1.05);
}

.artwork-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer i {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Content Section */
.content-section {
    padding: 80px 20px;
    background-color: #fafafa;
    min-height: calc(100vh - 200px);
}

.content-section h1 {
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 3px solid #6B8DBE;
}

.content-body h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #6B8DBE;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.content-body p {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.contact-form button {
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #ff1744;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
}

.success-message i {
    font-size: 24px;
    color: #4caf50;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
    }

    .detail-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 500px) {
    .nav-links {
        gap: 10px;
        font-size: 14px;
    }

    .nav-links a {
        display: none;
    }

    .btn-upload {
        padding: 6px 12px;
        font-size: 14px;
    }

    .admin-badge {
        display: none;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .music-grid {
        grid-template-columns: 1fr;
    }

    .music-section h2 {
        font-size: 24px;
    }

    .content-section h1 {
        font-size: 24px;
    }

    .content-body,
    .contact-form-container {
        padding: 20px;
    }

    .contact-form button {
        width: 100%;
        align-self: stretch;
    }
}
