@import url("/static/vendor/uicons/css/all.min.css");

/* ==============================================================================
   ⚡ BOLT.LIVE - Twitch / Kick Inspired Modern Streaming Platform Theme
   Colors: Obsidian Black (#08090b, #0e1015), Electric Volt / Neon Green (#00F59B),
   Twitch Purple (#9146FF), Live Red (#EF4444)
   ============================================================================== */

:root {
  /* Surface & Backgrounds (Kick.com Authentic) */
  --bg-root: #0b0e0f;           /* Kick deep obsidian background */
  --bg-main: #0b0e0f;           /* Main content backdrop */
  --bg-sidebar: #0e1015;        /* Kick left drawer */
  --bg-header: #0e1015;         /* Kick sticky header */
  --bg-card: #131619;           /* Kick card background */
  --bg-card-hover: #181b20;     /* Card interactive hover */
  --bg-input: #191b1f;          /* Kick search and input field */
  --bg-chat: #0e1015;           /* Kick chat background */
  --bg-chat-header: #12151b;    /* Chat header */

  /* Borders & Dividers */
  --border-subtle: #191c24;     /* Soft separation */
  --border-color: #24272c;      /* Standard component border */
  --border-strong: #2e343d;     /* Hover & active border */
  --border-focus: #00E5FF;      /* Electric Cyan focus */

  /* BOLT Brand Accents: Electric Cyan / High-Tech Streaming */
  --brand-bolt: #00E5FF;        /* Electric Cyan (#00E5FF) */
  --brand-bolt-hover: #33EBFF;  /* Radiant Electric Cyan (#33EBFF) */
  --brand-bolt-tint: rgba(0, 229, 255, 0.14);
  --brand-bolt-glow: rgba(0, 229, 255, 0.35);
  --brand-kick: #00E5FF;
  
  --brand-purple: #9146FF;      /* Twitch Purple Accent */
  --brand-purple-hover: #772ce8;
  --brand-purple-tint: rgba(145, 70, 255, 0.15);

  /* Status Accents */
  --accent-live: #ef4444;       /* Twitch/Kick Pulsing Live Red */
  --accent-live-hover: #dc2626;
  --accent-live-tint: rgba(239, 68, 68, 0.15);
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-pink: #ec4899;

  /* Typography */
  --text-main: #f3f4f6;         /* Bright high-contrast white */
  --text-secondary: #adadb8;    /* Twitch-style secondary gray */
  --text-muted: #848494;        /* Muted metadata */
  --text-faint: #535362;        /* Dark hint text */

  /* Layout Dimensions */
  --header-height: 54px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 56px;
  --chat-width: 340px;

  /* Standard Border Radii (Twitch / Kick Style) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --radius-avatar: 50%;
}

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

body {
  background-color: var(--bg-root);
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Flaticon Icons Helper */
.fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: -0.125em;
}

/* Custom Twitch Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #222733;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #353b4c;
}

/* ==============================================================================
   HEADER (Twitch / Kick Sticky Navigation)
   ============================================================================== */
header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0;
  transition: transform 0.15s ease;
}

/* Pure Typography Wordmark (Twitch & Kick Style - NO Badge, NO Box, NO Emoji) */
.logo-wordmark {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.logo-container:hover .logo-wordmark {
  color: var(--brand-bolt);
  transform: translateY(-1px);
}

.logo-badge {
  display: none;
}

.logo-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: var(--brand-bolt);
  background: rgba(0, 245, 155, 0.08);
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--brand-bolt);
  border-radius: var(--radius-full);
}

/* Search Bar (Twitch / Kick Center Bar) */
.header-search {
  flex: 1;
  max-width: 380px;
  margin: 0 1.5rem;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 1rem 0 2.2rem;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.header-search input:focus {
  border-color: var(--brand-bolt);
  background: #0f1217;
  box-shadow: 0 0 0 2px var(--brand-bolt-tint);
}

.header-search .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ==============================================================================
   BUTTONS & CONTROLS (Twitch / Kick Aesthetics)
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  min-height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-bolt);
  color: #0A0A0A;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--brand-bolt-glow);
}

.btn-primary:hover {
  background: var(--brand-bolt-hover);
  color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-bolt-glow);
}

.btn-secondary {
  background: #1f2430;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #2a3142;
  border-color: var(--border-strong);
  color: #fff;
}

.btn-purple {
  background: var(--brand-purple);
  color: #fff;
}
.btn-purple:hover {
  background: var(--brand-purple-hover);
}

