.admin-confirm-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.admin-confirm-panel {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(24, 228, 255, 0.34);
  background: rgba(4, 13, 17, 0.96);
  padding: 24px;
  box-shadow: 0 0 44px rgba(24, 228, 255, 0.14);
}

.admin-confirm-panel small {
  color: var(--cyan);
  letter-spacing: 0.24em;
}

.admin-confirm-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-confirm-panel div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.nav-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.nav-filter-bar button {
  border: 1px solid color-mix(in srgb, var(--nav-filter-color, #18e4ff) 44%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--nav-filter-color, #18e4ff) 10%, rgba(255, 255, 255, 0.03));
  color: var(--text);
  padding: 8px 14px;
}

.nav-filter-bar button.active {
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(24, 228, 255, 0.18);
}

.nav-archive-filters {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(238, 246, 247, 0.08);
}

.nav-archive-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-archive-filter-row button {
  border: 1px solid color-mix(in srgb, var(--nav-filter-color, #18e4ff) 36%, rgba(255, 255, 255, 0.14));
  background: color-mix(in srgb, var(--nav-filter-color, #18e4ff) 8%, rgba(255, 255, 255, 0.025));
  color: var(--muted);
  padding: 7px 12px;
  font-size: 12px;
}

.nav-archive-filter-row button.active {
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--nav-filter-color, #18e4ff) 72%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 14px color-mix(in srgb, var(--nav-filter-color, #18e4ff) 20%, transparent);
}

.nav-group[hidden],
.nav-links a[hidden] {
  display: none !important;
}

.archive-menu {
  display: flex;
  flex-direction: column;
}

.menu-admin-access {
  margin-top: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 228, 255, 0.38);
  color: var(--cyan);
  text-decoration: none;
  background: rgba(24, 228, 255, 0.07);
}

.menu-admin-access.is-guest {
  animation: menu-admin-blue 1.8s ease-in-out infinite;
}

.menu-admin-access.is-logged-in {
  color: var(--pink);
  border-color: rgba(255, 79, 163, 0.46);
  background: rgba(255, 79, 163, 0.08);
  animation: menu-admin-red 1.8s ease-in-out infinite;
}

@keyframes menu-admin-blue {
  0%, 100% { box-shadow: 0 0 8px rgba(24, 228, 255, 0.16); }
  50% { box-shadow: 0 0 24px rgba(24, 228, 255, 0.42); }
}

@keyframes menu-admin-red {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 79, 163, 0.16); }
  50% { box-shadow: 0 0 24px rgba(255, 79, 163, 0.42); }
}

@media (max-width: 820px) {
  .todo-create-controls,
  .todo-sort-panel {
    grid-template-columns: 1fr !important;
  }
}

.todo-sort-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1100 !important;
  width: auto !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(220px, 300px);
  grid-auto-rows: max-content;
  place-content: center;
  align-items: end;
  gap: 18px;
  padding: 28px;
  border: 0 !important;
  background: rgba(0, 0, 0, 0.68) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

.todo-sort-panel[hidden] {
  display: none !important;
}

.todo-sort-panel label {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(24, 228, 255, 0.32);
  background: rgba(4, 13, 17, 0.96);
  box-shadow: 0 0 28px rgba(24, 228, 255, 0.12);
}

.todo-sort-save {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(24, 228, 255, 0.74);
  background: linear-gradient(180deg, rgba(24, 228, 255, 0.22), rgba(24, 228, 255, 0.08));
  color: var(--cyan);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 22px rgba(24, 228, 255, 0.18);
}

@media (max-width: 820px) {
  .todo-sort-panel {
    grid-template-columns: 1fr !important;
  }
}

/* Front archive refinements */
.video-js.vjs-minimal-archive .vjs-big-play-button,
.media-video-panel .video-js.vjs-minimal-archive .vjs-big-play-button {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.video-js.vjs-minimal-archive .vjs-big-play-button .vjs-icon-placeholder,
.media-video-panel .video-js.vjs-minimal-archive .vjs-big-play-button .vjs-icon-placeholder {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
}

.video-js.vjs-minimal-archive .vjs-big-play-button .vjs-icon-placeholder::before,
.media-video-panel .video-js.vjs-minimal-archive .vjs-big-play-button .vjs-icon-placeholder::before,
.video-js.vjs-minimal-archive .vjs-button > .vjs-icon-placeholder::before {
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.video-js.vjs-minimal-archive .vjs-big-play-button .vjs-icon-placeholder::before {
  transform: translateX(2px);
}

.mood-panel {
  padding: 26px 24px 76px;
}

.mood-panel-title {
  align-items: center;
  gap: 16px;
}

.mood-panel-title .signal-line {
  flex: 1 1 auto;
  min-width: 120px;
}

.mood-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-panel-actions .ghost-button {
  min-width: auto;
  padding: 10px 16px;
  white-space: nowrap;
}

.mood-filter-toggle.active,
.nav-tag-toggle.active {
  color: #001317;
  background: #18e4ff;
  box-shadow: 0 0 22px rgba(24, 228, 255, 0.3);
}

.mood-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  margin: 14px 0 18px 104px;
  padding: 14px;
  border: 1px solid rgba(24, 228, 255, 0.22);
  background: rgba(2, 14, 16, 0.86);
  box-shadow: inset 0 0 28px rgba(24, 228, 255, 0.06);
}

.mood-filter-panel[hidden],
.nav-archive-tag-panel[hidden] {
  display: none !important;
}

.mood-filter-panel label {
  display: grid;
  gap: 7px;
  color: rgba(220, 238, 242, 0.76);
  font-size: 12px;
}

.mood-filter-panel input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(24, 228, 255, 0.24);
  color: #f6feff;
  background: linear-gradient(180deg, rgba(32, 39, 43, 0.96), rgba(9, 23, 26, 0.96));
}

.mood-filter-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-filter-tags button,
.nav-archive-category-strip button,
.nav-archive-tag-panel button,
.nav-tag-toggle,
.nav-archive-expand {
  border: 1px solid rgba(24, 228, 255, 0.24);
  color: rgba(230, 248, 252, 0.86);
  background: linear-gradient(180deg, rgba(31, 38, 43, 0.92), rgba(7, 18, 21, 0.92));
  cursor: pointer;
}

.mood-filter-tags button,
.nav-archive-category-strip button,
.nav-archive-tag-panel button {
  min-height: 32px;
  padding: 0 12px;
}

.mood-filter-tags button.active,
.nav-archive-category-strip button.active,
.nav-archive-tag-panel button.active {
  border-color: var(--nav-filter-color, rgba(24, 228, 255, 0.86));
  color: #18e4ff;
  box-shadow: 0 0 16px rgba(24, 228, 255, 0.18);
}

.mood-timeline {
  gap: 18px;
}

.mood-item {
  grid-template-columns: 66px 16px minmax(0, 1fr);
  column-gap: 16px;
}

.mood-card {
  padding: 18px 0 18px 22px;
}

.mood-card p {
  margin: 8px 0 10px;
  line-height: 1.72;
}

.mood-image-grid {
  width: min(100%, 252px);
  aspect-ratio: 1;
  display: grid;
  gap: 5px;
  margin: 12px 0;
}

.mood-image-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mood-image-count-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
.mood-image-count-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
.mood-image-count-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.mood-image-count-5,
.mood-image-count-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.mood-image-count-7,
.mood-image-count-8,
.mood-image-count-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.mood-image-tile {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 20, 23, 0.84) center / cover no-repeat;
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mood-image-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 228, 255, 0.58);
  box-shadow: 0 0 20px rgba(24, 228, 255, 0.18);
}

.mood-video-tile {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 16 / 10;
  margin: 12px 0;
  overflow: hidden;
  border: 0;
  background: radial-gradient(circle at center, rgba(24, 228, 255, 0.16), rgba(4, 10, 12, 0.9)) center / cover no-repeat;
  cursor: pointer;
}

.mood-video-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
}

