.page-header,
.app-layout {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 22px 0 14px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 16px;
  align-items: start;
}

.main-panel,
.side-panel {
  min-width: 0;
}

.player-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
}

#yt-player {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .page-header {
    display: block;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    min-height: auto;
  }
}

.side-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 14px;
}

.primary-tab-header,
.tab-header {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.primary-tab-button,
.tab-button {
  flex: 1;
  border-radius: 14px 14px 8px 8px;
}

.tab-button {
  padding: .7rem .65rem;
  font-size: .9rem;
  line-height: 1.35;
}

.tab-content {
  flex: 1;
  overflow-y: auto;
}

.feature-layer,
.tab-pane,
.utility-pane {
  display: none;
}

.feature-layer.active,
.tab-pane.active,
.utility-pane.active {
  display: block;
}

/* =========================
   タブ切替
========================= */

/* activeボタン */
.primary-tab-button.active,
.tab-button.active {
  font-weight: bold;
  border-bottom: 2px solid #333;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 72px;
  color: #f4f0ff;
  background:
    radial-gradient(circle at 20% 0%, rgba(174, 137, 255, 0.28), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(129, 218, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #070713 0%, #111029 55%, #080815 100%);
  font-family: system-ui, sans-serif;
}

.site-title {
  font-size: 2rem;
  letter-spacing: .08em;
  color: #f4efff;
  text-shadow: 0 0 14px rgba(180, 130, 255, .75);
}

.player-card,
.track-info-card,
.side-panel,
.status-row {
  background: rgba(20, 18, 45, .72);
  border: 1px solid rgba(205, 185, 255, .28);
  border-radius: 22px;
  box-shadow:
    0 0 24px rgba(144, 102, 255, .18),
    inset 0 0 20px rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
}

.player-card {
  padding: 14px;
}

.player-wrapper {
  overflow: hidden;
  border-radius: 18px;
  background: #05050c;
}

.track-info-card {
  margin-top: 16px;
  padding: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  line-height: 1.5;
}

.playback-status {
  flex: 0 0 auto;
  color: var(--theme-ice, #bdeaff);
  font-size: .82rem;
}

.playback-status::before {
  content: "●";
  margin-right: 6px;
  font-size: .65em;
}

.playback-status.error {
  color: #ffc4da;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box button {
  min-width: 5.5em;
}

.favorite-controls {
  margin-bottom: 16px;
}

.track-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(220, 210, 255, .12);
}

.track-row:last-child {
  border-bottom: 0;
}

.track-row.buttons {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

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

.url-area .long {
  overflow-wrap: anywhere;
}

#open-youtube,
#copy-share {
  width: auto;
  min-width: 6.5em;
  padding: .55rem .85rem;
  white-space: nowrap;
}

.label {
  color: #a9dbff;
  font-size: .85rem;
}

.value {
  color: #fff;
}

button {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(215, 195, 255, .32);
  border-radius: 999px;
  padding: .65rem 1.1rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(182, 130, 255, .32);
}

button:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(205, 185, 255, .14);
}

.pagination-status {
  min-width: 64px;
  color: #cfc7ee;
  text-align: center;
}

.tab-button.active,
.rest-button {
  background: linear-gradient(135deg, #8d6bff, #f19bdc);
  box-shadow: 0 0 20px rgba(190, 130, 255, .42);
}

.primary-tab-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(205, 185, 255, .18);
}

.primary-tab-button {
  font-size: 1rem;
}

.primary-tab-button.active {
  background: linear-gradient(135deg, #6d8cff, #ba7cff);
  box-shadow: 0 0 20px rgba(140, 125, 255, .35);
}

.utility-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.utility-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  text-align: left;
  border-radius: 16px;
}

.utility-menu-card strong {
  color: #fff;
}

.utility-menu-card span {
  color: #cfc7ee;
  font-size: .8rem;
}

.utility-menu-card.active {
  background: linear-gradient(135deg, rgba(109, 140, 255, .42), rgba(186, 124, 255, .35));
  border-color: rgba(215, 195, 255, .62);
  box-shadow: 0 0 18px rgba(140, 125, 255, .24);
}

.utility-content {
  border-top: 1px solid rgba(205, 185, 255, .18);
  padding-top: 14px;
}

.utility-card {
  padding: 16px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 16px;
}

.utility-card h3 {
  margin-top: 0;
}

.utility-card p {
  color: #cfc7ee;
  line-height: 1.7;
}

.welcome-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(205, 185, 255, .16);
}

.welcome-section h4 {
  margin: 0 0 10px;
  color: #a9dbff;
}

.welcome-section ul {
  margin: 0;
  padding-left: 1.3rem;
  color: #cfc7ee;
  line-height: 1.8;
}

.thanks-links {
  display: grid;
  gap: 10px;
}

.thanks-links > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .035);
  border-radius: 12px;
}

