/*
beatmix.localhost.docserver.pro    BeatMix - Custom Styles
   All classes prefixed with bm- to avoid
   overwriting Bootstrap classes.
   ============================================= */

/* --- Variables --- */

:root {
    --bm-bg: #FAFAF8;
    --bm-bg-alt: #F0EDE8;
    --bm-surface: #FFFFFF;
    --bm-surface-warm: #FFF8F0;
    --bm-text: #1A1A2E;
    --bm-text-secondary: #5A5A7A;
    --bm-text-muted: #9999AA;
    --bm-primary: #FF4D6D;
    --bm-primary-light: rgba(255, 77, 109, 0.1);
    --bm-secondary: #4361EE;
    --bm-secondary-light: rgba(67, 97, 238, 0.1);
    --bm-accent: #7209B7;
    --bm-accent-light: rgba(114, 9, 183, 0.1);
    --bm-orange: #FF8500;
    --bm-orange-light: rgba(255, 133, 0, 0.1);
    --bm-whatsapp: #25D366;
    --bm-border: #E8E8EE;
    --bm-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
    --bm-shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.1);
    --bm-radius: 16px;
    --bm-radius-sm: 10px;
    --bm-radius-xs: 6px;
    --bm-transition: 0.25s ease;
    --bm-font-display: 'Space Grotesk', sans-serif;
    --bm-font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bm-bg);
    color: var(--bm-text);
    font-family: var(--bm-font-body);
    padding-bottom: 80px;
    overflow-x: hidden;
}


/* --- Utilities --- */

.bm-text-accent {
    color: var(--bm-primary);
}

.bm-section-label {
    font-family: var(--bm-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bm-primary);
    margin-bottom: 8px;
}

.bm-section-title {
    font-family: var(--bm-font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 8px;
}

.bm-section-subtitle {
    font-size: 1rem;
    color: var(--bm-text-secondary);
}


/* --- Buttons --- */

.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--bm-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--bm-transition), box-shadow var(--bm-transition), background-color var(--bm-transition);
    border: none;
    cursor: pointer;
}

.bm-btn:hover {
    transform: translateY(-2px);
}

.bm-btn-primary {
    background-color: var(--bm-primary);
    color: #fff;
}

.bm-btn-primary:hover {
    box-shadow: 0 6px 24px rgba(255, 77, 109, 0.35);
    color: #fff;
}

.bm-btn-outline {
    background-color: transparent;
    color: var(--bm-text);
    border: 2px solid var(--bm-border);
}

.bm-btn-outline:hover {
    border-color: var(--bm-text-secondary);
    color: var(--bm-text);
}

.bm-btn-google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background-color: var(--bm-surface);
    color: var(--bm-text);
    border: 2px solid var(--bm-border);
    border-radius: 50px;
    font-family: var(--bm-font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--bm-transition), box-shadow var(--bm-transition), transform var(--bm-transition);
    width: 100%;
    justify-content: center;
}

.bm-btn-google:hover {
    border-color: var(--bm-text-secondary);
    box-shadow: var(--bm-shadow);
    transform: translateY(-1px);
}


/* --- Navbar --- */

.bm-navbar {
    background-color: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bm-border);
    padding: 8px 0;
}

.bm-brand {
    font-family: var(--bm-font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bm-text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.bm-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--bm-radius-sm);
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-accent));
    color: #fff;
    font-size: 1.1rem;
}

.bm-navbar .nav-link {
    font-family: var(--bm-font-display);
    font-weight: 500;
    color: var(--bm-text-secondary) !important;
    padding: 8px 16px !important;
    font-size: 0.9rem;
    transition: color var(--bm-transition);
}

.bm-navbar .nav-link:hover {
    color: var(--bm-text) !important;
}

.bm-nav-user {
    margin-left: 8px;
}

.bm-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bm-border);
    cursor: pointer;
}

.bm-nav-login-btn {
    padding: 6px 20px;
    background-color: var(--bm-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--bm-font-display);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color var(--bm-transition), transform var(--bm-transition);
}

.bm-nav-login-btn:hover {
    transform: translateY(-1px);
}

.bm-navbar .navbar-toggler {
    border-color: var(--bm-border);
}

.bm-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 46, 0.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* --- Views --- */

.bm-view {
    display: none;
}

.bm-view-active {
    display: block;
}

.bm-page-container {
    padding-top: 100px;
    padding-bottom: 40px;
}


/* --- Hero --- */

.bm-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.bm-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bm-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(250, 250, 248, 0.88) 0%,
        rgba(250, 250, 248, 0.72) 40%,
        rgba(250, 250, 248, 0.55) 100%
    );
}

.bm-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bm-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.bm-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--bm-primary);
    top: -100px;
    right: -100px;
    animation: bm-float 12s ease-in-out infinite alternate;
}