.mood-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(2, 10, 12, 0.66);
  box-shadow: 0 0 24px rgba(24, 228, 255, 0.28);
}

.mood-video-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-left: 15px solid #f7fdff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.mood-audio-card {
  position: relative;
  overflow: hidden;
  gap: 14px;
  min-height: 96px;
  border: 1px solid rgba(24, 228, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(24, 228, 255, 0.08), transparent 46%),
    radial-gradient(circle at 12% 50%, rgba(255, 79, 163, 0.18), transparent 34%),
    rgba(4, 12, 15, 0.88);
  box-shadow: inset 0 0 30px rgba(24, 228, 255, 0.07), 0 0 18px rgba(24, 228, 255, 0.06);
}

.mood-audio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(24, 228, 255, 0.08) 0 1px, transparent 1px 8px);
  opacity: 0.38;
  animation: moodLedSweep 3.8s linear infinite;
}

.mood-audio-cover {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 22px rgba(24, 228, 255, 0.18);
}

.mood-audio-card.is-playing .mood-audio-cover {
  animation: moodCoverPulse 1.6s ease-in-out infinite;
}

.mood-audio-card .mini-wave i {
  animation: moodWave 1.2s ease-in-out infinite;
}

.mood-audio-card .mini-wave i:nth-child(2n) {
  animation-duration: 0.9s;
}

.mood-audio-card:not(.is-playing) .mini-wave i {
  animation-play-state: paused;
}

@keyframes moodLedSweep {
  from { transform: translateX(-16px); }
  to { transform: translateX(16px); }
}

@keyframes moodCoverPulse {
  0%, 100% { filter: saturate(1); transform: scale(1); }
  50% { filter: saturate(1.35); transform: scale(1.04); }
}

@keyframes moodWave {
  0%, 100% { transform: scaleY(0.42); opacity: 0.42; }
  50% { transform: scaleY(1); opacity: 1; }
}

.nav-archive-panel {
  position: relative;
  overflow: visible;
}

.nav-archive-panel.is-expanded {
  position: fixed;
  left: 118px;
  right: clamp(360px, 32vw, 520px);
  top: 18px;
  bottom: 84px;
  z-index: 80;
  overflow: auto;
  background: rgba(2, 8, 10, 0.98);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.48), 0 0 48px rgba(24, 228, 255, 0.2);
}

.nav-archive-head {
  align-items: flex-start;
  gap: 14px;
}

.nav-archive-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-archive-titleline strong {
  white-space: nowrap;
}

.nav-tag-toggle,
.nav-archive-expand {
  min-height: 34px;
  padding: 0 12px;
}

.nav-archive-expand {
  margin-left: auto;
  color: #18e4ff;
}

.nav-archive-category-strip,
.nav-archive-tag-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-archive-tag-panel {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid rgba(24, 228, 255, 0.18);
  background: rgba(4, 16, 19, 0.78);
}

.nav-archive-grid {
  display: grid;
  gap: 18px;
}