.thanks-links strong {
  margin-right: auto;
}

.thanks-links a {
  color: #a9dbff;
}

.social-link-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.social-link-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(205, 185, 255, .18);
  border-radius: 16px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.social-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 195, 255, .48);
  box-shadow: 0 0 18px rgba(150, 120, 255, .22);
}

.social-link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: bold;
  background: rgba(255, 255, 255, .08);
  border-radius: 14px;
}

.social-youtube .social-link-icon {
  color: #fff;
  background: rgba(255, 65, 85, .65);
}

.social-tiktok .social-link-icon {
  color: #fff;
  background: linear-gradient(135deg, #24d7d3, #ef4b91);
}

.social-profile .social-link-icon {
  color: #fff;
  background: linear-gradient(135deg, #638cff, #c36fe8);
}

.social-link-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.social-link-text small {
  overflow: hidden;
  color: #cfc7ee;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link-arrow {
  color: #a9dbff;
  font-size: 1.2rem;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.gallery-toolbar select {
  min-width: 0;
  color: #fff;
  background: #201d3d;
  border: 1px solid rgba(205, 185, 255, .28);
  border-radius: 999px;
  padding: .75rem 1rem;
}

.gallery-count {
  flex: 0 0 auto;
  color: #a9dbff;
  font-size: .85rem;
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thumbnail-gallery > .pagination {
  grid-column: 1 / -1;
}

.thumbnail-card {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 14px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.thumbnail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 195, 255, .48);
  box-shadow: 0 0 18px rgba(150, 120, 255, .2);
}

.thumbnail-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #070713;
}

.thumbnail-card-body {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.thumbnail-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thumbnail-card-body small {
  color: #cfc7ee;
}

.thumbnail-category {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  color: #a9dbff;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(100, 170, 255, .1);
  border-radius: 999px;
}

.contact-link-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-link-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 14px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.contact-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 195, 255, .48);
  box-shadow: 0 0 18px rgba(150, 120, 255, .2);
}

.contact-link-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-weight: bold;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.contact-form .contact-link-icon {
  background: linear-gradient(135deg, #6d8cff, #ba7cff);
}

.contact-link-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-link-text small {
  color: #cfc7ee;
}

.contact-link-arrow {
  color: #a9dbff;
  font-size: 1.2rem;
}

.profile-list {
  display: grid;
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  background: rgba(205, 185, 255, .12);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 14px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1.6fr;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(20, 18, 45, .88);
}

.profile-list dt {
  color: #a9dbff;
}

.profile-list dd {
  margin: 0;
  color: #f4f0ff;
}

.profile-section,
.profile-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(205, 185, 255, .16);
}

.profile-section h4 {
  margin: 0 0 10px;
  color: #a9dbff;
}

.profile-section ul {
  margin: 0;
  padding-left: 1.3rem;
  color: #cfc7ee;
  line-height: 1.8;
}

.profile-note a {
  color: #a9dbff;
}

.reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-button {
  border-color: rgba(255, 145, 180, .55);
  background: rgba(255, 95, 145, .16);
}

.reset-status {
  min-height: 1.7em;
  margin-bottom: 0;
  color: #a9dbff !important;
}

.history-queue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.history-queue-tab {
  flex: 1;
  border-radius: 12px;
}

.history-queue-tab span,
.floating-history-button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  min-height: 1.5em;
  margin-left: 4px;
  padding: 0 .3em;
  border: 1px solid rgba(189, 234, 255, .24);
  border-radius: 999px;
  color: var(--theme-ice, #bdeaff);
  background: rgba(8, 12, 29, .35);
  font-size: .75em;
  line-height: 1;
}

.history-queue-tab.active {
  background: linear-gradient(135deg, #4f83bd, #7665bd);
  box-shadow: 0 0 18px rgba(110, 160, 255, .3);
}

.history-queue-view {
  display: none;
}

.history-queue-view.active {
  display: block;
}

.history-queue-view h3 {
  margin: 0 0 10px;
}

.history-queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.history-queue-heading h3 {
  margin: 0;
}

.history-queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 14px;
}

.history-queue-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-queue-main span {
  color: #cfc7ee;
  font-size: .85rem;
}

.queue-position {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #a9dbff;
  background: rgba(100, 170, 255, .1);
  border-radius: 50%;
}

.queue-actions,
.history-actions,
.search-actions,
.favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.queue-actions button,
.history-actions button,
.search-actions button,
.favorite-actions button,
.inline-song-actions button {
  padding: .5rem .75rem;
}

.queue-add-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: .45rem;
  border-color: rgba(130, 218, 255, .42);
  color: #dff6ff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.setlist-date-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 8px;
}

