/**
 * PsyBrazil Radio - Main Stylesheet
 * PHP 5.6 Compatible - No modern CSS features
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: auto;
    min-height: 100%;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #050508;
    color: #fff;  
    overflow-x: hidden;
}
 
 
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 12px;
    filter: blur(15px);
    opacity: 0.6;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(90deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.live-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

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

.listeners-count {
    font-weight: 700;
    color: #fff;
}

.listeners-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Main Content */
main {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

 
.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    backdrop-filter: blur(10px);
}

.hero-title .subtitle {
    color: #fff;
    display: block;
    font-size: 56px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto 30px;

  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visualizer-wrapper{
    position: relative;
    overflow: hidden;
}

#visualizer{
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 220px;
}

.visualizer-placeholder{
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.55);

    transition: opacity .4s ease;
}

.visualizer-placeholder.hidden{
    opacity: 0;
    pointer-events: none;
}
.visualizer-wrapper{
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 320px;
    margin: 30px auto;
    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(0,255,170,0.08),
            rgba(0,0,0,0.85)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 40px rgba(0,255,170,0.08);
}

#visualizer{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    opacity: 1;

    transition: opacity .4s ease;
}

.visualizer-placeholder{
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;

    background:
        rgba(0,0,0,0.45);

    transition:
        opacity .4s ease,
        visibility .4s ease;
}

.visualizer-placeholder.hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.placeholder-content{
    text-align: center;
    color: rgba(255,255,255,0.85);
}

.placeholder-icon{
    font-size: 72px;
    display: block;
    margin-bottom: 10px;
}

.viz-title{
    position: absolute;
    top: 14px;
    left: 20px;

    z-index: 3;

    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.7);
}

.viz-toggle-btn{
    position: absolute;
    top: 48px;
    right: 20px;

    z-index: 3;
}
/* Player Bar */
.player-bar {
    position: sticky;
    top: 70px;
    z-index: 999;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);D
    transform: translateY(-100%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

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

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;D
    flex-wrap: wrap;
    opacity:1;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
}

