/*
Theme Name: YourParty Tech
Theme URI: https://yourparty.tech
Author: YourParty Team
Author URI: https://yourparty.tech
Description: A custom theme for YourParty Radio.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourparty-tech
*/

:root {
  /* CI Colors */
  --emerald: #2E8B57;
  --emerald-light: #3CB371;
  --emerald-dark: #256d44;
  --purple: #800080;
  --purple-light: #9932CC;
  --terracotta: #CC5500;
  --terracotta-light: #E17055;
  --beige: #F4EFEA;
  
  /* Background & Text */
  --bg-dark: #0a0a0a;
  --bg-panel: #111111;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --text-muted: #888888;
  --text-subtle: #555555;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --glow-emerald: 0 0 20px rgba(46, 139, 87, 0.4);
  --glow-purple: 0 0 20px rgba(128, 0, 128, 0.4);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-dark); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0 0 1rem 0; }
a { color: inherit; text-decoration: none; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 24px; background: var(--emerald); color: #000; font-weight: bold; border-radius: 4px; border: none; cursor: pointer; transition: opacity 0.2s; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; }
.btn:hover { opacity: 0.9; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--emerald); }
.btn--small { padding: 6px 12px; font-size: 11px; }

/* HEADER */
.site-header { position: absolute; top: 0; left: 0; right: 0; padding: 20px 0; z-index: 100; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-glow { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: #fff; text-transform: uppercase; }
.brand-sub { font-size: 10px; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; margin-top: 4px; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); transition: color 0.2s; position: relative; }
.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a.active::after,
.site-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald);
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 200; padding: 80px 20px; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 24px; font-weight: 700; color: #fff; }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .nav-toggle { display: block; }
}