.setlist-date-filter label {
  display: grid;
  gap: 5px;
  color: #a9dbff;
  font-size: .8rem;
}

.setlist-date-filter input {
  border-radius: 12px;
}

.setlist-filter-count {
  margin-bottom: 10px;
  color: #cfc7ee;
  font-size: .85rem;
  text-align: right;
}

.stream-main {
  min-width: 0;
}

.stream-date {
  margin-bottom: 4px;
  color: #a9dbff;
  font-size: .8rem;
}

.floating-player-controls {
  position: fixed;
  right: auto;
  bottom: 8px;
  left: 50%;
  z-index: 900;
  width: min(560px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  transform: translateX(-50%);
  background: rgba(20, 18, 45, .94);
  border: 1px solid rgba(205, 185, 255, .38);
  border-radius: 18px;
  box-shadow: 0 0 28px rgba(120, 95, 230, .32);
  backdrop-filter: blur(14px);
}

.floating-controls-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #f4efff;
  background: rgba(255, 255, 255, .055);
  user-select: none;
}

.floating-controls-header button {
  padding: 3px 9px;
}

.floating-controls-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.floating-player-controls.collapsed .floating-controls-body {
  display: none;
}

.transport-controls {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 8px;
}

.transport-controls button {
  padding-inline: 8px;
}

.play-mode-options {
  display: grid;
  gap: 7px;
}

.play-mode-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #e9e2ff;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(205, 185, 255, .12);
  border-radius: 12px;
  cursor: pointer;
}

.play-mode-options label:has(input:checked) {
  background: linear-gradient(135deg, rgba(141, 107, 255, .36), rgba(241, 155, 220, .28));
  border-color: rgba(225, 205, 255, .55);
}

.play-mode-options input {
  width: auto;
  accent-color: #b889ff;
}

.floating-history-button.active {
  background: linear-gradient(135deg, #4f83bd, #7665bd);
  box-shadow: 0 0 18px rgba(110, 160, 255, .3);
}

.search-result-row,
.favorite-row,
.stream-row,
.setlist-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(205, 185, 255, .16);
  border-radius: 16px;
}

.search-title,
.stream-title {
  font-weight: bold;
  color: #fff;
}

.search-artist-line {
  color: #cfc7ee;
  font-size: .9rem;
}

input {
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(205, 185, 255, .28);
  border-radius: 999px;
  padding: .75rem 1rem;
}

input::placeholder {
  color: rgba(244, 240, 255, .48);
}

@media (max-width: 768px) {
  .track-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .track-row.buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .url-area {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #open-youtube,
  #copy-share {
    width: 100%;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    justify-self: start;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .search-result-row,
  .favorite-row,
  .stream-row,
  .setlist-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.inline-song-list.hidden {
  display: none;
}

.multi-result-row {
  flex-direction: column;
  align-items: stretch;
}

.search-result-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.inline-song-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(205, 185, 255, .18);
}

.inline-song-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-top: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(205, 185, 255, .14);
}