.album-art {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(236,72,153,0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.track-info {
    text-align: left;
}

.station-label {
    font-size: 11px;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    margin: 3px 0;
}

.track-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

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

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.btn-play {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    font-size: 22px;
}

.btn-play:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vol-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.volume-slider {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.vol-value {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    min-width: 35px;
}

/* Stations Section */
.stations-section {
    padding: 30px 8px;
    max-width: 1400px;
    margin: 0 auto;

}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);

  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; 
  backdrop-filter: blur(10px);
}
 
.card-live-badge {
    position: absolute;
    top: 15px;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.station-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .4;
    transition: opacity 0.3s;
}

.station-card:hover .card-overlay {
    opacity: 1;
}

.play-overlay-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.card-content {
    padding: 10px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.genre-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.bpm-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.card-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.now-playing-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 30px var(--station-color);
    opacity: 0.1;
    transition: opacity 0.3s;
    pointer-events: none;
}

.station-card:hover .card-glow,
.station-card.active .card-glow {
    opacity: 0.3;
}

/* Stats Section */
.stats-section {
    padding: 30px 10px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stats-grid {
    display: grid;
    gap: 20px;
}

.stat-card {

  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; 
  backdrop-filter: blur(10px);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.stat-card.total {
    text-align: center;
    padding: 20px;
}

.stat-icon-bg {
    font-size: 64px;
    margin-bottom: 10px;
}

.stat-card.total .stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.total .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.station-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--bar-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-name {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* About Section */
.about-section {
    padding: 20px 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 20px;

  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; 
  backdrop-filter: blur(10px);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature { 
  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    margin: 0;
}

/* Footer */
.footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.5);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    font-size: 32px;
}

.footer-brand strong {
    display: block;
    font-size: 16px;
}

.footer-brand span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-title .subtitle {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .player-content {
        flex-direction: column;
        text-align: center;
    }
    
    .now-playing {
        flex-direction: column;
    } 
    .section-header h2 {
        font-size: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

::-webkit-scrollbar-track {
    background: #050508;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

   .card-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    width: 100%;
    margin-top: 12px;
}
 

.card-now-playing {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.85;
}
.viz-toggle-btn {
    padding: 6px 10px;
    background: #111;
    color: #00ffaa;
    border: 1px solid #00ffaa;
    border-radius: 6px;
    cursor: pointer;
}
.visualizer-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
}

#visualizer {
    width: 100%;
    display: block;
     background: none; /* remove gradient when off */
    border-radius: 10px;
}

/* PLACEHOLDER OVERLAY */
.visualizer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);

    z-index: 2;
    transition: opacity 0.3s ease;
}

/* HIDE WHEN PLAYING */
.visualizer-wrapper.active .visualizer-placeholder {
    opacity: 0.1;
    pointer-events: none;
}
.contact-section {
  padding: 5px 0px;
  background: radial-gradient(circle at center, #0a0a0f, #050508);
}

.contact-container {
  max-width: 1100px;
  min-width:320px;
  margin: auto;
  display: grid;
}

.contact-form, .contact-info {
  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 80%;
  margin-bottom: 10px;
  border: none;
  border-radius: 8px;
  background: #0e0e14;
  color: #fff;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-form button {
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.8;
}

.contact-info h3 {
  color: #ff00cc;
}

.contact-card {
  margin-top: 20px;
  padding: 5px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.form-status {
  margin-top: 10px;
  color: #00ffaa;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}


.hits-count {
    color: #EC4899;
    font-weight: bold;
    margin-left: 6px;
}

.hits-separator {
    margin: 0 8px;
    opacity: 0.6;
}
html {
    scroll-behavior: smooth;
}
.stats-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.hits-count {
    color: #EC4899;
    font-weight: bold;
}

.super-count {
    color: #FFD700;
    font-weight: bold;
}
.stat-info {
    margin-top: 10px;
}

.now-playing-text {
    font-size: 12px;
    color: #00ffcc;
    font-weight: bold;
    margin-top: 4px;
}

.next-playing-text {
    font-size: 11px;
    color: #aaa;
    opacity: 0.8;
}

.stat-row {
    font-size: 11px;
    margin-top: 4px;
    color: #ccc;
}
/* =========================
   PERFORMANCE MODE
========================= */

body.bg-static .orb,
body.bg-static .grid-overlay {
    display: none !important;
}
body.bg-static {
    transition: background-image 0.5s ease-in-out;
    will-change: background-image;
}
/* BASE BACKGROUND (mobile first = portrait) */
body.bg-static {
    background-image: url('images/mixed-background-psybrazil.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    /* smooth switching */
    transition: background-image 0.4s ease-in-out;
}

/* LANDSCAPE (desktop / rotated screens) */
@media screen and (orientation: landscape) {
    body.bg-static {
        background-image: url('images/portrait-background-psybrazil.jpg');
    }
}
/* MOBILE (portrait feel) */
@media (max-width: 768px) {
    body.bg-static {
        background-image: url('images/mixed-background-psybrazil.jpg');
    }
}

/* DESKTOP (landscape feel) */
@media (min-width: 769px) {
    body.bg-static {
        background-image: url('images/portrait-background-psybrazil.jpg');
    }
}
 
#player-art {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

#player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.visualizer-wrapper {
    position: relative;
    overflow: hidden;
}

#visualizer {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
}
/* ensure hidden canvas is removed from layout and visually gone */
#visualizer.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* placeholder visibility control */
.visualizer-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.visualizer-placeholder {
    position: absolute;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

 
.visualizer-active #visualizer-placeholder {
    display: none;
}
.visualizer-wrapper.active .visualizer-placeholder {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.visualizer-wrapper.playing .visualizer-placeholder {
    display: none !important;
}

#visualizer.fade-out {
    opacity: 0;
    transform: scale(0.98);
}
.stat-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}

.stat-meta-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-feed {
    padding: 20px;
}

#feed-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
}

.feed-art {
    width: 50px;
    height: 50px;
    background-size: cover;
    border-radius: 6px;
}

.feed-title {
    font-weight: bold;
}

.radio-slider {
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
}

.radio-track {
    display: flex;
    gap: 20px;
}

.radio-slide {
    min-width: 250px;
    scroll-snap-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px;
}

.viz-title {
    text-align:center;
    font-size:13px;
    letter-spacing:1px;
    color:#00ffaa;
    opacity:0.8;
    margin-bottom:5px;
    transition: all 0.3s ease;
}

.visualizer-wrapper.active .viz-title {
    opacity:1;
    text-shadow:0 0 10px #00ffaa;
}

#visualizer {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#visualizer.fade-out {
    opacity:0.4;
    transform: scale(0.95);
}