.btn-danger {
  background: var(--accent-live);
  color: #fff;
}
.btn-danger:hover {
  background: var(--accent-live-hover);
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  min-height: 30px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   PLATFORM WRAPPER & SIDEBAR (Twitch / Kick Live Sidebar)
   ============================================================================== */
.platform-wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  width: 100%;
}

.platform-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  z-index: 40;
}

.platform-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 0.85rem 0.85rem 0.45rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sidebar-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-section {
  padding: 0.25rem 0;
}

/* Kick.com Navigation Links */
.kick-nav-list {
  padding: 0.35rem 0;
  display: flex;
  flex-direction: column;
}

.kick-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin: 0.15rem 0.5rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.kick-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.kick-nav-link.active {
  color: #fff;
  background: #191b22;
}

.kick-nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.kick-nav-link.active i {
  color: var(--brand-bolt);
}

.kick-section-heading {
  padding: 0.85rem 0.85rem 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #848494;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kick-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  gap: 0.65rem;
}

.kick-channel-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.kick-channel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #232733;
  border: 2px solid var(--brand-bolt);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
}

.kick-channel-avatar.border-orange { border-color: #f59e0b; }
.kick-channel-avatar.border-green { border-color: var(--brand-bolt); }
.kick-channel-avatar.border-purple { border-color: #9146FF; }
.kick-channel-avatar.border-blue { border-color: #38bdf8; }

.kick-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kick-channel-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kick-channel-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.kick-channel-category {
  font-size: 0.72rem;
  color: #848494;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kick-channel-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.kick-channel-viewers .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 6px var(--accent-live);
}

.kick-channel-viewers.live-text {
  font-size: 0.68rem;
  background: var(--brand-bolt-tint);
  color: var(--brand-bolt);
  padding: 1px 5px;
  border-radius: 3px;
}

.kick-sidebar-more-link {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  color: #848494;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.kick-sidebar-more-link:hover {
  color: #fff;
}

.platform-sidebar.collapsed .kick-nav-link span,
.platform-sidebar.collapsed .kick-section-heading,
.platform-sidebar.collapsed .kick-channel-info,
.platform-sidebar.collapsed .kick-channel-viewers,
.platform-sidebar.collapsed .kick-sidebar-more-link {
  display: none;
}

.platform-sidebar.collapsed .kick-nav-link {
  justify-content: center;
  padding: 0.6rem 0;
  margin: 0.2rem 0;
}

.platform-sidebar.collapsed .kick-channel-row {
  justify-content: center;
  padding: 0.5rem 0;
}

.sidebar-channel-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  position: relative;
}

.sidebar-channel-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-channel-item.active {
  background: rgba(0, 245, 155, 0.08);
}
.sidebar-channel-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-bolt);
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-avatar);
  background: #232733;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--brand-bolt);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  border: 1px solid var(--border-color);
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.avatar-live-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--accent-live);
  border: 2px solid var(--bg-sidebar);
  border-radius: var(--radius-avatar);
  animation: pulse 1.6s infinite;
}

.sidebar-channel-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-channel-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-channel-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.sidebar-viewer-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sidebar-viewer-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-live);
  border-radius: var(--radius-avatar);
}

.platform-sidebar.collapsed .sidebar-channel-info,
.platform-sidebar.collapsed .sidebar-title,
.platform-sidebar.collapsed .sidebar-viewer-pill {
  display: none;
}

.platform-sidebar.collapsed .sidebar-channel-item {
  justify-content: center;
  padding: 0.5rem 0;
}

/* ==============================================================================
   MAIN CONTAINER & BROWSE VIEW
   ============================================================================== */
.platform-main-container {
  flex: 1;
  min-width: 0;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
}

.view-panel {
  width: 100%;
}

/* ==============================================================================
   KICK.COM HERO SHOWCASE (Video + Frosted Glass Bar + Embedded Live Chat)
   ============================================================================== */
.kick-hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .kick-hero-section {
    grid-template-columns: 1fr clamp(240px, 30vw, 340px) !important;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .kick-hero-section {
    grid-template-columns: 1fr clamp(190px, 36vw, 260px) !important;
    gap: 0.75rem;
  }
}

