/* ==========================================================================
   RadyoTR Hub - Modern Light & Dark Theme Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Twemoji Country Flags";
  font-style: normal;
  font-weight: 400;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Default: Modern Clean Light Theme */
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-input: #ffffff;
  
  --accent-red: #e63946;
  --accent-red-glow: rgba(230, 57, 70, 0.25);
  --accent-crimson: #d90429;
  --accent-gradient: linear-gradient(135deg, #e63946 0%, #d90429 100%);
  --accent-cyan: #059669;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-gold: #d97706;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(230, 57, 70, 0.35);
  --border-focus: rgba(230, 57, 70, 0.6);

  --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px var(--accent-red-glow);

  --tag-bg: #f1f5f9;
  --tag-text: #475569;
  --chip-bg: #f1f5f9;
  --chip-text: #334155;

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

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Twemoji Country Flags", "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 72px;
  --player-height: 86px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0a0c10;
  --bg-secondary: #11151f;
  --bg-card: rgba(22, 27, 39, 0.75);
  --bg-card-hover: rgba(30, 38, 56, 0.9);
  --bg-glass: rgba(18, 22, 33, 0.85);
  --bg-input: rgba(255, 255, 255, 0.05);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.5);

  --tag-bg: rgba(255, 255, 255, 0.06);
  --tag-text: #64748b;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-text: #94a3b8;
}

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

html {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: clip !important;
  overflow-y: visible !important;
  background-color: var(--bg-primary);
  color: var(--text-main);
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Ambient Lighting Effects (Guarded to never cause horizontal overflow) */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  right: 0;
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  max-width: 100vw;
  overflow: hidden;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 80px;
  left: 0;
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  max-width: 100vw;
  overflow: hidden;
}

/* App Container (Natural Scrollable Document) */
.app-container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  overflow-x: clip !important;
  padding-bottom: 0;
  z-index: 1;
  box-sizing: border-box;
}

/* ==========================================================================
   Pinned Top Zone (Header, Search & Category Filters Stay 100% Fixed)
   ========================================================================== */
.top-pinned-header-zone {
  flex-shrink: 0;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .top-pinned-header-zone {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.top-pinned-header-zone .app-header {
  position: static !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: max(calc(env(safe-area-inset-top, 0px) + 0.85rem), 1.25rem) 2rem 0.35rem 2rem;
  min-height: auto;
}

.top-pinned-header-zone .search-section {
  padding: 0.35rem 2rem 0.25rem 2rem;
}

.top-pinned-header-zone .filter-section {
  padding: 0.25rem 2rem 0.45rem 2rem;
}

.top-pinned-header-zone .category-scroll-container {
  padding-bottom: 0.25rem;
}

.top-pinned-header-zone .sub-filter-bar {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0.25rem 2rem 0.45rem 2rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  box-shadow: none;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  align-items: center !important;
  box-sizing: border-box;
  width: 100%;
}

.sub-filter-col {
  width: 100%;
  min-width: 0;
}

.sub-filter-col .city-select,
.sub-filter-col .sort-select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-select option,
.sort-select option {
  background-color: var(--bg-card, #1e293b);
  color: var(--text-main, #f8fafc);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Twemoji Country Flags", "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI", Roboto, sans-serif !important;
}

[data-theme="light"] .city-select option,
[data-theme="light"] .sort-select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Desktop / PC Specific Sub-Filter Bar Typography & Menu Alignment */
@media (min-width: 769px) {
  .top-pinned-header-zone .sub-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 1.25rem !important;
    padding: 0.35rem 2rem 0.55rem 2rem !important;
    max-width: 1440px !important;
  }

  .top-pinned-header-zone .sub-filter-col {
    width: auto !important;
    flex: 0 1 320px !important;
    min-width: 220px !important;
    max-width: 360px !important;
  }

  .top-pinned-header-zone .sub-filter-col .city-select,
  .top-pinned-header-zone .sub-filter-col .sort-select {
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 2.2rem 0 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: 0.2px !important;
    border-radius: var(--radius-md, 8px) !important;
    background-color: var(--bg-card, rgba(30, 41, 59, 0.7)) !important;
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12)) !important;
    color: var(--text-main, #f8fafc) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 0.95rem 0.95rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  [data-theme="light"] .top-pinned-header-zone .sub-filter-col .city-select,
  [data-theme="light"] .top-pinned-header-zone .sub-filter-col .sort-select {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }

  .top-pinned-header-zone .sub-filter-col .city-select:hover,
  .top-pinned-header-zone .sub-filter-col .sort-select:hover {
    border-color: rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.18) !important;
  }

  .top-pinned-header-zone .sub-filter-col .city-select:focus,
  .top-pinned-header-zone .sub-filter-col .sort-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.28) !important;
  }
}

/* Header & Navigation */
.app-header {
  position: static;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: calc(env(safe-area-inset-top, 0px) + 0.85rem) 2rem 0.85rem 2rem;
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
  min-width: max-content;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e63946, #b5179e);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand-text h1 span {
  color: var(--accent-red);
}

.brand-hub-badge {
  display: inline-block !important;
  font-size: 0.68rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e63946, #b5179e);
  color: #ffffff !important;
  padding: 0.14rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
  flex-shrink: 0;
  vertical-align: middle;
}

.pro-badge-header {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 0.25rem;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Search Section (Under Header & Logo) */
.search-section {
  padding: 1.15rem 2rem 0.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.search-container {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3.2rem 0.85rem 3.2rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.search-input:focus {
  border-color: #e63946;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18);
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.search-clear-btn {
  position: absolute;
  right: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 6px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.search-clear-btn.active {
  display: flex;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.30rem;
  flex-shrink: 0;
}

/* Quick Language Selector under Search */
.search-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.lang-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.30rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-pill-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.lang-pill-btn.active {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(181, 23, 158, 0.18));
  border-color: var(--accent-red);
  color: var(--accent-red);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.2);
}

/* Language Selection inside User Profile Dropdown */
.user-dropdown-lang-box {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 0.35rem;
}

.dropdown-lang-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-lang-pills {
  display: flex;
  gap: 0.35rem;
}

.dropdown-lang-pills .lang-option-item {
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  border: 1px solid var(--border-glass);
  text-align: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-lang-pills .lang-option-item.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.custom-stream-btn {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(131, 56, 236, 0.1));
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-stream-btn:hover {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(131, 56, 236, 0.2));
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

/* Category Filter Bar */
.filter-section {
  padding: 1.25rem 2rem 0.5rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  padding-right: 2.5rem;
  scroll-padding-right: 2.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.filter-chip {
  background: var(--chip-bg);
  border: 1px solid var(--border-glass);
  color: var(--chip-text);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-subtle);
}

.filter-chip:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--accent-red) !important;
  color: #ffffff !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4) !important;
}

.filter-chip.active * {
  color: #ffffff !important;
}

.filter-chip.futbol-filter-chip {
  border-color: rgba(34, 197, 94, 0.4);
}

.filter-chip.futbol-filter-chip:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.filter-chip.futbol-filter-chip.active {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.45) !important;
}

.filter-chip.futbol-filter-chip.active * {
  color: #ffffff !important;
}

.filter-chip.podcast-filter-chip {
  border-color: rgba(168, 85, 247, 0.4);
}

.filter-chip.podcast-filter-chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
}

.filter-chip.podcast-filter-chip.active {
  background: #9333ea !important;
  color: #ffffff !important;
  border-color: #9333ea !important;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.45) !important;
}

.filter-chip.podcast-filter-chip.active * {
  color: #ffffff !important;
}

.filter-chip.gym-filter-chip.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45) !important;
}

.filter-chip.gym-filter-chip.active * {
  color: #ffffff !important;
}

/* Main Content Area (Natural Document Flow) */
.main-content {
  flex: 1 0 auto !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1.25rem 2rem calc(var(--player-height) + 48px + env(safe-area-inset-bottom, 0px) + 32px) 2rem !important;
  box-sizing: border-box !important;
}

.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.4);
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.main-content > * {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

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

.section-title svg {
  color: var(--accent-red);
}

.station-count-badge {
  font-size: 0.8rem;
  background: var(--chip-bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border-glass);
}

/* Sub-filter Bar */
.sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.city-select, .sort-select {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Station Grid */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Station Card */
.station-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  box-sizing: border-box;
  width: 100%;
}

.station-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.station-card.is-playing {
  border-color: var(--accent-red);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.25);
  background: var(--bg-card);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  min-width: 0;
  width: 100%;
}

.station-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  background-color: var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.station-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit;
}

.station-card.is-playing .station-avatar {
  border: 2px solid var(--accent-red) !important;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.5), 0 0 14px rgba(230, 57, 70, 0.45) !important;
}

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

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

.station-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  overflow: hidden;
}

.tag-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  background: var(--tag-bg);
  border-radius: var(--radius-full);
  color: var(--tag-text);
  font-weight: 500;
  white-space: nowrap;
}

.tag-badge.tag-category {
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent-red);
  font-weight: 700;
}