.nav-group {
  display: grid;
  grid-template-columns: minmax(100px, 132px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-group h3 {
  position: sticky;
  top: 12px;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--nav-group-color, #18e4ff);
  line-height: 1.35;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.nav-links a {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(24, 228, 255, 0.16);
  color: #effcff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(22, 32, 36, 0.78), rgba(5, 16, 19, 0.88));
}

.nav-links a:hover {
  border-color: rgba(24, 228, 255, 0.58);
  box-shadow: 0 0 20px rgba(24, 228, 255, 0.12);
}

.nav-links a::after {
  content: attr(data-nav-description);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(24, 228, 255, 0.32);
  color: #eafcff;
  background: rgba(1, 9, 11, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 18px rgba(24, 228, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-link-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 228, 255, 0.1) center / contain no-repeat;
}

.nav-links a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list[data-admin-list="bookmark"],
[data-admin-list="bookmark"].admin-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-list[data-admin-list="bookmark"] .admin-row,
[data-admin-list="bookmark"].admin-list .admin-row {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
}

.admin-list[data-admin-list="bookmark"] .admin-row-actions,
[data-admin-list="bookmark"].admin-list .admin-row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-admin-access {
  align-self: center;
  margin-top: auto;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .mood-filter-panel {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .nav-archive-panel.is-expanded {
    left: 16px;
    right: 16px;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Nav archive card correction */
.nav-archive-panel .nav-archive-head {
  align-items: center !important;
}

.nav-archive-panel .nav-tag-toggle {
  min-height: 34px;
}

.nav-archive-panel .nav-archive-expand {
  display: grid !important;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  font-size: 0;
}

.nav-archive-panel .nav-archive-expand::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 2px solid #18e4ff;
  border-left: 2px solid #18e4ff;
  transform: translateY(4px) rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(24, 228, 255, 0.62));
}

.nav-archive-panel .nav-archive-expand.is-expanded::before {
  transform: translateY(-3px) rotate(225deg);
}

.nav-archive-panel .nav-archive-tag-panel {
  gap: 6px !important;
  margin: 10px 0 14px !important;
  padding: 8px 10px !important;
}

.nav-archive-panel .nav-archive-tag-panel button {
  min-height: 26px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.nav-archive-panel .nav-archive-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  height: auto !important;
  overflow: visible !important;
}

.nav-archive-panel .nav-group {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
  min-width: 0 !important;
  padding: 10px 0 12px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

.nav-archive-panel .nav-group h3 {
  position: static !important;
  margin: 0 !important;
  padding: 6px 0 6px 12px !important;
  border-left: 3px solid var(--nav-group-color, #18e4ff) !important;
  color: var(--nav-group-color, #18e4ff) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.nav-archive-panel .nav-links {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.nav-archive-panel .nav-links a {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(24, 228, 255, 0.18) !important;
  color: #effcff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, rgba(17, 29, 33, 0.92), rgba(5, 16, 19, 0.96)) !important;
  box-shadow: inset 0 0 18px rgba(24, 228, 255, 0.035);
}

.nav-archive-panel .nav-links a:hover {
  border-color: rgba(24, 228, 255, 0.64) !important;
  color: #18e4ff !important;
  box-shadow: inset 0 0 20px rgba(24, 228, 255, 0.08), 0 0 18px rgba(24, 228, 255, 0.14) !important;
}

.nav-archive-panel .nav-link-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(24, 228, 255, 0.08) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.nav-archive-panel .nav-links a span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

@media (max-width: 1180px) {
  .nav-archive-panel .nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .nav-archive-panel .nav-group {
    grid-template-columns: 1fr !important;
  }

  .nav-archive-panel .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mood audio compact player */
.mood-panel .mood-audio-card.custom-audio-player {
  grid-template-columns: 74px 38px minmax(0, 1fr) 42px !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 74px !important;
  height: 74px !important;
  margin: 10px 0 8px !important;
  padding: 0 12px 0 0 !important;
  border-color: rgba(24, 228, 255, 0.24) !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(24, 228, 255, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(255, 79, 163, 0.08), rgba(24, 228, 255, 0.035) 42%, rgba(4, 12, 15, 0.9)) !important;
  box-shadow: inset 0 0 22px rgba(24, 228, 255, 0.06), 0 0 16px rgba(24, 228, 255, 0.08) !important;
  animation: moodAudioHalo 2.8s ease-in-out infinite;
}

.mood-panel .mood-audio-card::before {
  display: none !important;
}

.mood-panel .mood-audio-card::after {
  content: "";
  position: absolute;
  inset: -22px -18px;
  pointer-events: none;
  background:
    radial-gradient(circle at 42px 50%, rgba(24, 228, 255, 0.24), transparent 26%),
    radial-gradient(circle at 78% 50%, rgba(255, 79, 163, 0.12), transparent 32%);
  opacity: 0.46;
  animation: moodAudioGlow 2.6s ease-in-out infinite;
}

.mood-panel .mood-audio-card .audio-toggle,
.mood-panel .mood-audio-card .mood-audio-cover,
.mood-panel .mood-audio-card .mood-audio-copy,
.mood-panel .mood-audio-card .custom-player-time {
  position: relative;
  z-index: 1;
}

.mood-panel .mood-audio-card .mood-audio-cover {
  order: 0;
  align-self: stretch;
  width: 74px !important;
  height: 74px !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 0 26px rgba(24, 228, 255, 0.24), inset 0 0 18px rgba(0, 0, 0, 0.22) !important;
  animation: moodCoverHalo 2.7s ease-in-out infinite !important;
}

.mood-panel .mood-audio-card .audio-toggle {
  order: 1;
  width: 36px !important;
  height: 36px !important;
  border-color: rgba(24, 228, 255, 0.42) !important;
  background: rgba(2, 13, 16, 0.72) !important;
}

.mood-panel .mood-audio-card .mood-audio-copy {
  order: 2;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mood-panel .mood-audio-card .mood-audio-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.15;
}

.mood-panel .mood-audio-card .mood-audio-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.1;
}

.mood-panel .mood-audio-card .custom-player-progress {
  height: 5px;
}

.mood-panel .mood-audio-card .custom-player-time {
  order: 3;
  justify-self: end;
  font-size: 10px;
  color: rgba(218, 237, 242, 0.62);
}

.mood-panel .mood-audio-card .mini-wave {
  display: none !important;
}

@keyframes moodAudioHalo {
  0%, 100% {
    box-shadow: inset 0 0 18px rgba(24, 228, 255, 0.05), 0 0 12px rgba(24, 228, 255, 0.08);
  }
  50% {
    box-shadow: inset 0 0 28px rgba(24, 228, 255, 0.11), 0 0 26px rgba(24, 228, 255, 0.2);
  }
}

@keyframes moodAudioGlow {
  0%, 100% { opacity: 0.28; transform: scaleX(0.98); }
  50% { opacity: 0.64; transform: scaleX(1.02); }
}

@keyframes moodCoverHalo {
  0%, 100% { filter: saturate(1); box-shadow: 0 0 18px rgba(24, 228, 255, 0.16), inset 0 0 18px rgba(0, 0, 0, 0.22); }
  50% { filter: saturate(1.28); box-shadow: 0 0 32px rgba(24, 228, 255, 0.36), inset 0 0 18px rgba(0, 0, 0, 0.18); }
}

/* Video viewer control bar and close button correction */
.media-video-dialog {
  padding: 48px 34px !important;
}

.media-video-panel {
  position: relative !important;
  overflow: visible !important;
}

.media-video-panel .media-video-close {
  position: absolute !important;
  top: -22px !important;
  right: -22px !important;
  z-index: 20 !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.88) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
  cursor: pointer;
}

.media-video-panel .media-video-close::before,
.media-video-panel .media-video-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.media-video-panel .media-video-close::before {
  transform: rotate(45deg);
}

.media-video-panel .media-video-close::after {
  transform: rotate(-45deg);
}

.media-video-panel .media-video-close:hover {
  background: rgba(0, 0, 0, 0.96) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 20px rgba(255, 255, 255, 0.18) !important;
}

.media-video-panel .video-js.vjs-minimal-archive {
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-tech,
.media-video-panel .video-js.vjs-minimal-archive .vjs-poster {
  overflow: hidden;
  border-radius: 22px;
}

.media-video-panel .video-js.vjs-minimal-archive::after {
  display: none !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-control-bar {
  left: 50% !important;
  right: auto !important;
  bottom: 22px !important;
  z-index: 12 !important;
  display: flex !important;
  align-items: center !important;
  width: min(92%, 720px) !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 6px 8px !important;
  overflow: visible !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.56) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(14px) saturate(1.2);
}

.media-video-panel .video-js.vjs-minimal-archive.vjs-user-inactive.vjs-playing .vjs-control-bar {
  transform: translateX(-50%) scale(0.96) !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-control {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  overflow: visible !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-button > .vjs-icon-placeholder,
.media-video-panel .video-js.vjs-minimal-archive .vjs-button > .vjs-icon-placeholder::before {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-progress-control {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  height: 36px !important;
  padding: 0 8px !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-time-control {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-width: 42px !important;
  padding: 0 6px !important;
  line-height: 1 !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-progress-holder,
.media-video-panel .video-js.vjs-minimal-archive .vjs-volume-bar {
  margin: 0 !important;
}

.media-video-panel .video-js.vjs-minimal-archive .vjs-volume-panel {
  overflow: visible !important;
}

@media (max-width: 720px) {
  .media-video-panel .media-video-close {
    top: -18px !important;
    right: -12px !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .media-video-panel .video-js.vjs-minimal-archive .vjs-control-bar {
    bottom: 14px !important;
    width: calc(100% - 20px) !important;
    min-height: 44px !important;
    height: 44px !important;
  }
}

/* Mood composer vertical publishing layout */
.mood-composer {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
}

.mood-composer .composer-controls,
.mood-composer .composer-primary {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.mood-composer .composer-primary {
  order: 1;
}

.mood-composer .composer-controls {
  order: 2;
}

.mood-composer .field-main,
.mood-composer .field-main textarea {
  width: 100%;
}

.mood-composer .field-main textarea {
  min-height: 92px;
  max-height: none;
  overflow: hidden;
  resize: none;
}

.upload-preview.is-multi-image {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  place-items: stretch;
  min-height: 0;
  padding: 10px;
  background-image: none !important;
  box-shadow: none;
  text-shadow: none;
}

.upload-preview.is-multi-image .upload-preview-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 228, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.upload-preview.is-multi-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mood-composer .mood-video-thumbnail,
.admin-edit-panel[data-edit-type="mood"] .mood-video-thumbnail {
  max-width: 280px;
}

.mood-composer .mood-video-thumbnail .upload-preview,
.admin-edit-panel[data-edit-type="mood"] .mood-video-thumbnail .upload-preview {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

/* Photo uploader split modes */
[data-admin-upload="photo"] .photo-upload-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

[data-admin-upload="photo"] .photo-title-field[hidden],
[data-admin-upload="photo"] .photo-video-thumbnail[hidden],
[data-admin-upload="photo"].is-photo-image-mode .photo-title-field,
[data-admin-upload="photo"].is-photo-image-mode .photo-video-thumbnail {
  display: none !important;
}

[data-admin-upload="photo"] .photo-file-field {
  grid-column: 1 / 3;
  min-width: 0;
}

[data-admin-upload="photo"].is-photo-image-mode .photo-file-field {
  grid-column: 1 / -1;
}

[data-admin-upload="photo"] .photo-video-thumbnail {
  grid-column: 3;
  width: 100%;
  max-width: none;
}

[data-admin-upload="photo"] .photo-video-thumbnail .upload-preview {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

[data-admin-upload="photo"] .photo-file-field .upload-preview.is-multi-image {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.photo-title-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.photo-title-list[hidden] {
  display: none !important;
}

.photo-title-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.photo-title-item span {
  color: rgba(224, 242, 246, 0.72);
  font-size: 12px;
}

.photo-title-item input {
  min-height: 40px;
  font-size: 14px;
}

@media (max-width: 900px) {
  [data-admin-upload="photo"] .photo-upload-form-grid {
    grid-template-columns: 1fr;
  }

  [data-admin-upload="photo"] .photo-file-field,
  [data-admin-upload="photo"] .photo-video-thumbnail {
    grid-column: 1;
  }

  [data-admin-upload="photo"] .photo-file-field .upload-preview.is-multi-image {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  }
}

/* Fixed upload surfaces and memory dashboard */
[data-admin-upload="photo"].is-photo-image-mode .photo-file-field .upload-preview {
  min-height: 178px;
}

[data-admin-upload="photo"].is-photo-video-mode .photo-upload-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-admin-upload="photo"].is-photo-video-mode .photo-file-field,
[data-admin-upload="photo"].is-photo-video-mode .photo-video-thumbnail {
  grid-column: auto;
}

[data-admin-upload="photo"].is-photo-video-mode .photo-file-field .upload-preview,
[data-admin-upload="photo"].is-photo-video-mode .photo-video-thumbnail .upload-preview {
  height: 168px;
  min-height: 168px;
  aspect-ratio: auto;
}

.log-composer .log-meta-summary-column .log-excerpt-row textarea {
  height: 214px !important;
  min-height: 214px !important;
  max-height: 214px !important;
  resize: none !important;
}

.status-command header small {
  color: var(--cyan);
}

.status-command .status-matrix {
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 8px;
}

.status-command .status-matrix article {
  min-height: 54px;
  padding: 8px 10px;
}

.status-command .status-matrix small {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.status-command .status-matrix strong {
  margin-top: 4px;
  font-size: 20px;
}

/* Neon audio deck */
.audio-page .audio-feature {
  grid-template-columns: 110px minmax(0, 1fr) minmax(320px, 0.92fr);
  min-height: 168px;
  align-items: center;
  gap: 18px;
  border-color: rgba(24, 228, 255, 0.32);
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 228, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255, 79, 163, 0.16), transparent 34%),
    linear-gradient(120deg, rgba(2, 8, 12, 0.96), rgba(8, 18, 26, 0.9));
  box-shadow: inset 0 0 36px rgba(24, 228, 255, 0.08), 0 0 30px rgba(24, 228, 255, 0.1);
}

.audio-page .audio-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(24, 228, 255, 0.12) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, transparent, rgba(24, 228, 255, 0.2), transparent);
  opacity: 0.28;
  animation: neonScan 4.8s linear infinite;
}

.audio-page .audio-feature .wave-strip {
  display: none !important;
}

.audio-cover-mini {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(24, 228, 255, 0.24),
    0 0 24px rgba(24, 228, 255, 0.3),
    0 0 42px rgba(255, 79, 163, 0.16);
}

.audio-cover-mini::after {
  content: "";
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: #031017;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.audio-feature-actions {
  position: relative;
  z-index: 1;
}

.audio-page .custom-audio-player,
.immersive-custom {
  position: relative;
  overflow: hidden;
  border-color: rgba(24, 228, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(24, 228, 255, 0.12), rgba(255, 79, 163, 0.08)),
    rgba(1, 8, 13, 0.86);
  box-shadow: inset 0 0 22px rgba(24, 228, 255, 0.08), 0 0 24px rgba(24, 228, 255, 0.16);
}

.audio-page .custom-audio-player::before,
.immersive-custom::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(24, 228, 255, 0.42), transparent);
  opacity: 0.28;
  animation: neonSweep 3.4s linear infinite;
}

.audio-page .audio-toggle,
.immersive-custom .audio-toggle {
  border-color: rgba(24, 228, 255, 0.7);
  background: radial-gradient(circle, rgba(24, 228, 255, 0.24), rgba(0, 0, 0, 0.32));
  box-shadow: 0 0 18px rgba(24, 228, 255, 0.36);
}

.custom-player-progress,
.custom-volume input {
  accent-color: #18e4ff;
}

.immersive-player {
  background:
    radial-gradient(circle at 18% 22%, rgba(24, 228, 255, 0.16), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(255, 79, 163, 0.14), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(93, 76, 255, 0.16), transparent 34%),
    #010308;
}

.cosmic-particles {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle, rgba(24, 228, 255, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 79, 163, 0.74) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px);
  background-size: 96px 96px, 132px 132px, 180px 180px;
  opacity: 0.36;
  filter: drop-shadow(0 0 10px rgba(24, 228, 255, 0.7));
  animation: particleDrift 24s linear infinite;
}

.immersive-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.immersive-stage {
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 0.9fr) minmax(260px, 0.7fr);
  grid-template-rows: minmax(0, 1fr);
  padding: 28px;
  border: 1px solid rgba(24, 228, 255, 0.24);
  background: rgba(0, 8, 12, 0.42);
  box-shadow: inset 0 0 60px rgba(24, 228, 255, 0.08), 0 0 80px rgba(24, 228, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.25);
}

.cd-disc {
  background-image:
    radial-gradient(circle at center, #02080d 0 13%, rgba(255, 255, 255, 0.86) 13% 15%, transparent 15%),
    var(--disc-cover, radial-gradient(circle, rgba(24, 228, 255, 0.4), rgba(255, 79, 163, 0.2))),
    conic-gradient(from 10deg, rgba(24, 228, 255, 0.9), rgba(182, 108, 255, 0.8), rgba(255, 176, 0, 0.85), rgba(24, 228, 255, 0.9));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.82), 0 0 42px rgba(24, 228, 255, 0.32), 0 0 84px rgba(255, 79, 163, 0.2);
}

.immersive-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(24, 228, 255, 0.22);
  background: linear-gradient(180deg, rgba(24, 228, 255, 0.08), rgba(255, 79, 163, 0.035));
}

.immersive-audio-list {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 100%;
  overflow: auto;
  padding-right: 6px;
}

.immersive-audio-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(24, 228, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
}

.immersive-audio-list button.active,
.immersive-audio-list button:hover {
  border-color: rgba(24, 228, 255, 0.58);
  background: rgba(24, 228, 255, 0.12);
  box-shadow: 0 0 24px rgba(24, 228, 255, 0.12);
}

.immersive-audio-list span {
  grid-row: span 2;
  color: var(--cyan);
  font-family: var(--mono);
}

.immersive-audio-list strong,
.immersive-audio-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.immersive-wave {
  display: none !important;
}

@keyframes neonScan {
  to { background-position: 160px 0, 260px 0; }
}

@keyframes neonSweep {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

@keyframes particleDrift {
  to { transform: translate3d(8%, 6%, 0) rotate(2deg); }
}

/* Audio upload cover preview */
.audio-upload-composer .audio-upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "title artist album"
    "playlist visibility cover"
    "file file cover";
  align-items: start;
}

.audio-upload-composer .audio-upload-grid > label:nth-of-type(1) {
  grid-area: title;
}

.audio-upload-composer .audio-upload-grid > label:nth-of-type(2) {
  grid-area: artist;
}

.audio-upload-composer .audio-upload-grid > label:nth-of-type(3) {
  grid-area: album;
}

.audio-upload-composer .audio-upload-grid > label:nth-of-type(4) {
  grid-area: playlist;
}

.audio-upload-composer .audio-upload-grid > label:nth-of-type(5) {
  grid-area: visibility;
}

.audio-upload-composer .audio-cover-field {
  grid-area: cover;
  width: min(100%, 240px);
  justify-self: start;
}

.audio-upload-composer .audio-cover-field .upload-preview {
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.audio-upload-composer .audio-cover-field .upload-preview.has-preview {
  min-height: 220px;
  padding: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  align-items: end;
}

.audio-upload-composer .audio-upload-grid > .wide-field {
  grid-area: file;
}

@media (max-width: 900px) {
  .audio-upload-composer .audio-upload-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "artist"
      "album"
      "playlist"
      "visibility"
      "cover"
      "file";
  }

  .audio-upload-composer .audio-cover-field {
    width: 220px;
  }
}

/* Final audio player pass: restrained LED controls, no large decorative glow panels. */
.audio-page {
  grid-template-rows: auto minmax(0, 1fr) 88px !important;
}

.audio-page .audio-feature {
  position: relative;
  grid-template-columns: 68px minmax(0, 1fr) minmax(420px, 0.95fr) !important;
  min-height: 88px !important;
  height: 88px;
  gap: 14px !important;
  padding: 12px 16px !important;
  overflow: visible;
  border: 1px solid rgba(238, 246, 247, 0.13) !important;
  border-radius: 6px;
  background: rgba(4, 9, 12, 0.82) !important;
  box-shadow: inset 0 0 0 1px rgba(24, 228, 255, 0.045) !important;
}

.audio-page .audio-feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid rgba(24, 228, 255, 0.24);
  border-radius: inherit;
  background: none !important;
  opacity: 0.54;
  animation: audioLedBreath 3.2s ease-in-out infinite;
}

.audio-page .audio-feature::after,
.audio-page .custom-audio-player::before,
.immersive-custom::before,
.audio-page .audio-feature .wave-strip,
.immersive-wave,
.cosmic-particles {
  display: none !important;
}

.audio-page .audio-cover-mini {
  position: relative;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  border-radius: 50%;
  border: 1px solid rgba(238, 246, 247, 0.14);
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 0 16px rgba(24, 228, 255, 0.16);
}

.audio-page .audio-cover-mini::after {
  inset: 38%;
  border-color: rgba(238, 246, 247, 0.64);
  background: #03090c;
}

.audio-page .audio-cover-mini span {
  border-radius: 50%;
  opacity: 0.42;
  background:
    radial-gradient(circle at center, transparent 0 37%, rgba(24, 228, 255, 0.22) 39% 41%, transparent 43%),
    conic-gradient(from 120deg, rgba(24, 228, 255, 0.45), rgba(238, 246, 247, 0.08), rgba(24, 228, 255, 0.28), rgba(238, 246, 247, 0.08));
  animation: cd-spin 14s linear infinite;
}

.audio-page .audio-feature-copy {
  min-width: 0;
  gap: 4px !important;
}

.audio-page .audio-feature-copy small {
  color: rgba(24, 228, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.audio-page .audio-feature-copy strong {
  max-width: 100%;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.audio-page .audio-feature-copy span {
  color: rgba(238, 246, 247, 0.58);
  font-size: 12px;
}

.audio-page .audio-feature-actions {
  position: relative;
  z-index: 1;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.audio-page .custom-audio-player.compact,
.immersive-player .custom-audio-player {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px !important;
  overflow: visible !important;
  border: 1px solid rgba(238, 246, 247, 0.14) !important;
  border-radius: 6px;
  background: rgba(2, 8, 11, 0.72) !important;
  box-shadow: inset 0 0 0 1px rgba(24, 228, 255, 0.045) !important;
}

.audio-page .custom-audio-player.compact {
  max-width: none;
}

.audio-page .audio-toggle,
.immersive-player .audio-toggle {
  flex: 0 0 38px;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(24, 228, 255, 0.46) !important;
  border-radius: 50%;
  background: rgba(2, 13, 16, 0.8) !important;
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(24, 228, 255, 0.18);
  animation: audioButtonBreath 2.8s ease-in-out infinite;
}

.audio-page .play-icon,
.immersive-player .play-icon {
  margin-left: 3px;
  border-left-color: currentColor;
}

.audio-page .custom-audio-player.is-playing .play-icon,
.immersive-player .custom-audio-player.is-playing .play-icon {
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

.audio-page .custom-player-main,
.immersive-player .custom-player-main {
  flex: 1 1 auto;
  min-width: 120px;
  display: grid;
  gap: 4px;
}

.audio-page .custom-player-meta,
.immersive-player .custom-player-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(238, 246, 247, 0.55);
  font-size: 10px;
  line-height: 1;
}

.audio-page .custom-player-progress,
.immersive-player .custom-player-progress,
.audio-page .custom-volume input,
.immersive-player .custom-volume input {
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

.audio-page .custom-player-progress,
.immersive-player .custom-player-progress {
  --progress-fill: 0%;
}

.audio-page .custom-volume input,
.immersive-player .custom-volume input {
  --volume-fill: 82%;
}

.audio-page .custom-player-progress::-webkit-slider-runnable-track,
.immersive-player .custom-player-progress::-webkit-slider-runnable-track,
.audio-page .custom-volume input::-webkit-slider-runnable-track,
.immersive-player .custom-volume input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(24, 228, 255, 0.92) 0 var(--progress-fill, var(--volume-fill, 0%)), rgba(238, 246, 247, 0.22) var(--progress-fill, var(--volume-fill, 0%)) 100%);
  box-shadow: 0 0 10px rgba(24, 228, 255, 0.16);
}

.audio-page .custom-player-progress::-moz-range-track,
.immersive-player .custom-player-progress::-moz-range-track,
.audio-page .custom-volume input::-moz-range-track,
.immersive-player .custom-volume input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(238, 246, 247, 0.22);
}

.audio-page .custom-player-progress::-webkit-slider-thumb,
.immersive-player .custom-player-progress::-webkit-slider-thumb,
.audio-page .custom-volume input::-webkit-slider-thumb,
.immersive-player .custom-volume input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  -webkit-appearance: none;
  border: 2px solid rgba(238, 246, 247, 0.92);
  border-radius: 50%;
  background: rgba(4, 9, 12, 0.96);
  box-shadow: 0 0 12px rgba(24, 228, 255, 0.4);
}

.audio-page .custom-player-progress::-moz-range-thumb,
.immersive-player .custom-player-progress::-moz-range-thumb,
.audio-page .custom-volume input::-moz-range-thumb,
.immersive-player .custom-volume input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(238, 246, 247, 0.92);
  border-radius: 50%;
  background: rgba(4, 9, 12, 0.96);
  box-shadow: 0 0 12px rgba(24, 228, 255, 0.4);
}

.audio-page .custom-volume,
.immersive-player .custom-volume {
  flex: 0 0 118px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 92px;
}

.audio-page .custom-volume span,
.immersive-player .custom-volume span {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(24, 228, 255, 0.62);
  border-radius: 2px;
  background: rgba(24, 228, 255, 0.12);
  box-shadow: 0 0 10px rgba(24, 228, 255, 0.28);
}

.audio-page .immersive-entry {
  flex: 0 0 70px;
  min-height: 42px;
  border-color: rgba(24, 228, 255, 0.34);
  border-radius: 6px;
  background: rgba(2, 13, 16, 0.72);
  box-shadow: 0 0 14px rgba(24, 228, 255, 0.1);
}

.immersive-player {
  place-items: end center !important;
  padding: 0 5vw 7vh;
  background:
    radial-gradient(circle at 28% 28%, rgba(24, 228, 255, 0.09), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(238, 246, 247, 0.045), transparent 36%),
    #010308 !important;
}

.immersive-player .star-sky {
  opacity: 0.22;
  filter: blur(0.2px);
}

.immersive-player .immersive-close {
  top: 24px;
  right: 28px;
}

.immersive-stage {
  width: min(980px, 86vw) !important;
  height: auto !important;
  min-height: 206px;
  display: grid !important;
  grid-template-columns: 148px minmax(0, 1fr) 64px !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "disc copy toggle"
    "list list list";
  gap: 18px;
  align-items: center;
  padding: 22px !important;
  overflow: visible;
  border: 1px solid rgba(238, 246, 247, 0.12) !important;
  border-radius: 8px;
  background: rgba(3, 8, 11, 0.74) !important;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(24, 228, 255, 0.04) !important;
  backdrop-filter: blur(18px) saturate(1.12);
  transform: translateY(0);
  transition: transform 220ms ease, min-height 220ms ease;
}

.immersive-stage::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid rgba(24, 228, 255, 0.22);
  border-radius: inherit;
  opacity: 0.5;
  animation: audioLedBreath 3.4s ease-in-out infinite;
}

.immersive-stage.is-list-open {
  min-height: 468px;
  transform: translateY(-7vh);
}

.immersive-stage .cd-orbit {
  grid-area: disc;
}

.immersive-stage .cd-disc {
  width: 136px !important;
  height: 136px !important;
  animation-duration: 18s;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.78), 0 0 30px rgba(24, 228, 255, 0.18) !important;
}

.immersive-copy {
  grid-area: copy;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.immersive-copy small {
  color: rgba(24, 228, 255, 0.88);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.immersive-copy h2 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 500;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.immersive-copy p {
  margin: 0;
  color: rgba(238, 246, 247, 0.58);
  font-size: 14px !important;
}

.immersive-player .immersive-custom {
  max-width: 100%;
}

.immersive-list-toggle {
  position: relative;
  z-index: 1;
  grid-area: toggle;
  width: 54px;
  height: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(24, 228, 255, 0.42);
  border-radius: 50%;
  background: rgba(2, 13, 16, 0.72);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(24, 228, 255, 0.14);
  animation: audioButtonBreath 3s ease-in-out infinite;
}

.immersive-list-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.immersive-list-toggle b,
.immersive-list-toggle b::before,
.immersive-list-toggle b::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(24, 228, 255, 0.36);
}

.immersive-list-toggle b {
  position: relative;
}

.immersive-list-toggle b::before,
.immersive-list-toggle b::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.immersive-list-toggle b::before {
  transform: translateY(-7px);
}

.immersive-list-toggle b::after {
  transform: translateY(7px);
}

.immersive-stage.is-list-open .immersive-list-toggle b {
  transform: rotate(45deg);
}

.immersive-stage.is-list-open .immersive-list-toggle b::before {
  opacity: 0;
}

.immersive-stage.is-list-open .immersive-list-toggle b::after {
  transform: rotate(90deg);
}

.immersive-list-shell {
  grid-area: list;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.immersive-stage.is-list-open .immersive-list-shell {
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
}

.immersive-playlist-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 0 12px;
}

.immersive-playlist-strip button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(238, 246, 247, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 246, 247, 0.72);
  font-size: 12px;
}

.immersive-playlist-strip button.active,
.immersive-playlist-strip button:hover {
  border-color: rgba(24, 228, 255, 0.46);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(24, 228, 255, 0.12);
}

.immersive-audio-list {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
  max-height: 190px !important;
  overflow: auto;
  padding: 0 4px 2px 0 !important;
}

.immersive-audio-list button {
  min-height: 58px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 4px 10px !important;
  align-items: center;
  padding: 9px 10px !important;
  border-color: rgba(238, 246, 247, 0.11) !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.028) !important;
  box-shadow: none !important;
}

.immersive-audio-list button[hidden] {
  display: none !important;
}

.immersive-audio-list button.active,
.immersive-audio-list button:hover {
  border-color: rgba(24, 228, 255, 0.46) !important;
  background: rgba(24, 228, 255, 0.075) !important;
  box-shadow: 0 0 16px rgba(24, 228, 255, 0.1) !important;
}

.immersive-audio-list span {
  grid-row: 1 / span 2;
  color: var(--cyan);
  font-size: 12px;
}

.immersive-audio-list strong {
  font-size: 13px;
}

.immersive-audio-list small {
  color: rgba(238, 246, 247, 0.52);
  font-size: 11px;
}

@keyframes audioLedBreath {
  0%, 100% {
    opacity: 0.34;
    box-shadow: 0 0 10px rgba(24, 228, 255, 0.06);
  }
  50% {
    opacity: 0.84;
    box-shadow: 0 0 20px rgba(24, 228, 255, 0.18);
  }
}

@keyframes audioButtonBreath {
  0%, 100% {
    box-shadow: 0 0 10px rgba(24, 228, 255, 0.14);
  }
  50% {
    box-shadow: 0 0 22px rgba(24, 228, 255, 0.34);
  }
}

@media (max-width: 1180px) {
  .audio-page .audio-feature {
    grid-template-columns: 60px minmax(0, 1fr) minmax(320px, 0.95fr) !important;
  }

  .audio-page .custom-volume,
  .immersive-player .custom-volume {
    flex-basis: 96px;
  }

  .immersive-audio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .audio-page {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  .audio-page .audio-feature {
    height: auto;
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  .audio-page .audio-feature-actions {
    grid-column: 1 / -1;
  }

  .immersive-stage {
    width: min(94vw, 720px) !important;
    grid-template-columns: 92px minmax(0, 1fr) 50px !important;
    padding: 16px !important;
  }

  .immersive-stage .cd-disc {
    width: 86px !important;
    height: 86px !important;
  }

  .immersive-audio-list {
    grid-template-columns: 1fr;
  }
}

/* Surface polish: softer shell, glass menu, refined audio controls. */
.archive-shell {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(24, 228, 255, 0.026), transparent 34%),
    linear-gradient(300deg, rgba(255, 79, 163, 0.018), transparent 38%),
    #05080a !important;
}

.archive-shell::before,
.archive-shell::after {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  filter: blur(54px);
  transform: translate3d(0, 0, 0);
}

.archive-shell::before {
  background:
    conic-gradient(from 140deg at 42% 46%, transparent 0 18%, rgba(24, 228, 255, 0.12) 28%, transparent 42%, rgba(45, 255, 149, 0.055) 58%, transparent 72%),
    linear-gradient(115deg, transparent 18%, rgba(238, 246, 247, 0.045), transparent 64%);
  animation: shellBlurDrift 18s ease-in-out infinite alternate;
}

.archive-shell::after {
  background:
    conic-gradient(from 24deg at 64% 48%, transparent 0 24%, rgba(255, 79, 163, 0.08) 36%, transparent 52%, rgba(182, 108, 255, 0.07) 66%, transparent 84%);
  opacity: 0.24;
  animation: shellBlurDriftAlt 24s ease-in-out infinite alternate;
}

.archive-shell > * {
  position: relative;
  z-index: 1;
}

.archive-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018)),
    rgba(3, 9, 12, 0.54) !important;
  box-shadow:
    inset -1px 0 0 rgba(238, 246, 247, 0.08),
    inset 0 0 42px rgba(24, 228, 255, 0.035);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
}

.archive-menu .archive-mark,
.archive-menu .menu-admin-access {
  background: rgba(5, 15, 18, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.archive-menu .menu-item {
  background: rgba(255, 255, 255, 0.006);
}

.archive-menu .menu-item:hover,
.archive-menu .menu-item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-accent) 18%, transparent), rgba(255, 255, 255, 0.018) 58%, transparent) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.podcast-selector {
  gap: 7px !important;
  align-items: center;
  min-height: 34px;
  padding: 0 0 6px !important;
  scrollbar-width: thin;
}

.podcast-selector button {
  min-width: auto !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 0 10px !important;
  border-color: rgba(238, 246, 247, 0.12) !important;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.026) !important;
  color: rgba(238, 246, 247, 0.72) !important;
  font-size: 12px;
  line-height: 1;
  box-shadow: none !important;
}

.podcast-selector button strong {
  max-width: 138px;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podcast-selector span {
  color: rgba(238, 246, 247, 0.42) !important;
  font-size: 10px !important;
}

.podcast-selector button.active,
.podcast-selector button:hover {
  border-color: rgba(24, 228, 255, 0.44) !important;
  background: rgba(24, 228, 255, 0.075) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 14px rgba(24, 228, 255, 0.08) !important;
}

.audio-page .custom-player-progress:focus,
.audio-page .custom-player-progress:focus-visible,
.audio-page .custom-volume input:focus,
.audio-page .custom-volume input:focus-visible,
.immersive-player .custom-player-progress:focus,
.immersive-player .custom-player-progress:focus-visible,
.immersive-player .custom-volume input:focus,
.immersive-player .custom-volume input:focus-visible {
  outline: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.audio-page .custom-player-progress::-moz-focus-outer,
.audio-page .custom-volume input::-moz-focus-outer,
.immersive-player .custom-player-progress::-moz-focus-outer,
.immersive-player .custom-volume input::-moz-focus-outer {
  border: 0;
}

.audio-page .custom-player-progress::-webkit-slider-runnable-track,
.immersive-player .custom-player-progress::-webkit-slider-runnable-track,
.audio-page .custom-volume input::-webkit-slider-runnable-track,
.immersive-player .custom-volume input::-webkit-slider-runnable-track {
  height: 3px !important;
  background:
    linear-gradient(90deg, rgba(24, 228, 255, 0.86) 0 var(--progress-fill, var(--volume-fill, 0%)), rgba(238, 246, 247, 0.16) var(--progress-fill, var(--volume-fill, 0%)) 100%) !important;
  box-shadow: 0 0 8px rgba(24, 228, 255, 0.12) !important;
}

.audio-page .custom-player-progress::-webkit-slider-thumb,
.immersive-player .custom-player-progress::-webkit-slider-thumb,
.audio-page .custom-volume input::-webkit-slider-thumb,
.immersive-player .custom-volume input::-webkit-slider-thumb {
  width: 12px !important;
  height: 12px !important;
  margin-top: -4.5px !important;
  border: 1px solid rgba(238, 246, 247, 0.86) !important;
  background: rgba(3, 10, 13, 0.98) !important;
  box-shadow: 0 0 10px rgba(24, 228, 255, 0.32) !important;
}

.audio-page .custom-volume,
.immersive-player .custom-volume {
  gap: 9px !important;
}

.audio-page .custom-volume span,
.immersive-player .custom-volume span {
  position: relative;
  flex: 0 0 17px !important;
  width: 17px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cyan);
}

.audio-page .custom-volume span::before,
.immersive-player .custom-volume span::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 10px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 28%, 38% 28%, 78% 0, 78% 100%, 38% 72%, 0 72%);
  filter: drop-shadow(0 0 7px rgba(24, 228, 255, 0.45));
}