.kick-hero-player-wrapper {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kick-hero-player-wrapper video,
.kick-hero-player-wrapper .kick-hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mute-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(14, 16, 21, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.hero-mute-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.hero-mute-toggle i {
  font-size: 1rem;
}

#hero-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.kick-hero-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 16, 21, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kick-hero-top-badge .dot-red {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
}

.kick-hero-glass-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 16, 21, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  gap: 1rem;
}

.kick-hero-streamer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.kick-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #20242e;
  border: 2px solid var(--brand-bolt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.kick-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kick-hero-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kick-hero-channel-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kick-verified-badge {
  color: var(--brand-bolt);
  font-size: 0.85rem;
}

.kick-hero-title {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.kick-hero-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.kick-tag {
  background: #20242e;
  color: #adadb8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
}

.kick-carousel-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.kick-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.kick-dot.active {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #fff;
}

.kick-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.kick-btn-watch {
  background: var(--brand-bolt);
  color: #0A0A0A;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.kick-btn-watch:hover {
  background: var(--brand-bolt-hover);
  color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-bolt-glow);
}

.kick-nav-arrows {
  display: flex;
  align-items: center;
  gap: 3px;
}

.kick-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.kick-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Kick Hero Embedded Chat */
.kick-hero-chat-wrapper {
  background: #0e1015;
  border: 1px solid #1f232b;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kick-hero-chat-header {
  padding: 0.75rem 1rem;
  background: #12151b;
  border-bottom: 1px solid #1f232b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.kick-hero-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  min-height: 0;
}

.kick-chat-line {
  line-height: 1.4;
  word-break: break-word;
}

.kick-chat-user {
  font-weight: 700;
  margin-right: 4px;
}

.kick-chat-text {
  color: #e5e7eb;
}

.kick-chat-link {
  color: #38bdf8;
  text-decoration: none;
}
.kick-chat-link:hover {
  text-decoration: underline;
}

.kick-sub-highlight {
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.35);
  border-left: 3px solid #9146FF;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin: 0.25rem 0;
  font-size: 0.78rem;
  color: #fff;
}

.kick-sub-highlight-user {
  font-weight: 800;
  color: #c084fc;
}

.kick-sub-tag {
  display: inline-block;
  background: rgba(145, 70, 255, 0.25);
  color: #d8b4fe;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 3px;
}

.kick-hero-chat-input-box {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #1f232b;
  background: #12151b;
}

.kick-chat-input {
  width: 100%;
  background: #191b20;
  border: 1px solid #24272c;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.kick-chat-input:focus {
  border-color: var(--brand-bolt);
}

/* ==============================================================================
   KICK.COM "STREAMS FÜR DICH" SECTION & STREAM CARDS
   ============================================================================== */
.kick-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.kick-section-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kick-section-title .text-green,
.kick-section-title .text-accent {
  color: var(--brand-bolt);
}

.kick-view-all-link {
  color: #848494;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}

.kick-view-all-link:hover {
  color: var(--brand-bolt);
}

.kick-stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.kick-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.kick-card:hover {
  transform: translateY(-4px);
}

.kick-card-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #151820;
  border: 1px solid #20242e;
}

.kick-card-thumb-wrapper img,
.kick-card-thumb-wrapper .kick-thumb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #181b24 0%, #101217 100%);
}

.kick-card-live-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.kick-card-live-pill .pill-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-live);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-live);
}

.kick-card-content {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.kick-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #242833;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #2e3442;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-bolt);
}

.kick-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kick-card-meta {
  min-width: 0;
  flex: 1;
}

.kick-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.kick-card:hover .kick-card-title {
  color: var(--brand-bolt);
}

.kick-card-streamer {
  font-size: 0.8rem;
  color: #848494;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kick-card-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Category Filter Pills (Kick / Twitch Style) */
.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.cat-pill {
  background: #181c26;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  background: #222736;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.cat-pill.active {
  background: var(--brand-bolt);
  color: #0A0A0A;
  border-color: var(--brand-bolt);
  font-weight: 800;
  box-shadow: 0 2px 8px var(--brand-bolt-glow);
}

/* Stream Cards Grid (Authentic Twitch/Kick Anatomy) */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.35rem;
  margin-top: 0.75rem;
}

.stream-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
}

.stream-card:hover {
  transform: translateY(-4px);
}

.stream-card:hover .stream-card-title {
  color: var(--brand-bolt);
}

.stream-card:hover .stream-thumb-img {
  transform: scale(1.03);
}

.stream-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101217;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stream-thumb-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #161922 0%, #1e2330 100%);
  transition: transform 0.25s ease;
}