/* Card Bottom */
.card-bottom {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.card-info-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.card-info-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.card-fav-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  padding: 5px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.card-fav-btn:hover {
  color: var(--accent-red);
  transform: scale(1.15);
}

.card-fav-btn.is-favorite {
  color: var(--accent-red);
}

.card-fav-btn.is-favorite svg {
  fill: var(--accent-red);
}

.card-play-btn {
  background: var(--tag-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card:hover .card-play-btn {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.station-card.is-playing .card-play-btn {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* Animated Live Equalizer next to Play button */
.card-equalizer {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding: 0 4px;
  margin-right: 4px;
}

.card-equalizer.active {
  display: inline-flex;
}

.card-equalizer span {
  width: 3px;
  background: var(--accent-red);
  border-radius: 2px;
  animation: cardEq 0.8s ease-in-out infinite alternate;
}

.card-equalizer span:nth-child(1) { height: 35%; animation-delay: 0.1s; animation-duration: 0.65s; }
.card-equalizer span:nth-child(2) { height: 90%; animation-delay: 0.25s; animation-duration: 0.45s; }
.card-equalizer span:nth-child(3) { height: 60%; animation-delay: 0.15s; animation-duration: 0.8s; }
.card-equalizer span:nth-child(4) { height: 100%; animation-delay: 0.35s; animation-duration: 0.55s; }

@keyframes cardEq {
  0% { height: 20%; transform: scaleY(0.3); }
  50% { height: 75%; transform: scaleY(0.75); }
  100% { height: 100%; transform: scaleY(1); }
}

/* Equalizer Bars Animation */
.mini-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.mini-equalizer span {
  flex: 1;
  background: #ffffff;
  border-radius: 1px;
  animation: miniEq 1s ease-in-out infinite alternate;
}

.mini-equalizer span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.mini-equalizer span:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.mini-equalizer span:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes miniEq {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Live Pulse Badge */
.live-pulse-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(230, 57, 70, 0.9);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

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

/* Loading & Empty State */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem auto;
}

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

/* ==========================================================================
   Persistent Bottom Audio Player Bar
   ========================================================================== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  z-index: 200;
  padding: 0.35rem 1.5rem 0.40rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
  height: auto;
  min-height: 72px;
}

.player-main-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.25rem;
}

.player-station-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Hide Player Avatar Logo on PC/Desktop (Replaced by Phosphorescent Red Dot) */
.player-avatar {
  display: none !important;
}

/* Glowing Neon Phosphorescent Red Dot */
.player-live-dot {
  display: inline-block !important;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  background: #ff0033 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #ff0033, 0 0 16px #ff0033, 0 0 24px rgba(255, 0, 51, 0.9) !important;
  animation: neonRedPulse 1.5s infinite ease-in-out !important;
  margin-right: 8px;
  flex-shrink: 0;
  align-self: center;
}

@keyframes neonRedPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px #ff0033, 0 0 14px #ff0033, 0 0 20px rgba(255, 0, 51, 0.7);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 12px #ff1a4a, 0 0 24px #ff1a4a, 0 0 34px rgba(255, 0, 51, 1);
    opacity: 1;
  }
}

#btnFullscreen {
  color: #fbbf24;
}
#btnFullscreen:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.player-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.player-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.player-bottom-controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: auto;
  padding-top: 0;
  border-top: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.status-pill.buffering, .status-pill.reconnecting {
  color: var(--accent-gold);
}

.status-pill.error {
  color: var(--accent-red);
}

/* Main Controls */
.player-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  background: var(--surface-secondary, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  position: relative;
}

.ctrl-btn:hover {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

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

.ctrl-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
}

.ctrl-btn.btn-play-pause {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63946, #d90429);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(230, 57, 70, 0.45);
}

.ctrl-btn.btn-play-pause:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.65);
}

.ctrl-btn.btn-play-pause svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Dedicated Feature Button Accents */
#btnOpenEq {
  color: #38bdf8;
}
#btnOpenEq:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

#btnOpenAmbient {
  color: #06b6d4;
}
#btnOpenAmbient:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  color: #06b6d4;
}

#btnSongHistory {
  color: #c084fc;
}
#btnSongHistory:hover {
  background: rgba(192, 132, 252, 0.18);
  border-color: rgba(192, 132, 252, 0.5);
  color: #c084fc;
}

#btnAirPlay {
  color: #f1f5f9;
}
#btnAirPlay:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

#btnSleepTimer {
  color: #fbbf24;
}
#btnSleepTimer:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

#btnFavCurrent {
  color: var(--text-muted);
}
#btnFavCurrent.is-favorite {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Volume & Extras */
.player-right-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 130px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
  outline: none;
  cursor: pointer;
}

[data-theme="dark"] .volume-slider {
  background: rgba(255, 255, 255, 0.15);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-red);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

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

.sleep-timer-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.sleep-timer-pill.active {
  display: inline-flex;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  position: sticky;
  top: -1.25rem;
  background: inherit;
  z-index: 30;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.modal-close-btn:hover,
.modal-close-btn:active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.08);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-red);
}

.form-help {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.3rem;
}

.form-btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.form-btn-submit:hover {
  background: #d90429;
}

/* Sleep Presets */
.timer-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timer-chip-btn {
  background: var(--chip-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.timer-chip-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.timer-chip-btn.timer-cancel {
  grid-column: 1 / -1;
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--accent-red);
}

/* ==========================================================================
   Fullscreen Now Playing Modal
   ========================================================================== */
.fullscreen-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.fullscreen-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-header {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fullscreen-vinyl-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
}

.vinyl-disc {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2d36 0%, #15181f 50%, #0d0f14 100%);
  border: 4px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 25px var(--accent-red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-disc.spinning {
  animation: spinVinyl 14s linear infinite;
}

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

.vinyl-center-art {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  background-color: #000000;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  padding: 0;
}

.vinyl-center-art img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit;
}

.fullscreen-details {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.fullscreen-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.fullscreen-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.fullscreen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-height) + 16px);
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInToast 0.25s ease, fadeOutToast 0.3s ease 2.7s forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  to { transform: translateX(50px); opacity: 0; }
}

/* ==========================================================================
   User Authentication & Payment Processing Styles
   ========================================================================== */

/* Header Auth & Profile Widget */
.auth-header-wrap {
  position: relative;
}

.auth-header-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
}

.auth-header-btn:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.auth-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  overflow: hidden;
}

.auth-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  width: 230px;
  box-shadow: var(--shadow-elevated);
  z-index: 500;
  display: none;
  overflow: hidden;
  animation: slideInDropdown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-menu.open {
  display: block;
}

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

.user-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
  background: var(--chip-bg);
}

.drop-user-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.drop-user-email {
  font-size: 0.74rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 0.35rem;
}

.drop-user-badge {
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

.drop-user-badge.pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.user-dropdown-items {
  padding: 0.4rem;
}

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--chip-bg);
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  background: var(--chip-bg);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-error-box {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent-red);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Stripe 3-Plan Cards Grid in PRO Modal */
.stripe-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .stripe-plans-grid {
    grid-template-columns: 1fr;
  }
}

.stripe-plan-card {
  background: var(--chip-bg);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stripe-plan-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
}

