/* ---------------------------------------------------
 🌐 GLOBAL: Layout, Transitions, Shared UI Elements
--------------------------------------------------- */
:root {
  /* Design System Colors (60/30/10 rule) */
  --color-background: #fafafa;     /* 60% - neutral base */
  --color-surface: #ffffff;        /* 30% - complementary surfaces */
  --color-text: #121212;           /* Primary text */
  --color-muted: #6b7280;          /* Secondary text */
  --color-accent: #3b82f6;         /* 10% - CTAs, links, highlights */
  --color-success: #10b981;        /* Success states */
  --color-error: #ef4444;          /* Error states */
  --color-warning: #f59e0b;        /* Warning states */
  
  /* Brand Colors (Preserved) */
  --color-header: #00665a;         /* Your specific teal header */
  --color-header-text: #e8f7f3;    /* Header text color */
  --color-primary: #5B4BFF;        /* Keep current purple if needed */
  
  /* Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

html, body {
  background-color: var(--color-background);
  overflow-x: hidden;
  height: 100%;
}

[x-cloak] {
  display: none !important;
}

/* ---------------------------------------------------
 🚫 HIDE ALL SCROLLBARS (Clean, Modern Approach)
--------------------------------------------------- */
/* Hide scrollbars globally while maintaining scroll functionality */
/* Use !important to override all specific scrollbar styles */
html, body, * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

/* Webkit browsers (Chrome, Safari, Edge) - More aggressive targeting */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar,
div::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.feed-content::-webkit-scrollbar,
.sidebar-shows-list::-webkit-scrollbar,
.playlist-modal-body::-webkit-scrollbar,
.dropdown-menu-force-down::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ---------------------------------------------------
 🔝 TOP NAVIGATION STYLES
--------------------------------------------------- */
.header-bar {
  background-color: var(--color-header);
  min-height: 72px;
  display: flex;
  align-items: center;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: var(--space-lg);
  height: 40px;
  margin-left: 0;
}

.navbar-brand img {
  height: 40px;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}

/* Left side container for hamburger and logo */
.navbar .d-flex.align-items-center.gap-2 {
  gap: 0.75rem !important;
  align-items: center;
  height: 40px;
  margin-left: 0;
  padding-left: 0;
}

/* Hamburger button styling */
.navbar .btn.p-0.d-flex.align-items-center {
  padding: 0 !important;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding-left: 0;
}

/* Ensure invisible hamburger button still takes up space */
.navbar .btn.p-0.d-flex.align-items-center.invisible {
  visibility: hidden;
  pointer-events: none;
}

/* Desktop navbar container fixes */
.navbar .container-fluid {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Ensure right-side navigation has proper spacing */
.navbar-nav.ms-auto {
  gap: var(--space-md);
  margin-right: 0;
  padding-right: 0;
}

/* Fix individual nav items spacing */
.navbar-nav .nav-link {
  margin-right: var(--space-sm);
}

.navbar-nav .nav-link:last-child {
  margin-right: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-direction: row;
  flex-wrap: nowrap;
}

.navbar-nav .nav-link {
  color: var(--color-header-text) !important;
  font-weight: 500;
  padding: var(--space-sm);
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link i {
  font-size: 1.1rem;
  line-height: 1;
}

.header-icon {
  color: var(--color-header-text);
  line-height: 1;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
  top: 0px;
}

.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    gap: var(--space-md);
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .navbar-nav .nav-link {
    padding: var(--space-sm);
    font-size: 0.9rem;
    min-width: 1.75rem;
    height: 1.75rem;
    white-space: nowrap;
  }
  
  .header-icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
  }
  
  .navbar-brand {
    height: 36px;
  }
  
  .navbar-brand img {
    height: 36px;
  }
  
  .navbar .d-flex.align-items-center.gap-2 {
    height: 36px;
  }
  
  .navbar .btn.p-0.d-flex.align-items-center {
    height: 36px;
    width: 36px;
  }
  
  .navbar .btn.p-0.d-flex.align-items-center.invisible {
    visibility: hidden;
    pointer-events: none;
  }
  
  .navbar .container-fluid {
    flex-wrap: nowrap;
  }
  
  .navbar-nav.ms-auto {
    flex-shrink: 0;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 576px) {
  .navbar-nav {
    gap: 0.75rem;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .navbar-nav .nav-link {
    padding: var(--space-sm);
    font-size: 0.85rem;
    min-width: 1.5rem;
    height: 1.5rem;
    white-space: nowrap;
  }
  
  .header-icon {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
  }
  
  .navbar-brand {
    height: 32px;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  .navbar .d-flex.align-items-center.gap-2 {
    height: 32px;
  }
  
  .navbar .btn.p-0.d-flex.align-items-center {
    height: 32px;
    width: 32px;
  }
  
  .navbar .btn.p-0.d-flex.align-items-center.invisible {
    visibility: hidden;
    pointer-events: none;
  }
  
  .navbar .container-fluid {
    flex-wrap: nowrap;
  }
  
  .navbar-nav.ms-auto {
    flex-shrink: 0;
  }
}

/* ---------------------------------------------------
 🔐 AUTH MODAL STYLES
--------------------------------------------------- */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.auth-modal {
  background: var(--color-surface);
  border-radius: var(--space-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  min-height: 480px;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) 0 var(--space-lg);
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: var(--space-lg);
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background-color: var(--color-background);
  color: var(--color-text);
}

.auth-modal-tabs {
  display: flex;
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid #f0f0f0;
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  flex: 1;
}

.auth-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.auth-tab-btn:hover:not(.active) {
  color: var(--color-text);
}

.auth-form-container {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.auth-form-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.auth-form-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.auth-form {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 0.75rem var(--space-md);
  border: 1.5px solid var(--color-muted);
  border-radius: var(--space-sm);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--color-surface);
  color: var(--color-text);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.875rem var(--space-lg);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #4a3fd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 75, 255, 0.3);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-form-footer {
  text-align: center;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid #f0f0f0;
}

.auth-form-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background-color: #fef2f2;
  color: var(--color-error);
  padding: 0.75rem var(--space-md);
  border-radius: var(--space-sm);
  margin: 0 var(--space-lg) var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  border: 1px solid #fecaca;
}

.auth-success {
  background-color: #f0fdf4;
  color: var(--color-success);
  padding: 0.75rem var(--space-md);
  border-radius: var(--space-sm);
  margin: 0 var(--space-lg) var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  border: 1px solid #bbf7d0;
}

/* Modal transitions */
.auth-modal-enter {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-enter-start {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
}

.auth-modal-enter-end {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.auth-modal-leave {
  transition: all 0.2s cubic-bezier(0.4, 0, 1, 1);
}

.auth-modal-leave-start {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.auth-modal-leave-end {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .auth-modal {
    margin: var(--space-sm);
    max-width: calc(100vw - 1rem);
    min-height: 480px;
  }
  
  .auth-modal-header,
  .auth-form {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .auth-modal-tabs {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ---------------------------------------------------
 📐 FIXED HEIGHT FEED LAYOUT
--------------------------------------------------- */
.feed-container {
  height: calc(100vh - 72px); /* Subtract navbar height */
  overflow: hidden;
}

.feed-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feed-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  /* Optimize for smooth scrolling */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Prevent layout shifts during scroll */
  contain: layout style paint;
  width: 100%;
}

.feed-content::-webkit-scrollbar {
  width: 6px;
}

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

.feed-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.feed-content::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.feed-wrapper {
  width: 100%;
  max-width: 100%;
}

.feed-card {
  background: var(--color-surface);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* Optimize for performance */
  contain: layout style paint;
  will-change: transform;
}

/* ---------------------------------------------------
 📚 SIDEBAR STYLES
--------------------------------------------------- */
.sidebar {
  width: 280px;
  background: var(--color-surface);
  border-right: 1px solid #e0e0e0;
  padding: var(--space-lg) 1.75rem var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  -webkit-overflow-scrolling: touch;
  transition: width 0.3s ease, padding 0.3s ease, border 0.3s ease, transform 0.3s;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* Sidebar sections with dynamic layout */
.sidebar-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Shows section - starts minimal, expands linearly */
.sidebar-section:first-child {
  flex: 0 0 auto; /* Don't grow, don't shrink, auto size */
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  min-height: 40px; /* Reduced minimum height when empty */
}

/* Playlists section - same behavior as shows */
.sidebar-section:nth-child(2) {
  flex: 0 0 auto; /* Don't grow, don't shrink, auto size */
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  min-height: 40px; /* Reduced minimum height when empty */
  /* Removed border-top since there's only one section currently */
  padding-top: 1rem; /* Consistent spacing after separator line */
}



/* Equal space sharing for both sections */
.sidebar-section:first-child.has-shows {
  flex: 1; /* Take equal space */
  min-height: 50px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section:nth-child(2).has-playlists {
  flex: 1; /* Take equal space */
  min-height: 50px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Last section - takes remaining space */
.sidebar-section:last-child {
  flex: 1; /* Take remaining space */
  /* Removed border-top since there's only one section currently */
  padding-top: 1rem;
}

/* Show Detail Page Specific Styles */

/* Ensure content doesn't overflow */
.min-width-0 {
  min-width: 0;
}

/* Mobile optimizations for show detail */
@media (max-width: 575.98px) {
  .show-detail-badge {
    font-size: 0.7rem;
  }
}

.show-detail-badge {
  font-size: 0.75rem;
  font-weight: 500;
}

.show-detail-alert {
  border-radius: var(--space-sm);
  border: none;
  font-size: 0.875rem;
}

.show-detail-metadata {
  background-color: var(--color-background);
  border-radius: var(--space-sm);
  padding: var(--space-md);
}

.show-detail-actions .btn {
  min-height: 44px;
  font-weight: 500;
}





.sidebar-menu {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid #f0f0f0;
}

/* Sidebar behavior for all screen sizes */
.sidebar {
  transition: transform 0.3s ease-out;
}

/* Mobile sidebar behavior */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 280px;
    height: calc(100vh - 72px);
    transform: translateX(-100%);
    z-index: 1020;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
  }
}

/* Desktop sidebar behavior */
@media (min-width: 768px) {
  .sidebar:not(.open) {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
  }
  /* Main content expands to full width */
  .sidebar:not(.open) ~ .feed-main {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    transition: max-width 0.3s, margin 0.3s;
  }
  
  /* When no sidebar exists (non-authenticated users), center the main content */
  .no-sidebar .feed-main {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Sidebar transition classes for Alpine.js */
.sidebar-slide-enter-active,
.sidebar-slide-leave-active {
  transition: transform 0.3s ease-out;
}

.sidebar-slide-enter-from,
.sidebar-slide-leave-to {
  transform: translateX(-100%);
}

.sidebar-slide-enter-to,
.sidebar-slide-leave-from {
  transform: translateX(0);
}

.sidebar-link {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #212529;
  text-decoration: none;
}
.sidebar-link:hover,
.sidebar-link:focus-visible {
  background-color: #f8f9fa;
  color: #212529;
  text-decoration: none;
}
.sidebar-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Search modal */
.sidebar-search-dialog {
  max-width: 300px;
}
.sidebar-search-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-muted);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}
.sidebar-search-icon {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Ensure search modal overlays everything */
.modal {
  z-index: 11050 !important;
}
.modal-backdrop {
  z-index: 11000 !important;
}

/* Search input styling to match site's form controls */
#sidebarSearchInput {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1.5px solid var(--color-muted);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--color-surface);
  color: var(--color-text);
}

#sidebarSearchInput:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#sidebarSearchInput::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.sidebar-section-title {
  color: #6c757d;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Shows filter toggle styling */
.shows-filter-toggle {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* Ensure same font styling as other section titles */
  color: #6c757d;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.shows-filter-toggle:hover {
  background-color: var(--color-background);
  color: var(--color-accent);
}

.shows-filter-toggle.active {
  color: var(--color-accent);
  background-color: rgba(59, 130, 246, 0.1);
  font-weight: 800;
}

.shows-filter-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.shows-filter-toggle .bi-funnel {
  font-size: 0.7rem;
  opacity: 0.8;
}



/* playlists removed */

/* Scrollable shows section */
.sidebar-shows-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  min-height: 0;
}

.sidebar-shows-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-shows-list::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-shows-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

.sidebar-shows-list::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* Sidebar shows items */
.sidebar-shows-list li {
  margin-bottom: 0.25rem;
}

.sidebar-shows-list .sidebar-link {
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-shows-list .sidebar-link:hover {
  background-color: var(--color-background);
  color: var(--color-accent);
  text-decoration: none;
}

.sidebar-shows-list .sidebar-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}



/* ---------------------------------------------------
 🟩 INPUT BAR: Query input + Submit button
--------------------------------------------------- */

.query-card {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e5;
}
.query-card .card-body {
  padding: 1rem 1.25rem;
}

.input-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.input-container input {
  width: 100%;
  padding: 7px 45px 7px 12px;
  border: 1px solid #dcdddf;
  outline: none;
  border-radius: 8px;
  background: #fafbfc;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  box-sizing: border-box;
}

.input-container input:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-container input::placeholder {
  color: #888888;
  opacity: 1;
}

.mic-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: #007a73;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mic-btn:hover {
  background-color: #00665a;
  color: #fff;
}

.mic-btn:active {
  background-color: #00564f;
  color: #fff;
}

@media (max-width: 500px) {
  .input-container {
    max-width: 98vw;
  }
  .input-container input {
    font-size: 1rem;
    padding: 10px 40px 10px 14px;
  }
  .mic-btn {
    width: 26px;
    height: 26px;
    right: 4px;
  }
}

/* Spinner inside create button */
.btn-primary .spinner-border {
  color: white;
}

/* ---------------------------------------------------
 🟦 EMBEDS & CARD STYLES
--------------------------------------------------- */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #ececec;
  background: #fafbfc;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  /* Optimize for performance */
  contain: layout style paint;
}

.card .card-body {
  padding: 12px 16px;
}

/* Main playlist iframe container - responsive heights */
.playlist-iframe-container {
  position: relative;
  width: 100%;
  height: 600px; /* Large desktop height - shows many episodes without scrolling */
  border-radius: 8px;
}

.playlist-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  /* Ensure iframe can scroll internally */
  overflow: auto;
  /* Add subtle scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.embed-scroll div {
  transition: all 0.3s ease-in-out;
}
.embed-scroll iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.progress-message {
  color: #333;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  opacity: 1;
}
.fade-in-out {
  animation: fadeInOut 1.5s ease-in-out infinite;
}
@keyframes fadeInOut {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------------------------------------------------
 📋 DROPDOWNS
--------------------------------------------------- */
.dropdown-menu {
  font-size: 0.85rem;
  padding: 0.25rem 0.25rem;
  min-width: 10px;
  z-index: 1055 !important;
}
.dropdown-item {
  padding: 0.25rem 0.25rem;
}

/* ---------------------------------------------------
 🔄 INFINITE SCROLL LOADING STATES
--------------------------------------------------- */
.feed-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.feed-loading-indicator .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.feed-end-indicator {
  text-align: center;
  padding: 1rem;
  color: #999;
  font-size: 0.85rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 1rem;
}

/* Smooth transitions for new content */
.feed-card .position-relative {
  animation: fadeInUp 0.3s ease-out;
}

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

/* Optimize iframe loading */
.embed-scroll iframe {
  width: 100%;
  height: 200px;
  border: none;
  /* Prevent layout shifts */
  contain: layout style paint;
}

/* ---------------------------------------------------
 📱 MOBILE EMBED OPTIMIZATIONS (≤ 575px)
--------------------------------------------------- */
@media (max-width: 575px) {
  /* Keep some padding for visual breathing room */
  .feed-content {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  
  /* Keep card padding but reduce it */
  .feed-card .card-body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Shorter mobile height for embeds */
  .embed-scroll iframe {
    height: 140px;
    /* Ensure iframes stay within container bounds */
    max-width: 100%;
    border-radius: 8px;
  }
  
  /* Main playlist iframe - mobile height for full playlist visibility */
  .playlist-iframe-container {
    height: 450px; /* Mobile height - shows full playlist */
  }
  
  /* Maintain vertical rhythm - no extra margins between players */
  .feed-card .position-relative {
    margin-bottom: 0;
  }
  
  /* Fix input bar alignment and width */
  .query-card {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .query-card .card-body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Ensure input container matches embed width exactly */
  .input-container {
    max-width: 100%;
  }
  
  /* Fix input field sizing and alignment */
  .input-container input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure mic button is properly positioned */
  .mic-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Fix header spacing issues */
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Remove extra left spacing from logo */
  .navbar-brand {
    margin-left: 0;
    padding-left: 0;
  }
  
  /* Ensure hamburger button is visible */
  .navbar .btn.p-0.d-flex.align-items-center {
    margin-left: 0;
    padding-left: 0;
  }
  
  /* Fix navigation items spacing */
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.375rem;
    font-size: 0.8rem;
    min-width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.25rem;
  }
  
  /* Micro adjustment for About and FAQ links on mobile */
  .navbar-nav .nav-link:not(.btn-link) {
    margin-right: 0.15rem;
  }
  
  /* Ensure search icon has consistent spacing with text links */
  .navbar-nav .btn-link.nav-link {
    margin-right: 0.15rem;
  }
  
  .header-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
  }
  
  /* Ensure login button is visible */
  .navbar-nav.ms-auto {
    margin-right: 0;
    padding-right: 0;
    gap: 0.5rem;
  }
  
  /* Fix left side container spacing */
  .navbar .d-flex.align-items-center.gap-2 {
    gap: 0.5rem !important;
    margin-left: 0;
    padding-left: 0;
  }
  
  /* Ensure proper container width */
  .navbar .container-fluid {
    max-width: 100%;
    width: 100%;
  }
  
  /* Fix main content container */
  .feed-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Ensure feed content doesn't overflow */
  .feed-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix feed wrapper */
  .feed-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix navbar brand positioning */
  .navbar-brand {
    margin-left: 0;
    padding-left: 0;
    margin-right: 0.5rem;
  }
  
  /* Ensure hamburger button is properly positioned */
  .navbar .btn.p-0.d-flex.align-items-center {
    margin-left: 0;
    padding-left: 0;
    margin-right: 0;
    padding-right: 0;
  }
  
  /* Playlist modal embeds also get mobile optimizations */
  .playlist-episode-item .flex-grow-1 iframe {
    height: 140px !important;
    border-radius: 8px;
    max-width: 100%;
  }
  
  /* Ensure playlist modal embeds stay contained */
  .playlist-modal-body.playlist-episodes-list {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .playlist-episode-item {
    border-radius: 8px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---------------------------------------------------
 🎯 GUEST USER EXPERIENCE ENHANCEMENTS
--------------------------------------------------- */

/* Guest creation card styling */
.guest-creation-card {
    position: relative;
}

/* Search button styling for guests */
.search-btn {
    background: var(--color-accent) !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-btn:disabled {
    background: var(--color-muted) !important;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Guest info section */
.guest-info-section {
    padding-top: 0;
}

.guest-info-content {
    text-align: center;
}

/* Search stats display */
.search-stats-display {
    margin-bottom: var(--space-md);
}

.stats-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.stats-text i {
    color: var(--color-accent);
    font-size: 1rem;
}

/* Progress bar styling */
.progress-container {
    max-width: 200px;
    margin: 0 auto;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--color-background);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #1d4ed8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Call to action section */
.guest-cta-section {
    margin-top: 0;
}

.cta-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.cta-text a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.cta-text a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.cta-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.cta-text a:hover::after {
    width: 100%;
}

/* Limit reached card */
.limit-reached-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    margin-top: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.limit-reached-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #1d4ed8);
}

.limit-reached-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.limit-reached-text {
    max-width: 320px;
}

.limit-reached-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
}

.limit-reached-description {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}

.limit-reached-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.limit-reached-actions .btn {
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-width: 140px;
}

.limit-reached-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.limit-reached-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #1d4ed8 100%);
    border: none;
}

.limit-reached-actions .btn-outline-secondary {
    border: 2px solid var(--color-muted);
    color: var(--color-text);
}

.limit-reached-actions .btn-outline-secondary:hover {
    background: var(--color-muted);
    border-color: var(--color-muted);
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .guest-info-section {
        padding-top: 0;
    }
    
    .limit-reached-card {
        padding: var(--space-lg);
        margin-top: var(--space-sm);
        border-radius: 12px;
    }
    
    .limit-reached-content {
        gap: var(--space-md);
    }
    
    .limit-reached-title {
        font-size: 1.125rem;
    }
    
    .limit-reached-description {
        font-size: 0.95rem;
    }
    
    .limit-reached-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }
    
    .limit-reached-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        min-width: auto;
    }
    
    .cta-text {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
}

/* ---------------------------------------------------
 🔒 AUTHENTICATION WALL MESSAGING
--------------------------------------------------- */

/* Enhanced authentication wall message */
.auth-wall-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-wall-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.auth-wall-message .message-icon {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}

.auth-wall-message h4 {
    color: #92400e;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.auth-wall-message p {
    color: #92400e;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-wall-message .auth-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-wall-message .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
}

/* ---------------------------------------------------
 🎨 HERO + THEME UTILS
--------------------------------------------------- */
.hero-gradient {
  background: linear-gradient(135deg, #1a174d 0%, #5B4BFF 100%);
  color: #fff;
}

.hero-title {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.hero-lead {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}

/* Text utilities for hero sections */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Accordion styling for better contrast */
.accordion-button {
  color: var(--color-text) !important;
  background-color: var(--color-surface) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--color-accent) !important;
  background-color: var(--color-surface) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

/* Update other elements to use the new system */
.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: #2563eb;  /* Darker shade of accent */
  border-color: #2563eb;
}

.text-primary {
  color: var(--color-accent) !important;
}

.text-muted {
  color: var(--color-muted) !important;
}

.text-success {
  color: var(--color-success) !important;
}

.text-danger {
  color: var(--color-error) !important;
}

.bg-light {
  background-color: var(--color-background) !important;
}

.border {
  border-color: var(--color-muted) !important;
}

/* ---------------------------------------------------
 🎵 PLAYLIST MODAL STYLES - CLEAN VERSION
--------------------------------------------------- */

/* Modal backdrop */
.playlist-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; box-sizing: border-box;
}

/* Modal container */
.playlist-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%; 
  max-width: 360px; 
  max-height: 80vh;
  overflow: hidden; /* Prevent any overflow issues */
  position: relative; 
  min-height: 280px; 
  margin: auto;
}

/* Manager modal (larger) */
.playlist-manager-modal {
  max-width: 520px; /* Increased width to accommodate scrollbar */
  min-height: 320px;
  max-height: 85vh;
}

/* Modal header */
.playlist-modal-header {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem;
  border-bottom: 1px solid #f0f0f0; 
  margin-bottom: 1.25rem; 
  padding: 1.25rem 1.25rem 0 1.25rem;
}

/* Modal body with proper scrolling */
.playlist-modal-body {
  padding: 0 1.25rem 1.25rem 1.25rem; 
  height: 100%; 
  display: flex; 
  flex-direction: column;
}

/* Episodes list container with clean scrollbar */
.playlist-modal-body.playlist-episodes-list {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 1.5rem; /* Extra space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.playlist-modal-body.playlist-episodes-list::-webkit-scrollbar {
  width: 8px;
}

.playlist-modal-body.playlist-episodes-list::-webkit-scrollbar-track {
  background: transparent;
}

.playlist-modal-body.playlist-episodes-list::-webkit-scrollbar-thumb {
  background-color: #e0e0e0;
  border-radius: 4px;
}

.playlist-modal-body.playlist-episodes-list::-webkit-scrollbar-thumb:hover {
  background-color: #c0c0c0;
}

/* Episode item container */
.playlist-episode-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}

.playlist-episode-item:hover {
  background: #f1f3f4;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.playlist-episode-item:last-child {
  margin-bottom: 0;
}

/* Drag handle */
.playlist-episode-item .drag-handle {
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: grab;
  user-select: none;
  padding: 0.375rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.playlist-episode-item:hover .drag-handle {
  color: #6b7280;
  opacity: 1;
  background: rgba(107, 114, 128, 0.1);
}

.playlist-episode-item .drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

/* Embed container */
.playlist-episode-item .flex-grow-1 {
  position: relative;
  min-width: 0;
  flex: 1;
}

.playlist-episode-item .flex-grow-1 iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 140px !important;
  border: none;
  border-radius: 8px;
  display: block;
}

/* Modern minimalist delete button */
.playlist-embed-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: #6b7280;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Accessibility improvements */
  outline: none;
  user-select: none;
}

.playlist-episode-item .flex-grow-1:hover .playlist-embed-delete,
.playlist-embed-delete:focus {
  opacity: 1;
  transform: scale(1);
}

.playlist-embed-delete:hover,
.playlist-embed-delete:focus {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.playlist-embed-delete:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.playlist-embed-delete:active {
  transform: scale(0.95);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .playlist-modal {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
    min-height: 260px;
  }
  
  .playlist-manager-modal {
    max-width: calc(100vw - 1rem);
    min-height: 280px;
  }
  
  .playlist-modal-header,
  .playlist-modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .playlist-modal-body.playlist-episodes-list {
    max-height: 40vh;
    padding-right: 1.25rem;
  }
  
  .playlist-episode-item .flex-grow-1 iframe {
    height: 120px !important;
  }
  
  .playlist-embed-delete {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}

/* Drag state styling */
.playlist-episode-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

/* Remove any conflicting old delete button styles */
.playlist-episode-item .btn-outline-danger,
.playlist-episode-item .btn-simple-delete,
.playlist-episode-item .playlist-controls {
  display: none !important;
}

/* Toast notifications */
.toast-notification {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Dropdown improvements for playlist selection */
.dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--color-background);
  color: var(--color-accent);
}

.dropdown-menu .dropdown-item i {
  font-size: 0.85rem;
}

/* Restore scrolling for feed */
.feed-content {
  overflow-y: auto;
}

.dropdown-menu {
  z-index: 1055 !important;
}

/* Force dropdown to open downwards if Popper.js tries to flip it */
.dropdown-menu-force-down[data-popper-placement^="top"] {
  top: 100% !important;
  bottom: auto !important;
  transform: none !important;
}

/* Limit dropdown height and make scrollable when more than 5 playlists */
.dropdown-menu-force-down {
  max-height: 280px; /* Approximately 5 items + divider + create new */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.dropdown-menu-force-down::-webkit-scrollbar {
  width: 4px;
}

.dropdown-menu-force-down::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu-force-down::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

.dropdown-menu-force-down::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

@media (max-width: 767.98px) {
  .feed-content {
    overflow-y: auto;
  }
}

/* Optional: prevent .card or .feed-card from clipping dropdowns */
.card, .feed-card {
  overflow: visible;
}



.dropdown-playlist-scroll {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.dropdown-playlist-scroll::-webkit-scrollbar {
  width: 4px;
}

.dropdown-playlist-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-playlist-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

.dropdown-playlist-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.dropdown-playlist-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* --- Sidebar and Main Content Responsive Layout --- */

/* Main content default (with sidebar open) */
.feed-main {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  transition: max-width 0.3s, margin 0.3s;
}

/* When no sidebar exists (non-authenticated users), ensure main content is centered */
.no-sidebar .feed-main {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

/* Center main content and set max width for readability */
@media (min-width: 768px) {
  .feed-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
  }
  
  /* When sidebar is closed, center content */
  .sidebar:not(.open) ~ .feed-main {
    max-width: 840px;
    margin: 0 auto;
    width: 100%;
  }
}

.navbar-nav .btn-link.nav-link:focus,
.navbar-nav .btn-link.nav-link:hover,
.navbar-nav .btn-link.nav-link:active {
  background: none !important;
  box-shadow: none !important;
}

.modal-scale-sm {
  transform: scale(0.8);
  transform-origin: center;
}

/* ---------------------------------------------------
 🎙️ CREATE SHOW PAGE STYLES
--------------------------------------------------- */


/* Back button styling */
.btn.btn-sm.btn-link.text-muted.p-1 {
    transition: all 0.2s ease;
    border-radius: 6px;
}

.btn.btn-sm.btn-link.text-muted.p-1:hover {
    background-color: var(--color-background);
    color: var(--color-text) !important;
}

/* Form label styling */
.form-label.fw-semibold.text-dark.mb-2 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Textarea styling */
textarea.form-control {
    border: 1.5px solid var(--color-muted);
    transition: all 0.2s ease;
}

textarea.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Success and error state animations */
.card-body.text-center.py-5 {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ---------------------------------------------------
 📚 SIDEBAR DYNAMIC SECTIONS
--------------------------------------------------- */

/* ---------------------------------------------------
 🎙️ AUTO-EXPAND TEXTAREA STYLES
--------------------------------------------------- */

/* Auto-expand textarea styling to match input fields */
.auto-expand-input {
  width: 100%;
  padding: 7px 45px 7px 12px;
  border: 1px solid #dcdddf !important;
  outline: none;
  border-radius: 8px;
  background: #fafbfc;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  box-sizing: border-box;
  line-height: 1.4;
  transition: height 0.2s ease;
}

.auto-expand-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.auto-expand-input::placeholder {
  color: #888888;
  opacity: 1;
}

/* Mobile responsive for auto-expand textarea */
@media (max-width: 500px) {
  .auto-expand-input {
    font-size: 1rem;
    padding: 10px 40px 10px 14px;
  }
}


