/* CASA DO BEAT - PREMIUM URBAN STYLE */

:root {
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --accent-neon: #00ff88;
    --accent-neon-glow: rgba(0, 255, 136, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
    --player-height: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* --- ATMOSPHERE --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* --- INTRO SCREEN --- */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    text-align: center;
}

.logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: introLogoPulse 2s infinite ease-in-out;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-neon-glow) 0%, transparent 70%);
    z-index: 1;
    filter: blur(20px);
}

.intro-text-reveal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reveal-line {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s forwards 0.5s;
}

.reveal-subline {
    font-size: 0.9rem;
    color: var(--accent-neon);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(10px);
    animation: revealText 1s forwards 1.2s;
}

@keyframes introLogoPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes revealText {
    to { opacity: 1; transform: translateY(0); }
}

.intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.brand-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.desktop-nav {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    padding: 10px 15px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-neon);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MOBILE SIDEBAR --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--bg-dark);
    border-left: 1px solid var(--glass-border);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 30px;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.mobile-link:hover {
    color: var(--accent-neon);
    padding-left: 10px;
}

.admin-link {
    margin-top: 40px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* --- PAGE SECTIONS --- */
.page-section {
    display: none;
    padding: calc(var(--header-height) + 40px) 0 calc(var(--player-height) + 40px);
    min-height: 100vh;
    opacity: 0;
    transform: translateY(20px);
}

.page-section.active {
    display: block;
    animation: sectionFadeIn 0.6s forwards;
}

@keyframes sectionFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO --- */
.hero-slider {
    position: relative;
    padding: 40px 0;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-neon-glow);
    color: var(--accent-neon);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid var(--accent-neon);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-lg {
    padding: 18px 35px;
    font-size: 0.9rem;
}

.btn-md {
    padding: 12px 25px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--accent-neon);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--accent-neon-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px var(--accent-neon-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--accent-neon);
}

/* --- QUICK STATS --- */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--accent-neon);
    transform: translateY(-5px);
}

.stat-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-neon);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* --- TRACKS GRID --- */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
}

.featured-release {
    margin-bottom: 50px;
}

.featured-track-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.featured-cover-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.featured-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info-area {
    padding: 30px;
}

.featured-badge {
    color: var(--accent-neon);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.featured-track-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.featured-artist-name {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.featured-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.track-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.track-card:hover {
    border-color: var(--accent-neon);
    transform: translateY(-10px);
}

.track-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.track-card:hover .track-play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--accent-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-black);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.track-card:hover .play-icon-circle {
    transform: scale(1);
}

.track-info {
    padding: 20px;
}

.track-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- MAPA DA CENA --- */
.map-container-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-map {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-neon);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-neon);
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: var(--transition-smooth);
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #fff;
}

.map-point-modal {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-neon);
    border-radius: 15px;
    padding: 15px;
    z-index: 10;
    display: flex;
    gap: 15px;
    animation: modalSlideUp 0.3s forwards;
}

@keyframes modalSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.map-modal-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.map-modal-info {
    flex: 1;
}

.map-modal-artist {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.map-modal-track {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.map-modal-city {
    font-size: 0.75rem;
    color: var(--accent-neon);
    text-transform: uppercase;
}

/* --- PLAYER BAR --- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.player-container {
    width: 100%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.player-img-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.player-cover {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.player-vinyl-animation {
    display: none; /* Ativado via JS */
}

.player-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 10px 20px;
}

.main-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bg {
    flex: 1;
    height: 4px;
    background: var(--glass);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--accent-neon);
    width: 0%;
    border-radius: 2px;
    position: relative;
}

.time-current, .time-total {
    font-size: 0.7rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.player-extra {
    display: none;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- APOIE / PIX --- */
.support-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    overflow: hidden;
}

.support-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-neon);
}

.support-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.pix-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pix-box {
    background: var(--bg-black);
    padding: 25px;
    border-radius: 15px;
    border: 1px dashed var(--accent-neon);
}

.pix-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pix-key-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#pix-key {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.btn-copy {
    background: var(--accent-neon);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pix-qr {
    text-align: center;
}

#pix-qrcode {
    width: 150px;
    height: 150px;
    background: #fff;
    margin: 0 auto 15px;
    padding: 10px;
    border-radius: 10px;
}

.qr-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: calc(var(--player-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-neon);
    color: var(--bg-black);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 6000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

/* --- ARTIST PROFILE --- */
.artist-profile {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.artist-banner {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(255,255,255,0.02));
    overflow: hidden;
}

.artist-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.artist-header {
    padding: 18px 18px 22px;
    position: relative;
}

.artist-avatar {
    position: absolute;
    top: -40px;
    left: 18px;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(0,255,136,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: var(--bg-dark);
}

.artist-meta {
    padding-left: 110px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.artist-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 2px;
    line-height: 1;
}

.artist-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.artist-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 10px;
}

.artist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.artist-section {
    padding: 18px;
    border-top: 1px solid var(--glass-border);
}

.artist-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.artist-tracks {
    display: grid;
    gap: 12px;
}

.artist-track-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px;
}

.artist-track-cover {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-dark);
}

.artist-track-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.artist-track-sub {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

.artist-track-actions {
    display: flex;
    gap: 8px;
}

.btn-xs {
    padding: 8px 12px;
    font-size: 0.7rem;
}

/* --- ARTIST PIX MODAL --- */
.artist-pix-card {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    padding: 18px;
}

.artist-pix-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.artist-pix-text {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.artist-pix-key {
    background: var(--bg-black);
    border: 1px dashed rgba(0,255,136,0.5);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.artist-pix-key code {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-primary);
}

@media (max-width: 420px) {
    .artist-meta { padding-left: 0; margin-top: 56px; }
    .artist-avatar { top: -46px; }
}

/* --- RESPONSIVIDADE DESKTOP --- */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-title {
        font-size: 6rem;
    }

    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-track-card {
        flex-direction: row;
        aspect-ratio: auto;
        height: 400px;
    }

    .featured-cover-area {
        width: 400px;
        height: 100%;
    }

    .featured-info-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .player-height {
        --player-height: 100px;
    }

    .player-container {
        grid-template-columns: 300px 1fr 200px;
    }

    .player-controls {
        position: static;
        background: none;
        padding: 0;
        width: 100%;
    }

    .progress-container {
        max-width: 600px;
    }

    .player-extra {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
    }

    .volume-slider-container {
        width: 100px;
    }

    .volume-slider {
        width: 100%;
        accent-color: var(--accent-neon);
    }

    .extra-btn {
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .extra-btn:hover {
        color: var(--accent-neon);
    }

    .map-container-wrapper {
        aspect-ratio: 16/9;
    }

    .pix-area {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pix-box {
        flex: 1;
    }
}