.stripe-plan-card.popular {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.plan-card-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.plan-card-badge.pop {
  color: #f59e0b;
}

.plan-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.plan-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.plan-card-period {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stripe-plan-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none !important;
  display: block;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.stripe-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.stripe-plan-btn.monthly-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.stripe-plan-btn.popular-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.stripe-plan-btn.vip-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Checkout Plan Selector */
.checkout-plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.plan-option {
  position: relative;
  background: var(--chip-bg);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.plan-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.plan-badge-pop {
  color: #f59e0b;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.plan-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

/* Credit Card Preview Graphic */
.credit-card-preview {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.credit-card-preview::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
  pointer-events: none;
}

.card-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-chip {
  width: 34px;
  height: 26px;
  background: linear-gradient(135deg, #d97706, #fbbf24);
  border-radius: 5px;
}

.card-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.card-preview-number {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: #ffffff;
}

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

.card-preview-label {
  font-size: 0.6rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.card-preview-holder, .card-preview-expiry {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.checkout-pay-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease;
  margin-top: 0.5rem;
}

.checkout-pay-btn:hover {
  transform: translateY(-1px);
}

.security-guarantee {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
}

/* Digital Receipt Modal */
.receipt-card {
  text-align: center;
}

.receipt-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.receipt-box {
  background: var(--chip-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  font-size: 0.85rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.4rem;
}

.receipt-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.receipt-row span {
  color: var(--text-muted);
}

/* ==========================================================================
   Monetization & Pro Features: Ad Slots, Car Mode, Recorder, Pro Modal
   ========================================================================== */


/* Pro Header CTA Button */
.pro-btn-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.pro-btn-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}


/* Live Stream Recorder Button */
.btn-record {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent-red);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-record:hover {
  background: rgba(230, 57, 70, 0.2);
}

.btn-record.recording {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  animation: pulseRecording 1.5s infinite;
}

.record-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.btn-record.recording .record-dot {
  background-color: #ffffff;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Monetization: Responsive Modern Sponsor & AdSense Banner Slot */
.banner-ad-slot {
  max-width: 920px;
  width: 100%;
  margin: 1.75rem auto 2.25rem auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-ad-slot.hidden-for-pro {
  display: none !important;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 0 auto 0.45rem auto;
  text-align: center;
}

.ad-content {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ad-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-red), #b5179e);
  border-radius: 4px 0 0 4px;
}

.ad-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(230, 57, 70, 0.35);
}

[data-theme="dark"] .ad-content {
  background: rgba(26, 26, 36, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .ad-content:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(230, 57, 70, 0.5);
}

.ad-fallback-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin: 0 auto;
}

.ad-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(181, 23, 158, 0.12));
  flex-shrink: 0;
}

.ad-text {
  flex: 1;
  max-width: 540px;
  min-width: 0;
  text-align: left;
}

.ad-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.ad-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ad-action-btn {
  background: linear-gradient(135deg, var(--accent-red), #d90429);
  color: #ffffff !important;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-action-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}

.ad-action-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Pro Modal Styles */
.pro-card-modal {
  border: 2px solid #f59e0b;
}

.pro-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pro-star-icon {
  font-size: 1.5rem;
}

.pro-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.pro-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.pro-check {
  background: rgba(5, 150, 105, 0.15);
  color: #059669;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pro-pricing-box {
  background: var(--chip-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.pro-price-tag {
  margin-bottom: 1rem;
}

.pro-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.pro-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pro-buy-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease;
}

.pro-buy-btn:hover {
  transform: translateY(-2px);
}

.pro-cancel-link {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

#radyotrUpdateBanner {
  position: fixed;
  top: max(calc(env(safe-area-inset-top, 0px) + 54px), 68px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  background: linear-gradient(135deg, #e63946, #b91c1c);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 35px rgba(230, 57, 70, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  animation: bannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  max-width: 94vw;
  width: max-content;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Car Driving Mode Modal */
.car-mode-modal {
  position: fixed;
  inset: 0;
  background: #000000;
  color: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.car-mode-modal.open {
  opacity: 1;
  visibility: visible;
}

.car-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.car-clock {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: monospace;
}

.car-exit-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.car-station-info {
  text-align: center;
  margin: 1.5rem 0;
}

.car-station-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.car-station-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.car-big-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.car-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.car-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.3);
}

.car-btn.car-play-btn {
  width: 120px;
  height: 120px;
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 35px rgba(230, 57, 70, 0.6);
}

.car-volume-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Mobile Native App Navigation & Layout
   ========================================================================== */

/* Mobile Bottom Navigation (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  z-index: 300;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  margin: 0 !important;
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  padding: 3px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-item span {
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.mobile-nav-item.active {
  color: var(--accent-red);
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Mobile & Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --header-height: 50px;
    --player-height: 62px;
  }

  .app-container {
    padding-bottom: 0 !important;
  }

  .main-content {
    padding: 0.75rem 0.85rem calc(var(--player-height) + 120px + env(safe-area-inset-bottom, 0px)) 0.85rem !important;
  }

  /* Show Mobile Bottom Nav */
  .mobile-bottom-nav {
    display: grid !important;
  }

  /* Show Theme, Roulette Sound & Shortcuts in mobile header cleanly */
  #shortcutsBtn, #btnToggleRouletteSound, #themeToggleBtn {
    display: inline-flex !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  #shortcutsBtn svg, #themeToggleBtn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Hide Desktop-only redundant buttons on mobile (they are in bottom nav) */
  #customStreamBtn, #btnOpenGymMode, #btnHeaderEq, #btnHeaderAmbient, #btnHeaderHistory,
  #btnCarMode, #btnOpenAlarm {
    display: none !important;
  }

  .header-actions {
    gap: 0.25rem !important;
    align-items: center !important;
    margin-left: auto !important;
  }

  .pro-btn-cta, .auth-header-btn {
    padding: 0.18rem 0.40rem !important;
    font-size: 0.66rem !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
  }

  .top-pinned-header-zone .app-header {
    padding: max(calc(env(safe-area-inset-top, 0px) + 0.75rem), 1.25rem) 0.85rem 0.35rem 0.85rem !important;
    gap: 0.5rem;
  }

  .top-pinned-header-zone .search-section {
    padding: 0.2rem 0.85rem 0.2rem 0.85rem !important;
  }

  .top-pinned-header-zone .filter-section {
    padding: 0.15rem 0.5rem 0.25rem 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .top-pinned-header-zone .category-scroll-container {
    padding-right: 3.5rem !important;
    padding-left: 0.35rem !important;
    scroll-padding-right: 3.5rem !important;
  }

  .top-pinned-header-zone .sub-filter-bar {
    padding: 0.15rem 0.85rem 0.35rem 0.85rem !important;
    gap: 0.4rem !important;
  }

  .sub-filter-col .city-select,
  .sub-filter-col .sort-select {
    padding: 0.28rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  .app-header {
    padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 1rem 0.65rem 1rem;
    min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    height: auto;
    gap: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.22rem !important;
    flex-shrink: 0;
  }

  .brand {
    min-width: max-content;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.40rem;
    z-index: 2;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .brand-icon svg {
    width: 18px;
    height: 18px;
  }

  .brand-text h1 {
    font-size: 0.98rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.20rem;
  }

  .brand-text p {
    display: none;
  }

  .pro-btn-cta {
    padding: 0.20rem 0.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    gap: 0.15rem !important;
    border-radius: 6px !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .auth-header-btn {
    padding: 0.20rem 0.35rem !important;
    font-size: 0.68rem !important;
    gap: 0.15rem !important;
    border-radius: 6px !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .auth-avatar-mini {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    font-size: 0.70rem !important;
  }

  .icon-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    flex-shrink: 0;
  }

  .search-container {
    margin: 0;
  }

  .search-input {
    padding: 0.5rem 2rem 0.5rem 2.2rem;
    font-size: 0.82rem;
  }

  .search-icon {
    left: 0.75rem;
  }

  .filter-section {
    padding: 0.65rem 0.85rem 0.2rem 0.85rem;
  }

  .filter-chip {
    padding: 0.35rem 0.8rem;
    font-size: 0.76rem;
  }

  .main-content {
    padding: 0.6rem 0.85rem 1rem 0.85rem;
  }

  .section-header {
    margin-bottom: 0.6rem;
  }

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

  .sub-filter-bar {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  .city-select, .sort-select {
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
  }

  /* Compact Mobile Station Cards (List Row Style) */
  .station-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .station-card {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }

  .card-top {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
  }

  .station-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 12px;
    font-size: 1.05rem;
    flex-shrink: 0;
  }

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

  .station-name {
    font-size: 0.92rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .station-tagline {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow: hidden;
  }

  .tag-badge {
    font-size: 0.62rem;
    padding: 0.08rem 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .card-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    width: auto;
  }

  .card-info-left {
    display: none;
  }

  .live-pulse-badge {
    display: none;
  }

  .card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .card-play-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
  }

  .card-fav-btn {
    padding: 5px;
    flex-shrink: 0;
  }

  /* Mobile Floating Mini Player (Seated flush on top of bottom nav with 0px gap) */
  .player-bar {
    position: fixed !important;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid var(--border-glass) !important;
    border-bottom: none !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 280 !important;
  }

  /* Dedicated Standalone Breaking News & Sports Bar (Aşağıya çekilmiş, tam genişlik, kenarlıksız birleşik) */
  .news-ticker-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 4px 8px 3px 8px !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    touch-action: pan-y !important;
  }

  .news-ticker-badge {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(57, 255, 20, 0.40) !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.18) !important;
    color: #39ff14 !important;
    padding: 2px 8px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
  }

  .news-ticker-badge #newsTickerBadgeText {
    color: #39ff14 !important; /* Fosforlu Neon Yeşil */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.85), 0 0 14px rgba(57, 255, 20, 0.50) !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
  }

  .news-ticker-badge:hover,
  .news-ticker-badge:active {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: #39ff14 !important;
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.35) !important;
  }

  .ticker-live-dot {
    width: 7px !important;
    height: 7px !important;
    background-color: #ff10f0 !important; /* Fosforlu Neon Pembe */
    border-radius: 50% !important;
    box-shadow: 0 0 8px #ff10f0, 0 0 14px rgba(255, 16, 240, 0.8) !important;
    animation: pulsePinkDot 1.4s infinite !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
  }

  .ticker-time {
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    color: #39ff14 !important; /* Fosforlu Neon Yeşil */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.75), 0 0 12px rgba(57, 255, 20, 0.45) !important;
    border: 1px solid rgba(57, 255, 20, 0.4) !important;
    letter-spacing: 0.04em !important;
    display: inline-block !important;
  }

  .ticker-weather {
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    color: #38bdf8 !important; /* Canlı Açık Mavi */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.65) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
  }

  .ticker-weather:hover,
  .ticker-weather:active {
    background: rgba(56, 189, 248, 0.20) !important;
    border-color: #38bdf8 !important;
  }

  .ticker-weather-city {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  @media (max-width: 480px) {
    .ticker-weather-city {
      display: none !important;
    }
  }

  .ticker-refresh-icon {
    font-size: 0.72rem;
    display: inline-block;
    transition: transform 0.4s ease;
  }

  .ticker-refresh-icon.spinning {
    animation: spin 0.6s ease infinite;
  }

  .news-ticker-track-wrapper {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    touch-action: pan-y !important;
  }

  .news-ticker-track {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: max-content !important;
    will-change: transform;
    -webkit-animation: marqueeTickerScroll 90s linear infinite !important;
    animation: marqueeTickerScroll 90s linear infinite !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    color: var(--text-main) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  @media (hover: none), (pointer: coarse) {
    .news-ticker-track,
    .news-ticker-track:hover,
    .news-ticker-track:active,
    .news-ticker-track-wrapper:hover .news-ticker-track,
    .news-ticker-container:hover .news-ticker-track {
      -webkit-animation-play-state: running !important;
      animation-play-state: running !important;
    }
  }

  .news-ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    padding-right: 2.2rem !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
  }

  .news-ticker-item::after {
    content: "•";
    margin-left: 2.2rem !important;
    color: var(--accent-red, #e63946) !important;
    font-weight: 900;
    opacity: 0.8;
  }

  .player-main-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* 'Bir Radyo Seçin' / Radyo Bilgi Satırı Komple Kaldırıldı */
  .player-station-info {
    display: none !important;
  }

  .song-history-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding: 0.65rem 0.75rem !important;
  }

  .song-history-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .song-history-actions .song-action-pill {
    height: 28px !important;
    font-size: 0.66rem !important;
    border-radius: 6px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Row 2: Controls Row Directly Below with ZERO GAP Merged with Footer */
  .player-bottom-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.40rem !important;
    margin: 0 !important;
    padding: 4px 8px 4px 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .player-center-controls {
    display: flex !important;
    align-items: center !important;
    padding-left: 2px !important;
  }

  .player-center-controls .control-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 0.40rem !important;
  }

  .ctrl-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 9px !important;
  }

  .ctrl-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .ctrl-btn.btn-play-pause {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 12px !important;
  }

  .ctrl-btn.btn-play-pause svg {
    width: 24px !important;
    height: 24px !important;
  }

  #btnPrev, #btnNext {
    display: inline-flex !important;
  }

  .player-right-extras {
    display: flex !important;
    align-items: center !important;
    gap: 0.40rem !important;
    flex-shrink: 0 !important;
  }

  .player-right-extras #btnOpenEq,
  .player-right-extras #btnOpenAmbient,
  .player-right-extras #btnSongHistory,
  .player-right-extras #btnSleepTimer,
  .player-right-extras #sleepTimerPill,
  .player-right-extras .volume-container {
    display: none !important;
  }

  .player-right-extras #btnFullscreen,
  .player-right-extras #btnFavCurrent,
  .player-right-extras #btnAirPlay {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
  }

  .player-right-extras #btnFullscreen svg,
  .player-right-extras #btnFavCurrent svg,
  .player-right-extras #btnAirPlay svg {
    width: 20px !important;
    height: 20px !important;
  }

  .player-right-extras #btnRecordStream {
    display: inline-flex !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0.25rem 0.65rem !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }

  .btn-record {
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    height: 28px;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  /* Banner Ad Slot on Mobile */
  .banner-ad-slot {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 1.25rem auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ad-badge {
    text-align: center;
    margin: 0 auto 0.35rem auto;
  }

  .ad-content {
    width: 100%;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    justify-content: center;
  }

  .ad-fallback-wrap {
    justify-content: center;
  }

  .ad-icon {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .ad-title {
    font-size: 0.84rem;
  }

  .ad-desc {
    font-size: 0.74rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ad-action-btn {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }

  /* Fullscreen Modal Mobile */
  .fullscreen-modal {
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem) 1.25rem;
  }

  .vinyl-disc {
    width: 200px;
    height: 200px;
  }

  .vinyl-center-art {
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  .fullscreen-title {
    font-size: 1.45rem;
  }

  .fullscreen-tagline {
    font-size: 0.85rem;
  }

  .fullscreen-controls {
    gap: 1.25rem;
  }

  .fullscreen-controls .btn-play-pause {
    width: 58px !important;
    height: 58px !important;
  }

  /* Mobile Bottom Sheet for Modals */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 1.25rem 1.15rem calc(env(safe-area-inset-bottom, 16px) + 1.5rem) 1.15rem;
    transform: translateY(100%);
    margin: 0;
  }

  .modal-overlay.open .modal-card {
    transform: translateY(0);
  }

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

  /* Car Mode Mobile */
  .car-mode-modal {
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem) 1rem;
  }

  .car-station-title {
    font-size: 2.2rem;
  }

  .car-station-subtitle {
    font-size: 1.1rem;
  }

  .car-big-controls {
    gap: 1.5rem;
  }

  .car-btn {
    width: 72px;
    height: 72px;
  }

  .car-btn.car-play-btn {
    width: 96px;
    height: 96px;
  }
}

/* ==========================================================================
   Mobile Landscape Mode (Short height, wide screen)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 550px) {
  :root {
    --header-height: 46px;
    --player-height: 48px;
  }

  .app-header {
    min-height: var(--header-height) !important;
    height: var(--header-height) !important;
    padding: 0.25rem 1rem !important;
  }

  .app-container {
    padding-bottom: 0 !important;
  }

  .main-content {
    padding-bottom: calc(var(--player-height) + 40px + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  /* Single-row compact player in landscape */
  .player-bar {
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    height: 48px !important;
    padding: 0 0.85rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .player-station-info {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0.5rem !important;
  }

  .player-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
  }

  .player-title {
    font-size: 0.82rem !important;
    max-width: 140px !important;
  }

  .player-status-row {
    font-size: 0.6rem !important;
  }

  .now-playing-container {
    display: none !important;
  }

  .player-bottom-controls-row {
    width: auto !important;
    border-top: none !important;
    padding-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .ctrl-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .ctrl-btn.btn-play-pause {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .btn-record {
    height: 30px !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.68rem !important;
  }

  /* Ultra-slim mobile bottom nav in landscape */
  .mobile-bottom-nav {
    height: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-nav-item {
    gap: 1px !important;
    padding: 1px !important;
  }

  .mobile-nav-item svg {
    width: 14px !important;
    height: 14px !important;
  }

  .mobile-nav-item span {
    font-size: 0.52rem !important;
  }
}



/* iOS Safe Areas (Dynamic Island & Front Camera Clearance) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .app-header {
    padding-top: calc(env(safe-area-inset-top, 20px) + 0.85rem) !important;
    padding-bottom: 0.75rem !important;
    min-height: calc(var(--header-height) + env(safe-area-inset-top, 20px) + 10px) !important;
    height: auto !important;
  }
  .app-container {
    padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom) + 20px);
  }
  .player-bar {
    padding-bottom: calc(env(safe-area-inset-bottom) + 4px) !important;
    height: auto !important;
    min-height: 48px !important;
  }
  .fullscreen-modal {
    padding-top: calc(env(safe-area-inset-top, 20px) + 2rem);
    padding-bottom: calc(env(safe-area-inset-bottom) + 1.5rem);
  }
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 900px) {
  .app-header {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .search-section, .filter-section, .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .volume-container {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: calc(env(safe-area-inset-top, 0px) + 0.65rem) 0.65rem 0.65rem 0.65rem;
    gap: 0.4rem;
  }

  .brand {
    flex-shrink: 0 !important;
    min-width: max-content;
    gap: 0.45rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
  }

  .brand-icon svg {
    width: 17px;
    height: 17px;
  }

  .brand-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    gap: 0.2rem;
  }

  .brand-hub-badge {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  .header-actions {
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .auth-header-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
  }

  .auth-header-btn span {
    font-size: 0.7rem;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pro-btn-cta {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  .pro-btn-cta svg {
    width: 14px;
    height: 14px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* ==========================================================================
   Gym & Workout Suite Styles
   ========================================================================== */
.filter-chip.gym-filter-chip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-weight: 800;
}

.filter-chip.gym-filter-chip:hover,
.filter-chip.gym-filter-chip.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.filter-chip.club-filter-chip {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #ec4899;
  font-weight: 800;
}

.filter-chip.club-filter-chip:hover,
.filter-chip.club-filter-chip.active {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.filter-chip.ozgun-filter-chip {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(185, 28, 28, 0.15));
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #f43f5e;
  font-weight: 800;
}

.filter-chip.ozgun-filter-chip:hover,
.filter-chip.ozgun-filter-chip.active {
  background: linear-gradient(135deg, #e11d48, #991b1b);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}

.gym-modal-card {
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at top right, #1f2430 0%, #11141c 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: auto;
}

.gym-subtitle {
  font-size: 0.78rem;
  color: #f59e0b;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gym-station-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.gym-station-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.gym-station-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.gym-station-meta {
  flex: 1;
  min-width: 0;
}

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

.gym-station-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

.gym-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}

/* Sweat-Friendly Large Controls */
.gym-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.gym-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gym-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.gym-ctrl-btn.gym-play-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border-color: transparent;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.gym-ctrl-btn.gym-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

/* Gym Toggles Grid - Compact & Sleek */
.gym-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gym-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #182030;
  border: 1.5px solid #2f3e56;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gym-toggle-btn:hover {
  background: #202b40;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.gym-toggle-btn.active {
  background: linear-gradient(135deg, #0e3025, #082119);
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.gym-toggle-btn .toggle-icon {
  font-size: 1.1rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gym-toggle-btn.active .toggle-icon {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.gym-toggle-btn .toggle-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.gym-toggle-btn .toggle-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gym-toggle-btn.active .toggle-text strong {
  color: #10b981;
}

.gym-toggle-btn .toggle-text span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gym-toggle-btn.active .toggle-text span {
  color: #34d399;
  font-weight: 700;
}

/* Gym Rest Timer Box */
.gym-timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.gym-timer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.timer-active-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  animation: pulseDot 1.5s infinite;
}

.gym-presets-header-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gym-presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.gym-preset-chip {
  background: #182030;
  border: 2px solid #2f3e56;
  color: #ffffff;
  padding: 0.6rem 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.gym-preset-chip .preset-sec {
  font-size: 1.15rem;
  font-weight: 900;
  color: #f59e0b;
}

.gym-preset-chip .preset-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.gym-preset-chip:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.gym-preset-chip.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.gym-preset-chip.active .preset-sec,
.gym-preset-chip.active .preset-unit {
  color: #ffffff !important;
}

/* Compact, Modern Rest Timer Bar */
.gym-timer-display-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101622;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #2a374d;
}

.gym-timer-digits {
  font-size: 2.1rem;
  font-weight: 900;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  color: #f59e0b;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  line-height: 1;
}

.gym-timer-actions {
  display: flex;
  gap: 0.35rem;
}

.gym-timer-action-btn {
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.gym-timer-action-btn.play-pause {
  background: #10b981;
  color: #ffffff;
}

.gym-timer-action-btn.play-pause.paused {
  background: #f59e0b;
  color: #000000;
}

.gym-timer-action-btn.add {
  background: #242f42;
  color: #e2e8f0;
  border: 1px solid #3b4b66;
}

.gym-timer-action-btn.add:hover {
  background: #2d3b54;
  color: #ffffff;
}

.gym-timer-action-btn.stop {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.gym-timer-action-btn.stop:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #ffffff;
}

.gym-timer-action-btn:hover {
  transform: translateY(-1px);
}

/* HIIT & Tabata Trainer */
.gym-hiit-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.hiit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.hiit-round-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.hiit-card-inner {
  background: #0d121c;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hiit-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hiit-phase-badge.ready {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hiit-phase-badge.work {
  background: rgba(239, 68, 68, 0.25);
  color: #ff4d4d;
  border: 1px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: pulseDot 1s infinite alternate;
}

.hiit-phase-badge.rest {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Ultra High-Contrast Neon Digits - Always 100% Crystal Clear */
.hiit-neon-digits {
  font-size: 3.4rem !important;
  font-weight: 900 !important;
  font-family: 'Space Grotesk', -apple-system, sans-serif !important;
  color: #ffffff !important;
  text-shadow: 0 0 25px #38bdf8, 0 0 50px rgba(56, 189, 248, 0.6) !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  margin: 0.5rem 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hiit-btn-row {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hiit-action-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hiit-action-btn.start {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hiit-action-btn.pause {
  background: #f59e0b;
  color: #000000;
}

.hiit-action-btn.stop {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.hiit-action-btn:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   1. Live Multi-Language Breaking News Marquee (Kayan Flaş Haber)
/* ==========================================================================
   1. Live Multi-Language Breaking News Marquee (Ayrı Özel Kayan Flaş Haber Çubuğu)
   ========================================================================== */
.news-ticker-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  height: 26px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 3px;
  padding: 0 0.65rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 6px;
  cursor: pointer;
}

.news-ticker-badge {
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(57, 255, 20, 0.40);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.18);
  color: #39ff14;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
}

.news-ticker-badge #newsTickerBadgeText {
  color: #39ff14 !important; /* Fosforlu Neon Yeşil */
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.85), 0 0 14px rgba(57, 255, 20, 0.50) !important;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.news-ticker-badge:hover,
.news-ticker-badge:active {
  background: rgba(15, 23, 42, 0.90);
  border-color: #39ff14;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.35);
  transform: scale(1.04);
}

.ticker-live-dot {
  width: 7px;
  height: 7px;
  background-color: #ff10f0 !important; /* Fosforlu Neon Pembe */
  border-radius: 50%;
  box-shadow: 0 0 8px #ff10f0, 0 0 14px rgba(255, 16, 240, 0.8);
  animation: pulsePinkDot 1.4s infinite !important;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulsePinkDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 4px #ff10f0, 0 0 8px rgba(255, 16, 240, 0.5);
  }
  50% {
    transform: scale(1.30);
    box-shadow: 0 0 10px #ff10f0, 0 0 18px rgba(255, 16, 240, 0.9);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 4px #ff10f0, 0 0 8px rgba(255, 16, 240, 0.5);
  }
}

.ticker-time {
  background: rgba(0, 0, 0, 0.45) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #39ff14 !important; /* Fosforlu Neon Yeşil */
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.75), 0 0 12px rgba(57, 255, 20, 0.45) !important;
  border: 1px solid rgba(57, 255, 20, 0.4) !important;
  letter-spacing: 0.04em !important;
  display: inline-block !important;
}

.ticker-weather {
  background: rgba(0, 0, 0, 0.45) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #38bdf8 !important; /* Canlı Açık Mavi */
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.65) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}

.ticker-weather:hover,
.ticker-weather:active {
  background: rgba(56, 189, 248, 0.20) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
  transform: scale(1.03) !important;
}

.ticker-weather-city {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.ticker-refresh-icon {
  font-size: 0.72rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.ticker-refresh-icon.spinning {
  animation: spin 0.6s ease infinite;
}

.news-ticker-track-wrapper {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.news-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  -webkit-animation: marqueeTickerScroll 175s linear infinite;
  animation: marqueeTickerScroll 175s linear infinite;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 26px;
  color: var(--text-main);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (hover: hover) {
  .news-ticker-track:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  padding-right: 2.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.news-ticker-item::after {
  content: "•";
  margin-left: 2.5rem;
  color: var(--accent-red, #e63946);
  font-weight: 900;
  opacity: 0.8;
}

@-webkit-keyframes marqueeTickerScroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

@keyframes marqueeTickerScroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

@keyframes pulseTickerBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(0.97); }
}

.now-playing-links,
.song-action-single-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.song-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.song-action-pill:hover {
  transform: translateY(-1px) scale(1.05);
  opacity: 0.95;
}

.song-action-pill.shazam {
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 136, 255, 0.45);
  color: #00aaff;
}

.song-action-pill.spotify {
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.45);
  color: #1ed760;
}

.song-action-pill.apple {
  background: rgba(250, 45, 72, 0.15);
  border: 1px solid rgba(250, 45, 72, 0.45);
  color: #fa2d48;
}

.song-action-pill.youtube {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

/* ==========================================================================
   2. Studio Master Graphic Equalizer & Acoustic Sculptor
   ========================================================================== */
.eq-modal-card {
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  background: #0a0e1a !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12) !important;
  color: #ffffff;
}

.eq-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 1px;
}

.eq-screen-box {
  background: #040711;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.eq-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.eq-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.eq-live-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

.eq-power-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eq-power-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.eq-visualizer-canvas {
  width: 100%;
  height: 48px;
  display: block;
  border-radius: 6px;
  background: #02040a;
}

.eq-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.eq-preset-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: #111827;
  border: 1.5px solid #1f2937;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.eq-preset-card:hover {
  background: #1a2436;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.eq-preset-card.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.25));
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.preset-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.preset-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.preset-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-text span {
  font-size: 0.66rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-faders-container {
  background: #060912;
  border: 1.5px solid #1e293b;
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
}

.eq-faders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.eq-reset-link {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.eq-reset-link:hover {
  text-decoration: underline;
}

.eq-faders-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  box-sizing: border-box;
}

.eq-fader-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.eq-fader-bubble {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 4px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.eq-fader-track-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 0;
}

.eq-fader-slider {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 24px;
  height: 110px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.eq-fader-hz {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-top: 2px;
}

.eq-fader-name {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .eq-modal-card {
    padding: 1.25rem 0.85rem;
    max-width: 100%;
  }
  .eq-presets-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .eq-preset-card {
    padding: 0.5rem 0.6rem;
  }
  .preset-icon {
    font-size: 1.1rem;
  }
  .preset-text strong {
    font-size: 0.75rem;
  }
  .preset-text span {
    font-size: 0.62rem;
  }
  .eq-fader-slider {
    width: 20px;
    height: 95px;
  }
  .eq-fader-track-wrap {
    height: 105px;
  }
  .eq-fader-bubble {
    font-size: 0.66rem;
    min-width: 26px;
  }
  .eq-fader-hz {
    font-size: 0.66rem;
  }
}

/* ==========================================================================
   3. Ambient Sound Synthesizer & Layering Mixer
   ========================================================================== */
.ambient-sounds-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ambient-sound-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.ambient-sound-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.ambient-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ambient-icon {
  font-size: 1.6rem;
}

.ambient-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ambient-card-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ambient-slider {
  width: 110px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.ambient-pct {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
  color: #38bdf8;
}

/* ==========================================================================
   4. Song History Tracker
   ========================================================================== */
.song-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.song-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: var(--surface-secondary, rgba(255, 255, 255, 0.05));
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  gap: 0.75rem;
}

.song-history-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.song-history-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}

.song-history-meta-wrap {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.song-history-track {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-history-station {
  font-size: 0.70rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-history-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  flex-shrink: 0;
}

.song-history-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. Floating PWA 1-Tap Install Prompt
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 85px;
  left: 1.5rem;
  z-index: 1000;
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  backdrop-filter: blur(16px);
  animation: slideUp 0.3s ease;
}

.pwa-banner-icon {
  font-size: 1.8rem;
}

.pwa-banner-content {
  flex: 1;
}

.pwa-banner-content strong {
  font-size: 0.85rem;
  display: block;
}

.pwa-banner-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pwa-btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

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

/* ==========================================================================
   Podcast & Football Suite Styles
   ========================================================================== */

/* Podcast Progress Scrubber at Top of Player Bar */
.podcast-progress-bar-container {
  width: 100%;
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.podcast-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: height 0.15s ease;
}

[data-theme="light"] .podcast-progress-track {
  background: rgba(0, 0, 0, 0.12);
}

.podcast-progress-bar-container:hover .podcast-progress-track {
  height: 5px;
}

.podcast-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.podcast-time-indicators {
  display: none;
}

/* Podcast Card in Grid */
.station-card.podcast-card .card-avatar {
  border-radius: 12px;
}

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.podcast-badge.sports {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}

.podcast-episodes-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Podcast Episodes Bottom Sheet Modal */
.podcast-episodes-card {
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  box-sizing: border-box;
}

.podcast-modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.podcast-modal-cover {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.podcast-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-modal-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0 0;
}

.podcast-modal-tagline {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin: 0.75rem 0 1rem 0;
  line-height: 1.4;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.podcast-episodes-list-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.podcast-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-right: 0.25rem;
}

.podcast-episode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-episode-item:hover {
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.podcast-episode-item.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.podcast-ep-info {
  flex: 1;
  min-width: 0;
}

.podcast-ep-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-ep-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.podcast-ep-play-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.podcast-episode-item:hover .podcast-ep-play-btn {
  transform: scale(1.08);
}

/* ==========================================================================
   📚 Multilingual Audiobook Engine & Chapter Viewer Modal Styling
   ========================================================================== */
/* ==========================================================================
   📚 Dedicated Audiobook Book Tabs & Chapter Grid
   ========================================================================== */
.audiobook-filter-chip {
  background: rgba(147, 51, 234, 0.12) !important;
  color: #a855f7 !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
}

.audiobook-filter-chip.active {
  background: linear-gradient(135deg, #9333ea, #7c3aed) !important;
  color: #ffffff !important;
}

.audiobook-tabs-bar {
  margin: 0 0 1.25rem 0;
  padding: 0.5rem 0.25rem;
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.audiobook-tabs-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.audiobook-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.audiobook-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}

.ab-book-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.ab-book-tab:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.ab-book-tab.active {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  border-color: #c084fc !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.ab-book-tab-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
}

.audiobook-chapter-card {
  border-left: 3px solid #a855f7 !important;
}

.audiobook-chapter-card:hover {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2) !important;
}

.audiobook-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.audiobook-modal-card {
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  box-sizing: border-box;
}

.audiobook-modal-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.audiobook-modal-cover {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.audiobook-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audiobook-modal-author {
  font-size: 0.82rem;
  color: var(--accent-red);
  font-weight: 700;
  margin: 0.2rem 0 0.35rem 0;
}

.ab-modal-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ab-meta-pill {
  font-size: 0.70rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.audiobook-modal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.85rem 0 1rem 0;
  line-height: 1.45;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.audiobook-chapters-list-header {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-daily-sync-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.audiobook-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-right: 0.25rem;
}

.ab-chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ab-chapter-item:hover {
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
  border-color: #a855f7;
  transform: translateY(-2px);
}

.ab-chapter-item.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}

.ab-ch-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.ab-ch-index {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-subtle);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.ab-ch-text {
  flex: 1;
  min-width: 0;
}

.ab-ch-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-ch-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ab-ch-play-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35);
  transition: transform 0.15s ease;
}

.ab-chapter-item:hover .ab-ch-play-btn {
  transform: scale(1.08);
}

.ab-ch-play-btn.playing {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Audiobook Progress & Resume Memory Engine */
.ab-resume-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 12px);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  margin: 0.75rem 0 0.5rem 0;
  width: 100%;
  justify-content: center;
}

.ab-resume-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.ab-ch-progress-wrap {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ab-ch-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.ab-ch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ab-ch-progress-text {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
  white-space: nowrap;
}

.ab-ch-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.audiobook-resume-container {
  margin-bottom: 1.5rem;
  width: 100%;
}

.ab-resume-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(24, 15, 45, 0.95), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-lg, 18px);
  padding: 1rem 1.35rem;
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ab-resume-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #10b981, #a855f7);
}

.ab-resume-hero-card:hover {
  border-color: #a855f7;
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3), 0 6px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.ab-resume-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.ab-resume-hero-cover {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ab-resume-hero-info {
  min-width: 0;
  flex: 1;
}

.ab-resume-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.ab-resume-hero-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-resume-hero-sub {
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-resume-hero-progress {
  margin-top: 0.45rem;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  max-width: 320px;
}

.ab-resume-hero-bar {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ab-resume-hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.ab-resume-hero-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.card-resume-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.card-resume-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6) !important;
}

.card-pause-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

.card-pause-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6) !important;
}

.ab-pause-hero-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

.ab-pause-hero-btn:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.55) !important;
}

@media (max-width: 640px) {
  .ab-resume-hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }
  .ab-resume-hero-action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }
}
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ab-floating-resume-pill .ab-resume-meta {
  min-width: 0;
  flex: 1;
}

.ab-floating-resume-pill .ab-resume-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-floating-resume-pill .ab-resume-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-floating-resume-pill .ab-resume-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ab-floating-resume-pill .ab-resume-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.ab-floating-resume-pill .ab-resume-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.ab-floating-resume-pill .ab-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.ab-floating-resume-pill .ab-dismiss-btn:hover {
  color: #ffffff;
}

/* Card Progress Badge on Grid Cards */
.card-audiobook-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.card-audiobook-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.card-audiobook-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
}

.card-audiobook-progress-text {
  font-size: 0.7rem;
  color: #34d399;
  font-weight: 600;
}

/* ==========================================================================
   Live Breaking News & Sports Modal Styling
   ========================================================================== */
.news-modal-card {
  max-width: 540px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.news-modal-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0 0.75rem 0;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
}

.news-filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.news-filter-chip:hover {
  color: var(--text-main);
  border-color: var(--border-glass-hover);
}

.news-filter-chip.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.35);
}