.bm-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--bm-secondary);
    bottom: 10%;
    left: -80px;
    animation: bm-float 10s ease-in-out 2s infinite alternate;
}

.bm-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--bm-accent);
    top: 40%;
    right: 20%;
    animation: bm-float 8s ease-in-out 1s infinite alternate;
}

@keyframes bm-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

.bm-hero-content {
    position: relative;
    z-index: 2;
}

.bm-hero-label {
    font-family: var(--bm-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--bm-primary);
    margin-bottom: 16px;
}

.bm-hero-title {
    font-family: var(--bm-font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--bm-text);
    margin-bottom: 20px;
}

.bm-hero-subtitle {
    font-size: 1.15rem;
    color: var(--bm-text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
}

.bm-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-btn-outline-hero {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--bm-text);
    border: 2px solid var(--bm-border);
    backdrop-filter: blur(8px);
}

.bm-btn-outline-hero:hover {
    border-color: var(--bm-text-secondary);
    color: var(--bm-text);
    background-color: rgba(255, 255, 255, 0.9);
}

.bm-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-hero-disc {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-primary-light), var(--bm-secondary-light), var(--bm-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bm-spin-slow 20s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 40px rgba(255, 77, 109, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.3);
}

.bm-hero-disc-inner {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: bm-spin-slow 20s linear infinite reverse;
}

.bm-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes bm-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Home Sections --- */

.bm-home-section {
    padding: 80px 0;
}

.bm-home-section-alt {
    background-color: var(--bm-bg-alt);
}


/* --- Login Card --- */

.bm-login-card {
    background-color: var(--bm-surface);
    border-radius: var(--bm-radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--bm-shadow);
    border: 1px solid var(--bm-border);
}

.bm-login-title {
    font-family: var(--bm-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bm-login-subtitle {
    color: var(--bm-text-secondary);
    margin-bottom: 28px;
}

.bm-login-google {
    margin-bottom: 16px;
}

.bm-login-note {
    font-size: 0.85rem;
    color: var(--bm-text-muted);
}


/* --- About --- */

.bm-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bm-text-secondary);
    margin-bottom: 12px;
}


/* --- Connect Cards --- */

.bm-connect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background-color: var(--bm-surface);
    border-radius: var(--bm-radius);
    border: 1px solid var(--bm-border);
    text-decoration: none;
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-connect-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bm-shadow-lg);
}

.bm-connect-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bm-icon-whatsapp {
    color: var(--bm-whatsapp);
}

.bm-icon-web {
    color: var(--bm-secondary);
}

.bm-connect-label {
    font-family: var(--bm-font-display);
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 4px;
}

.bm-connect-desc {
    font-size: 0.85rem;
    color: var(--bm-text-secondary);
}


/* --- Albums Grid --- */

.bm-album-card {
    background-color: var(--bm-surface);
    border-radius: var(--bm-radius);
    border: 1px solid var(--bm-border);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
    margin-bottom: 24px;
}

.bm-album-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bm-shadow-lg);
}

.bm-album-art {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bm-album-art-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.bm-album-art i {
    font-size: 3rem;
    color: #fff;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.bm-album-body {
    padding: 20px;
}

.bm-album-title {
    font-family: var(--bm-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bm-album-meta {
    font-size: 0.85rem;
    color: var(--bm-text-secondary);
}

.bm-album-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--bm-font-display);
    letter-spacing: 0.5px;
    margin-top: 8px;
}


/* --- Tracks --- */

.bm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--bm-primary);
    font-family: var(--bm-font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: color var(--bm-transition);
}

.bm-back-btn:hover {
    color: var(--bm-accent);
}

.bm-tracklist {
    max-width: 800px;
}

.bm-track {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--bm-radius-sm);
    background-color: var(--bm-surface);
    margin-bottom: 6px;
    transition: background-color var(--bm-transition), transform var(--bm-transition), box-shadow var(--bm-transition);
    cursor: pointer;
    gap: 14px;
    border: 1px solid transparent;
}

.bm-track:hover {
    background-color: var(--bm-surface-warm);
    transform: translateX(4px);
    box-shadow: var(--bm-shadow);
}

.bm-track-active {
    background-color: var(--bm-primary-light);
    border-color: var(--bm-primary);
}

.bm-track-number {
    width: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bm-text-muted);
    text-align: center;
    flex-shrink: 0;
    font-family: var(--bm-font-display);
}

.bm-track-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color var(--bm-transition), transform var(--bm-transition), color var(--bm-transition);
}

.bm-track-play:hover {
    background-color: var(--bm-primary);
    color: #fff;
    transform: scale(1.1);
}

