* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: #0a0e1a;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 30px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    color: #6b7280;
    margin-top: 8px;
}

.top-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.top-menu-btn {
    background: #1e293b;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.top-menu-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

.top-menu-btn.active {
    background: #3b82f6;
    color: #fff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    min-width: 220px;
    border-radius: 16px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 100;
    border: 1px solid #334155;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content button {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-content button:hover {
    background: #334155;
}

.guitar-dropdown {
    position: relative;
    display: inline-block;
}

.guitar-type-btn {
    background: #7c3aed;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

.guitar-type-btn:hover {
    background: #6d28d9;
}

.mode-panel {
    background: #0f172a;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #1e293b;
}

.mode-panel h2 {
    margin-bottom: 20px;
    color: #3b82f6;
    font-size: 24px;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.song-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.song-card:hover {
    background: #334155;
    transform: translateX(5px);
    border-color: #3b82f6;
}

.song-info {
    flex: 1;
}

.song-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #3b82f6;
}

.song-artist {
    font-size: 14px;
    color: #9ca3af;
}

.song-tempo {
    background: #0f172a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

.player-header {
    text-align: center;
    margin-bottom: 20px;
}

.player-header h2 {
    color: #3b82f6;
    margin: 10px 0 5px;
}

.player-header h3 {
    color: #9ca3af;
    font-size: 18px;
    font-weight: normal;
}

.player-guitar-type {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.player-guitar-type.clean {
    background: #10b981;
    color: #fff;
}

.player-guitar-type.distortion {
    background: #ef4444;
    color: #fff;
}

.back-btn {
    background: #1e293b;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.back-btn:hover {
    background: #334155;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #0f172a;
    padding: 15px 20px;
    border-radius: 50px;
}

.original-tempo {
    background: #1e293b;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    color: #3b82f6;
}

.editor-container .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #0f172a;
    padding: 15px 20px;
    border-radius: 50px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #9ca3af;
    font-size: 14px;
}

input[type="range"] {
    width: 130px;
    cursor: pointer;
    background: #1e293b;
    height: 4px;
    border-radius: 5px;
}

input[type="range"]:focus {
    outline: none;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    font-family: inherit;
}

.btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.btn.play { background: #10b981; color: white; }
.btn.stop { background: #ef4444; color: white; }
.btn.clear { background: #6b7280; color: white; }
.btn.save { background: #3b82f6; color: white; }
.btn.load { background: #8b5cf6; color: white; }
.btn.add { background: #f59e0b; color: white; }
.btn.remove { background: #f97316; color: white; }

.fretboard-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

.fretboard {
    background: #0f172a;
    min-width: max-content;
}

.string-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background: #1e293b;
    border-radius: 10px;
    padding: 4px 0;
}

.string-label {
    width: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    font-family: monospace;
    color: #3b82f6;
    flex-shrink: 0;
}

.string-cells {
    display: flex;
    gap: 2px;
}

.cell {
    width: 55px;
    height: 42px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #9ca3af;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.cell.has-note {
    background: #1e3a5f;
    color: #3b82f6;
    font-weight: bold;
    font-family: monospace;
    font-size: 15px;
}

.cell.selected {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
    background: #2e4a7a;
}

.metronome-panel {
    text-align: center;
}

.metro-mode-indicator {
    text-align: center;
    background: #1e293b;
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    margin: 0 auto 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    width: auto;
}

.metronome-circle {
    width: 180px;
    height: 180px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #334155;
    transition: 0.05s linear;
}

.metronome-circle.active {
    transform: scale(1.03);
    border-color: #3b82f6;
    box-shadow: 0 0 20px #3b82f655;
}

.metro-start-btn {
    width: 70px;
    height: 70px;
    background: #10b981;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

.metro-start-btn.stop {
    background: #ef4444;
}

.metro-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.metro-select {
    background: #1e293b;
    color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
}

.metro-status {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 15px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #334155;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #3b82f6;
}

.save-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #334155;
    cursor: pointer;
}

.save-item:hover {
    background: #334155;
}

.save-name {
    font-weight: bold;
    color: #3b82f6;
}

.save-date {
    font-size: 11px;
    color: #9ca3af;
}

.delete-save {
    background: #ef4444;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 11px;
}

.close-modal {
    background: #6b7280;
    border: none;
    padding: 10px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.info {
    margin-top: 15px;
    padding: 15px 20px;
    background: #0f172a;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
}

.info strong {
    color: #3b82f6;
}

.feedback-section {
    position: relative;
    margin: 30px 0 20px;
    display: flex;
    justify-content: center;
}

.feedback-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.feedback-form {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: #1e293b;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1000;
    display: none;
    border: 1px solid #334155;
    animation: slideIn 0.3s ease;
}

.feedback-form.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feedback-header h3 {
    color: #3b82f6;
    font-size: 20px;
    margin: 0;
}

.feedback-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: 0.1s;
}

.feedback-close:hover {
    color: #ef4444;
}

.feedback-desc {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
}

.feedback-field {
    margin-bottom: 18px;
}

.feedback-field label {
    display: block;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: 0.15s;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: #4b5563;
}

.feedback-send {
    width: 100%;
    background: #10b981;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.1s;
    font-family: inherit;
    margin-top: 10px;
}

.feedback-send:hover {
    background: #059669;
    transform: scale(1.01);
}

.feedback-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.feedback-result.success {
    display: block;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.feedback-result.error {
    display: block;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.site-footer {
    text-align: center;
    padding: 25px 0 10px;
    color: #4b5563;
    font-size: 12px;
    border-top: 1px solid #1e293b;
    margin-top: 20px;
}

@media (max-width: 500px) {
    .feedback-form {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 700px) {
    .cell {
        width: 45px;
        height: 36px;
        font-size: 12px;
    }
    .string-label {
        width: 40px;
        font-size: 14px;
    }
}