/* ==========================================================================
   SHARED UI ELEMENTS, SPINNERS & FOCUS SYSTEMS
   ========================================================================== */
.browse-focusable {
  outline: none;
  transition: transform 0.2s var(--ease-standard), 
              border-color 0.2s var(--ease-standard), 
              background-color 0.2s var(--ease-standard),
              box-shadow 0.2s var(--ease-standard);
}

.browse-focusable.focused {
  border-color: var(--accent-focus) !important;
  box-shadow: 0 0 12px var(--accent-focus-glow) !important;
  transform: scale(1.03);
}

.pop-active {
  transform: scale(0.95) !important;
  transition: transform 0.05s ease-out !important;
}

.circular-back-button {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s var(--ease-standard);
}

.circular-back-button.focused {
  border-color: var(--accent-focus);
  background: var(--surface-strong);
  box-shadow: 0 0 10px var(--accent-focus-glow);
  transform: scale(1.08);
}

/* Centralized Premium Icon System */
.icon {
  fill: currentColor;
  flex-shrink: 0;
  transition: fill var(--transition-fast);
}
.icon-sm {
  width: 14px;
  height: 14px;
}
.icon-md {
  width: 18px;
  height: 18px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
.icon-xl {
  width: 32px;
  height: 32px;
}
.icon-xxl {
  width: 48px;
  height: 48px;
}

/* Centralized Eyebrow / Text Labels */
.eyebrow-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--text);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.muted {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.empty {
  color: var(--muted);
  font-size: var(--fs-base);
  padding: var(--space-8);
  text-align: center;
  width: 100%;
}

.detail-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: min(400px, 90%);
  padding: 36px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.login-logo {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-title {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.login-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: var(--accent-channel);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
}

.login-submit-btn.focused {
  border-color: var(--text) !important;
  box-shadow: 0 0 14px var(--accent-channel-glow) !important;
}

.notice {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid var(--danger);
  color: #ff8888;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ==========================================================================
   PROFILES SCREEN
   ========================================================================== */
.profiles-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profiles-container {
  text-align: center;
  width: min(800px, 95%);
}

.profiles-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.profiles-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-card {
  width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease-standard), 
              border-color 0.2s var(--ease-standard), 
              box-shadow 0.2s var(--ease-standard);
}

.profile-avatar.child {
  background: var(--brand-gradient);
  filter: hue-rotate(60deg);
}

.initials {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft);
}

.profile-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.profile-card.focused .profile-avatar {
  border-color: var(--accent-focus) !important;
  box-shadow: 0 0 16px var(--accent-focus-glow) !important;
  transform: scale(1.06);
}

/* ==========================================================================
   BROWSE / CATALOG SCREEN LAYOUT
   ========================================================================== */
.browse-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-base);
}

.browse-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.browse-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

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

.top-left-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.top-right-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.browse-header-bottom {
  display: flex;
  align-items: center;
}

.browse-header-search-row {
  width: 100%;
}

.discover-search-box-container {
  width: 100%;
  max-width: 400px;
}

.discover-search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 16px;
}

/* Inline horizontal filter rows */
.discover-filter-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.discover-filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.discover-filter-row::-webkit-scrollbar {
  display: none;
}

.discover-filter-btn {
  padding: var(--space-2) var(--space-4);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discover-filter-btn.selected {
  background: rgba(192, 132, 252, 0.2);
  border-color: var(--accent-category);
  color: #fff;
}

.discover-filter-btn.sub-category-btn.selected {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--accent-channel);
}

.mobile-filter-trigger {
  display: none;
}

/* Browse Main scroll area */
.browse-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.poster-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 8px 24px;
  scrollbar-width: none;
}

.poster-row::-webkit-scrollbar {
  display: none;
}

/* Poster card */
.poster-card {
  width: clamp(160px, 15vw, 200px);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  opacity: 0.65;
}

.poster-card.focused {
  opacity: 1;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.poster-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-standard), 
              border-color 0.2s var(--ease-standard), 
              box-shadow 0.2s var(--ease-standard);
}

.poster-card.focused .poster-image {
  border-color: var(--accent-focus) !important;
  box-shadow: 0 0 12px var(--accent-focus-glow) !important;
  transform: scale(1.04);
}

.poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.poster-meta {
  font-size: 11px;
  color: var(--muted);
}

/* Video Play progress on catalog card */
.poster-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.poster-progress-fill {
  height: 100%;
  background: var(--accent-channel);
}

/* Footer bottom bar details */
.bottom-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.selected-item-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-channel);
}