.radio-slide {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
}

.radio-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.live-song {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}


/* CONTENT */
.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* STATS */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
 
.card-content {
    overflow: hidden;
}


.station-card {
    min-width: 0;
    overflow: hidden; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.station-card:hover {
    box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

.station-card h3 {
    color: #EC4899;
    margin-bottom: 15px;
}

/* FORM */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 5px rgba(139,92,246,0.4);
    outline: none;
}

.btn-save {
    padding: 12px 30px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save:hover {
    transform: scale(1.05);
}

/* STATS BADGES */
.station-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.station-stats span {
    font-size: 13px;
    background: rgba(139,92,246,0.1);
    padding: 6px 10px;
    border-radius: 6px;
}


.station-meta-strip{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:14px 0;
}

.meta-pill{
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    font-size:12px;
    font-weight:600;
    backdrop-filter:blur(10px);
}

.meta-pill.online{
    background:rgba(0,255,120,.12);
    border-color:rgba(0,255,120,.25);
}

.meta-pill.offline{
    background:rgba(255,0,80,.12);
    border-color:rgba(255,0,80,.25);
}

.card-stream-life{
    margin-top:14px;
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.stream-life-item{
    flex:1;
    padding:10px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.05);
    font-size:12px;
}

.stream-life-item strong{
    display:block;
    margin-top:4px;
    font-size:14px;
    color:#fff;
}

.station-card{
    position:relative;
    overflow:hidden;
}

.station-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.08),
            transparent 50%
        );
    pointer-events:none;
}

.station-card:hover{
    transform:translateY(-6px);
    transition:.35s ease;
    box-shadow:
        0 25px 60px rgba(0,0,0,.45),
        0 0 30px rgba(255,255,255,.08);
}

.energy-bar{
    height:6px;
    background:rgba(255,255,255,.05);
    border-radius:999px;
    overflow:hidden;
    margin-top:14px;
}

.energy-fill{
    height:100%;
    border-radius:999px;
    background:
        linear-gradient(
            90deg,
            #ff00cc,
            #00ffee
        );

    transition:width .4s ease;
}

/* ===================================================== */
/* 🎧 PSYBRAZIL HORIZONTAL RADIO WALL */
/* HARD ROCK HALL OF FAME STYLE */
/* PERFECTLY SMOOTH */
/* ===================================================== */

.radio-slider{
    position:relative;
    width:100%;
    overflow:hidden;
    padding:30px 0;
    margin:0 auto;
}

.radio-track{
    display:flex;
    gap:24px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    padding:10px 20px 25px;
    scrollbar-width:none;
}

.radio-track::-webkit-scrollbar{
    display:none;
}

/* ===================================================== */
/* CARD */
/* ===================================================== */