.audio-page .custom-volume span::after,
.immersive-player .custom-volume span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 8px;
  height: 10px;
  border: 1px solid currentColor;
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 999px 999px 0;
  opacity: 0.72;
  filter: drop-shadow(0 0 7px rgba(24, 228, 255, 0.34));
}

.immersive-player {
  place-items: end center !important;
  padding-bottom: 8vh;
}

.immersive-stage {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.immersive-stage::before {
  display: none !important;
}

.immersive-stage .cd-disc {
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.78),
    0 0 34px rgba(24, 228, 255, 0.22) !important;
}

.immersive-player .custom-audio-player {
  background: rgba(2, 8, 11, 0.58) !important;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

@keyframes shellBlurDrift {
  from { transform: translate3d(-1.5%, -1%, 0) rotate(-2deg) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) rotate(2deg) scale(1.04); }
}

@keyframes shellBlurDriftAlt {
  from { transform: translate3d(2%, -1%, 0) rotate(3deg) scale(1.02); }
  to { transform: translate3d(-1%, 2%, 0) rotate(-2deg) scale(1.06); }
}

/* Immersive player v1: image backdrop, visualizer stage, playlist expands from dock. */
.immersive-background-upload-card i {
  flex: 0 0 108px;
  width: 108px;
  height: 68px;
  border: 1px solid rgba(24, 228, 255, 0.24);
  background:
    radial-gradient(circle at 28% 24%, rgba(24, 228, 255, 0.28), transparent 36%),
    radial-gradient(circle at 70% 62%, rgba(255, 79, 163, 0.2), transparent 42%),
    rgba(5, 12, 16, 0.92);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.38);
}