.bm-track-active .bm-track-play {
    background-color: var(--bm-primary);
    color: #fff;
}

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

.bm-track-title {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--bm-font-display);
    color: var(--bm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-track-active .bm-track-title {
    color: var(--bm-primary);
}

.bm-track-meta {
    font-size: 0.8rem;
    color: var(--bm-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-track-duration {
    font-size: 0.85rem;
    color: var(--bm-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    font-family: var(--bm-font-display);
}


/* --- Player Bar (bottom) --- */

.bm-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bm-border);
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    cursor: pointer;
}

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

.bm-player-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--bm-bg-alt);
    cursor: pointer;
}

.bm-player-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bm-primary), var(--bm-accent));
    transition: width 0.3s linear;
}

.bm-player-inner {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 16px;
}

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

.bm-player-track-title {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--bm-font-display);
    color: var(--bm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-player-track-meta {
    font-size: 0.75rem;
    color: var(--bm-text-secondary);
}

.bm-player-visualizer {
    flex-shrink: 0;
}

.bm-player-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bm-player-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    color: var(--bm-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--bm-transition);
}

.bm-player-btn:hover {
    background-color: var(--bm-bg-alt);
}

.bm-player-btn-main {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-accent));
    color: #fff;
    font-size: 1.3rem;
}

.bm-player-btn-main:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-accent));
}

.bm-player-time {
    font-size: 0.8rem;
    color: var(--bm-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-family: var(--bm-font-display);
}

.bm-player-time-sep {
    margin: 0 2px;
}


/* --- Full Player Overlay --- */

.bm-player-full {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.bm-player-full-open {
    opacity: 1;
    pointer-events: auto;
}

.bm-player-full-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1A1A2E 0%, #16213E 40%, #0F3460 100%);
}

.bm-player-full-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    text-align: center;
}

.bm-player-full-close {
    position: absolute;
    top: 0;
    left: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color var(--bm-transition);
}

.bm-player-full-close:hover {
    color: #fff;
}

.bm-player-full-art {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.bm-player-full-disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-accent), var(--bm-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(255, 77, 109, 0.3);
}

.bm-player-full-disc-spinning {
    animation: bm-spin-slow 4s linear infinite;
}

.bm-player-full-disc-inner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.bm-player-full-visualizer {
    width: 100%;
    height: 80px;
    margin-bottom: 24px;
}

.bm-player-full-info {
    margin-bottom: 24px;
}

.bm-player-full-title {
    font-family: var(--bm-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.bm-player-full-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.bm-player-full-progress {
    margin-bottom: 28px;
}

.bm-player-full-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    overflow: hidden;
}

.bm-player-full-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bm-primary), var(--bm-orange));
    transition: width 0.3s linear;
}

.bm-player-full-times {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--bm-font-display);
}

.bm-player-full-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.bm-player-full-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: color var(--bm-transition), transform var(--bm-transition);
}

.bm-player-full-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.bm-player-full-btn-main {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--bm-primary), var(--bm-accent));
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 30px rgba(255, 77, 109, 0.4);
}

.bm-player-full-btn-main:hover {
    box-shadow: 0 4px 40px rgba(255, 77, 109, 0.6);
}


/* --- Footer --- */

.bm-footer {
    padding: 40px 0 100px;
    border-top: 1px solid var(--bm-border);
}

.bm-footer-text {
    font-size: 0.85rem;
    color: var(--bm-text-muted);
    margin: 0;
}


/* --- Focus States --- */

.bm-track-play:focus-visible,
.bm-player-btn:focus-visible,
.bm-btn:focus-visible,
.bm-connect-card:focus-visible,
.bm-album-card:focus-visible,
.bm-player-full-btn:focus-visible {
    outline: 2px solid var(--bm-primary);
    outline-offset: 2px;
}


/* --- Page Header --- */

.bm-page-header {
    margin-bottom: 40px;
}


/* --- Responsive --- */

@media (max-width: 768px) {
    .bm-hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .bm-hero-title {
        font-size: 2.8rem;
    }

    .bm-hero-subtitle {
        font-size: 1rem;
    }

    .bm-hero-video-overlay {
        background: linear-gradient(
            180deg,
            rgba(250, 250, 248, 0.92) 0%,
            rgba(250, 250, 248, 0.8) 60%,
            rgba(250, 250, 248, 0.7) 100%
        );
    }

    .bm-home-section {
        padding: 60px 0;
    }

    .bm-login-card {
        padding: 32px 24px;
    }

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

    .bm-track-number {
        display: none;
    }

    .bm-player-time {
        display: none;
    }

    .bm-player-visualizer {
        display: none;
    }

    .bm-section-title {
        font-size: 1.8rem;
    }

    .bm-album-art {
        height: 160px;
    }
}