.news-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 52vh;
  padding-right: 4px;
}

.news-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.70rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, background 0.15s ease;
}

.news-modal-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.news-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.news-item-content {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 3px;
}

.news-item-time {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mechanical Roulette Scroll Sound Toggle Button & State */
.roulette-sound-btn {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.roulette-sound-btn.active {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1px solid rgba(245, 158, 11, 0.40) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25) !important;
}

.roulette-sound-btn:not(.active) {
  opacity: 0.65;
  filter: grayscale(0.7);
}

.roulette-sound-btn:not(.active):hover {
  opacity: 0.95;
  filter: grayscale(0.1);
}

/* Default: Hide landscape header mini lang in portrait mode so header never overflows */
#headerLandscapeLang,
.header-landscape-lang {
  display: none;
}

/* ==========================================================================
   📱 Mobile Phone Landscape Ultra-Compact Mode (Phone Only, NOT PC/Desktop)
   Triggered reliably on all smartphones rotated horizontally
   ========================================================================== */
@media screen and (orientation: landscape) and (max-height: 600px) {
  /* 1. Header Zone Comfortably Positioned with Safe Area Breathing Room */
  .top-pinned-header-zone {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .top-pinned-header-zone .app-header {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 6px 14px !important;
    min-height: 40px !important;
    height: auto !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }

  .brand-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .brand-text h1 {
    font-size: 0.88rem !important;
  }

  .brand-text p {
    display: none !important;
  }

  .header-actions {
    gap: 0.30rem !important;
    align-items: center !important;
  }

  .pro-btn-cta, .auth-header-btn {
    padding: 0.20rem 0.45rem !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Landscape Language Switcher (TR / EN / SP) beside PRO in Landscape Mode */
  #headerLandscapeLang,
  .header-landscape-lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    height: 28px !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] #headerLandscapeLang,
  [data-theme="dark"] .header-landscape-lang {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
  }

  .lang-mini-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-width: 30px !important;
    width: 30px !important;
    height: 22px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    line-height: 22px !important;
    text-align: center !important;
    transition: all 0.15s ease !important;
  }

  .lang-mini-btn:hover {
    color: var(--text-main) !important;
  }

  .lang-mini-btn.active {
    background: linear-gradient(135deg, #e63946 0%, #d90429 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.45) !important;
  }



  .auth-avatar-mini {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.65rem !important;
  }

  .header-actions #themeToggleBtn,
  .header-actions #btnToggleRouletteSound,
  .header-actions #shortcutsBtn {
    display: inline-flex !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .header-actions #themeToggleBtn svg,
  .header-actions #shortcutsBtn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Hide modal buttons in landscape header (accessible in bottom nav or settings) */
  #customStreamBtn, #btnOpenGymMode, #btnHeaderEq, #btnHeaderAmbient, #btnHeaderHistory,
  #btnCarMode, #btnOpenAlarm {
    display: none !important;
  }

  /* Compact Filter & Search Rows */
  .top-pinned-header-zone .search-section {
    padding: 2px 14px 4px 14px !important;
  }

  .search-input-wrapper {
    height: 28px !important;
  }

  .search-input {
    padding: 2px 30px 2px 30px !important;
    font-size: 0.76rem !important;
  }

  .search-icon, .search-clear {
    width: 14px !important;
    height: 14px !important;
  }

  /* Hide Standalone Language Row under Search in Landscape (Saves 1 full row!) */
  .search-lang-row {
    display: none !important;
  }

  .top-pinned-header-zone .filter-section {
    padding: 4px 14px 6px 14px !important;
  }

  .category-filter-nav {
    gap: 0.35rem !important;
    padding-bottom: 2px !important;
  }

  .filter-chip {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .top-pinned-header-zone .sub-filter-bar {
    padding: 2px 14px 4px 14px !important;
    gap: 0.35rem !important;
  }

  .sub-filter-col .city-select,
  .sub-filter-col .sort-select {
    padding: 2px 6px !important;
    font-size: 0.70rem !important;
    height: 26px !important;
  }

  /* 2. Main Content Area Maximized for Scrolling Radio Stations (3 Cards per Row) */
  .main-content {
    padding-top: 0.25rem !important;
    padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: calc(env(safe-area-inset-left, 0px) + 10px) !important;
    padding-right: calc(env(safe-area-inset-right, 0px) + 10px) !important;
  }

  .section-header {
    margin-bottom: 0.35rem !important;
  }

  .section-title {
    font-size: 0.85rem !important;
  }

  /* Strictly 3 Radio Cards Side-by-Side in Phone Landscape Mode */
  .station-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.55rem !important;
  }

  .station-card {
    padding: 0.45rem 0.55rem !important;
    border-radius: 10px !important;
  }

  .card-logo-wrap {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .card-name {
    font-size: 0.82rem !important;
  }

  .card-tagline {
    font-size: 0.68rem !important;
  }

  .card-play-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  /* 3. Footer Navigation Docked Prominently at Bottom Edge (40px + Safe Area) */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    margin: 0 !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid var(--border-glass) !important;
    z-index: 300 !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    align-items: center !important;
  }

  .mobile-nav-item {
    gap: 2px !important;
    padding: 2px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-nav-item svg {
    width: 17px !important;
    height: 17px !important;
  }

  .mobile-nav-item span {
    font-size: 0.60rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  /* 4. Bottom Player Console Docked Directly on Top of 40px Footer */
  .player-bar {
    position: fixed !important;
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid var(--border-glass) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2) !important;
    z-index: 280 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 1-Row Horizontal Breaking News Ticker (100% VISIBLE SINGLE-LINE BAR) */
  .news-ticker-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 10px !important;
    gap: 8px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .news-ticker-badge {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: fit-content !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    font-size: 0.66rem !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .news-ticker-track-wrapper {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .news-ticker-track {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: max-content !important;
    height: 26px !important;
    line-height: 26px !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
  }

  .news-ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 0.80rem !important;
    padding-right: 1.8rem !important;
  }

  /* Controls Row */
  .player-bottom-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 2px 10px !important;
    gap: 0.35rem !important;
  }

  .player-center-controls .control-buttons {
    gap: 0.35rem !important;
  }

  .ctrl-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
  }

  .ctrl-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .ctrl-btn.btn-play-pause {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 9px !important;
  }

  .ctrl-btn.btn-play-pause svg {
    width: 18px !important;
    height: 18px !important;
  }

  .player-right-extras {
    gap: 0.35rem !important;
  }

  .player-right-extras #btnFullscreen,
  .player-right-extras #btnFavCurrent,
  .player-right-extras #btnAirPlay {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
  }

  .player-right-extras #btnFullscreen svg,
  .player-right-extras #btnFavCurrent svg,
  .player-right-extras #btnAirPlay svg {
    width: 15px !important;
    height: 15px !important;
  }

  .player-right-extras #btnRecordStream {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0.2rem 0.50rem !important;
    font-size: 0.70rem !important;
    border-radius: 8px !important;
  }

  /* Hide player station avatar/logo beside "Bir Radyo Seçin" in landscape mode */
  .player-station-info .player-avatar,
  .player-station-info .player-logo,
  .player-bar .player-avatar,
  .player-bar .player-logo,
  #playerAvatar,
  #playerLogo {
    display: none !important;
  }

  .player-live-dot {
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;
    margin-right: 6px !important;
  }
}

