/* ============================================================
   ΝΥΧΤΕΡΙΝΟΙ ΚΟΛΥΜΒΗΤΕΣ — Night Swimmers Radio
   A nocturnal, aquatic-inspired dark theme
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #181825;
  --bg-surface: #0e0e16;
  --bg-input: #0d0d14;

  --accent: #E38200;
  --accent-orange: #E38200;
  --accent-glow: rgba(227, 130, 0, 0.35);
  --accent-gradient: linear-gradient(135deg, #E38200 0%, #f5a623 100%);
  --accent-gradient-h: linear-gradient(90deg, #E38200 0%, #f5a623 100%);

  --text-primary: #e0e0e0;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;
  --text-bright: #ffffff;

  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(232, 68, 58, 0.3);

  --glass-bg: rgba(18, 18, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  --live-green: #22c55e;
  --live-glow: rgba(34, 197, 94, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-body: 'Noto Sans', 'Segoe UI', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --topbar-h: 64px;
  --mobile-tab-h: 60px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* --- Selection --- */
::selection {
  background: rgba(232, 68, 58, 0.3);
  color: var(--text-bright);
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  background: var(--accent-orange);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
  opacity: 0.08;
}

.ambient-orb--3 {
  width: 300px;
  height: 300px;
  background: #4a2080;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
  opacity: 0.06;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-orange);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232, 68, 58, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(232, 68, 58, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
}

.btn--social {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
}
.btn--social:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.btn--social svg {
  flex-shrink: 0;
}

/* --- Topbar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  height: 100%;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__logo {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar__brand a {
  display: flex;
  align-items: center;
}

.topbar__brand a img {
  height: 46px !important;
  width: auto !important;
}

.topbar__logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.topbar__logo-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.3;
  animation: logoRipple 3s ease-out infinite;
}

@keyframes logoRipple {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.8); opacity: 0; }
}

.topbar__title-group {
  display: flex;
  flex-direction: column;
}

.topbar__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.topbar__tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.topbar__auth-guest,
.topbar__auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__username {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border);
}
.topbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Layout --- */
.layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 24px 0;
  margin-top: var(--topbar-h);
  height: calc(100dvh - var(--topbar-h));
}

.col-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100%;
  animation: fadeSlideUp 0.6s ease-out;
}

/* Player stays at top, episodes scroll below */
.col-main .player {
  flex-shrink: 0;
}

.col-main .episodes-section {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.col-chat {
  flex: 3;
  height: 100%;
  animation: fadeSlideUp 0.6s ease-out 0.15s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ensure desktop never hides columns */
@media (min-width: 769px) {
  .col-main, .col-main.is-hidden { display: flex !important; }
  .col-chat, .col-chat.is-visible { display: flex !important; }
}

/* --- PLAYER --- */
.player {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.player__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 16px;
}

.player-art {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a28, #0e0e16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.player-art__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.player-art__fallback svg {
  width: 100%;
  height: 100%;
}

.player-art__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 60px;
  margin-left: 24px;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.player.is-playing .player__visualizer {
  opacity: 1;
}

.visualizer-bar {
  width: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  height: 8px;
  transition: height 0.15s ease;
}

.player.is-playing .visualizer-bar {
  animation: visBounce 0.8s ease-in-out infinite alternate;
}

.player.is-playing .visualizer-bar:nth-child(1)  { animation-delay: 0s; }
.player.is-playing .visualizer-bar:nth-child(2)  { animation-delay: 0.1s; }
.player.is-playing .visualizer-bar:nth-child(3)  { animation-delay: 0.2s; }
.player.is-playing .visualizer-bar:nth-child(4)  { animation-delay: 0.05s; }
.player.is-playing .visualizer-bar:nth-child(5)  { animation-delay: 0.15s; }
.player.is-playing .visualizer-bar:nth-child(6)  { animation-delay: 0.25s; }
.player.is-playing .visualizer-bar:nth-child(7)  { animation-delay: 0.08s; }
.player.is-playing .visualizer-bar:nth-child(8)  { animation-delay: 0.18s; }
.player.is-playing .visualizer-bar:nth-child(9)  { animation-delay: 0.03s; }
.player.is-playing .visualizer-bar:nth-child(10) { animation-delay: 0.13s; }
.player.is-playing .visualizer-bar:nth-child(11) { animation-delay: 0.22s; }
.player.is-playing .visualizer-bar:nth-child(12) { animation-delay: 0.07s; }

@keyframes visBounce {
  0%   { height: 6px; }
  100% { height: 50px; }
}

.player__body {
  padding: 0 32px 28px;
}

.player-info {
  margin-bottom: 20px;
}

.player-info__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition);
}