.radio-slide{
    position:relative;
    flex:0 0 360px;
    width:360px;
    min-height:650px;
    border-radius:28px;
    overflow:hidden;
    cursor:pointer;
    background:rgba(10,10,10,.92);
    border:1px solid rgba(255,255,255,.08);
    transition:all .35s ease;
    box-shadow:
        0 10px 35px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.radio-slide:hover{
    transform:translateY(-8px) scale(1.02);
    border-color:rgba(255,255,255,.18);
    box-shadow:
        0 20px 45px rgba(0,0,0,.55),
        0 0 25px rgba(255,120,0,.18);
}

/* ===================================================== */
/* COVER */
/* ===================================================== */

.radio-cover{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
}

.radio-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .3s ease;
}

.radio-slide:hover .radio-cover img{
    transform:scale(1.08);
}

.radio-cover:after{
    content:'';
    position:absolute;
    inset:0;

}

/* ===================================================== */
/* LIVE BADGE */
/* ===================================================== */

.live-badge{ 
    top:18px;
    left:18px;
    margin-left:220px;
    z-index:20;
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.08);
    width:40%;
    text-align:center;
}

.live-badge.online{
    color:#79ffae;
}

.live-badge.offline{
    color:#ff8a8a;
}

.live-dot{
    width:10px;
    height:10px;
    border-radius:50%;
}

.live-badge.online .live-dot{
    background:#00ff6a;
    box-shadow:0 0 15px #00ff6a; 
}

.live-badge.offline .live-dot{
    background:#ff4747;
}

/* ===================================================== */
/* CONTENT */
/* ===================================================== */

.radio-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* ===================================================== */
/* TITLE */
/* ===================================================== */

.radio-title{
    font-size:28px;
    line-height:1.1;
    font-weight:800;
    color:#fff;
    margin:0;
}

.radio-genre{
    display:inline-flex;
    width:max-content;
    padding:7px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.5px;
    background:rgba(255,255,255,.06);
    color:#cfcfcf;
    border:1px solid rgba(255,255,255,.06);
}

/* ===================================================== */
/* SONG */
/* ===================================================== */

.live-song-wrap{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
}

.song-line{
    display:flex;
    gap:10px;
    align-items:flex-start;
}

.song-icon{
    font-size:16px;
    opacity:.9;
    margin-top:1px;
}

.live-song,
.live-next{
    color:#fff;
    font-size:14px;
    line-height:1.5;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.live-next{
    color:#cfcfcf;
    opacity:.8;
}

/* ===================================================== */
/* STATS */
/* ===================================================== */

.radio-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.radio-stat{
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
}

.radio-stat small{
    display:block;
    font-size:11px;
    color:#999;
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:.8px;
}

.radio-stat strong{
    font-size:18px;
    color:#fff;
    font-weight:700;
}

/* ===================================================== */
/* PLAY BUTTON */
/* ===================================================== */

.radio-play{
    margin-top:auto;
    width:100%;
    border:none;
    outline:none;
    cursor:pointer;
    padding:18px;
    border-radius:18px;
    font-size:14px;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#fff;
    background:
        linear-gradient(
            135deg,
            #ff6a00,
            #ff0058
        );
    transition:all .3s ease;
}

.radio-play:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width:768px){

    .radio-slide{
        flex:0 0 300px;
        width:300px;
        min-height:620px;
    }

    .radio-title{
        font-size:24px;
    }

    .radio-content{
        padding:18px;
    }

    .radio-stats{
        gap:10px;
    }

}

/* ===================================================== */
/* LIVE ANIMATION */
/* ===================================================== */

@keyframes pulseLive{

    0%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.35);
        opacity:.6;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }

}

.station-card,
.radio-slide,
.stat-card{
    transform: translateZ(0);
    will-change: transform;
}