/* ==========================================================================
   📚 Google AdSense & SEO Compliance: Rich Radio Directory & Guide Section
   ========================================================================== */
.seo-guide-section {
  width: 100%;
  max-width: 1380px;
  margin: 2.5rem auto 1.5rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.seo-guide-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-subtle);
}

.seo-guide-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.25rem;
}

.seo-guide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(230, 57, 70, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.seo-guide-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.seo-guide-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.seo-article-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.seo-article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.seo-article-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.seo-tech-guide {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.seo-tech-guide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.6rem 0;
}

.seo-tech-guide p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

.seo-legal-notice {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-glass);
  color: var(--text-subtle);
  font-size: 0.80rem;
  line-height: 1.55;
}

/* ==========================================================================
   🌐 Main Website Crawlable Footer
   ========================================================================== */
.main-site-footer {
  width: 100%;
  max-width: 1380px;
  margin: 1.5rem auto 6.5rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.footer-inner-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  box-shadow: var(--shadow-subtle);
}

.footer-brand-col .footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.footer-app-ver {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.04);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .footer-app-ver {
  background: rgba(255, 255, 255, 0.06);
}

.footer-nav-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-nav-col ul li a:hover {
  color: var(--accent-red);
}

.footer-bottom-bar {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.80rem;
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  .footer-inner-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .footer-inner-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   🍪 Cookie Consent Banner (GDPR & KVKK Compliance)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: calc(var(--player-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 860px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  animation: slideUpBanner 0.4s ease forwards;
}

@keyframes slideUpBanner {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--accent-red);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #e63946 0%, #d90429 100%);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  transition: all 0.15s ease;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

.cookie-btn-decline {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .cookie-btn-decline {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-btn-decline:hover {
  color: var(--text-main);
}

/* ==========================================================================
   📄 Static Policy & Information Pages (privacy.html, terms.html, etc.)
   ========================================================================== */
.policy-page {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.policy-header {
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
}

.policy-header-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.policy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gradient);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
  transition: transform 0.15s ease;
}

.policy-back-btn:hover {
  transform: translateY(-1px);
}

.policy-content-wrapper {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
}

.policy-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(230, 57, 70, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.policy-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.policy-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.policy-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 2rem;
}

.policy-body section {
  margin-bottom: 2rem;
}

.policy-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.85rem 0;
}

.policy-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

.policy-body ul {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem 0;
}

.policy-body ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.45rem;
}

.policy-callout {
  background: rgba(230, 57, 70, 0.06);
  border-left: 4px solid var(--accent-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
}

.policy-callout strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}

.policy-callout p {
  margin: 0;
  font-size: 0.90rem;
  color: var(--text-muted);
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

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

.contact-card-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.contact-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.contact-card-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: var(--text-main);
}

.contact-card-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem 0;
}

