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

:root {
    --bg-primary: #121212;
    --bg-secondary: #181818;
    --bg-tertiary: #282828;
    --bg-hover: #333333;
    --accent: #ff6b00;
    --accent-hover: #ff8533;
    --accent-dark: #cc5500;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #727272;
    --border: #333333;
    --success: #1db954;
    --error: #e74c3c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--accent);
}

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

.nav-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    /* iOS Safari fixes */
    -webkit-tap-highlight-color: rgba(255, 107, 0, 0.3);
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 10;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #b3b3b3;
    transition: fill 0.3s ease;
    /* Safari iOS fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Safari iOS specific fixes for SVG rendering */
@supports (-webkit-touch-callout: none) {
    .nav-btn svg path {
        fill: #b3b3b3 !important; /* Fallback solid color for iOS Safari */
    }

    .nav-btn:hover svg path {
        fill: #ff6b00 !important;
    }

    .nav-btn.active svg path {
        fill: #ffffff !important;
    }

    .login-btn svg path {
        fill: #ffffff !important;
    }
}

/* Additional iOS Safari SVG fix - target path directly */
.nav-btn svg path {
    fill: inherit;
}

.login-btn svg path {
    fill: white;
}

.nav-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
    color: #ff6b00;
}

.nav-btn:hover svg {
    fill: #ff6b00 !important;
}

.nav-btn:hover svg path {
    fill: #ff6b00 !important;
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    border-color: #ff6b00;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    color: white;
}

.nav-btn.active svg {
    fill: white !important;
}

.nav-btn.active svg path {
    fill: white !important;
}

.login-btn {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%) !important;
    border-color: #0088cc !important;
    animation: pulse 2s infinite;
    color: white !important;
}

.login-btn svg {
    fill: white !important;
}

.login-btn svg path {
    fill: white !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0077bb 0%, #1a8ec8 100%) !important;
    border-color: #0077bb !important;
    transform: translateY(-2px);
    color: white !important;
}

.login-btn:hover svg path {
    fill: white !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }
}

/* Search Section */
.search-section {
    padding: 80px 24px 24px;
    background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg-primary));
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--text-primary);
    border-radius: 50px;
    padding: 12px 20px;
    gap: 12px;
}

.search-box svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-tertiary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--bg-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse-search 1.5s ease-in-out infinite;
    position: relative;
}

.search-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.search-btn:hover::before {
    animation: none;
}