.now-playing-text,
.live-song,
.live-next{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bar-fill,
.energy-fill{
    transition: width .5s ease;
}

.history-box{
    max-height:300px;
    overflow-y:auto;
}

/* =========================
   STATIONS SECTION
========================= */

.stations-section{
    position:relative;
    z-index:2;
    padding:120px 30px 80px;
    margin-top:0 !important;
}
 
/* =========================
   IMAGE
========================= */

.card-image{
    position:relative;
    width:100%;
    height:240px;
    overflow:hidden;
    flex-shrink:0;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

    transition:transform .4s ease;
}

.station-card:hover .card-image img{
    transform:scale(1.05);
}

/* =========================
   OVERLAY
========================= */

.card-overlay{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,.45);

    opacity:0.1;

    transition:opacity .25s ease;

    z-index:5;
}

.station-card:hover .card-overlay{
    opacity:1;
}

.play-overlay-btn{
    width:72px;
    height:72px;

    border:none;
    border-radius:50%;

    font-size:32px;

    background:rgba(255,255,255,.14);
    color:#fff;

    backdrop-filter:blur(10px);

    cursor:pointer;

    transition:transform .2s ease;
}

.play-overlay-btn:hover{
    transform:scale(1.08);
}

/* =========================
   CONTENT
========================= */

.card-content{
    position:relative;

    display:flex;
    flex-direction:column;

    gap:18px;

    padding:24px;

    flex:1;

    z-index:2;
}

/* =========================
   TITLE
========================= */

.card-title{
    font-size:28px;
    line-height:1.1;
    color:#fff;
}

/* =========================
   TAGS
========================= */

.card-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tag{
    padding:8px 14px;

    border-radius:999px;

    font-size:12px;
    font-weight:600;

    background:rgba(255,255,255,.08);

    color:#fff;
}

/* =========================
   META STRIP
========================= */