.thumb-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-live);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.thumb-viewers-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.thumb-viewers-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-live);
  border-radius: var(--radius-avatar);
}

.stream-card-body {
  padding: 0.75rem 0 0 0;
  display: flex;
  gap: 0.75rem;
}

.stream-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-avatar);
  background: #232733;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-bolt);
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
  overflow: hidden;
}

.stream-card:hover .stream-card-avatar {
  border-color: var(--brand-bolt);
}

.stream-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-avatar);
}

.stream-card-meta {
  flex: 1;
  min-width: 0;
}

.stream-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.stream-card-user {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stream-card-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}

.stream-card-category:hover {
  color: var(--brand-bolt);
}

/* Category Boxart Grid (3:4 Poster Ratio) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.15rem;
  margin-top: 0.75rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-card:hover {
  border-color: var(--brand-bolt);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.category-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #181c26 0%, #252b3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-icon {
  font-size: 2.2rem;
  color: var(--brand-bolt);
}

.category-card-body {
  padding: 0.75rem;
}

.category-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.category-viewers {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==============================================================================
   VIEW 2: CHANNEL PAGE (Player + Channel Meta + Twitch Chat)
   ============================================================================== */
.channel-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  width: 100%;
}

.channel-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 0 !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

/* 16:9 Video Player Box */
.channel-player-container {
  width: 100%;
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Custom Player Controls Bar */
.player-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 0.75rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.channel-player-container:hover .player-controls-overlay {
  opacity: 1;
  pointer-events: auto;
}

.player-controls-left, .player-controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.player-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease, transform 0.1s ease;
}

.player-btn:hover {
  color: var(--brand-bolt);
  transform: scale(1.1);
}

.player-btn:active {
  transform: scale(0.95);
}

/* Volume Control Group (Twitch / Kick Authentic Slider) */
.player-volume-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-volume-slider-wrapper {
  display: flex;
  align-items: center;
  width: 75px;
}

.player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease, background 0.15s ease;
}

.player-volume-slider:hover {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-bolt);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease;
}

.player-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-bolt);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease;
}

.player-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}

/* Live Badge & Uptime Display */
.player-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-live);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.player-live-badge .dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: var(--radius-avatar);
  animation: pulse 1.5s infinite;
}

/* Unmute prompt banner on video */
.player-unmute-prompt {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  z-index: 12;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-unmute-prompt:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.05);
}

/* Player Loading / Buffering Screen */
.player-loading-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #181d28 0%, #090a0e 100%);
  z-index: 18;
  gap: 1rem;
}

.player-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand-bolt);
  border-radius: 50%;
  animation: bolt-spin 0.75s linear infinite;
  box-shadow: 0 0 20px var(--brand-bolt-glow);
}

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

.player-loading-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Offline Screen */
.channel-offline-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1b202c 0%, #090a0e 100%);
  text-align: center;
  padding: 2rem;
  z-index: 20; /* Higher than controls overlay so controls never show over offline screen */
}

.channel-offline-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-avatar);
  border: 3px solid var(--border-strong);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  background: #141720;
  color: var(--brand-bolt);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.channel-offline-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

/* Channel Meta Header */
/* Channel Meta Header */
.channel-info-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.channel-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-meta-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  border: 2px solid var(--brand-bolt);
  background: #232733;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-bolt);
  box-shadow: 0 0 10px var(--brand-bolt-glow);
  flex-shrink: 0;
}

.channel-meta-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.channel-meta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.channel-meta-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.channel-meta-subtitle strong {
  color: #fff;
  font-weight: 700;
}

.meta-dot {
  color: var(--text-faint);
  font-size: 0.75rem;
  user-select: none;
}

/* Live Seit Text - Clean inline typography (Keine Pillen!) */
.channel-live-since {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.channel-live-since .live-since-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.channel-live-since strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  font-weight: 700;
  margin-left: 2px;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Status Indicator - Clean Text ohne Hintergrund/Pille */
.channel-status-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-right: 0.35rem;
  user-select: none;
}

.channel-status-text.live {
  color: #ef4444;
}

.channel-status-text.live .dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse 1.5s infinite;
}

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

.channel-status-text.loading {
  color: var(--brand-bolt);
}

.channel-status-text.loading .dot {
  width: 7px;
  height: 7px;
  background: var(--brand-bolt);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1s infinite;
}

.channel-status-text.offline {
  color: var(--text-muted);
}