.immersive-player {
  --immersive-bg-image: none;
  place-items: stretch !important;
  padding: 0 !important;
  background: #02040a !important;
}

.immersive-player .immersive-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62) 74%, rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 36%, rgba(24, 228, 255, 0.16), transparent 32%),
    radial-gradient(circle at 72% 42%, rgba(255, 79, 163, 0.18), transparent 36%),
    var(--immersive-bg-image),
    linear-gradient(115deg, #061c38, #16092f 48%, #03131f);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.immersive-player .immersive-backdrop::before,
.immersive-player .immersive-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.immersive-player .immersive-backdrop::before {
  background:
    radial-gradient(ellipse at 34% 22%, rgba(0, 213, 255, 0.4), transparent 32%),
    radial-gradient(ellipse at 66% 34%, rgba(190, 0, 255, 0.38), transparent 34%),
    linear-gradient(115deg, transparent 20%, rgba(24, 228, 255, 0.13), transparent 58%);
  filter: blur(18px);
  opacity: 0.72;
  animation: immersiveAuroraShift 18s ease-in-out infinite alternate;
}

.immersive-player .immersive-backdrop::after {
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 26%, rgba(24, 228, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38% 76%, rgba(255, 79, 163, 0.68) 0 1px, transparent 1.6px);
  background-size: 96px 96px, 142px 142px, 174px 174px;
  opacity: 0.38;
  animation: immersiveStarDrift 32s linear infinite;
}

.immersive-player .star-sky,
.immersive-player .cosmic-particles {
  display: none !important;
}

.immersive-top-actions {
  position: fixed;
  z-index: 4;
  top: 26px;
  right: 30px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.immersive-background-switch {
  position: relative;
}

.immersive-background-toggle,
.immersive-close {
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid rgba(238, 246, 247, 0.18) !important;
  background: rgba(4, 10, 18, 0.54) !important;
  color: rgba(238, 246, 247, 0.9) !important;
  box-shadow: 0 0 18px rgba(24, 228, 255, 0.08) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.immersive-background-toggle {
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}

.immersive-close {
  position: static !important;
  width: 38px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
}

.immersive-background-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 6px;
  min-width: 138px;
  padding: 8px;
  border: 1px solid rgba(238, 246, 247, 0.16);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.immersive-background-menu[hidden] {
  display: none !important;
}

.immersive-background-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(238, 246, 247, 0.72);
  padding: 0 10px;
  text-align: left;
  font-size: 12px;
}

.immersive-background-menu button.active,
.immersive-background-menu button:hover:not(:disabled) {
  color: var(--cyan);
  background: rgba(24, 228, 255, 0.1);
}

.immersive-background-menu button:disabled {
  cursor: default;
  opacity: 0.38;
}

.immersive-player .immersive-stage {
  position: relative;
  z-index: 1;
  width: min(860px, 72vw) !important;
  height: 230px !important;
  min-height: 0 !important;
  place-self: center;
  align-self: center;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  pointer-events: none;
  transform: translateY(-12vh);
}

.immersive-spectrum {
  width: min(760px, 70vw);
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  padding-bottom: 28px;
  -webkit-box-reflect: below -24px linear-gradient(transparent, rgba(0, 0, 0, 0.28));
}

.immersive-spectrum i {
  width: 5px;
  min-height: 14px;
  border-radius: 8px 8px 1px 1px;
  background: linear-gradient(180deg, #ff4fa3 0%, #b66cff 48%, #18e4ff 100%);
  box-shadow: 0 0 16px rgba(24, 228, 255, 0.32);
  opacity: 0.72;
  animation: immersiveWaveIdle 1.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--bar-index, 0) * -40ms);
}

.immersive-spectrum i:nth-child(3n) {
  background: linear-gradient(180deg, #18e4ff, #2e8cff);
  animation-duration: 1.25s;
}

.immersive-spectrum i:nth-child(5n) {
  background: linear-gradient(180deg, #ff4fa3, #b66cff);
  animation-duration: 1.9s;
}

.immersive-bottom-stack {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: clamp(24px, 4vh, 44px);
  width: min(1040px, calc(100vw - 64px));
  display: grid;
  gap: 0;
  transform: translateX(-50%);
}

.immersive-bottom-stack .immersive-list-shell {
  grid-area: auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: max-height 260ms ease, opacity 180ms ease, transform 260ms ease;
}

.immersive-bottom-stack.is-list-open .immersive-list-shell {
  max-height: min(360px, 42vh);
  opacity: 1;
  transform: translateY(0);
}

.immersive-bottom-stack .immersive-list-shell {
  border: 1px solid rgba(238, 246, 247, 0.1);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(5, 10, 20, 0.7);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.immersive-dock {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(420px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(238, 246, 247, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(24, 228, 255, 0.075), rgba(255, 79, 163, 0.045)),
    rgba(5, 10, 20, 0.54);
  box-shadow: 0 16px 58px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.immersive-now {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.immersive-now .cd-disc {
  width: 60px !important;
  height: 60px !important;
  animation-duration: 18s;
}

.immersive-dock .immersive-copy {
  gap: 3px;
}

.immersive-dock .immersive-copy h2 {
  max-width: 100%;
  font-size: 18px !important;
}

.immersive-dock .immersive-copy p {
  font-size: 12px !important;
}

.immersive-player .immersive-custom {
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 14px !important;
}

.immersive-player .immersive-custom .audio-toggle {
  flex-basis: 42px;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  min-height: 42px;
}

.immersive-dock .immersive-list-toggle {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid rgba(24, 228, 255, 0.58);
  background: rgba(5, 16, 24, 0.6);
  color: var(--cyan);
  animation: none;
}

.immersive-dock .immersive-list-toggle span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

.immersive-dock .immersive-list-toggle b {
  display: none;
}

.immersive-playlist-strip {
  padding: 16px 20px 10px !important;
}

.immersive-audio-list {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-height: min(286px, 34vh) !important;
  padding: 0 20px 16px !important;
}

.immersive-audio-list button {
  min-height: 46px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, 0.42fr) !important;
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.immersive-audio-list button small {
  justify-self: end;
}

@keyframes immersiveAuroraShift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.58; }
  to { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 0.86; }
}

@keyframes immersiveStarDrift {
  to { background-position: 96px 96px, -142px 142px, 174px -174px; }
}

@keyframes immersiveWaveIdle {
  from { transform: scaleY(0.52); opacity: 0.46; }
  to { transform: scaleY(1.04); opacity: 0.92; }
}

@media (max-width: 860px) {
  .immersive-dock {
    grid-template-columns: 1fr auto;
  }

  .immersive-player .immersive-custom {
    grid-column: 1 / -1;
    order: 3;
  }

  .immersive-audio-list button {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  .immersive-audio-list button small {
    justify-self: start;
  }
}
