:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #f3f4f6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --accent: #e11d48;
  --accent-soft: #ffe4ec;
  --link: #1d4ed8;
  --link-soft: #eff6ff;
  --artist: #3730a3;
  --artist-soft: #eef2ff;
  --danger: #991b1b;
  --danger-soft: #fff1f2;
  --danger-line: #fecdd3;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html.dark-mode {
  --bg: #0f1117;
  --card: #171a22;
  --surface: #11151d;
  --surface-soft: #121722;
  --surface-muted: #232938;
  --text: #e8edf7;
  --muted: #a5adbd;
  --line: #2c3340;
  --line-strong: #465064;
  --accent: #ff5d7e;
  --accent-soft: rgba(255, 93, 126, 0.16);
  --link: #9ec5ff;
  --link-soft: rgba(59, 130, 246, 0.16);
  --artist: #9ec5ff;
  --artist-soft: rgba(96, 165, 250, 0.16);
  --danger: #fecdd3;
  --danger-soft: #1b1117;
  --danger-line: #7f1d1d;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

html.dark-mode body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 28rem),
    var(--bg);
}

body.modal-open,
body.page-loading-open { overflow: hidden; }

button,
input,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
}

input::placeholder { color: var(--muted); }

button {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

button:hover { border-color: var(--line-strong); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
a { color: var(--link); }
a:hover { color: var(--link); }

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.header-main {
  flex: 1 1 auto;
  min-width: 0;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 30px);
}

.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-box {
  flex: 0 0 auto;
  min-width: 148px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
}

.status-box #dataStatus,
.status-box .cooldown { white-space: nowrap; }
.status-box #dataStatus { order: 2; }
.status-box .cooldown { order: 3; }

.cooldown {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
}

.darkmode-toggle {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 10px;
  color: var(--muted);
  font-size: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.darkmode-toggle input {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

.filter-details,
.panel-details {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.filter-details > summary,
.panel-summary {
  list-style: none;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.filter-details > summary::-webkit-details-marker,
.panel-summary::-webkit-details-marker { display: none; }

.filter-details > summary::after,
.panel-summary::after {
  content: "▼";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.25s ease;
}

.filter-details[open] > summary::after,
.panel-details[open] > .panel-summary::after { transform: rotate(180deg); }

.summary-help {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.controls,
.panel-body {
  padding: 18px;
  border-top: 1px solid var(--line);
  animation: slideDown 0.22s ease-out;
}

.controls {
  display: grid;
  gap: 14px;
}

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

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.search-row select { min-width: 0; }

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.buttons {
  display: flex;
  gap: 8px;
}

.summary {
  margin: 12px 2px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.summary-spacer { flex: 1 1 auto; }
.filter-active-status { margin-left: auto; text-align: right; }

.panel-summary h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.panel-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.tab-buttons,
.date-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
}

.tab-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.song-list,
.sung-list {
  display: grid;
  gap: 10px;
}

.song-list.compact { gap: 9px; }
.sung-list { gap: 14px; }

.song-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}

.song-title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 900;
}

.song-title-button {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.song-title-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.song-title-clickable {
  cursor: pointer;
}

.song-title-clickable:hover .song-title-button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.song-title-clickable:has(.inline-filter-button:hover) .song-title-button {
  text-decoration: none;
}

.song-title-missing {
  color: var(--muted);
  cursor: help;
  font-weight: 500;
  font-style: italic;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 3px 8px;
  color: inherit;
  text-decoration: none;
}

.badge.artist {
  background: var(--artist-soft);
  color: var(--artist);
}

.badge-link,
.sub-link {
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: var(--link-soft);
  color: var(--link);
}

.badge-link:hover { text-decoration: underline; }

.badge-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.badge-button:hover {
  outline: 1px solid var(--line-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-filter-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 0 6px;
  min-height: 0;
  line-height: 1;
  font-size: 0.9em;
  vertical-align: baseline;
}

.inline-filter-button:hover {
  color: var(--accent);
  text-decoration: none;
}

.desktop-title-filter { display: inline-flex; }
.mobile-title-filter { display: none; }

.sub-link {
  min-width: 26px;
  justify-content: center;
  font-weight: 800;
}

.like-panel {
  min-width: 230px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.like-button {
  order: 2;
  flex: 0 0 auto;
  min-width: 92px;
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.like-button.liked {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.like-button.disabled,
.like-button.disabled-front,
button:disabled {
  background: var(--surface-muted);
  color: var(--muted);
  border-color: var(--line);
}

.like-button.disabled-front { pointer-events: auto; }

.like-button.like-pop { animation: likePop 0.38s ease-out; }

.like-button.liking {
  position: relative;
  opacity: 1;
  cursor: progress;
  pointer-events: none;
  border-color: #813a48;
  background: var(--accent-soft);
  color: var(--accent);
  animation: likeWaitingPulse 1.63s ease-in-out infinite;
}

html.dark-mode .like-button.liking {
  border-color: #813a48;
  animation: likeWaitingPulseDark 1.63s ease-in-out infinite;
}

.like-counts {
  order: 1;
  min-width: 118px;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes likePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes likeWaitingPulse {
  0%, 100% {
    background: var(--accent-soft);
    color: var(--accent);
  }

  50% {
    background: #813a48;
    color: #fff;
  }
}

@keyframes likeWaitingPulseDark {
  0%, 100% {
    background: var(--accent-soft);
    color: #ff9bad;
  }

  50% {
    background: #813a48;
    color: #fff;
  }
}

.load-more-wrap {
  margin-top: 16px;
  text-align: center;
}

.load-more-wrap button { min-width: 160px; }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
}

.error-box {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
}

.date-list {
  display: grid;
  gap: 18px;
}

.date-group {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.date-group h3 {
  margin: 0 0 9px;
  padding-left: 4px;
  color: var(--text);
  font-size: 16px;
}

.date-group-title {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
}

.date-group-title::after {
  content: "▼";
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.date-group-title.collapsed::after { transform: rotate(-90deg); }
.date-group-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.date-group > .song-list { padding: 10px; }
.date-group > .song-list.collapsed { display: none; }
.sung-group .date-group-title span:first-child { overflow-wrap: anywhere; }

.notice-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--muted);
  line-height: 1.5;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.notice-marquee {
  display: block;
  min-width: 100%;
}

.notice-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: noticeMarquee 38s linear infinite;
}

.notice-content {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 100vw;
  padding-right: 10vw;
}

.notice-marquee strong {
  color: var(--text);
  font-weight: 950;
}

.notice-link {
  color: inherit;
  text-decoration: none;
}

.notice-link:hover { text-decoration: underline; }
.notice-separator { color: var(--muted); }

@keyframes noticeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cover-panel { position: relative; }

.cover-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.cover-window {
  overflow: hidden;
  min-width: 0;
}

.cover-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  transition: transform 0.26s ease, opacity 0.26s ease;
  will-change: transform;
}

.cover-track.move-left {
  transform: translateX(-33%);
  opacity: 0.78;
}

.cover-track.move-right {
  transform: translateX(33%);
  opacity: 0.78;
}

.cover-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 4px solid var(--text);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: scale(0.96);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cover-card.active {
  transform: scale(1);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
}

.cover-card:hover { transform: translateY(-2px) scale(1); }

.cover-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: 14px;
}

.cover-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-title {
  min-height: 42px;
  padding: 7px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cover-nav {
  width: 38px;
  height: 38px;
  padding: 5px 0 0 0;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--card);
  color: var(--text);
  border: 4px solid var(--text);
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
}

.cover-nav::before {
  content: "";
  width: 10px;
  height: 10px;
  display: block;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.cover-prev::before { transform: translateX(2px) rotate(-135deg); }
.cover-next::before { transform: translateX(-2px) rotate(45deg); }

.cover-nav:hover { background: var(--surface-muted); }
.cover-carousel { touch-action: pan-y; }

.modal-overlay,
.mini-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(7px);
}

.mini-modal-overlay { z-index: 10000; }
.modal-overlay[hidden],
.mini-modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(90vw, 1180px);
  overflow: visible;
  background: #0b1020;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  text-align: center;
  background: #111827;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.modal-song-info {
  background: #0b1020;
  color: #fff;
  padding: 14px 18px;
}

.modal-song-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 20px 20px 0 0;
}

.modal-song-info-bottom {
  border-radius: 0 0 20px 20px;
  color: #cbd5e1;
  font-size: 14px;
  text-align: center;
}

.modal-song-text { min-width: 0; }

.modal-song-title {
  font-size: calc(1rem + 8pt);
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-shadow: 0px 0px 3px #D8D8D8;
}

.modal-song-artist {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0px 0px 3px #b7b7b7;
}

.modal-like-panel {
  flex: 0 0 auto;
  margin-left: auto;
}

.modal-like-controls {
  min-width: 0;
  color: #d1d5db;
}

.modal-like-controls .like-counts { color: #d1d5db; }

.youtube-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}

.youtube-frame-wrap iframe,
.youtube-frame-wrap .youtube-player-mount {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.youtube-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  background: rgba(5, 8, 14, 0.78);
  color: white;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.youtube-loading[hidden] { display: none; }
.youtube-loading.fade-out {
  opacity: 0;
  visibility: hidden;
}

.youtube-loader-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: min(280px, calc(100vw - 80px));
  padding: 18px 22px;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.36);
  animation: LoadingBreath 2.69s ease-in-out infinite;
}

.youtube-loading.error .youtube-loader-box {
  background: rgba(127, 29, 29, 0.52);
}

.youtube-loading-text {
  font-size: calc(1rem + 5pt);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

@keyframes LoadingBreath {
  0%, 100% { opacity: 0.96; }
  50% { opacity: 0.34; }
}

.mini-modal-card {
  position: relative;
  width: min(420px, calc(100vw - 42px));
  min-height: 170px;
  padding: 34px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #0f172a;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.mini-modal-message {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 800;
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 20, 0.58);
  backdrop-filter: blur(8px);
}

.page-loading[hidden] { display: none; }

.page-loading-card {
  width: min(380px, calc(100vw - 40px));
  min-height: 188px;
  padding: clamp(24px, 4vw, 34px);
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

html.dark-mode .page-loading-card {
  background: rgba(23, 26, 34, 0.96);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.loader-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: inherit;
  font-weight: 800;
}

.loader-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.default-spinner {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 6px solid rgba(31, 41, 55, 0.15);
  border-top-color: rgba(31, 41, 55, 0.85);
  animation: spin 0.8s linear infinite;
}

.use-default-loader .default-spinner { display: block; }

html.dark-mode .default-spinner {
  border-color: rgba(232, 237, 247, 0.18);
  border-top-color: rgba(232, 237, 247, 0.9);
}

.loader-text {
  font-size: clamp(24px, 4.2vw, 36px);
  text-align: center;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.page-loading .loader-text {
  animation: LoadingBreath 2.69s ease-in-out infinite;
}

.loader-subtext {
  margin-top: 8px;
  font-size: clamp(13px, 2.2vw, 17px);
  color: var(--muted);
  opacity: 0.92;
  text-align: center;
  line-height: 1.45;
  font-weight: 750;
}

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

.site-footer {
  margin: 26px auto 0;
  color: #babbbf;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  white-space: normal;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover { color: #8f9096; }

.footer-tip {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

@media (min-width: 901px) {
  .filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .status-box {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 3px 10px;
    text-align: right;
  }

  .darkmode-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-left: 0;
  }

  .status-box #dataStatus {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .status-box .cooldown {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    text-align: right;
  }

  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buttons { grid-column: 1 / -1; }
  .buttons button { width: 100%; }
  .song-card { grid-template-columns: 1fr; }

  .like-panel {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .like-button { order: 1; }
  .like-counts {
    order: 2;
    min-width: 0;
    flex: 0 1 auto;
    text-align: left;
  }

  .summary {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .site-header { align-items: stretch; }
  .notice-marquee { animation-duration: 32s; }
  .search-row { grid-template-columns: 1fr; }

  .cover-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .cover-track { gap: 8px; }

  .cover-card {
    border-width: 3px;
    border-radius: 14px;
    padding: 7px;
    gap: 4px;
  }

  .cover-title {
    min-height: 34px;
    padding: 4px 5px 5px;
    font-size: 11px;
  }

  .cover-nav {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .cover-nav::before {
    width: 8px;
    height: 8px;
    border-top-width: 3px;
    border-right-width: 3px;
  }
}

@media (max-width: 560px) {
  .page-loading-card { width: min(340px, calc(100vw - 34px)); min-height: 164px; }
  .page-loading .loader-image { width: 58px; height: 58px; }
  .page-loading .default-spinner { width: 44px; height: 44px; border-width: 5px; }
  .page-loading .loader-text { font-size: clamp(22px, 7.4vw, 30px); }
  .page-loading .loader-subtext { font-size: clamp(12px, 3.7vw, 15px); }

  .site-header { padding: 22px 12px 12px; }
  .layout { padding: 0 12px 28px; }
  .filter-grid { grid-template-columns: 1fr; }
  .controls,
  .panel-body { padding: 14px; }
  .filter-details > summary,
  .panel-summary { padding: 14px; }

  .tab-buttons,
  .date-sort-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab-button {
    padding: 9px 8px;
    font-size: 13px;
  }

  .song-card { padding: 12px; }
  .date-group-title { padding: 11px 12px; }
  .date-group > .song-list { padding: 8px; }
  .inline-filter-button { padding-left: 4px; }

  .desktop-title-filter { display: none; }
  .mobile-title-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 3px 6px;
    font-size: 13px;
  }

  .song-title { display: block; }
  .song-title-button,
  .song-title-missing {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 4px 0;
  }

  .darkmode-toggle input {
    width: 12px;
    height: 12px;
  }

  .modal-card {
    width: 90vw;
    border-radius: 14px;
  }

  .youtube-frame-wrap { border-radius: 0; }
  .modal-close { top: -14px; right: -10px; }
  .modal-song-info { padding: 12px 14px; }
  .modal-song-info-top { align-items: flex-start; gap: 10px; }
  .modal-song-title { font-size: calc(0.95rem + 8pt); }
  .youtube-loading-text { font-size: calc(0.95rem + 5pt); }
  .modal-like-panel .like-counts { display: none; }
  .modal-like-panel .like-button {
    min-width: 82px;
    padding: 8px 10px;
  }
}

.data-status-count {
  cursor: help;
}

.cover-thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    var(--surface-muted);
  color: var(--text);
}

.cover-thumb-placeholder-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 74px;
  padding: 12px;
  border: 4px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.04em;
}