.inline-song-main {
  min-width: 0;
  color: #f4f0ff;
}

.inline-song-main span {
  color: #cfc7ee;
  font-size: .9rem;
}

.inline-song-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toast-message {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #6d8cff, #ba7cff);
  border: 1px solid rgba(225, 215, 255, .48);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(140, 125, 255, .42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.error {
  background: linear-gradient(135deg, #c84d86, #8d4fbe);
}

@media (max-width: 768px) {
  .search-result-summary,
  .inline-song-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toast-message {
    right: 16px;
    bottom: 72px;
  }

  .utility-menu {
    grid-template-columns: 1fr;
  }

  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .thumbnail-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar {
    grid-template-columns: 1fr;
  }

  .gallery-count {
    justify-self: end;
  }

  .history-queue-row {
    align-items: stretch;
    flex-direction: column;
  }

  .setlist-date-filter {
    grid-template-columns: 1fr;
  }

  .floating-player-controls {
    right: 8px;
    left: 8px;
    width: auto;
    transform: none;
  }

  .floating-controls-header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 7px 8px;
  }

  .floating-controls-header .transport-controls {
    grid-template-columns: 44px minmax(110px, 1fr) 44px;
  }

  .floating-controls-header .transport-controls button {
    min-height: 38px;
    padding: 5px 8px;
  }

  .floating-controls-body {
    border-top: 1px solid rgba(205, 185, 255, .16);
  }
}

/* Nemukumo Tsukuri theme */
:root {
  --theme-bg-deep: #070914;
  --theme-bg-violet: #15152f;
  --theme-panel: rgba(23, 25, 54, .74);
  --theme-panel-strong: rgba(18, 20, 45, .92);
  --theme-line: rgba(198, 226, 255, .22);
  --theme-line-active: rgba(185, 231, 255, .62);
  --theme-text: #f8f7ff;
  --theme-muted: #c8c9df;
  --theme-ice: #bdeaff;
  --theme-blue: #77cfff;
  --theme-lavender: #c7a8ff;
  --theme-pink: #f0b9dc;
  --theme-danger: #ff91b4;
  --theme-glow-blue: rgba(107, 207, 255, .24);
  --theme-glow-violet: rgba(172, 128, 255, .25);
}

body {
  color: var(--theme-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(193, 169, 255, .22), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(119, 207, 255, .18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(115, 93, 210, .12), transparent 38%),
    linear-gradient(145deg, var(--theme-bg-deep), var(--theme-bg-violet) 56%, #080a17);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(189, 234, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 168, 255, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 75%);
  pointer-events: none;
}

.site-title {
  color: var(--theme-text);
  text-shadow:
    0 0 12px rgba(189, 234, 255, .55),
    0 0 28px rgba(199, 168, 255, .4);
}

.player-card,
.track-info-card,
.side-panel,
.status-row {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 45%),
    var(--theme-panel);
  border-color: var(--theme-line);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .32),
    0 0 24px var(--theme-glow-violet),
    inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px) saturate(118%);
}

.player-card {
  border-color: rgba(189, 234, 255, .28);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .38),
    0 0 28px var(--theme-glow-blue),
    inset 0 1px rgba(255, 255, 255, .07);
}

.player-wrapper {
  border: 1px solid rgba(189, 234, 255, .14);
  background: #03050c;
  box-shadow: inset 0 0 28px rgba(64, 124, 180, .14);
}

.track-row {
  border-bottom-color: rgba(189, 234, 255, .1);
}

.label,
.stream-date,
.setlist-date-filter label,
.setlist-filter-count,
.gallery-count,
.profile-list dt,
.welcome-section h4,
.profile-section h4 {
  color: var(--theme-ice);
}

.value,
.search-title,
.stream-title,
.utility-menu-card strong {
  color: var(--theme-text);
}

.search-artist-line,
.pagination-status,
.utility-card p,
.utility-menu-card span,
.social-link-text small,
.contact-link-text small,
.history-queue-main span,
.inline-song-main span {
  color: var(--theme-muted);
}

button {
  border-color: rgba(189, 234, 255, .26);
  color: var(--theme-text);
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(199, 168, 255, .045));
}