.live-badge.is-live {
  background: rgba(34, 197, 94, 0.12);
  color: var(--live-green);
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 20px var(--live-glow);
}

.live-badge.is-live::before {
  background: var(--live-green);
  animation: livePulse 1.5s ease-in-out infinite;
}

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

.listeners {
  display: none;
}

.now-playing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.player-info__episode {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.player-info__episode span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-back-live {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-back-live:hover {
  border-color: var(--accent);
  background: rgba(232, 68, 58, 0.08);
}

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

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(232, 68, 58, 0.3);
  flex-shrink: 0;
  position: relative;
}

.play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 30px rgba(232, 68, 58, 0.45);
}

.play-btn:active {
  transform: scale(0.96);
}

/* Pulse ring when live and playing */
.player.is-live .play-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: playPulse 2s ease-out infinite;
}

@keyframes playPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.play-btn .play-icon,
.play-btn .pause-icon {
  pointer-events: none;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.volume-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.volume-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}

/* Range slider base */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: all var(--transition);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px var(--accent-glow);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 8px var(--accent-glow);
  cursor: pointer;
}

.volume-slider {
  flex: 1;
}

/* Progress bar for on-demand */
.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.player-progress__current,
.player-progress__duration {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 36px;
}

.player-progress__current {
  text-align: right;
}

.progress-slider {
  flex: 1;
}


/* --- EPISODES --- */
.episodes {
  animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.episodes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.episodes__filter {
  display: flex;
  gap: 6px;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.filter-chip.active {
  background: rgba(232, 68, 58, 0.1);
  border-color: rgba(232, 68, 58, 0.3);
  color: var(--accent);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}

.episode-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.episode-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a28, var(--bg-card));
}

.episode-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.episode-card:hover .episode-card__img {
  transform: scale(1.05);
}

.episode-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
}

.episode-card:hover .episode-card__play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.episode-card__play-btn:hover {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}

.episode-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
}

.episode-card__body {
  padding: 14px 16px 16px;
}

.episode-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.episode-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episode-card__plays {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.episode-card__plays svg {
  opacity: 0.5;
}

.episode-card__fav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.episode-card__fav:hover {
  color: var(--accent);
}

.episode-card__fav.is-faved {
  color: var(--accent);
}

.episode-card__fav.is-faved svg {
  fill: var(--accent);
}

/* Currently playing indicator */
.episode-card.is-playing {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(232, 68, 58, 0.15);
}

.episode-card.is-playing .episode-card__play-btn {
  opacity: 1;
  background: var(--accent);
}

.episodes__footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.load-more-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.load-more-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.load-more-btn.is-loading span {
  opacity: 0;
}

.load-more-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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


/* --- CHAT --- */
.chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.chat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
}