.channel-status-text.offline .dot {
  width: 7px;
  height: 7px;
  background: #64748b;
  border-radius: 50%;
  display: inline-block;
  animation: none;
}

/* Icon Buttons in Channel Bar */
.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

#btn-channel-follow {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.85rem;
}

/* ==============================================================================
   LIVE CHAT (Twitch / Kick Authentic Chat Component)
   ============================================================================== */
.channel-chat-panel {
  width: var(--chat-width);
  min-width: 260px;
  background: var(--bg-chat);
  border-left: 1px solid var(--border-subtle) !important;
  border-top: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  height: 100% !important;
  flex-shrink: 0 !important;
  position: relative;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
}

.channel-chat-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
}

.chat-header {
  height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-chat-header);
  flex-shrink: 0;
}

.chat-header-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.chat-messages-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  scroll-behavior: smooth;
}

.chat-msg-row {
  display: block;
  position: relative;
  font-size: 0.84rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  padding: 0.22rem 0.45rem;
  border-radius: var(--radius-xs);
  transition: background 0.12s ease;
}

.chat-msg-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chat-time {
  font-size: 0.70rem;
  color: #71767b;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
  display: inline;
  vertical-align: baseline;
  user-select: none;
}

/* Badges (Authentic Kick / Twitch Style) */
.chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 0.35rem;
  vertical-align: baseline;
  line-height: 1.25;
}

.badge-broadcaster {
  background: var(--brand-bolt);
  color: #0A0A0A;
  font-weight: 800;
}

.badge-admin {
  background: #f59e0b;
  color: #0A0A0A;
  font-weight: 800;
}

.badge-mod {
  background: #10b981;
  color: #0A0A0A;
  font-weight: 800;
}

.badge-vip {
  background: #b656fd;
  color: #ffffff;
}

.badge-viewer {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Colored Usernames */
.chat-username {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.3rem;
  display: inline;
  cursor: pointer;
  letter-spacing: 0.1px;
}

.chat-username:hover {
  text-decoration: underline;
}

.chat-msg-text {
  color: #eff2f5;
  display: inline;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-delete-btn {
  position: absolute;
  top: 3px;
  right: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  padding: 0.12rem 0.32rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.chat-msg-row:hover .chat-msg-delete-btn {
  opacity: 1;
}

.chat-msg-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Emotes inside chat */
.chat-emote {
  height: 22px;
  vertical-align: -0.25em;
  margin: 0 2px;
  display: inline-block;
  transition: transform 0.15s ease;
}
.chat-emote:hover {
  transform: scale(1.25);
}

/* Kick-Style Welcome Card & System Notices */
.chat-welcome-card {
  margin: 0.35rem 0.15rem 0.6rem 0.15rem;
  padding: 0.75rem 0.85rem;
  background: var(--brand-bolt-tint);
  border: 1px solid var(--brand-bolt-glow);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.45;
}

.chat-welcome-title {
  font-weight: 800;
  color: var(--brand-bolt);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.chat-welcome-desc {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.4;
}

.chat-system-notice {
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.chat-system-error {
  padding: 0.45rem 0.65rem;
  margin: 0.35rem 0.1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-xs);
  color: #ff6b6b;
  font-size: 0.78rem;
  text-align: center;
}

/* Chat Input Panel */
.chat-input-panel {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 0.75rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-chat-header);
  position: relative;
}

.chat-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.2rem 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-row:focus-within {
  border-color: var(--brand-bolt);
  box-shadow: 0 0 0 2px var(--brand-bolt-tint);
}

.chat-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-row input::placeholder {
  color: #71767b;
}

.chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.15s, transform 0.15s;
}

.chat-action-btn:hover {
  color: var(--brand-bolt);
}

.chat-action-btn:active {
  transform: scale(0.92);
}

/* Emote Picker Popover */
.emote-picker-popover {
  position: absolute;
  bottom: 100%;
  right: 0.85rem;
  left: 0.85rem;
  background: #161a24;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  z-index: 50;
  display: none;
}

.emote-picker-popover.open {
  display: block;
}

.emote-picker-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.emote-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
}

.emote-item {
  background: #1c202c;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.12s;
}

.emote-item:hover {
  background: #272d3d;
  border-color: var(--brand-bolt);
  transform: scale(1.15);
}

/* ==============================================================================
   CREATOR STUDIO & ADMIN PANELS
   ============================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--brand-bolt);
  box-shadow: 0 0 0 2px var(--brand-bolt-tint);
}

/* Copy Box (Ingest Keys) */
.copy-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s;
}