.contact-link {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: none;
}

.contact-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.contact-submit-btn {
  background: linear-gradient(135deg, #e63946 0%, #d90429 100%);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: all 0.15s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}

.contact-status-box {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.contact-status-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
}

.faq-answer p {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.policy-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-card);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.policy-footer-container {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-links-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links-grid a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links-grid a.active,
.footer-links-grid a:hover {
  color: var(--accent-red);
}

.copyright-text {
  font-size: 0.80rem;
  color: var(--text-subtle);
  margin: 0;
}

/* ==========================================================================
   Multi-Language Dynamic Content Switcher (TR, EN, ES)
   ========================================================================== */
.lang-content {
  display: none !important;
}

html[lang="tr"] .lang-content.lang-tr,
html:not([lang]) .lang-content.lang-tr {
  display: block !important;
}

html[lang="en"] .lang-content.lang-en {
  display: block !important;
}

html[lang="es"] .lang-content.lang-es {
  display: block !important;
}

html[lang="de"] .lang-content.lang-de {
  display: block !important;
}

/* Inline language elements */
span.lang-content {
  display: none !important;
}
html[lang="tr"] span.lang-content.lang-tr,
html:not([lang]) span.lang-content.lang-tr {
  display: inline !important;
}
html[lang="en"] span.lang-content.lang-en {
  display: inline !important;
}
html[lang="es"] span.lang-content.lang-es {
  display: inline !important;
}
html[lang="de"] span.lang-content.lang-de {
  display: inline !important;
}

/* ==========================================================================
   Live Station Chat & Song Dedication Drawer (Social Radio) Styles
   ========================================================================== */
/* ==========================================================================
   Live Station Chat & Song Dedication Drawer (Light Porcelain Luxury Theme)
   ========================================================================== */
.radio-chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.08), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.08), transparent 45%),
              #f8fafc;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.12);
  z-index: 10500;
  display: none !important;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.radio-chat-drawer.open {
  display: flex !important;
}