/* HERO */
.hero { padding: 120px 0 80px; text-align: center; }
.hero__eyebrow { color: var(--emerald); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 20px; }
.hero__headline { font-size: 64px; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero__lead { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; }

/* SECTIONS */
.section { padding: 80px 0; }
.section--muted { background: #080808; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.usp-card h2 { font-size: 18px; color: var(--emerald); }
.usp-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* RADIO CARD */
.radio-card { max-width: 800px; margin: 0 auto; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.radio-card__media { position: relative; aspect-ratio: 1/1; max-width: 400px; margin: 40px auto; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.radio-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.radio-card__media:hover img { transform: scale(1.02); }
.radio-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: var(--emerald); border: none; color: #fff; font-size: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-normal); box-shadow: var(--glow-emerald); }
.radio-card__play:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 40px rgba(46, 139, 87, 0.6); }
.radio-card__meta { text-align: center; padding: 0 40px 40px; }
.radio-card__artist { color: var(--text-muted); font-size: 16px; margin-top: 8px; }

/* META ROW LAYOUT */
.radio-card__meta-row { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 16px; 
  flex-wrap: wrap; 
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.meta-left { display: flex; align-items: center; gap: 12px; }
.meta-center { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.meta-right { display: flex; align-items: center; }

/* Status & Listener Badges */
.status-badge { 
  padding: 4px 10px; 
  background: var(--emerald); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 700; 
  letter-spacing: 0.1em; 
  border-radius: 4px;
  animation: pulse 2s infinite;
}
.listener-badge { 
  font-size: 12px; 
  color: var(--text-muted);
}
.listener-badge strong { 
  color: var(--text); 
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* RATING STARS (Enhanced) */
.rating-container { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: var(--bg-card); 
  padding: 8px 16px; 
  border-radius: 24px; 
  border: 1px solid var(--border);
  transition: var(--transition-normal);
}
.rating-container:hover { 
  border-color: var(--emerald); 
  box-shadow: var(--glow-emerald);
}
.rating-stars { 
  display: flex; 
  gap: 4px; 
}
.rating-star { 
  background: none; 
  border: none; 
  color: var(--text-subtle); 
  font-size: 22px; 
  cursor: pointer; 
  transition: all var(--transition-fast); 
  padding: 2px;
  transform-origin: center;
}
.rating-star:hover { 
  color: var(--emerald-light); 
  transform: scale(1.2);
}
.rating-star.active { 
  color: var(--emerald); 
  text-shadow: 0 0 8px var(--emerald);
}
.rating-star:active {
  transform: scale(0.9);
}
.rating-average { 
  font-weight: 700; 
  font-size: 16px; 
  color: var(--emerald);
  min-width: 28px;
}
.rating-total { 
  font-size: 11px; 
  color: var(--text-muted); 
}

/* MOOD TAG BUTTON */
.mood-tag-btn { 
  background: rgba(128, 0, 128, 0.15); 
  border: 1px solid var(--purple); 
  color: var(--purple-light); 
  padding: 8px 12px; 
  border-radius: 20px; 
  cursor: pointer; 
  font-size: 16px; 
  transition: all var(--transition-normal);
}
.mood-tag-btn:hover { 
  background: rgba(128, 0, 128, 0.3); 
  transform: scale(1.05);
  box-shadow: var(--glow-purple);
}

/* CURRENT MOOD TAGS DISPLAY */
.current-mood-tags { 
  margin-left: 8px;
}
.current-mood-tags .mood-badge { 
  display: inline-flex; 
  align-items: center;
  gap: 4px;
  padding: 6px 14px; 
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.2), rgba(128, 0, 128, 0.1)); 
  border: 1px solid var(--purple); 
  color: var(--purple-light); 
  border-radius: 20px; 
  font-size: 12px; 
  font-weight: 600;
  animation: fadeInBadge 0.3s ease;
}
.current-mood-tags .mood-badge.mood-empty { 
  background: rgba(255,255,255,0.03); 
  border-color: var(--border); 
  color: var(--text-muted);
}

@keyframes fadeInBadge {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MINI PLAYER */
.mini-player { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10,10,10,0.95); border-top: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 16px; backdrop-filter: blur(10px); z-index: 100; }
.mini-player__button { width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); border: none; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mini-player__meta { font-size: 12px; }

/* FOOTER */
.site-footer { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); margin-top: 80px; }

/* === COMPACT HISTORY TABLE (FIXED) === */
.history-list-container {
    max-height: 380px;
    overflow-y: auto;
    background: #080808;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    margin-top: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* CRITICAL for column widths */
}

.history-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.history-table td {
    padding: 4px 8px;
    vertical-align: middle;
    height: 36px;
}

/* FORCE COVER SIZE */
.history-cover {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 4px 0 0 !important;
}

.history-cover img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.history-info {
    overflow: hidden;
    padding-left: 4px !important;
}

.history-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-artist {
    display: block;
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-rating {
    width: 80px;
    text-align: right;
    padding-right: 8px !important;
}

.history-stars {
    display: inline-flex;
    gap: 1px;
}

.history-star {
    font-size: 10px;
    color: #444;
    cursor: pointer;
}

.history-star.filled {
    color: var(--emerald);
}

.history-time {
    font-size: 9px;
    color: #555;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero__headline { font-size: 40px; }
    .radio-card__media { max-width: 280px; }
}
/* MODAL OVERLAY */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: #fff;
    font-size: 24px; cursor: pointer;
}


/* ANIMATIONS */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-online {
    animation: pulse-glow 2s infinite;
}

/* GLASSMORPHISM ENHANCEMENTS */
.radio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.mini-player {
    background: rgba(10, 10, 10, 0.85); /* Fallback */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border-light);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

/* COVER ART ANIMATION */
.radio-card__media img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-card__media.playing img {
    transform: scale(1.05);
}

/* TEXT TRANSITIONS */
#track-title, #track-artist, #cover-art {
    transition: opacity 0.3s ease;
}
.fade-out { opacity: 0; }


/* VISUALIZER CONTROLS */
.visualizer-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 10;
}
.visualizer-toggle:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #000;
}

/* FULLSCREEN VISUALIZER */
body.visualizer-active {
    overflow: hidden;
}

.visualizer-fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visualizer-fullscreen canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.visualizer-fullscreen .meta {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.visualizer-fullscreen img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.3);
    animation: spin-slow 20s linear infinite;
    margin-bottom: 30px;
}