button:hover {
  border-color: var(--theme-line-active);
  background: linear-gradient(135deg, rgba(119, 207, 255, .14), rgba(199, 168, 255, .13));
  box-shadow:
    0 0 16px var(--theme-glow-blue),
    0 0 24px var(--theme-glow-violet);
}

.primary-tab-button.active,
.tab-button.active,
.rest-button,
.history-queue-tab.active,
.floating-history-button.active {
  border-color: rgba(211, 239, 255, .62);
  color: #fff;
  background: linear-gradient(135deg, rgba(104, 197, 255, .82), rgba(167, 121, 255, .82));
  box-shadow:
    0 0 16px rgba(107, 207, 255, .3),
    0 0 24px rgba(172, 128, 255, .32);
}

.primary-tab-button.active,
.tab-button.active {
  border-bottom-color: var(--theme-ice);
}

.play-mode-options label {
  color: #e9eaff;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(189, 234, 255, .14);
}

.play-mode-options label:hover {
  border-color: rgba(189, 234, 255, .36);
  background: rgba(119, 207, 255, .07);
}

.play-mode-options label:has(input:checked) {
  border-color: rgba(189, 234, 255, .52);
  background: linear-gradient(135deg, rgba(105, 198, 255, .22), rgba(188, 139, 255, .24));
  box-shadow: inset 0 0 18px rgba(169, 214, 255, .07);
}

.play-mode-options input {
  accent-color: var(--theme-lavender);
}

input,
.gallery-toolbar select {
  border-color: rgba(189, 234, 255, .22);
  color: var(--theme-text);
  background: rgba(8, 12, 29, .68);
  box-shadow: inset 0 1px 10px rgba(0, 0, 0, .18);
}

input:focus,
.gallery-toolbar select:focus {
  outline: 1px solid rgba(189, 234, 255, .68);
  border-color: var(--theme-ice);
  box-shadow: 0 0 18px var(--theme-glow-blue);
}

.utility-card,
.search-result-row,
.favorite-row,
.stream-row,
.setlist-row,
.inline-song-row,
.history-queue-row,
.social-link-card,
.contact-link-card,
.thumbnail-card {
  border-color: rgba(189, 234, 255, .15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(199, 168, 255, .025)),
    rgba(13, 17, 38, .48);
}

.utility-menu-card.active {
  border-color: rgba(189, 234, 255, .46);
  background: linear-gradient(135deg, rgba(100, 192, 255, .2), rgba(187, 136, 255, .2));
  box-shadow: 0 0 18px rgba(139, 188, 255, .16);
}

.social-link-card:hover,
.contact-link-card:hover,
.thumbnail-card:hover {
  border-color: rgba(189, 234, 255, .48);
  box-shadow:
    0 0 16px rgba(107, 207, 255, .15),
    0 0 22px rgba(172, 128, 255, .14);
}

.favorite-actions button:last-child,
.inline-song-fav,
.search-fav-button,
.setlist-fav-button {
  border-color: rgba(240, 185, 220, .38);
  color: #ffe6f5;
}

.danger-button {
  border-color: rgba(255, 145, 180, .56);
  color: #ffe8f0;
  background: rgba(255, 105, 155, .13);
}

.floating-player-controls {
  border-color: rgba(189, 234, 255, .34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .04), transparent),
    var(--theme-panel-strong);
  box-shadow:
    0 0 24px rgba(107, 207, 255, .16),
    0 0 34px rgba(172, 128, 255, .2),
    0 16px 44px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px) saturate(125%);
}

.floating-controls-header {
  border-bottom-color: rgba(189, 234, 255, .12);
  background: linear-gradient(90deg, rgba(119, 207, 255, .07), rgba(199, 168, 255, .08));
}

.toast-message {
  border-color: rgba(213, 239, 255, .5);
  background: linear-gradient(135deg, #579fd2, #916bd0);
  box-shadow:
    0 0 20px rgba(107, 207, 255, .26),
    0 0 28px rgba(172, 128, 255, .26);
}

@media (prefers-reduced-motion: reduce) {
  button,
  .social-link-card,
  .contact-link-card,
  .thumbnail-card,
  .toast-message {
    transition: none;
  }
}
