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

:root {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #007bff;
    --accent-hover: #0056b3;
    --border: #e1e5e9;
    --shadow: rgba(0, 0, 0, 0.1);
    --progress-bg: #e9ecef;
    --progress-fill: #007bff;
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #dc3545;
    --accent-hover: #c82333;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
    --progress-bg: #333333;
    --progress-fill: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
    padding-top: 50px;
}

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

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

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

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

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--bg-secondary);
    min-width: 200px;
    box-shadow: 0 8px 16px var(--shadow);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    border: 2px solid var(--border);
    margin-top: 5px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-primary);
    color: var(--accent);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.player-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed var(--border);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent);
    opacity: 0.1;
}

.upload-area:hover {
    border-color: var(--accent);
}

.upload-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.streaming-area {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--border);
}

.streaming-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.streaming-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.streaming-input::placeholder {
    color: var(--text-secondary);
}

.current-song {
    text-align: center;
    margin-bottom: 30px;
}

.song-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.song-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.control-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 18px;
}

.control-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

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

.control-btn.active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-size: 24px;
}

.play-pause-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.volume-slider {
    width: 150px;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

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

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

.playlist {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow);
}

.playlist-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: var(--bg-primary);
}

.playlist-item.active {
    background: var(--accent);
    color: white;
}

.playlist-item.active:hover {
    background: var(--accent-hover);
}

.song-number {
    width: 30px;
    text-align: center;
    font-weight: 600;
    margin-right: 15px;
}

.song-details {
    flex: 1;
}

.song-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.song-duration {
    font-size: 0.85rem;
    opacity: 0.8;
}

.remove-btn {
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.playlist-item:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #ffca2c;
    transform: scale(1.1);
}

.empty-playlist {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.repeat-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn.active .repeat-indicator {
    opacity: 1;
}

/* Features page styles */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--accent);
}

.feature-card.feature-completed {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(76, 175, 80, 0.08) 100%);
    opacity: 0.95;
}

.feature-card.feature-completed:hover {
    opacity: 1;
}

.feature-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.feature-checkbox {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .controls {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .play-pause-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
        order: 3;
        flex-basis: 100%;
        margin: 10px 0;
    }
    
    .volume-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header {
        flex-wrap: wrap;
    }

    .dropdown-content {
        right: 0;
        left: auto;
    }

    .features-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WARNING BAR & POPUP STYLES
   ============================================ */

/* Warning Bar - Top of Site */
.warning-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: slideDown 0.3s ease;
}

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

.warning-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 100%;
}

.warning-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.warning-close-btn:hover {
    opacity: 1;
}

/* Warning Popup Modal */
.warning-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.warning-popup-content {
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.warning-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

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

.warning-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.warning-popup-close:hover {
    opacity: 1;
}

.warning-popup-body {
    padding: 25px;
    color: var(--text-primary);
}

.warning-popup-body p {
    margin: 10px 0;
    line-height: 1.6;
}

.warning-popup-body ul {
    margin: 10px 0 10px 25px;
    padding: 0;
}

.warning-popup-body li {
    margin: 8px 0;
    line-height: 1.5;
}

.warning-popup-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.warning-popup-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.warning-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}
/* ============================================
   DOWNLOAD SECTION STYLES
   ============================================ */

.download-section {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-top: 40px;
}

.download-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.download-section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.download-sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.download-site-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.download-site-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow);
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.site-link {
    margin-bottom: 15px;
}

.site-link a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.site-link a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.site-supports {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.support-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.site-note {
    color: #ff9800;
    font-size: 0.85rem;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.instructions-container,
.tips-container {
    margin-top: 35px;
}

.instructions-container h3,
.tips-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.instruction-steps {
    display: grid;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: var(--bg-primary);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.tips-list li {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tips-list strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .download-section {
        padding: 20px;
    }

    .download-section h2 {
        font-size: 1.4rem;
    }

    .download-sites-container {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}