.copy-box:focus-within {
  border-color: var(--brand-bolt);
}

.copy-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.84rem;
  flex: 1;
  outline: none;
}

.copy-btn {
  background: #1f2430;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--brand-bolt);
  color: #0A0A0A;
  border-color: var(--brand-bolt);
}

.copy-btn-icon {
  padding: 0.35rem 0.5rem;
}

/* Telemetry stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ==============================================================================
   MODALS (Twitch / Kick Modern Dialog)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #141720;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #161a24;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.2s ease;
}

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

/* User Menu Dropdown */
#user-dropdown-menu {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--border-color) !important;
  background: #141720 !important;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .channel-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: calc(100vh - var(--header-height)) !important;
    overflow: hidden !important;
  }
  .channel-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
  }
  .channel-chat-panel {
    width: clamp(220px, 32vw, 300px) !important;
    min-width: 200px !important;
    height: 100% !important;
    border-left: 1px solid var(--border-subtle) !important;
    border-top: none !important;
  }
  .featured-hero {
    grid-template-columns: 1fr;
  }
  .platform-sidebar {
    width: var(--sidebar-collapsed-width);
  }
  .platform-sidebar .sidebar-channel-info,
  .platform-sidebar .sidebar-title,
  .platform-sidebar .sidebar-viewer-pill {
    display: none;
  }
  .header-search {
    max-width: 160px;
  }
}

@media (max-width: 640px) {
  .platform-sidebar {
    display: none !important;
  }
  .channel-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: calc(100vh - var(--header-height)) !important;
    overflow: hidden !important;
  }
  .channel-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
  }
  .channel-chat-panel {
    width: clamp(180px, 38vw, 240px) !important;
    min-width: 170px !important;
    border-left: 1px solid var(--border-subtle) !important;
    border-top: none !important;
  }
  .channel-chat-panel .chat-header {
    height: 40px;
    padding: 0 0.5rem;
  }
  .channel-chat-panel .chat-header-title {
    font-size: 0.72rem;
  }
  .channel-chat-panel .chat-msg-row {
    font-size: 0.76rem;
    padding: 0.15rem 0.3rem;
  }
  .channel-chat-panel .chat-input-row input {
    font-size: 0.76rem;
    padding: 0.35rem 0.5rem;
  }
}

/* ==============================================================================
   CREATOR STUDIO & STREAM-MANAGER DASHBOARD (Twitch / Kick Modern Architecture)
   ============================================================================== */

/* Top Status Badge Pill */
.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}
.badge-status-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.badge-status-pill.live {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.badge-status-pill.live .status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

/* Studio Tabs Navigation Bar */
.studio-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.studio-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.studio-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.studio-tab-btn.active {
  color: var(--brand-bolt);
  background: rgba(0, 229, 255, 0.08);
}
.studio-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-bolt);
  box-shadow: 0 0 10px var(--brand-bolt);
}

/* Studio Stats Bar */
.studio-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.studio-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-card-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}
.stat-card-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Studio Grid Layout (Kick 3-Column Stream Manager) */
.studio-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1200px) {
  .studio-grid-layout {
    grid-template-columns: 1.3fr 1fr !important;
  }
  .studio-col-main {
    grid-column: 1;
  }
  .studio-col-side {
    grid-column: 1;
  }
  .studio-col-chat {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
@media (max-width: 800px) {
  .studio-grid-layout {
    grid-template-columns: 1fr clamp(200px, 35vw, 280px) !important;
  }
  .studio-col-main {
    grid-column: 1;
  }
  .studio-col-side {
    grid-column: 1;
  }
  .studio-col-chat {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Live Monitor Container */
.studio-monitor-card {
  margin-bottom: 0;
  padding: 1.25rem;
}
.studio-monitor-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
#studio-monitor-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.studio-monitor-offline-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* Quick Actions Grid */
.studio-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.studio-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.75rem;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.studio-action-btn i {
  font-size: 1.25rem;
  color: var(--brand-bolt);
  transition: transform 0.2s ease;
}
.studio-action-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--brand-bolt);
  color: #fff;
  transform: translateY(-2px);
}
.studio-action-btn:hover i {
  transform: scale(1.1);
}
.studio-action-btn.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--brand-bolt);
  color: var(--brand-bolt);
}