.station-meta-strip{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.meta-pill{
    padding:8px 12px;

    border-radius:12px;

    background:rgba(255,255,255,.06);

    font-size:12px;

    color:#ddd;
}

.status-pill.online{
    background:rgba(0,255,120,.12);
}

.status-pill.offline{
    background:rgba(255,80,80,.12);
}

/* =========================
   DESCRIPTION
========================= */

.card-desc{
    color:#bdbdbd;
    
    font-size:14px;
}
 
/* =========================
   NOW PLAYING
========================= */

.card-now-playing{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.current-track,
.next-track{
    padding:14px;

    border-radius:14px;

    background:rgba(255,255,255,.04);

    color:#ddd;

    overflow:hidden;
}

.now-playing-text,
.next-playing-text{
    display:block;

    margin-top:6px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* =========================
   STREAM LIFE
========================= */

.card-stream-life{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.stream-life-item{
    flex:1;

    min-width:120px;

    padding:12px;

    border-radius:14px;

    background:rgba(255,255,255,.04);

    color:#ccc;
}

/* =========================
   HISTORY
========================= */

.card-history{
    margin-top:auto;
}

.history-btn{
    width:100%;

    padding:14px;

    border:none;
    border-radius:14px;

    background:rgba(255,255,255,.08);

    color:#fff;

    cursor:pointer;

    transition:background .2s ease;
}

.history-btn:hover{
    background:rgba(255,255,255,.14);
}

.history-box{
    margin-top:12px;

    padding:14px;

    border-radius:14px;

    background:rgba(0,0,0,.22);

    color:#ddd;
}

/* =========================
   ENERGY BAR
========================= */

.energy-bar{
    width:100%;
    height:6px;

    border-radius:999px;

    overflow:hidden;

    background:rgba(255,255,255,.08);
}

.energy-fill{
    height:100%;

    border-radius:999px;

    background:#ffffff;

    transition:width .4s ease;
}

/* =========================
   GLOW
========================= */

.card-glow{
    position:absolute;
    inset:0;

    pointer-events:none;

    border-radius:24px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.03);

    z-index:1;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){
 

    .card-title{
        font-size:24px;
    }

    .card-stats-grid{
        grid-template-columns:1fr;
    }

}


body{
    overflow-x:hidden;
}

main{
    position:relative;
    z-index:1;
}

/* =========================================
   STATIONS GRID FIX
========================================= */

.stations-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    overflow: hidden;
}
 
/* =========================================
   IMAGE FIX
========================================= */

.card-image {
    position: relative;

    width: 100%;
    height: 240px;

    overflow: hidden;

    background: #111;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* =========================================
   OVERLAY FIX
========================================= */

.card-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.1;

    transition: opacity 0.25s ease;

    background: rgba(0,0,0,0.45);

    z-index: 4;
}

.station-card:hover .card-overlay {
    opacity: 1;
}

.play-overlay-btn {
    width: 72px;
    height: 72px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    font-size: 28px;
}

/* =========================================
   CONTENT
========================================= */

.card-content {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 22px;

    gap: 16px;

    z-index: 3;

    min-width: 0;
}

/* =========================================
   TITLE FIX
========================================= */

.card-title {
    font-size: 28px;
    line-height: 1.1;

    word-break: break-word;
}

/* =========================================
   TAGS
========================================= */

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    max-width: 100%;
    word-break: break-word;
}

/* =========================================
   META STRIP
========================================= */

.station-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

 
/* =========================================
   NOW PLAYING FIX
========================================= */

.card-now-playing {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-width: 0;
}

.current-track,
.next-track {
    display: flex;
    gap: 8px;

    min-width: 0;
}

.now-playing-text,
.next-playing-text {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    width: 100%;
}

/* =========================================
   STREAM LIFE
========================================= */

.card-stream-life {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stream-life-item {
    flex: 1 1 140px;

    min-width: 0;
}

/* =========================================
   HISTORY FIX
========================================= */

.card-history {
    margin-top: auto;
}

.history-box {
    margin-top: 12px;

    border-radius: 12px;

    overflow: hidden;
}

/* =========================================
   LIVE BADGE FIX
========================================= */

.card-live-badge {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 8;
}

/* =========================================
   GLOW FIX
========================================= */

.card-glow {
    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;
}

/* =========================================
   MOBILE FIX
========================================= */

@media (max-width: 768px) {
 

    .card-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-title {
        font-size: 22px;
    }

    .card-image {
        height: 200px;
    }
}

.player-bar {
    margin-top: 40px;
}

.stations-section {
    padding-top: 60px;
}

.now-playing-text,
.next-playing-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.station-card {
    min-height: 720px;
}
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items:start;
        background:
        linear-gradient(
            to top,
            rgba(0,0,0,.88) 25%,
            rgba(0,0,0,.35) 55%,
            rgba(0,0,0,.05) 100%
        );
}

.station-card{
    position:relative;
    display:flex;
    flex-direction:column;
    height:100%;
    min-height:760px;

    overflow:hidden;

    border-radius:22px;
}

.card-image{
    position:relative;
    width:100%;
    height:220px;
    overflow:hidden;
    flex-shrink:0;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.card-content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:20px;
}

.card-title{
    min-height:32px;
}

.card-desc{
    min-height:72px;

    overflow:hidden;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}
/* =========================
   STATS GRID
========================= */

.card-stats-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 14px;

    width: 100%;
}

/* =========================
   STAT BOX
========================= */

.stat-box {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding: 12px;

    background: rgba(0,0,0,0.35);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 14px;

    backdrop-filter: blur(6px);

    overflow: hidden;

    box-sizing: border-box;
}

/* ICON */

.stat-box > span:first-child {
    font-size: 18px;

    flex-shrink: 0;
}

/* LABEL */

.stat-box small {
    display: block;

    font-size: 11px;

    opacity: 0.75;

    line-height: 1.1;
}

/* VALUE */

.stat-box div span {
    font-size: 15px;

    font-weight: bold;

    white-space: nowrap;
}
.card-now-playing{
    min-height:74px;
    margin-top:14px;
}