.chat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(calc(env(safe-area-inset-top, 0px) + 0.65rem), 1.15rem) 0.95rem 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  gap: 0.4rem;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.chat-listener-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.chat-live-pulse {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

.chat-listener-count {
  font-size: 0.70rem;
  color: #0284c7;
  font-weight: 700;
  white-space: nowrap;
}

.chat-name-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 1;
  min-width: 0;
  max-width: 140px;
}

.chat-name-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
  display: inline-block;
}

.chat-name-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.chat-close-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-close-btn:hover {
  color: #ffffff;
  background: #e63946;
  border-color: #e63946;
  transform: scale(1.06);
}

/* Compact Header Language Selector Group */
.chat-header-lang-group {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
  background: #f1f5f9;
  padding: 2px 3px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.chat-lang-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-lang-pill:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.15);
}

.chat-lang-pill.active {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.3);
  transform: scale(1.08);
}

.chat-msg-lang-tag {
  font-size: 0.72rem;
  opacity: 0.9;
}

/* ==========================================================================
   YouTube Live Stream Streamlined Chat Flow
   ========================================================================== */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.30rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.chat-msg-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.30rem 0.50rem;
  border-radius: 6px;
  animation: chatMsgFadeIn 0.18s ease-out;
  transition: background 0.15s ease;
  line-height: 1.35;
  font-size: 0.86rem;
  position: relative;
  background: rgba(74, 222, 128, 0.13);
  border-left: 3px solid #22c55e;
}