/* Activity Feed */
.studio-activity-feed {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.25rem;
}
.activity-empty-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 1.5rem 0.5rem;
}
.activity-feed-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-bolt);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInActivity 0.25s ease;
}
.activity-feed-item.follow {
  border-left-color: var(--brand-purple);
}
.activity-feed-item.points {
  border-left-color: var(--brand-bolt);
}
@keyframes slideInActivity {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Streamer Chat Dock */
.studio-chat-dock-card {
  display: flex;
  flex-direction: column;
  height: 580px;
  padding: 1.25rem;
}
.studio-chat-messages {
  flex: 1;
  overflow-y: auto;
  background: #080a0d;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Custom Rewards Grid */
.rewards-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.reward-manage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.reward-manage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent-color, var(--brand-bolt));
}
.reward-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.reward-title-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.reward-desc-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
}
.reward-cost-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--brand-bolt);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.reward-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
}

/* Redemptions Table */
.redemptions-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}
.data-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-tag.unfulfilled {
  background: rgba(0, 229, 255, 0.15);
  color: var(--brand-bolt);
}
.status-tag.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.status-tag.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ==============================================================================
   CHANNEL POINTS POPOVER & CHAT INTEGRATION
   ============================================================================== */

/* Button in Chat Input */
.btn-channel-points-pill {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--brand-bolt);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.btn-channel-points-pill:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: var(--brand-bolt);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Floating Rewards Popover in Chat */
.channel-points-popover {
  position: absolute;
  bottom: 60px;
  left: 12px;
  right: 12px;
  background: #13161d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 100;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  animation: popoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes popoverIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.channel-points-popover-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #161922;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.channel-points-rewards-list {
  padding: 0.65rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
}
.reward-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.reward-card-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--reward-item-color, var(--brand-bolt));
}
.reward-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--brand-bolt);
  transform: translateX(2px);
}
.reward-card-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.reward-item-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--brand-bolt);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ==============================================================================
   IN-CHAT ALERTS (Twitch / Kick Follow & Channel Point Redemptions)
   ============================================================================== */
