/* ============================================================
   RADIOSPOT — Design System (Neon Glass)
   PLAYER - identidade.md compliance
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --neon-primary: #00f0ff;
    --neon-secondary: #bf00ff;
    --neon-accent: #ff006e;
    --neon-green: #00ff88;
    --bg-dark: #080c14;
    --bg-darker: #050810;
    --glass-bg: rgba(10, 20, 40, 0.55);
    --glass-border: rgba(0, 240, 255, 0.18);
    --glass-blur: 28px;
    --text-primary: #e8f4ff;
    --text-secondary: #8ba8c8;
    --text-dim: #4a6a8a;
    --card-radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--neon-primary);
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

input,
select,
textarea {
    font-family: var(--font);
}

/* ─── Glass Panel ───────────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    position: relative;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ─── Neon Text ─────────────────────────────────────────────── */
.neon-text {
    color: var(--neon-primary);
    text-shadow: 0 0 8px var(--neon-primary), 0 0 24px rgba(0, 240, 255, 0.4);
}

.neon-text-purple {
    color: var(--neon-secondary);
    text-shadow: 0 0 8px var(--neon-secondary);
}

/* ─── Neon Button ───────────────────────────────────────────── */
.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.neon-btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(191, 0, 255, 0.15));
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25), inset 0 0 16px rgba(0, 240, 255, 0.05);
}

.neon-btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(191, 0, 255, 0.3));
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.5), inset 0 0 16px rgba(0, 240, 255, 0.1);
    transform: translateY(-1px);
}

.neon-btn-danger {
    border: 1px solid var(--neon-accent);
    color: var(--neon-accent);
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.2);
}

.neon-btn-danger:hover {
    box-shadow: 0 0 24px rgba(255, 0, 110, 0.5);
}

/* ─── Album Art ─────────────────────────────────────────────── */
.album-art {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--neon-primary), 0 0 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.15);
    transition: var(--transition);
}

.album-art.spinning {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── Marquee ───────────────────────────────────────────────── */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ─── Status Badge ──────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-live {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.status-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-pause {
    background: rgba(255, 200, 0, 0.1);
    color: #ffc800;
    border: 1px solid #ffc800;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ─── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-primary), var(--neon-secondary));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-primary);
    transition: width 1s linear;
}

/* ─── Sidebar Layout ─────────────────────────────────────────── */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: rgba(5, 8, 16, 0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 24px 0;
}

.sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo h1 {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo .slogan {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 8px 24px 4px;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.05);
}

.nav-item.active {
    color: var(--neon-primary);
    border-left-color: var(--neon-primary);
    background: rgba(0, 240, 255, 0.08);
}

.nav-item .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
    height: 64px;
    background: rgba(8, 12, 20, 0.95);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

/* ─── Page Content ─────────────────────────────────────────── */
.page {
    padding: 28px;
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* ─── Table ───────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 12px 14px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.data-table tr:hover td {
    background: rgba(0, 240, 255, 0.03);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    padding: 20px;
    margin-bottom: 16px;
}

.stat-card {
    padding: 20px 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Form ───────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* ─── Mini Player (bottom fixed) ─────────────────────────── */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    height: 80px;
    background: rgba(5, 8, 16, 0.97);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    z-index: 95;
    backdrop-filter: blur(20px);
}

.mini-album {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
    flex-shrink: 0;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ─── Background Ambient ──────────────────────────────────── */
.bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--neon-primary);
    top: -200px;
    left: -150px;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-secondary);
    bottom: -150px;
    right: -100px;
}

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-primary);
}

/* ─── Utility ─────────────────────────────────────────────── */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.text-muted {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.875rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.w-full {
    width: 100%;
}

.rounded {
    border-radius: 8px;
}

.hidden {
    display: none !important;
}