.online-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Chat message */
.chat-msg {
  max-width: 85%;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  animation: msgIn 0.25s ease-out;
  word-break: break-word;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg__avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.chat-msg__content {
  flex: 1;
  min-width: 0;
}

.chat-msg--self {
  flex-direction: row-reverse;
}

.chat-msg--self .chat-msg__content {
  text-align: right;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg--other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.chat-msg--self {
  align-self: flex-end;
  background: rgba(232, 68, 58, 0.12);
  border: 1px solid rgba(232, 68, 58, 0.2);
}

.chat-msg__author {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-msg--other .chat-msg__author {
  color: var(--accent-orange);
}

.chat-msg--self .chat-msg__author {
  color: var(--accent);
}

.chat-msg__author .admin-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.chat-msg__author.is-guest {
  color: var(--text-muted);
}

.chat-msg__text {
  color: var(--text-primary);
}

.chat-msg__time {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: right;
}

/* System messages */
.chat-msg--system {
  align-self: center;
  max-width: 100%;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Typing indicator */
.chat-typing {
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.2s; }
.typing-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Chat input */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}

.chat-input-area input:focus {
  border-color: rgba(232, 68, 58, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 68, 58, 0.08);
}

.chat-input-area input:disabled {
  opacity: 0.4;
}

.chat-input-area input::placeholder {
  color: var(--text-muted);
}

.chat-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-input-area button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(232, 68, 58, 0.3);
}

.chat-input-area button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Chat login prompt */
.chat-login-prompt {
  padding: 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-login-prompt__inner {
  text-align: center;
}

.chat-login-prompt p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.chat-login-prompt__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* --- AUTH MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal--sm {
  max-width: 340px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
  text-align: center;
}

.modal__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 28px;
}

.modal__tab {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.modal__tab.active {
  background: rgba(232, 68, 58, 0.15);
  color: var(--accent);
}

.modal__tab:hover:not(.active) {
  color: var(--text-primary);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus {
  border-color: rgba(232, 68, 58, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 68, 58, 0.08);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1.2em;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- MOBILE TABS --- */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-tab-h);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0 16px;
}

.mobile-tabs__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  padding: 8px;
}

.mobile-tabs__btn.active {
  color: var(--accent);
}

.mobile-tabs__btn svg {
  width: 20px;
  height: 20px;
}


/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  :root {
    --topbar-h: 56px;
  }

  .topbar__inner {
    padding: 0 16px;
  }

  .topbar__title {
    font-size: 0.95rem;
  }

  .topbar__tagline {
    display: none;
  }

  .mobile-tabs {
    display: flex;
  }

  .layout {
    flex-direction: column;
    padding: 4px 10px calc(var(--mobile-tab-h) + 4px);
    gap: 0;
  }

  .col-main {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .col-chat {
    flex: none;
    max-width: 100%;
    width: 100%;
    position: static;
    height: calc(100dvh - var(--topbar-h) - var(--mobile-tab-h) - 12px);
    display: none;
  }

  .col-main.is-hidden {
    display: none;
  }

  .col-main.is-hidden .player {
    display: none;
  }

  .col-chat.is-visible {
    display: block;
  }

  /* Player mobile - compact */
  .player__visual {
    padding: 12px 16px 8px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .player-art {
    width: 56px;
    height: 56px;
  }

  .player__visualizer {
    display: none;
  }

  .player__body {
    padding: 0 16px 12px;
  }

  .now-playing {
    font-size: 0.95rem;
  }

  .play-btn {
    width: 42px;
    height: 42px;
  }

  .volume-control {
    min-width: 60px;
  }

  .volume-value {
    display: none;
  }

  .player-info__meta {
    display: none;
  }

  /* Episodes grid mobile - 2 columns */
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .episode-card__body {
    padding: 8px 10px 10px;
  }

  .episode-card__title {
    font-size: 0.8rem;
  }

  .episode-card__meta {
    font-size: 0.65rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  /* Modal mobile */
  .modal {
    padding: 28px 24px 24px;
    margin: 16px;
  }
}

@media (max-width: 480px) {
  .topbar__auth .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .player__visual {
    flex-direction: column;
    align-items: center;
  }

  .player__visualizer {
    margin-left: 0;
    margin-top: 12px;
  }

  .player-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .volume-control {
    max-width: 100%;
  }

  .player-progress {
    margin-top: 0;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Episodes loading skeleton */
.episode-card--skeleton .episode-card__cover {
  background: linear-gradient(90deg, var(--bg-card) 25%, #1a1a2a 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.episode-card--skeleton .episode-card__title,
.episode-card--skeleton .episode-card__date {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  color: transparent;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Force full width chain */
html, body { width: 100%; }
main.layout { width: 100%; }

/* ============================================================
   ONLINE USERS DRAWER
   ============================================================ */

.online-count {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.online-count::before {
  display: none;
}

.online-count__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
  flex-shrink: 0;
}

.online-count:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.online-count__arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.online-count.is-open .online-count__arrow {
  transform: rotate(180deg);
}

.online-users-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 200px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  overflow-y: auto;
  padding-top: 50px;
}

.online-users-drawer.is-open {
  transform: translateX(0);
}

.online-users-list {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.online-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.online-user-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.online-user-item__avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.online-user-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.online-user-item__name {
  font-size: 0.8rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-item__badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  flex-shrink: 0;
}

.online-user-item__pm-icon {
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.online-user-item:hover .online-user-item__pm-icon {
  opacity: 1;
}

/* ============================================================
   PM PANEL
   ============================================================ */

.pm-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  z-index: 20;
  display: flex;
  flex-direction: column;
  animation: pmSlideIn 0.3s ease;
}

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

.pm-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pm-panel__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
}

.pm-panel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.pm-panel__close:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.pm-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-panel__input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.pm-panel__input input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.pm-panel__input input:focus {
  border-color: var(--accent);
}

.pm-panel__input button {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.pm-panel__input button:hover {
  transform: scale(1.05);
}

.pm-msg {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 85%;
  animation: msgIn 0.2s ease;
}

.pm-msg--self {
  align-self: flex-end;
  background: rgba(232, 68, 58, 0.12);
  border: 1px solid rgba(232, 68, 58, 0.2);
  color: var(--text-primary);
}

.pm-msg--other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.pm-msg__time {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* PM notification badge */
.pm-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pmBadgePop 0.3s ease;
}

@keyframes pmBadgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.online-user-item {
  position: relative;
}

/* ============================================================
   EMOJI PICKER
   ============================================================ */

.emoji-picker {
  position: absolute;
  bottom: 56px;
  left: 8px;
  width: 280px;
  max-height: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  display: flex;
  flex-direction: column;
  animation: emojiPopIn 0.2s ease;
  overflow: hidden;
}

@keyframes emojiPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.emoji-picker__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
  flex-shrink: 0;
}

.emoji-picker__tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 8px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.emoji-picker__tab:hover {
  color: var(--text-primary);
}

.emoji-picker__tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.emoji-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.emoji-picker__item {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.emoji-picker__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   CHAT INPUT BUTTONS (emoji, photo)
   ============================================================ */

.chat-input-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-input-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.chat-input-btn.is-active {
  color: var(--accent);
}

/* ============================================================
   CHAT IMAGE (photo in chat)
   ============================================================ */

.chat-msg__image {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-top: 4px;
  display: block;
}

.chat-msg__image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lightboxIn 0.2s ease;
}

.lightbox-overlay.is-open {
  display: flex;
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ============================================================
   CHAT INPUT AREA - responsive fix for new buttons
   ============================================================ */

.chat-input-area {
  gap: 4px !important;
}

@media (max-width: 600px) {
  .emoji-picker {
    width: calc(100% - 16px);
    left: 8px;
    right: 8px;
  }
  .pm-panel {
    border-radius: 0;
  }
}

.drawer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: rgba(10, 10, 15, 0.95);
  z-index: 1;
}
.drawer-header:hover { color: var(--text-primary); }
.drawer-header svg { opacity: 0.5; transition: opacity 0.2s; }
.drawer-header:hover svg { opacity: 1; }

/* PM Notification in main chat */
.chat-msg--pm-notif {
  align-self: center !important;
  max-width: 90% !important;
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  cursor: pointer;
}
.pm-notif-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(227, 130, 0, 0.15);
  border: 1px solid rgba(227, 130, 0, 0.35);
  border-radius: var(--radius-md);
  transition: background 0.2s;
  animation: pmPulse 0.5s ease-out;
}
.pm-notif-inner:hover {
  background: rgba(227, 130, 0, 0.25);
}
.pm-notif-icon {
  color: var(--accent);
  min-width: 16px;
}
.pm-notif-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.pm-notif-text strong {
  color: var(--accent);
  margin-right: 4px;
}
@keyframes pmPulse {
  0% { transform: scale(0.95); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.pm-notif-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Command user picker (/kick, /ban autocomplete) */
.cmd-user-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 12, 18, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 20;
}
.cmd-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.cmd-user-item:hover {
  background: rgba(227, 130, 0, 0.12);
}
.cmd-user-avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

/* Logo responsive */
.logo-desktop { height: 42px; width: auto; display: block; }
.logo-mobile { height: 36px; width: auto; display: none; }
@media (max-width: 600px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }
}