.chat-alert-card {
  margin: 0.5rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #141720;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: slideAlert 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
@keyframes slideAlert {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-alert-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--alert-theme-color, var(--brand-bolt));
}
.chat-alert-card.follow {
  --alert-theme-color: var(--brand-purple);
  background: linear-gradient(90deg, rgba(145, 70, 255, 0.08) 0%, #141720 100%);
  border-color: rgba(145, 70, 255, 0.3);
}
.chat-alert-card.channel_points {
  --alert-theme-color: var(--brand-bolt);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08) 0%, #141720 100%);
  border-color: rgba(0, 229, 255, 0.3);
}
.chat-alert-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.chat-alert-card.follow .chat-alert-icon {
  color: var(--brand-purple);
}
.chat-alert-card.channel_points .chat-alert-icon {
  color: var(--brand-bolt);
}
.chat-alert-body {
  flex: 1;
}
.chat-alert-title {
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-alert-sub {
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-top: 2px;
}
.chat-alert-user-input {
  margin-top: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  font-style: italic;
  color: #fff;
  font-size: 0.8rem;
  border-left: 2px solid var(--alert-theme-color, var(--brand-bolt));
}

/* ==============================================================================
   TRUE TWITCH / KICK THEATER MODE
   ============================================================================== */
body.theater-mode header {
  display: none !important;
}

body.theater-mode .platform-sidebar {
  display: none !important;
}

body.theater-mode .platform-wrapper {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.theater-mode .channel-layout {
  height: 100vh !important;
  max-height: 100vh !important;
}

body.theater-mode .channel-main {
  height: 100vh !important;
  overflow: hidden !important;
}

body.theater-mode .channel-player-container {
  height: 100vh !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  flex: 1;
}

body.theater-mode .channel-info-bar,
body.theater-mode .channel-tabs-bar,
body.theater-mode .channel-tab-pane,
body.theater-mode .channel-panels-container {
  display: none !important;
}

/* Exit Theater Floating Button */
.btn-exit-theater {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 16, 21, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

body.theater-mode .btn-exit-theater {
  display: inline-flex;
}

.btn-exit-theater:hover {
  background: var(--brand-bolt);
  color: #0A0A0A;
  font-weight: 800;
}

/* ==============================================================================
   COLLAPSED SIDEBAR HOVER TOOLTIPS (Twitch / Kick Experience)
   ============================================================================== */
.platform-sidebar.collapsed .kick-channel-row,
.platform-sidebar.collapsed .sidebar-channel-item {
  position: relative;
}

.sidebar-hover-tooltip {
  display: none;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #141720;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.platform-sidebar.collapsed .kick-channel-row:hover .sidebar-hover-tooltip,
.platform-sidebar.collapsed .sidebar-channel-item:hover .sidebar-hover-tooltip {
  display: flex;
}

.sidebar-hover-tooltip .tip-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.sidebar-hover-tooltip .tip-category {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sidebar-hover-tooltip .tip-viewers {
  font-size: 0.72rem;
  color: var(--accent-live);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  margin-top: 2px;
}

/* ==============================================================================
   INSTANT SEARCH AUTOCOMPLETE DROPDOWN
   ============================================================================== */
.header-search {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #12151b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  z-index: 300;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-group-header {
  font-size: 0.70rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.65rem 0.9rem 0.35rem 0.9rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: background 0.12s ease;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.search-result-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #232733;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--brand-bolt);
  flex-shrink: 0;
  overflow: hidden;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   CHAT AUTO-SCROLL-LOCK & FLOATING PILL
   ============================================================================== */
.chat-scroll-bottom-pill {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 23, 32, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  display: none;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.chat-scroll-bottom-pill:hover {
  background: var(--brand-bolt);
  color: #0A0A0A;
  border-color: var(--brand-bolt);
  transform: translateX(-50%) translateY(-2px);
}

/* Chat Mention Highlight */
.chat-msg-row.chat-mention {
  background: var(--brand-bolt-tint) !important;
  border-left: 3px solid var(--brand-bolt);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* Role Badges Refinement */
.badge-sub {
  background: #ec4899;
  color: #ffffff;
}

/* ==============================================================================
   CHANNEL TABS & PANELS (Twitch / Kick Layout)
   ============================================================================== */
.channel-tabs-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.channel-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.85rem 0.2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.channel-tab-btn:hover {
  color: #fff;
}

.channel-tab-btn.active {
  color: #fff;
}

.channel-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-bolt);
}

.channel-tab-pane {
  display: none;
}

.channel-tab-pane.active {
  display: block;
}

.channel-panels-container {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
}

.channel-panel-card {
  background: #12151b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s;
}

.channel-panel-card:hover {
  border-color: var(--border-strong);
}

.channel-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.social-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-pill {
  background: #181b22;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-pill:hover {
  background: var(--brand-bolt-tint);
  border-color: var(--brand-bolt);
  color: var(--brand-bolt);
  transform: translateY(-2px);
}

/* ==============================================================================
   SUBSCRIBE / CREATOR SUPPORT MODAL (Kick 95/5 Split Experience)
   ============================================================================== */
.sub-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.sub-perk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.sub-perk-item i {
  color: var(--brand-bolt);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sub-split-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

/* ==============================================================================
   STATS FOR NERDS (Twitch Video-Statistiken Overlay)
   ============================================================================== */
.player-stats-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  z-index: 28;
  display: none;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.player-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--brand-bolt);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.player-stats-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 4px;
  transition: color 0.15s;
}

.player-stats-close:hover {
  color: #fff;
}

.player-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

.player-stats-label {
  color: var(--text-muted);
}

.player-stats-val {
  color: #fff;
  font-weight: 600;
}

/* ==============================================================================
   PINNED CHAT ANNOUNCEMENT
   ============================================================================== */
.chat-pinned-banner {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12) 0%, rgba(14, 16, 21, 0.98) 100%);
  border-bottom: 1px solid var(--brand-bolt);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pinned-banner-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  flex: 1;
}

.pinned-icon {
  color: var(--brand-bolt);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pinned-text-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pinned-author {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-bolt);
  letter-spacing: 0.4px;
}

.pinned-text {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.pinned-close-btn:hover {
  color: #fff;
}

/* Chat Action /me message */
.chat-msg-row.chat-action .chat-msg-text {
  font-style: italic;
  color: var(--brand-bolt);
  font-weight: 600;
}

/* Emote Picker Categories & Grid */
.emote-picker-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.emote-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s;
}

.emote-tab-btn:hover,
.emote-tab-btn.active {
  background: var(--brand-bolt-tint);
  color: var(--brand-bolt);
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.shortcuts-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shortcut-kbd {
  display: inline-block;
  background: #191b22;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-bolt);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}


