/* ==========================================================================
   RADIO STALKER — CYBER NEON DESIGN SYSTEM v5
   Clean layout, full top player, bottom campfire section
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 21, 31, 0.88);

  --color-cyan: #00f0ff;
  --color-cyan-glow: rgba(0, 240, 255, 0.35);
  --color-amber: #ff9d00;
  --color-amber-glow: rgba(255, 157, 0, 0.3);

  --border-glass: rgba(0, 240, 255, 0.15);
  --border-glass-bright: rgba(0, 240, 255, 0.4);

  --color-text-main: #f1f5f9;
  --color-text-muted: #94a3b8;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Orbitron', var(--font-main);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.8);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 75px;
}

/* Background */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.3;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  top: -180px;
  left: -180px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-amber) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  animation-delay: -9s;
}

.glow-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, 60px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.highlight {
  color: var(--color-cyan);
  text-shadow: 0 0 12px var(--color-cyan-glow);
}

/* iOS Banner */
.ios-install-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-bottom: 2px solid var(--color-cyan);
  z-index: 2500;
  padding: 10px 16px;
}

.ios-install-banner.active { display: block; }

.ios-banner-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ios-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ios-banner-text {
  font-size: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.ios-banner-text b { color: var(--color-cyan); }

.ios-banner-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--color-cyan-glow));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 6px;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-tg {
  background: linear-gradient(135deg, #0088cc, #00a0e9);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 136, 204, 0.3);
}

.btn-tg:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0, 136, 204, 0.5);
}

/* Primary buttons: pure cyan, NOT cyan→amber gradient (avoids green look) */
.btn-primary {
  background: var(--color-cyan);
  color: #000;
  font-weight: 900;
  box-shadow: 0 2px 14px var(--color-cyan-glow);
}

.btn-primary:hover {
  background: #33f5ff;
  box-shadow: 0 4px 20px var(--color-cyan-glow);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}

.btn-accent:hover {
  background: var(--color-cyan);
  color: #000;
}

.menu-toggle {
  display: none;
  background: rgba(0, 240, 255, 0.12);
  border: 2px solid var(--color-cyan);
  color: var(--color-cyan);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-cyan-glow);
  flex-shrink: 0;
}

.mobile-drawer {
  display: none;
  background: rgba(7, 9, 14, 0.98);
  border-bottom: 2px solid var(--color-cyan);
  padding: 12px 16px;
}

.mobile-drawer.active { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link.highlight-link {
  background: rgba(0, 136, 204, 0.2);
  color: #00a0e9;
  border-color: #00a0e9;
}

/* Hero Player Full Width */
.hero-section {
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container-full {
  width: 100%;
}

.player-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

/* Center Visuals */
.player-center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cover-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-cyan-glow);
  overflow: hidden;
  background: #0f1520;
}

.vinyl-record.playing {
  animation: spinVinyl 16s linear infinite;
}

@keyframes spinVinyl {
  to { transform: rotate(360deg); }
}

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

.vinyl-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  border: 3px solid var(--color-cyan);
  border-radius: 50%;
}

.visualizer-overlay {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 36px;
  pointer-events: none;
}

#visualizerCanvas {
  width: 100%;
  height: 100%;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  overflow: hidden;
  min-width: 0;
}

.track-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-cyan);
  letter-spacing: 1px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: blinkFast 1.2s infinite;
}

/* Honest connection states — reuses existing palette, no new colors */
.track-status-pill.is-connecting .pulse-indicator {
  background: var(--color-text-muted);
  box-shadow: 0 0 10px var(--color-text-muted);
  animation: blinkFast 0.8s infinite;
}
.track-status-pill.is-connecting { color: var(--color-text-muted); }

.track-status-pill.is-offline .pulse-indicator {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
  animation: none;
}
.track-status-pill.is-offline { color: #f43f5e; }

.track-status-pill.is-live { color: var(--color-cyan); }
.track-status-pill.is-live .pulse-indicator { background: var(--color-cyan); box-shadow: 0 0 10px var(--color-cyan); }

@keyframes blinkFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.track-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress */
.track-progress-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-amber));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--color-cyan-glow);
  transition: width 0.4s linear;
}

.progress-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.next-up {
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Controls Bar */
.player-controls-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(7, 9, 14, 0.7);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-play-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-cyan);
  border: none;
  color: #000;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 24px var(--color-cyan-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.btn-play-large:hover {
  transform: scale(1.08);
  box-shadow: 0 0 36px var(--color-cyan-glow);
}

.control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 17px;
  cursor: pointer;
}

.btn-icon:hover { color: var(--color-cyan); }