.chat-msg-item:hover {
  background: rgba(74, 222, 128, 0.22);
}

.chat-msg-item.mine {
  background: rgba(255, 20, 147, 0.07);
  border-left: 3px solid #ff1493;
}

.chat-msg-item.mine:hover {
  background: rgba(255, 20, 147, 0.14);
}

.chat-time {
  font-size: 0.66rem;
  font-weight: 500;
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 1px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.chat-msg-avatar {
  font-size: 0.95rem;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -1px;
  user-select: none;
}

.chat-msg-content {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  line-height: 1.38;
}

.chat-author-name {
  font-size: 0.80rem;
  font-weight: 700;
  color: #0284c7;
  cursor: default;
}

.chat-msg-item.mine .chat-author-name {
  color: #ff007f;
  font-weight: 800;
}

.chat-you-badge {
  font-size: 0.58rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff2a85 0%, #ff007f 100%);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 3px;
  letter-spacing: 0.03em;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chat-msg-lang-tag {
  font-size: 0.70rem;
  margin-left: 2px;
  opacity: 0.85;
}

.chat-msg-separator {
  color: #94a3b8;
  margin: 0 3px;
  font-weight: 400;
}

.chat-msg-text {
  font-size: 0.86rem;
  color: #1e293b;
  font-weight: 450;
  word-break: break-word;
}

.chat-msg-item.mine .chat-msg-text {
  color: #0f172a;
}

/* Single Message Delete Button (Own Message) */
.chat-msg-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 4px;
  margin-left: auto;
  opacity: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-msg-item:hover .chat-msg-delete-btn,
.chat-msg-item.mine .chat-msg-delete-btn {
  opacity: 0.6;
}

.chat-msg-delete-btn:hover {
  opacity: 1 !important;
  color: #e63946;
  transform: scale(1.2);
}

/* Clear Room Chat History in Header */
.chat-header-icon-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  cursor: pointer;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-header-icon-btn:hover {
  color: #f43f5e;
  background: #fff1f2;
  border-color: #fda4af;
  transform: scale(1.08);
}

/* System Message */
.chat-system-msg {
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 0.2rem 0;
}

/* 💌 SuperChat Style Dedication Card */
.chat-dedication-card {
  width: 100%;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-left: 3.5px solid #f43f5e;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.10);
  margin: 0.15rem 0;
  box-sizing: border-box;
}

.chat-dedication-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e11d48;
  margin-bottom: 0.2rem;
}

.chat-dedication-to {
  font-size: 0.78rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.chat-dedication-to strong {
  color: #e11d48;
}

.chat-dedication-body {
  font-size: 0.84rem;
  font-style: italic;
  color: #881337;
  line-height: 1.35;
  font-weight: 500;
}

/* Quick Reactions Bar (Horizontal Glass Dock) */
.chat-quick-reactions {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  overflow: hidden;
}

.reactions-btns-list {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  width: 100%;
}

.reactions-btns-list::-webkit-scrollbar {
  display: none;
}

.chat-reaction-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  min-width: 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.chat-reaction-btn:hover {
  transform: scale(1.25) translateY(-3px);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

/* Dedication Target Input Row */
.chat-dedication-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff1f2;
  border-top: 1px solid #fecdd3;
}

.chat-dedication-input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #fda4af;
  color: #1e293b;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s ease;
}

.chat-dedication-input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* Sleek Chat Input Area */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem max(calc(env(safe-area-inset-bottom, 0px) + 0.65rem), 0.85rem) 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.btn-dedication-toggle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.btn-dedication-toggle.active {
  background: #f43f5e;
  border-color: #fb7185;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
  transform: scale(1.08);
}

.chat-input-text {
  flex: 1;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.90rem;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.chat-input-text:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.btn-send-chat {
  background: linear-gradient(135deg, #ff3366 0%, #e11d48 100%);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.btn-send-chat:hover {
  background: linear-gradient(135deg, #ff4b72 0%, #be123c 100%);
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

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

/* Floating Reactions Particle Overlay */
.chat-floating-reactions-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.floating-reaction-emoji {
  position: absolute;
  bottom: 60px;
  animation: floatUpFade 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateY(-40px) scale(1.2) rotate(-8deg);
  }
  70% {
    opacity: 0.9;
    transform: translateY(-220px) scale(1) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-380px) scale(0.8) rotate(-12deg);
  }
}

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

/* Chat Error Toast */
.chat-error-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(225, 29, 72, 0.95);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 10100;
  max-width: 85%;
  text-align: center;
}

.chat-error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .radio-chat-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ==========================================================================
   Landscape Chat Experience (Yatay Modda Sağ Çekmece)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 650px) and (max-width: 1024px) {
  .radio-chat-drawer {
    width: min(440px, 60vw) !important;
    max-width: 90vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
  }

  .radio-chat-drawer.open {
    display: flex !important;
  }

  .chat-drawer-header {
    padding: 0.35rem 1rem !important;
    min-height: 40px !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  .chat-close-btn {
    background: rgba(230, 57, 70, 0.25) !important;
    border: 1px solid rgba(230, 57, 70, 0.5) !important;
    color: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .chat-close-btn:hover,
  .chat-close-btn:active {
    background: #e63946 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.6) !important;
    transform: scale(1.06) !important;
  }

  .chat-player-dock {
    padding: 0.3rem 0.85rem !important;
  }

  .chat-quick-reactions {
    padding: 0.25rem 0.75rem !important;
  }

  .chat-reaction-btn {
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.90rem !important;
  }

  .chat-input-row {
    padding: 0.35rem 0.85rem !important;
  }
}

/* ==========================================================================
   Chat Profile & Selectable Emoji Avatar Modal Styles
   ========================================================================== */
.chat-profile-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: chatModalFadeIn 0.2s ease-out;
}

.chat-profile-card {
  width: 100%;
  max-width: 340px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-profile-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.profile-preview-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-preview-avatar {
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-preview-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}

.chat-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px;
}

.chat-avatar-option {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  height: 38px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-avatar-option:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.chat-avatar-option.selected {
  background: rgba(56, 189, 248, 0.25);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transform: scale(1.12);
}

.chat-profile-name-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.chat-profile-name-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-save-profile {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.3rem;
}

.btn-save-profile:hover {
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   13+ Age Verification & Community Standards Modal
   ========================================================================== */
.chat-age-gate-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: chatModalFadeIn 0.25s ease-out;
}

.age-gate-card {
  width: 100%;
  max-width: 360px;
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-sizing: border-box;
}

.age-gate-badge {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
  letter-spacing: 0.5px;
}

.age-gate-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.age-gate-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.age-gate-rules-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.age-gate-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.age-gate-rule-item .rule-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.age-gate-rule-item a {
  color: #38bdf8;
  text-decoration: underline;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.3rem;
}

.btn-accept-age-gate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 11px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  width: 100%;
}

.btn-accept-age-gate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-cancel-age-gate {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.80rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s ease;
}

.btn-cancel-age-gate:hover {
  color: #ffffff;
}

/* ==========================================================================
   Chat Room Live Radio Mini Controller Dock (Integrated Player in Chat)
   ========================================================================== */
.chat-player-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 10;
}

.chat-player-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.chat-player-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-player-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.chat-player-eq-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 2px;
  border-radius: 3px;
}

.chat-player-eq-badge span {
  width: 2px;
  height: 100%;
  background: #e63946;
  border-radius: 1px;
  animation: chatEqWave 0.8s ease infinite alternate;
}

.chat-player-eq-badge span:nth-child(2) {
  animation-delay: 0.2s;
  height: 60%;
}

.chat-player-eq-badge span:nth-child(3) {
  animation-delay: 0.4s;
  height: 80%;
}

.chat-player-dock.is-paused .chat-player-eq-badge span {
  animation: none !important;
  height: 3px !important;
  background: #64748b !important;
}

@keyframes chatEqWave {
  0% { height: 20%; }
  100% { height: 100%; }
}

.chat-player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-player-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.chat-player-status {
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
}

.chat-player-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chat-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.chat-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.chat-ctrl-btn.chat-ctrl-play {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.4);
}

.chat-ctrl-btn.chat-ctrl-play:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.6);
}

.chat-player-vol-wrap {
  display: flex;
  align-items: center;
  width: 55px;
}

.chat-volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.chat-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(56, 189, 248, 0.6);
}

.chat-volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  border: none;
}

@media (max-width: 480px) {
  .chat-player-vol-wrap {
    display: none;
  }
}