.search-btn.searching {
    animation: spin 1s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

.search-btn.searching::before {
    animation: none;
}

.search-btn.searching svg {
    opacity: 0.5;
}

@keyframes pulse-search {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 107, 0, 0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.search-btn svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Info Buttons */
.info-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.info-btn svg {
    color: var(--accent);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-note {
    padding: 16px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.step-note strong {
    color: var(--accent);
}

.subscribe-note ul {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.subscribe-note li {
    padding: 6px 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .info-buttons {
        flex-direction: column;
    }

    .info-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 20px;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 20px;
    }
}

/* Results */
.results-section {
    padding: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.tracks-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Track Card */
.track-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.track-card:hover {
    background: var(--bg-hover);
}

.track-card .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.track-card:hover .delete-btn {
    opacity: 1;
}

.track-card .delete-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

.track-card .delete-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.track-card.playing {
    background: linear-gradient(90deg, rgba(255,107,0,0.2), transparent);
    border-left: 3px solid var(--accent);
}

.track-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.track-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-card:hover .track-cover-overlay {
    opacity: 1;
}

.track-cover-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Track Progress Badges */
.track-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.track-badge-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
}

.track-badge-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
}

/* Progress Legend */
.progress-legend {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.legend-badge-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
}

.legend-badge-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
}

.legend-text {
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 768px) {
    .progress-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.track-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.track-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.track-btn.play-btn {
    background: var(--accent);
}

.track-btn.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.track-btn.favorite-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
}

.track-btn.favorite-btn:hover {
    border-color: #1db954;
    background: rgba(29, 185, 84, 0.1);
}

.track-btn.favorite-btn.active {
    background: #1db954;
    border-color: #1db954;
}

.track-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.track-btn.favorite-btn svg {
    fill: var(--text-secondary);
}

.track-btn.favorite-btn:hover svg {
    fill: #1db954;
}

.track-btn.favorite-btn.active svg {
    fill: white;
    animation: heartbeat 0.3s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.track-btn.download-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    position: relative;
    overflow: hidden;
}

.track-btn.download-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
}

.track-btn.download-btn.downloading {
    border-color: var(--accent);
}

.track-btn.download-btn.downloaded {
    background: var(--accent);
    border-color: var(--accent);
}

/* Download progress circle */
.download-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.track-btn.download-btn.downloading .download-progress {
    display: block;
}

.track-btn.download-btn.downloading .download-icon {
    opacity: 0.3;
}

.track-btn.download-btn.downloaded .download-icon {
    opacity: 1;
}

.download-progress-circle {
    transform: rotate(-90deg);
    transform-origin: center;
}

.download-progress-bg {
    fill: none;
    stroke: rgba(255, 107, 0, 0.2);
    stroke-width: 3;
}

.download-progress-bar {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

/* Spinning animation for initial state */
@keyframes spin {
    to { transform: rotate(270deg); }
}

.track-btn.download-btn.downloading.indeterminate svg.download-progress {
    animation: spin 1s linear infinite;
}

.track-btn.download-btn svg {
    fill: var(--text-secondary);
}

.track-btn.download-btn:hover svg {
    fill: var(--accent);
}

.track-btn.download-btn.downloaded svg {
    fill: white;
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
}

.player-bar.active {
    transform: translateY(0);
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px;
    flex-shrink: 0;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.player-text {
    min-width: 0;
}

.player-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.player-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

.player-btn:hover svg {
    fill: var(--text-primary);
}

.player-btn.main-btn {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
}

.player-btn.main-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.player-btn.main-btn svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
}

.time-display {
    font-size: 12px;
    color: var(--text-muted);
    width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0;
    position: relative;
    transition: width 0.1s;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

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

.volume-icon {
    cursor: pointer;
}

.volume-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
    animation: fadeIn 0.3s ease-in;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.loading span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    animation: pulse-text 1.5s ease-in-out infinite;
}

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

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

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .logo {
        font-size: 16px;
    }

    .search-section {
        padding: 72px 16px 20px;
    }

    .search-box {
        padding: 10px 16px;
    }

    .results-section {
        padding: 16px;
        padding-bottom: 100px;
    }

    .track-card {
        padding: 10px;
        gap: 12px;
    }

    .track-cover {
        width: 48px;
        height: 48px;
    }

    .track-title {
        font-size: 14px;
    }

    .track-artist {
        font-size: 12px;
    }

    .track-duration {
        display: none;
    }

    .player-bar {
        height: 72px;
        padding: 0 12px;
        gap: 12px;
    }

    .player-track-info {
        width: auto;
        flex: 0 0 auto;
    }

    .player-cover {
        width: 48px;
        height: 48px;
    }

    .player-text {
        display: none;
    }

    .player-controls {
        gap: 4px;
    }

    .player-buttons {
        gap: 12px;
    }

    .player-btn {
        padding: 4px;
    }

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

    .player-btn.main-btn {
        width: 40px;
        height: 40px;
    }

    .player-volume {
        display: none;
    }

    .progress-container {
        width: 100%;
    }

    .time-display {
        font-size: 10px;
        width: 32px;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* Telegram Theme Integration */
body.tg-theme-dark {
    --bg-primary: var(--tg-theme-bg-color, #121212);
    --bg-secondary: var(--tg-theme-secondary-bg-color, #181818);
    --text-primary: var(--tg-theme-text-color, #ffffff);
}

/* Subscription Required Block */
.subscription-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.subscription-required .lock-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.subscription-required h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.subscription-required p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 300px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* JBL Mode Button Styles */
.player-extras {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.jbl-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ff6b00;
    color: #ff6b00;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.jbl-mode-btn:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
}

.jbl-mode-btn.active {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.7);
    animation: jbl-pulse 2s infinite;
}

.jbl-icon {
    width: 18px;
    height: 18px;
}

.jbl-label {
    letter-spacing: 1px;
}

@keyframes jbl-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 0, 0.9), 0 0 40px rgba(255, 140, 0, 0.5);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .player-extras {
        margin-left: 10px;
    }
    
    .jbl-mode-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .jbl-icon {
        width: 14px;
        height: 14px;
    }
    
    .jbl-label {
        display: none;
    }
}

/* AirPods Mode Button Styles */
.airpods-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #007AFF;
    color: #007AFF;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.airpods-mode-btn:hover {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.5);
}

.airpods-mode-btn.active {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.7);
    animation: airpods-pulse 2s infinite;
}

.airpods-icon {
    width: 20px;
    height: 20px;
}

.airpods-label {
    letter-spacing: 1px;
}

@keyframes airpods-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 122, 255, 0.9), 0 0 40px rgba(90, 200, 250, 0.5);
    }
}

@media (max-width: 768px) {
    .airpods-mode-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .airpods-icon {
        width: 16px;
        height: 16px;
    }
    
    .airpods-label {
        display: none;
    }
}


/* JBL Bass Mode Button - Deep Bass Theme */
.jbl-bass-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.jbl-bass-mode-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.5);
}

.jbl-bass-mode-btn.active {
    background: linear-gradient(135deg, #DC143C 0%, #FF4500 100%);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: bass-pulse 1s ease-in-out infinite;
}

@keyframes bass-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.jbl-bass-mode-btn svg {
    width: 18px;
    height: 18px;
}

.jbl-bass-label {
    letter-spacing: 1px;
}