.current-track,
.next-track{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.now-playing-text,
.next-playing-text{
    display:inline-block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    vertical-align:bottom;
}

.station-meta-strip{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-height:42px;
}

.meta-pill{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.card-stream-life{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:auto;
    padding-top:18px;
}

.stream-life-item{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.card-history{
    margin-top:18px;
}

.history-box{
    max-height:240px;
    overflow:auto;
}

.visualizer-wrapper{
    position:relative;
}

#visualizer{
    width:100%;
    height:320px;
    display:block;
    background:#050505;
    border-radius:12px;
}

.fps-counter{
    position:absolute;
    left:12px;
    bottom:12px;
    z-index:20;
    font-size:12px;
    font-family:monospace;
    color:#00ffaa;
    background:rgba(0,0,0,0.55);
    padding:4px 8px;
    border-radius:6px;
    pointer-events:none;
    text-shadow:0 0 8px #00ffaa;
}


.player-bar .volume-control{

    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   VISUALIZER TRANSPARENCY + PSY DOT LAYERS
========================= */

.visualizer-wrapper{
    overflow:hidden;
    isolation:isolate;
    background:
        radial-gradient(circle at 18% 20%, rgba(0,255,170,0.18), transparent 32%),
        radial-gradient(circle at 78% 28%, rgba(255,0,190,0.16), transparent 30%),
        radial-gradient(circle at 52% 88%, rgba(255,225,0,0.13), transparent 36%),
        linear-gradient(135deg, rgba(0,0,0,0.28), rgba(5,5,12,0.12)) !important;
    border:1px solid rgba(255,255,255,0.16);
    box-shadow:
        0 0 34px rgba(0,255,170,0.16),
        0 0 58px rgba(255,0,190,0.12),
        inset 0 0 28px rgba(255,255,255,0.05);
    backdrop-filter:blur(8px) saturate(1.25);
}

.visualizer-wrapper::before,
.visualizer-wrapper::after{
    content:"";
    position:absolute;
    inset:-24%;
    z-index:0;
    pointer-events:none;
    opacity:0.48;
    mix-blend-mode:screen;
}

.visualizer-wrapper::before{
    background:
        radial-gradient(circle, rgba(0,255,170,0.42) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255,0,204,0.32) 0 1px, transparent 3px),
        radial-gradient(circle, rgba(255,225,0,0.28) 0 1px, transparent 4px);
    background-size:34px 34px, 55px 55px, 89px 89px;
    animation:viz-dot-drift 24s linear infinite;
}

.visualizer-wrapper::after{
    background:
        conic-gradient(
            from 120deg,
            rgba(0,255,170,0.12),
            rgba(0,204,255,0.10),
            rgba(255,0,180,0.14),
            rgba(255,221,0,0.10),
            rgba(0,255,170,0.12)
        );
    filter:blur(18px);
    opacity:0.42;
    animation:viz-hue-layer 18s linear infinite;
}

#visualizer{
    position:relative;
    z-index:1;
    background:transparent !important;
    opacity:0.94 !important;
    mix-blend-mode:screen;
    box-shadow:
        inset 0 0 36px rgba(0,255,170,0.08),
        inset 0 0 64px rgba(255,0,190,0.06);
}

.visualizer-placeholder{
    background:rgba(0,0,0,0.32) !important;
    backdrop-filter:blur(6px) saturate(1.35);
}

.visualizer-wrapper.active .visualizer-placeholder,
.visualizer-wrapper.playing .visualizer-placeholder{
    display:flex !important;
    opacity:0 !important;
    visibility:hidden;
    pointer-events:none;
}
/* ensure hidden canvas is removed from layout and visually gone */
#visualizer.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* placeholder visibility control */
.visualizer-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* optional: neutralize rotating CSS class if present */
.visualizer-wrapper.visualizer-css-rotating,
.visualizer-wrapper.rotating {
  animation: none !important;
  transform: none !important;
  background: transparent !important;
}

.pulse-dot,
.live-dot{
    position:relative;
    background:
        radial-gradient(circle at 35% 35%, #fff 0 16%, #79ffae 24%, #00eaff 46%, #ff31d2 72%, #ffe600 100%) !important;
    box-shadow:
        0 0 8px rgba(0,255,170,0.9),
        0 0 18px rgba(0,204,255,0.55),
        0 0 28px rgba(255,49,210,0.42);
}

.pulse-dot::before,
.pulse-dot::after,
.live-dot::before,
.live-dot::after{
    content:"";
    position:absolute;
    border-radius:50%;
    pointer-events:none;
}

.pulse-dot::before,
.live-dot::before{
    inset:-5px;
    border:1px solid rgba(0,255,170,0.45);
    box-shadow:0 0 12px rgba(0,255,170,0.35);
    animation:psy-dot-ring 1.8s ease-out infinite;
}

.pulse-dot::after,
.live-dot::after{
    inset:-10px;
    background:
        radial-gradient(circle, rgba(255,0,204,0.32), transparent 62%);
    opacity:0.55;
    animation:psy-dot-glow 2.4s ease-in-out infinite;
}
 #visualizer.hidden { display:none !important; opacity:0 !important; pointer-events:none; }
.visualizer-placeholder.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.visualizer-wrapper.visualizer-css-rotating,
.visualizer-wrapper.rotating { animation:none !important; transform:none !important; background:transparent !important; }
.live-stats { color:#00ffaa; font-weight:700; font-size:13px; }
.now-playing-text { color:#00ffcc; font-weight:600; font-size:13px; margin-top:8px; }

/* Mobile navigation */
.mobile-menu-toggle{
    display:none;
    width:42px;
    height:42px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    margin-left:auto;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.14);
    border-radius:8px;
    cursor:pointer;
}

.mobile-menu-toggle span{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
    border-radius:2px;
    transition:transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2){
    opacity:0;
}

.mobile-menu-toggle.is-open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.main-nav .forum-link{
    color:#00ffaa;
}

@media (max-width: 768px){
    .header-content{
        flex-wrap:nowrap;
        gap:10px;
        padding:0 12px;
    }

    .mobile-menu-toggle{
        display:flex;
    }

    .main-nav{
        display:none;
        position:fixed;
        top:70px;
        left:0;
        right:0;
        z-index:999;
        flex-direction:column;
        gap:0;
        padding:8px 12px 14px;
        background:rgba(5,5,8,0.98);
        border-bottom:1px solid rgba(255,255,255,0.12);
        box-shadow:0 18px 34px rgba(0,0,0,0.38);
    }

    .main-nav.is-open{
        display:flex;
    }

    .main-nav a{
        display:block;
        padding:13px 12px;
        border-bottom:1px solid rgba(255,255,255,0.08);
        font-size:15px;
    }

    .main-nav a:last-child{
        border-bottom:0;
    }

    .main-nav a::after{
        display:none;
    }
}

@media (max-width: 560px){
    .live-stats{
        display:none;
    }
}

/* Keep visualizer decoration idle until playback starts */
.visualizer-wrapper::before,
.visualizer-wrapper::after{
    animation:none !important;
    opacity:0.14;
}

.visualizer-wrapper.playing::before{
    animation:viz-dot-drift 24s linear infinite !important;
    opacity:0.48;
}

.visualizer-wrapper.playing::after{
    animation:viz-hue-layer 18s linear infinite !important;
    opacity:0.42;
}

.visualizer-wrapper #visualizer{
    opacity:0 !important;
}

.visualizer-wrapper.playing #visualizer{
    opacity:0.94 !important;
}

body.css-animations-idle .pulse-dot::before,
body.css-animations-idle .pulse-dot::after,
body.css-animations-idle .live-dot::before,
body.css-animations-idle .live-dot::after{
    animation:none !important;
    opacity:0 !important;
}


.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-flag {
    font-size: 24px;
    line-height: 1;
}

.logo-text {
    font-weight: 800;
}