.profile-info-bottom {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   SIDEBAR DRAWERS / LEFT NAV FILTERS
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 80vw);
  background: #0d121a;
  border-right: 1px solid var(--line-strong);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.25s var(--ease-standard);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.category-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.drawer-close {
  font-size: 20px;
  color: var(--muted);
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-item {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
}

.drawer-item.selected {
  background: var(--surface-strong);
  color: #fff;
  border: 1px solid var(--line-strong);
}

.drawer-item.focused {
  background: var(--surface-raised);
  color: var(--accent-focus);
}

/* ==========================================================================
   DETAIL VIEW SCREEN
   ========================================================================== */
.detail-screen {
  display: flex;
  background: var(--bg-base);
  gap: 32px;
}

.detail-sidebar {
  width: min(280px, 30%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.detail-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
}

.detail-meta-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-meta-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.detail-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.detail-tag-type {
  font-weight: 700;
  color: var(--accent-category);
}

.detail-tag-channel {
  font-weight: 600;
  color: var(--accent-channel);
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 800px;
}

.detail-drawer-trigger {
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.detail-drawer-trigger.focused {
  border-color: var(--accent-focus);
}

/* Detail Actions Drawer overlay */
.detail-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d121a;
  border-top: 1px solid var(--line-strong);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 24px;
  z-index: 111;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-drawer.open {
  transform: translateY(0);
}

.detail-drawer-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.detail-actions-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-action-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.detail-action-btn.focused {
  background: var(--surface-strong);
  border-color: var(--accent-focus);
}

/* Detail episodes grid */
.episodes-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.episodes-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.episodes-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.episodes-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.episodes-grid::-webkit-scrollbar {
  display: none;
}

/* Episode list cards */
.episode-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.episode-card.focused {
  background: var(--surface-strong);
  border-color: var(--accent-focus);
}

.episode-thumb {
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  position: relative;
  flex-shrink: 0;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-watched-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--ok);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}

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

.episode-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.episode-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.episode-progress-fill {
  height: 100%;
  background: var(--accent-channel);
}

.busy-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   VIDEO PLAYER SCREEN
   ========================================================================== */
.player-screen {
  background: #000 !important;
  padding: 0 !important;
  overflow: hidden;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
}

.player-controls-container {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.player-controls-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.player-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-bottom-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-title-text {
  font-size: 16px;
  font-weight: 600;
}

.player-time-text {
  font-size: 14px;
  font-family: monospace;
}

.player-seek-bar-container {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.player-seek-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
}

.player-seek-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-channel);
  border-radius: 2px;
  width: 0;
}

.player-center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 11;
}

.player-center-btn {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.player-center-btn.focused {
  border-color: var(--accent-focus);
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.15);
}

.play-pause-toggle {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9;
}

.overlay .status {
  color: var(--danger);
  font-size: 14px;
  max-width: 400px;
  text-align: center;
  padding: 0 20px;
}

/* Player settings drawer overlay */
.player-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-settings-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.player-settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: #0d121a;
  border-left: 1px solid var(--line-strong);
  z-index: 21;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.player-settings-drawer.open {
  transform: translateX(0);
}

.player-settings-title {
  padding: 24px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.player-settings-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-settings-item {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

.player-settings-item.active {
  background: var(--surface-strong);
  color: #fff;
  border: 1px solid var(--line);
}

.player-settings-item.focused {
  background: var(--surface-raised);
  color: var(--accent-focus);
}

/* Autoplay next episode overlay */
.player-next-episode-card {
  position: absolute;
  bottom: 80px;
  right: 24px;
  width: 320px;
  background: rgba(13, 18, 26, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-standard);
  box-shadow: var(--shadow-md);
}

.player-next-episode-card.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.next-ep-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-ep-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-channel);
}

.next-ep-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-ep-countdown-text {
  font-size: 12px;
  color: var(--soft);
}

.next-ep-buttons {
  display: flex;
  gap: 8px;
}

.next-ep-buttons button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.next-ep-buttons button.focused {
  background: var(--surface-strong);
  border-color: var(--accent-focus);
}

/* ==========================================================================
   SYSTEM ALERT TOASTS
   ========================================================================== */
#system-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  z-index: 9999;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s var(--ease-standard);
  box-shadow: var(--shadow-lg);
}

#system-toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-success {
  background: var(--ok);
  color: #fff;
}

.toast-error {
  background: var(--danger);
  color: #fff;
}

.toast-info {
  background: var(--info);
  color: #fff;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ===== ORIENTATION WARNING FOR MOBILE LANDSCAPE (OUTSIDE PLAYER) ===== */
.orientation-warning {
  display: none !important;
  position: fixed;
  inset: 0;
  background: #080b11;
  color: white;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  font-family: 'Figtree', sans-serif;
}

.warning-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}

.warning-icon {
  animation: rotatePhoneToPortrait 2.2s ease-in-out infinite;
  color: var(--accent-category);
}

@keyframes rotatePhoneToPortrait {
  0% { transform: rotate(-90deg); }
  50% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.warning-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.warning-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.screen-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--soft);
  margin: 0;
}

/* Accessibility focus-visible fallback */
:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

/* Poster Library Badge */
.poster-library-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-channel);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