.volume-slider, .volume-slider-sm {
  accent-color: var(--color-cyan);
  cursor: pointer;
  width: 90px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-labeled {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-icon-labeled:hover {
  background: var(--color-cyan);
  color: #000;
}

/* History */
.history-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.history-title {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  overflow: hidden;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.history-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.history-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.history-track-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-track-artist {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-toggle-btn {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.history-toggle-btn:hover {
  color: var(--color-text-main);
}

.history-toggle-btn.expanded i {
  transform: rotate(180deg);
}

.history-toggle-btn i {
  transition: transform var(--transition-fast);
  font-size: 10px;
}

/* Bottom Banner Section */
.bottom-banner-section {
  padding-top: 10px;
  padding-bottom: 40px;
}

.station-side-banner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.banner-badge {
  background: rgba(255, 157, 0, 0.15);
  border: 1px solid var(--color-amber);
  color: var(--color-amber);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.banner-title {
  font-size: 20px;
  line-height: 1.3;
  color: #fff;
}

.banner-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-cyan);
}

.stat-lbl {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.tg-box {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 160, 233, 0.05));
  border: 1px solid rgba(0, 136, 204, 0.35);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-box-text h4 { font-size: 14px; color: #fff; }
.tg-box-text p { font-size: 12px; color: var(--color-text-muted); }

.btn-tg-full { width: 100%; background: #0088cc; color: #fff; }

/* Content Sections */
.content-section {
  padding: 40px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Requests */
.request-widget { padding: 24px; }

/* Search bar: input wrapper is a flex row, icon wrapper is always relative */
.search-bar-wrapper {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
}

/* This wrapper makes icon always stick inside the input */
.input-with-icon {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-main);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-cyan);
}

.song-results-container { margin-top: 20px; min-height: 100px; }

.empty-search-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: 24px;
}

.music-ph-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--color-cyan);
  opacity: 0.5;
}

.song-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}

.song-result-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.song-result-title { font-weight: 700; font-size: 14px; }
.song-result-artist { font-size: 12px; color: var(--color-text-muted); }

/* Shoutbox */
.shoutbox-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.shoutbox-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shoutbox-form h3 {
  font-size: 14px;
  color: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.form-control {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
}

.btn-block { width: 100%; }

.shoutbox-feed {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
}

.shout-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-md);
}

.shout-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

.shout-author {
  font-weight: 700;
  color: var(--color-cyan);
  font-size: 13px;
}

.shout-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.shout-text {
  font-size: 14px;
  color: #e2e8f0;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  padding: 10px;
}

/* Real <img loading="lazy"> instead of a CSS background-image — browsers
   only fetch these once they're near the viewport, instead of all 5 photos
   downloading immediately on page load competing with the player's own
   critical resources on a mobile connection. */
.news-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.news-category {
  position: relative;
  z-index: 1;
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.news-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.news-date {
  font-size: 11px;
  color: var(--color-text-muted);
}

.news-title {
  font-size: 15px;
  color: #fff;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Sticky Player */
.sticky-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--color-cyan);
  padding: 8px 16px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

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

.sticky-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sticky-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-artist {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-play-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-cyan);
  border: none;
  color: #000;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--color-cyan-glow);
  transition: transform var(--transition-fast);
}

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

.sticky-vol-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: rgba(15, 21, 31, 0.95);
  border: 1px solid var(--color-cyan);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Fullscreen Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.fullscreen-player-content {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.modal-close-btn {
  position: absolute;
  top: -10px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.fs-cover {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px var(--color-cyan-glow);
  object-fit: cover;
}

.fs-title { font-size: 20px; color: #fff; }
.fs-artist { font-size: 15px; color: var(--color-amber); }

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .shoutbox-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .header-container { padding: 8px 12px; }
  .brand-logo-img { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .btn-tg { padding: 6px 10px; font-size: 12px; }
  .tg-text { display: none; }
  .menu-toggle { width: 38px; height: 38px; font-size: 16px; }
  
  .hero-section { padding: 16px 12px; }
  .player-card { padding: 20px 16px; gap: 16px; border-radius: var(--radius-md); }
  .player-center { flex-direction: column; gap: 16px; text-align: center; }
  .cover-wrapper { width: 160px; height: 160px; }
  .track-title { font-size: 20px; white-space: normal; }
  .track-artist { font-size: 15px; }
  .track-status-pill { justify-content: center; }
  .next-up { white-space: normal; font-size: 11px; }

  .player-controls-bar { flex-direction: column; gap: 14px; padding: 14px; }
  .btn-play-large { width: 60px; height: 60px; font-size: 22px; }
  .control-actions { flex-direction: column; gap: 12px; width: 100%; }
  .volume-control { width: 100%; justify-content: center; }
  .volume-slider { width: 100%; flex: 1; }
  .action-buttons { width: 100%; justify-content: center; }
  .history-list { grid-template-columns: 1fr 1fr; gap: 6px; }
  .history-item { padding: 6px 8px; }
  .history-thumb { width: 30px; height: 30px; }

  .station-side-banner { padding: 20px 16px; border-radius: var(--radius-md); }
  .banner-title { font-size: 16px; }

  .content-section { padding: 32px 12px; }
  .section-title { font-size: 18px; }
  .request-widget { padding: 16px; }
  /* Keep search bar as a row always! Icon must stay inside the input wrapper */
  .search-bar-wrapper { flex-direction: row; gap: 8px; }
  .input-with-icon { flex: 1; min-width: 0; }
  .search-input { padding-left: 38px; font-size: 13px; padding-top: 10px; padding-bottom: 10px; }
  #btnSearchSong { flex-shrink: 0; padding: 10px 14px; font-size: 13px; }
  .shoutbox-form { padding: 16px; }
  .shoutbox-feed { padding: 16px; max-height: 340px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-image { height: 140px; }
  .news-content { padding: 14px; }

  .sticky-player-bar { padding: 6px 12px; }
  .sticky-cover { width: 36px; height: 36px; }
  .sticky-title { font-size: 12px; }
  .sticky-vol-box { display: none; }
  .btn-play-mini { width: 36px; height: 36px; font-size: 14px; }

  .toast-container { bottom: 70px; right: 12px; left: 12px; }
  .toast-item { font-size: 12px; padding: 8px 12px; }
  .fs-cover { width: 200px; height: 200px; }
  .fs-title { font-size: 18px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 13px; }
  .cover-wrapper { width: 140px; height: 140px; }
  .track-title { font-size: 18px; }
  .history-list { grid-template-columns: 1fr; }
}
