/* MUZ11 Custom Styles */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --muted-text: #666;
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --playlist-bg: #ffffff;
    --playlist-item-hover: #f8f9fa;
    --playlist-item-active: #e7f3ff;
}

[data-theme="dark"] {
    --text: #e0e0e0;
    --muted-text: #a0a0a0;
    --bg-primary: #1a1a2e;
    --bg-secondary: #252540;
    --bg-card: #2a2a4a;
    --border-color: #3a3a5a;
    --playlist-bg: #252540;
    --playlist-item-hover: #2a2a4a;
    --playlist-item-active: #2d3561;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.navbar-brand .volume {
    color: #ffd700;
}

.navbar-brand .domain {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 2px;
}

.navbar-nav {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white !important;
}

/* Home Page */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero .volume {
    color: #ffd700;
}

.hero .tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 1rem auto;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.how-it-works {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* Player */
.player-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.loading p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text);
}

.youtube-player {
    max-width: 1400px;
    margin: 0 auto;
}

.player-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.player-main {
    min-width: 0;
}

.now-playing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.now-playing h5 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.now-playing h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.now-playing p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.now-playing small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-wrapper > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.controls button {
    min-width: 120px;
}

.playlist-sidebar h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text);
}

.playlist-items {
    max-height: 640px;
    overflow-y: auto;
    background: var(--playlist-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    gap: 1rem;
}

.playlist-item:hover {
    background: var(--playlist-item-hover);
}

.playlist-item.active {
    background: var(--playlist-item-active);
    font-weight: 600;
}

.rank-badge {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-artist {
    color: var(--muted-text);
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Pricing */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--muted-text);
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-card .features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-section {
    margin-top: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Browse */
.browse-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.playlist-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.playlist-image.placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.playlist-info {
    padding: 1.5rem;
}

.playlist-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.playlist-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 968px) {
    .player-layout {
        grid-template-columns: 1fr;
    }

    .playlist-sidebar {
        position: static;
    }

    .playlist-items {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .controls button span {
        display: none;
    }

    .pricing-card.featured {
        transform: none;
    }
}