.visualizer-fullscreen h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.visualizer-fullscreen p {
    font-size: 18px;
    color: var(--emerald);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.visualizer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    pointer-events: all;
}
.visualizer-close:hover {
    background: rgba(255,255,255,0.2);
}


/* SCROLL FOCUS EFFECT */
.radio-card {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
}
.radio-card.focused {
    transform: scale(1.05);
    box-shadow: 0 40px 80px rgba(16, 185, 129, 0.15);
    z-index: 5;
}


#audio-visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}


/* CDJ-3000 VISUALIZER STYLE */
.visualizer-fullscreen.cdj-mode {
    background: #000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

.cdj-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    background: #0a0a0a;
}

.cdj-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #111;
    border-bottom: 1px solid #333;
    height: 180px;
}

.cdj-cover-box {
    width: 140px;
    height: 140px;
    border: 1px solid #444;
    background: #000;
}

.cdj-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cdj-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cdj-row-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cdj-player-number {
    background: #fff;
    color: #000;
    font-weight: 900;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.cdj-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdj-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cdj-artist {
    font-size: 1.5rem;
    color: #aaa;
    margin: 0;
    text-transform: uppercase;
}

.cdj-rating-box {
    transform: scale(1.5);
    transform-origin: right bottom;
}

.cdj-main-waveform {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.cdj-main-waveform canvas {
    width: 100%;
    height: 100%;
}

.cdj-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.cdj-footer {
    height: 60px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-top: 1px solid #333;
}

.cdj-status {
    background: #d32f2f;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 2px;
}

.cdj-bpm {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.cdj-bpm small {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
}


/* INTEGRATED RADIO CARD */
.radio-card--integrated {
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}

.radio-card__header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-card__cover-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border: 1px solid #444;
}

.radio-card__cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-card__title-row h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.radio-card__artist-row p {
    font-size: 1.25rem;
    color: #aaa;
    margin: 5px 0 10px;
}

.radio-card__meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    background: var(--color-emerald);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.listener-badge {
    color: #888;
    font-size: 0.9rem;
}

.radio-card__visualizer-container {
    height: 150px;
    background: #111;
    border: 1px solid #333;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.radio-card__visualizer-container canvas {
    width: 100%;
    height: 100%;
}

.vis-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vis-btn:hover, .vis-btn.active {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
}

.radio-card__controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play-btn-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-emerald);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn-large:hover {
    transform: scale(1.1);
}

.mood-tag-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* PROFESSIONAL FULLSCREEN VISUALIZER */
.visualizer-fullscreen.pro-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    z-index: 99999;
    display: grid;
    grid-template-rows: 80px 1fr 250px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-live-indicator {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.pro-clock {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    color: #888;
}

.pro-main {
    display: grid;
    grid-template-columns: 400px 1fr 300px;
    gap: 60px;
    padding: 40px 60px;
    align-items: center;
}

.pro-cover-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.pro-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pro-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.pro-artist {
    font-size: 2.5rem;
    color: var(--color-emerald);
    font-weight: 500;
}

.pro-meta {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.pro-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-sidebar {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.pro-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.pro-next-track {
    margin-bottom: auto;
}

.pro-next-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.pro-next-artist {
    color: #888;
    font-size: 1rem;
}

.pro-visualizer-area {
    position: relative;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pro-visualizer-area canvas {
    width: 100%;
    height: 100%;
}

.pro-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    z-index: 100;
    transition: opacity 0.2s;
}

.pro-close:hover {
    opacity: 1;
}

@media (max-width: 1200px) {
    .pro-main {
        grid-template-columns: 300px 1fr;
    }
    .pro-sidebar {
        display: none;
    }
}

/* ========================================
   MOBILE RESPONSIVE - COMPREHENSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Header */
    .site-header .container {
        padding: 12px 16px;
    }
    
    .brand-glow {
        font-size: 18px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero__headline {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero__lead {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Radio Player Card - MOBILE */
    .radio-card {
        margin: 0 16px;
        border-radius: 16px;
    }
    
    .radio-card__media {
        max-width: 100%;
        margin: 20px;
        aspect-ratio: 1/1;
    }
    
    .radio-card__play {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .radio-card__meta {
        padding: 0 20px 20px;
    }
    
    .radio-card__title {
        font-size: 20px;
    }
    
    .radio-card__artist {
        font-size: 14px;
    }
    
    /* Meta Row - PERFECT STACKING on Mobile */
    .radio-card__meta-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 1. Status & Listeners on top */
    .meta-left {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    /* 2. Rating & Tags in middle */
    .meta-center {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    /* 3. Mood Button layout */
    .meta-right {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 8px;
    }
    
    /* Rating Container fixes */
    .rating-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .rating-stars {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .rating-star {
        font-size: 32px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mood Tags fixes */
    .current-mood-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .mood-badge {
        font-size: 13px;
        padding: 6px 12px;
        white-space: nowrap; /* Prevent breaking inside badge */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }  
    
    /* History */
    #history-container {
        margin: 20px 16px;
    }
    
    .history-item {
        padding: 12px;
    }
    
    .history-art {
        width: 50px;
        height: 50px;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .usp-grid {
        gap: 24px;
    }
    
    /* Footer */
    .site-footer {
        padding: 40px 16px 20px;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 26px;
    }
    
    .radio-card__media {
        margin: 16px;
    }
    
    .radio-card__play {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .radio-card__title {
        font-size: 18px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .listener-badge {
        font-size: 11px;
    }
}

/* ========================================
   IMMERSIVE FULLSCREEN MODE
   ======================================== */
.immersive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.immersive-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.immersive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    z-index: 1;
}

.immersive-visualizer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#immersive-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.immersive-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.immersive-close-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.immersive-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.immersive-track-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.immersive-cover {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: cover;
}

.immersive-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#immersive-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#immersive-artist {
    font-size: 18px;
    color: var(--emerald);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.immersive-controls-row {
    margin-bottom: 10px;
}

.immersive-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--emerald);
    color: #000;
    border: none;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.immersive-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
}

/* Mobile Adjustments for Immersive Mode */
@media (max-width: 768px) {
    .immersive-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .immersive-track-row {
        flex-direction: column;
    }
    
    .immersive-cover {
        width: 180px;
        height: 180px;
        border-radius: 12px;
    }
    
    #immersive-title {
        font-size: 24px;
        margin-top: 10px;
    }
    
    #immersive-artist {
        font-size: 14px;
    }
    
    .immersive-controls-row {
        margin-bottom: 0;
    }
}

/* Immersive Rating Styles */
.immersive-rating {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.immersive-rating .rating-stars {
    gap: 12px;
}

.immersive-rating .rating-star {
    font-size: 36px; /* Bigger stars */
    color: rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5); /* Bouncy */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.immersive-rating .rating-star:hover {
    transform: scale(1.2);
}

.immersive-rating .rating-star.active,
.immersive-rating .rating-star.hover {
    color: var(--emerald);
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
    transform: scale(1.1);
}

/* Pulse Animation for feedback */
.immersive-rating .rating-star.just-rated {
    animation: starPulse 0.5s forwards;
    color: #fff;
}

@keyframes starPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.6); filter: brightness(2); text-shadow: 0 0 50px #fff; }
    100% { transform: scale(1); filter: brightness(1); }
}

/* Mobile Center Alignment override */
@media (max-width: 768px) {
    .immersive-rating {
        align-items: center;
        width: 100%;
    }
    
    .immersive-track-info {
        align-items: center;
        text-align: center;
    }
}
/* Realtime Vote Feedback */
.vibe-btn {
    position: relative;
    overflow: visible !important; /* Allow badge to pop out */
    transition: all 0.3s ease;
}

.vote-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-primary); /* Uses theme primary */
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-weight: 700;
    z-index: 10;
}

.vibe-btn.has-votes .vote-badge {
    opacity: 1;
    transform: scale(1);
}

.vibe-btn.has-votes {
    border-color: var(--color-primary);
    background: rgba(255, 107, 53, 0.1); /* Subtle tint using primary color assumption */
}
