:root {
  --ink: #302328;
  --muted: #796b6e;
  --canvas: #fff9e7;
  --surface: #fffdf7;
  --soft: #f4eee9;
  --accent: #ac324b;
  --accent-dark: #7f1f32;
  --accent-hover: #92273f;
  --accent-soft: #f8e5ea;
  --coral: #ff7068;
  --yellow: #ffe47c;
  --line: #c994a0;
  --warning: #a4602e;
  --warning-soft: #faebdc;
  --shadow: 0 2px 3px rgba(89, 27, 40, .08), 4px 5px 0 rgba(172, 50, 75, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(172, 50, 75, .28);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }

.site-header {
  padding: 40px 24px 32px;
  color: var(--canvas);
  background: var(--accent);
  border-top: 7px solid var(--coral);
  border-bottom: 2px dashed rgba(255, 249, 231, .82);
}
.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, 100%);
  margin: auto;
}
.eyebrow { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; opacity: .72; }
h1 { margin: 5px 0 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.18; }
.header-note { max-width: 380px; margin: 0; color: rgba(255, 249, 231, .76); font-size: .9rem; }

.page-shell { width: min(1160px, calc(100% - 48px)); margin: 28px auto 64px; }
.mode-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mode-panel strong { font-size: .95rem; }
.mode-panel p { margin: 1px 0 0; color: var(--muted); font-size: .8rem; }
.segmented-control { display: flex; padding: 5px; border-radius: 12px; background: var(--soft); }
.segmented-control button {
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.segmented-control button.active {
  color: var(--accent);
  border-color: var(--line);
  background: #fff;
  box-shadow: 2px 2px 0 rgba(172, 50, 75, .12);
}

.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; margin-top: 20px; }
.filters {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 5px 6px 0 rgba(172, 50, 75, .14);
}
.filter-window-bar {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  color: var(--accent-dark);
  background: var(--yellow);
  border-bottom: 1px solid var(--accent);
}
.filter-window-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--coral);
}
.filter-window-title { margin-left: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.filter-body {
  max-height: calc(100vh - 82px);
  padding: 17px;
  overflow-y: auto;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.filter-heading, .results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-heading h2 { margin: 0; font-size: 1.05rem; }
.text-button {
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.field { display: grid; gap: 7px; margin-top: 18px; }
.field > span, .filter-group legend { color: var(--ink); font-size: .78rem; font-weight: 700; }
input[type="search"], select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}
.favorite-toggle {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
}
.favorite-toggle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.favorite-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.favorite-toggle span { flex: 1; font-size: .82rem; font-weight: 700; }
.favorite-toggle small { color: var(--muted); }
.selected-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.selected-filter {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}
.tag-filter-panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--accent); border-radius: 9px; background: #fff; }
.tag-filter-panel summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.tag-filter-panel summary::-webkit-details-marker { display: none; }
.tag-filter-panel summary::after { content: "＋"; color: var(--accent); }
.tag-filter-panel[open] summary::after { content: "−"; }
.filter-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: .7rem;
}
.tag-filter-content { max-height: 350px; padding: 0 11px 13px; overflow-y: auto; border-top: 1px solid var(--accent); }
.filter-group { margin: 0; padding: 6px 0; border: 0; border-bottom: 1px dashed rgba(172, 50, 75, .32); }
.filter-group:last-child { border-bottom: 0; }
.filter-group legend { margin-bottom: 0px;  padding: 6px 0; }
.button-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #dfd6cf;
  border-radius: 7px;
  color: var(--muted);
  background: var(--soft);
  font-size: .76rem;
  cursor: pointer;
}
.filter-btn.active, .selected-filter { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }

.results { min-width: 0; }
.results-header { min-height: 52px; margin-bottom: 15px; }
.results-header p { margin: 0; }
.result-count strong { font-size: 1.45rem; }
.active-summary { color: var(--muted); font-size: .82rem; }
.primary-button, .secondary-button, .action-button, .favorite-button, .player-button, .icon-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { padding: 8px 14px; color: #fff; border: 1px solid var(--accent); background: var(--accent); font-weight: 700;   box-shadow: var(--shadow);}
.secondary-button { padding: 8px 14px; color: var(--accent); border: 1px solid var(--line); background: var(--accent-soft); font-weight: 700; }

.player-panel {
  position: sticky;
  top: 8px;
  z-index: 30;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 0 6px;
}
.player-statusbar {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 13px;
  padding: 8px 10px 8px 16px;
  color: var(--canvas);
  background: #351b23;
  border: 2px solid  #351b23;
  border-radius: 14px 14px 0 0 ;
  transform: none;
}
.player-equalizer { display: flex; height: 22px; align-items: center; gap: 3px; }
.player-equalizer span { display: block; width: 4px; border-radius: 2px; background: var(--yellow); animation: equalizer .8s ease-in-out infinite alternate; }
.player-equalizer span:nth-child(1) { height: 10px; }
.player-equalizer span:nth-child(2) { height: 18px; animation-delay: .15s; }
.player-equalizer span:nth-child(3) { height: 13px; animation-delay: .3s; }
.player-equalizer span:nth-child(4) { height: 7px; animation-delay: .45s; }
@keyframes equalizer { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.player-info { display: grid; min-width: 0; flex: 1; gap: 2px; }
.player-label { margin: 0; color: #d9aeba; font-size: .58rem; font-weight: 700; letter-spacing: .15em; }
.player-info strong, .player-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info strong { color: var(--canvas); font-size: .88rem; }
.player-info span { color: rgba(255, 249, 231, .65); font-size: .74rem; }
.player-controls { display: flex; align-items: center; gap: 7px; }
.player-button, .icon-button { min-height: 40px; color: var(--accent-dark); border: 0; background: var(--yellow); font-weight: 700; }
.player-button { padding: 0 12px; }
.icon-button { width: 40px; min-width: 40px; font-size: 1.2rem; }
.player-video-wrap {
  display: flex;
  width: min(720px, 100%);
  margin: -2px auto 0;
  flex-direction: column;
  align-items: stretch;
}
  .player-frame-wrap {
  order: 1;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border: 5px solid  #351b23;
  border-radius: 0 0 14px 14px;
  opacity: 1;
  aspect-ratio: 16 / 9;
  transition: max-height .25s ease, opacity .18s ease, border-width .25s ease;
}
.player-frame-wrap iframe, #youtube-player { display: block; width: 100%; height: 100%; border: 0; }
.player-frame-wrap.is-collapsed { max-height: 0; opacity: 0; border-top-width: 0; border-bottom-width: 0; pointer-events: none; }
.player-fold-row { order: 2; display: flex; height: 26px; justify-content: center; margin-top: -1px; }
.player-fold-button {
  display: grid;
  width: 58px;
  height: 26px;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 2px solid  #351b23;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background:  #351b23;
  cursor: pointer;
}
.player-fold-icon::before { content: "▼"; display: block; font-size: .72rem; line-height: 1; }
.player-fold-button[aria-expanded="false"] .player-fold-icon::before { content: "▲"; }
.player-desktop-details { display: none; }
.player-content { display: contents; }

.song-grid { display: flex; flex-direction: column; gap: 12px; }
.song-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: 100%;
  min-height: 170px;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.thumbnail-button, .thumbnail-placeholder {
  position: relative;
  display: grid;
  align-self: start;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  aspect-ratio: 16 / 9;
  background: #2f2430;
}
.thumbnail-button { cursor: pointer; }
.thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-placeholder { place-items: center; color: #fff; font-size: .78rem; font-weight: 700; }
.play-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding-left: 3px;
  color: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.card-body { position: relative; display: flex; min-width: 0; padding: 14px 72px 14px 18px; flex-direction: column; }
.card-body { border-left: 1px dashed var(--line); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .72rem; }
.badge, .tag { padding: 3px 7px; border: 0; border-radius: 6px; }
.badge { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.song-title { margin: 6px 0 1px; font-size: 1.12rem; line-height: 1.35; }
.song-artist { margin: 0; color: #55524e; }
.song-source { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { color: #66635e; background: var(--soft); font-size: .68rem; }
.tag-button { cursor: pointer; }
.memo { margin: 8px 0 0; color: #605d58; font-size: .78rem; }
.memo a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.action-button { width: 44px; min-width: 44px; padding: 0; color: var(--accent); border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 700; }
.action-label { display: none; }
.icon-action { color: #fff; border-color: var(--accent); background: var(--accent); font-size: 1rem; }
.link-icon-button img { width: 25px; height: 25px; object-fit: contain; }
.favorite-button { width: 44px; margin-top: auto; padding: 0; color: rgba(255, 187, 71, .48); border: 1px dotted #ffbb47; background: #fff; }
.favorite-button.active { color: #ffbb47; background: rgba(255, 187, 71, .17); }
.favorite-star { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.favorite-button.active .favorite-star { fill: currentColor; }
.card-actions .favorite-button { margin-top: auto; }

.empty-state { padding: 64px 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.empty-state p { margin: 0 0 16px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.load-more-wrap .secondary-button { min-width: 180px;   box-shadow: var(--shadow);}
.site-footer { padding: 25px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .78rem; }

.page-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: 64px;
  height: 64px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 2px 3px 0 rgba(172, 50, 75, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}
.page-top-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.page-top-icon { width: 20px; height: 20px; border-top: 3px solid currentColor; border-left: 3px solid currentColor; transform: rotate(45deg) translate(3px, 3px); }

@media (hover: hover) and (pointer: fine) {
  .text-button:hover, .primary-button:hover, .icon-action:hover, .player-fold-button:hover { color: #fff; background: var(--accent-hover); }
  .filter-btn:hover { color: var(--accent-dark); border-color: var(--accent); }
  .page-top-button:hover { background: var(--accent-hover); }
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .filter-body { max-height: none; }
  .player-statusbar {
   left: 50%;
   width: calc(100% - 48px);
   transform: translateX(-50%);
   border-radius: 14px 14px 0 0 ;  
}
}

/* ========================================
   スマホ表示
======================================== */

@media (max-width: 640px) {
  /* ========================================
     サイト全体
  ======================================== */

  .site-header {
    padding: 28px 18px;
  }

  .header-inner {
    display: block;
  }

  .header-note {
    margin-top: 10px;
  }

  .page-shell {
    width: min(
      100% - 20px,
      1160px
    );
    margin-top: 18px;
  }

  .mode-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

  .layout {
    gap: 18px;
    margin-top: 14px;
  }

  .results-header {
    align-items: flex-start;
  }

  .results-header
  .primary-button {
    min-height: 40px;
    font-size: .78rem;
  }

  /* ========================================
     スマホ版プレーヤー・全体
  ======================================== */

  .player-panel {
    position: sticky;
    top: max(
      5px,
      env(safe-area-inset-top)
    );

    overflow: visible;

    padding: 0px;

    border-radius: 14px;
    background:  hwb(342deg 11% 79% / 97%);

    box-shadow: var(--shadow);
  }

  /* NOW PLAYINGバー */

  .player-panel
  .player-statusbar {
    position: relative;
    top: 0;
    left: 0;

    width: 100%;
    min-height: 78px;

    gap: 8px;
    padding: 9px 9px 8px;

    border: 0;
    border-radius:
      14px 14px 0 0;

    background: #351b23;

    transform: none;
  }

  .player-equalizer {
    gap: 2px;
  }

  .player-equalizer span {
    width: 3px;
  }

  .player-panel
  .player-info strong {
    font-size: .80rem;
  }

  .player-panel
  .player-info span {
    font-size: .66rem;
  }

  .player-controls {
    gap: 10px;
  }

  .player-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: .66rem;
  }

  .icon-button {
    width: 38px;
    min-width: 38px;
  }
  

  /* ========================================
     プレーヤー展開部分
  ======================================== */

  .player-panel
  .player-content {
    display: grid;

    grid-template-columns:
      minmax(0, 46%)
      minmax(0, 54%);

    grid-template-rows:
      auto
      auto
      minmax(0, 1fr);

    column-gap: 10px;
    row-gap: 7px;

    align-items: start;

    padding: 0 10px 12px;
  }

  /* 左側：YouTube動画 */

  .player-panel
  .player-video-wrap {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    margin: 0;
  }

  .player-panel
  .player-frame-wrap {
    width: 100%;

    border: 0;
    border-radius: 6px;

    aspect-ratio: 16 / 9;
  }

  /*
   * 詳細欄の子要素を
   * player-contentのグリッドへ直接配置
   */

  .player-panel
  .player-desktop-details {
    display: contents;
  }

  /* 右上：日付・楽曲タイプ */

  .player-panel
  .player-detail-meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  color: rgba(
    255,
    249,
    231,
    .72
  );

  font-size: .61rem;
  line-height: 1;
}

.player-panel
#player-detail-date {
  display: inline-flex;
  height: 22px;
  align-items: center;
  flex: none;
  line-height: 1;
  white-space: nowrap;
}
  
.player-panel
.player-detail-types {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}

.player-panel
.player-detail-types
.player-detail-tag {
  min-height: 22px;
  height: 22px;
  align-items: center;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
     padding: 2px 3px;
}
  
  /* 右中央：配信・動画タイトル */

  .player-panel
  .player-detail-source {
    grid-column: 2;
    grid-row: 2;

    min-width: 0;

    margin-top: -80px;
    padding-bottom: 40px;
    color: var(--canvas);

    font-size: .68rem;
    line-height: 1.5;

    overflow-wrap: anywhere;
  }

  /* 右下：歌唱・コラボタグ */

  .player-panel
  .player-detail-tags {
    grid-column: 2;
    grid-row: 3;

    display: flex;

    min-width: 0;

    align-content: flex-start;
    flex-wrap: wrap;

    gap: 4px;
    margin-top: -50px;
    margin-bottom: 15px;
  }

  /* プレーヤーのタグ */

  .player-panel
  .player-detail-tag {
    display: inline-flex;

    min-height: 22px;

    align-items: center;

    padding: 2px 6px;

    color: #62575b;

    border:
      1px solid transparent;

    border-radius: 5px;

    background: #f3eee9;

    font: inherit;
    font-size: .58rem;
    line-height: 1.2;

    cursor: pointer;
  }

  .player-panel
  .player-detail-tag.type {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 770;
  }

  /* 左下：元配信 */

  .player-panel
  .player-detail-link {
    position: static;

    grid-column: 1;
    grid-row: 2;

    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;
    justify-self: start;

    margin: 0;

    color: #fff;

    border:
      1px solid var(--accent);

    border-radius: 8px;

    background: var(--accent);

    text-decoration: none;
    font-weight: 700;
  }

  /* 左下：お気に入り */

  .player-panel
  .player-detail-favorite {
    position: static;

    grid-column: 1;
    grid-row: 2;

    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;
    justify-self: start;

    margin: 0 0 0 88px;
    padding: 0;

    color: rgba(
      255,
      187,
      71,
      .55
    );

    border:
      1px dashed #e8bd70;

    border-radius: 8px;

    background: #fffaf0;

    cursor: pointer;
  }

  .player-panel
  .player-detail-favorite.active {
    color: #ffbb47;
    background: #fff2d9;
  }

  .player-panel
  .player-detail-favorite
  .favorite-star {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linejoin: round;
    stroke-linecap: round;
  }

  .player-panel
  .player-detail-favorite.active
  .favorite-star {
    fill: currentColor;
  }

  /* プレーヤー：LINKボタン */

.player-panel
.player-detail-streaming-link {
  position: static;

  grid-column: 1;
  grid-row: 2;

  display: grid;

  width: 36px;
  height: 36px;

  place-items: center;
  justify-self: start;

  /*
   * 元配信ボタンの右へ配置
   */
  margin: 0 0 0 44px;
  padding: 0;

  color: var(--accent);

  border:
    1px solid var(--line);

  border-radius: 8px;

  background: #fff;

  text-decoration: none;
}

.player-panel
.player-detail-streaming-link
img {
  width: 19px;
  height: 19px;

  object-fit: contain;
}

  /* プレーヤー開閉タブ */

  .player-panel
  .player-fold-row {
    position: absolute;

    right: 0;
    bottom: 0;

    z-index: 3;

    display: flex;

    width: 54px;
    height: 24px;

    margin: 0;
  }

  .player-panel
  .player-fold-button {
    width: 54px;
    height: 24px;

    border-radius:
      0 0 12px 12px;
  }

  /* ========================================
     プレーヤー収納時
  ======================================== */

  .player-panel.is-collapsed {
    padding-bottom: 24px;
  }

  .player-panel.is-collapsed
  .player-content {
    display: block;

    height: 0;

    padding: 0;
  }

  .player-panel.is-collapsed
  .player-desktop-details {
    display: none;
  }

  .player-panel.is-collapsed
  .player-video-wrap {
    width: 100%;
    height: 0;

    margin: 0;
  }

  .player-panel.is-collapsed
  .player-statusbar {
    border-radius: 14px;
  }

  /* ========================================
     スマホ版song-card
  ======================================== */

  .song-card {
    display: grid;

    grid-template-columns:
      minmax(0, 40%)
      minmax(0, 60%);

    grid-template-rows:
      auto
      minmax(125px, 1fr);

    width: 100%;
    min-height: 220px;

    overflow: hidden;

    border:
      2px solid var(--accent);

    border-radius: 12px;
  }

  /* 左上：サムネイル */

  .song-card
  .thumbnail-button,
  .song-card
  .thumbnail-placeholder {
    grid-column: 1;
    grid-row: 1;

    align-self: start;

    width: 100%;
    margin: 0;

    border-radius: 0;

    aspect-ratio: 16 / 9;
  }

  /* 右側：曲情報 */

.song-card
.card-body {
  grid-column: 2;
  grid-row: 1 / 3;

  min-width: 0;

  margin: 0;
  padding: 11px 11px 15px;

  border-left:
    1px dashed var(--line);
}

  /* 左下：操作ボタン */

.song-card
.card-actions {
  position: relative;

  grid-column: 1;
  grid-row: 2;

  display: grid;

  grid-template-columns:
    36px 36px;

  grid-auto-rows: 10px;
  left: 0px;

  width: 100%;
  height: 100%;
  min-height: 115px;

  align-content: start;
  justify-content: start;

  gap: 8px;

  margin: 0;
  padding: 10px;

  border-top: 0;

  background: #fffdf7;
}

  /* 操作ボタン共通 */

.song-card
.card-actions > * {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;

  margin: 0;
  padding: 0;

  border-radius: 8px;

  flex: none;
}

  .song-card
  .action-label {
    display: none !important;
    
  }

  /* 元配信：左上 */

  .song-card
  .icon-action {
    grid-column: 1;
    grid-row: 1;

    color: #fff;

    border:
      1px solid var(--accent);

    background: var(--accent);
  }

  /* LINK：右上 */

  .song-card
  .link-icon-button {
    grid-column: 2;
    grid-row: 1;

    border:
      1px solid var(--line);

    background: #fff;
  }

  /* 歌詞：右側2段目 */

  .song-card
  .lyrics-action {
    grid-column: 2;
    grid-row: 2;

    color: var(--accent);

    border:
      1px solid var(--line);

    background: #fff;
  }

  /* お気に入り：左下へ固定 */

.song-card
.favorite-button {
    grid-column: 3;
    grid-row: 1;

  color: rgba(
    255,
    187,
    71,
    .55
  );

  border:
    1px dashed #e8bd70;

  border-radius: 8px;

  background: #fffaf0;
}

.song-card
.favorite-button.active {
  color: #ffbb47;

  background: rgba(
    255,
    187,
    71,
    .17
  );
}

  /* アイコン */

.song-card
.link-icon-button img {
  width: 19px;
  height: 19px;
}

.song-card
.favorite-star {
  width: 19px;
  height: 19px;
}

.song-card
.action-symbol {
  display: block;

  font-size: .88rem;
  line-height: 1;
}

  /* 曲情報の文字 */

  .song-card
  .card-meta {
    gap: 5px;
    font-size: .63rem;
  }

  .song-card
  .song-title {
    margin-top: 7px;

    font-size: .95rem;
    line-height: 1.35;
  }

  .song-card
  .song-artist {
    font-size: .79rem;
    line-height: 1.4;
  }

  .song-card
  .song-source {
    margin-top: 6px;

    font-size: .68rem;
    line-height: 1.45;

    overflow-wrap: anywhere;
  }

  .song-card
  .tag-list {
    gap: 4px;
    margin-top: 7px;
  }

  .song-card
  .tag {
    padding: 2px 5px;
    font-size: .59rem;
  }

  .song-card
  .memo {
    margin-top: 7px;

    font-size: .68rem;
    line-height: 1.45;
  }

  /* 再生マーク */

  .play-mark {
    right: 7px;
    bottom: 7px;

    width: 25px;
    height: 25px;

    padding-left: 3px;

    border: 0;

    font-size: .8rem;
  }

  /* ページトップ */

  .page-top-button {
    right: 16px;
    bottom: 16px;

    width: 58px;
    height: 58px;
  }
}

/* ========================================
   PC専用プレーヤー
======================================== */

@media (min-width: 641px) {
  .player-panel {
    position: sticky;
    top: 8px;
    overflow: visible;
    padding: 0 0 26px;
    border-radius: 14px;
    background: hwb(342deg 11% 79% / 97%);
    box-shadow: var(--shadow);
  }

  /*
   * 上部のNOW PLAYINGバー
   */
  .player-panel .player-statusbar {
    min-height: 76px;
    padding: 12px 14px 10px 18px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: #351b23;
  }

  .player-panel .player-label {
    margin-bottom: 2px;
  }

  .player-panel .player-info strong {
    font-size: 1rem;
  }

  .player-panel .player-info span {
    font-size: .75rem;
  }

  /*
   * 左：動画
   * 右：楽曲情報
   */
  
.player-panel .player-content {
  display: grid;
  grid-template-columns:
    minmax(260px, 46%)
    minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0 16px 16px;
}

  .player-panel .player-video-wrap {
    width: 100%;
    margin: 0;
  }

  .player-panel .player-frame-wrap {
    width: 100%;
    border: 0;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
  }

  /*
   * PC用右側詳細欄
   */
  .player-panel .player-desktop-details {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 8px 62px 8px 0;
    flex-direction: column;
    color: var(--canvas);
  }

  .player-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: rgba(
      255,
      249,
      231,
      .72
    );
    font-size: .74rem;
  }

  .player-detail-types,
  .player-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

.player-detail-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  color: #62575b;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f3eee9;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}

.player-detail-tag:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

  .player-detail-source {
    margin: 18px 0 14px;
    color: var(--canvas);
    font-size: .82rem;
    line-height: 1.65;
  }

  .player-detail-tags {
    margin-top: auto;
  }

  /*
   * 元配信ボタン
   */
  .player-detail-link {
    position: absolute;
    top: 8px;
    right: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    text-decoration: none;
    font-weight: 700;
  }

  /*
   * 開閉タブをプレーヤー右下へ
   */
  .player-panel .player-fold-row {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    width: 58px;
    height: 26px;
    margin: 0;
  }

  .player-panel .player-fold-button {
    width: 58px;
    height: 26px;
  }

  /*
   * 収納時は動画・詳細を非表示
   */
  .player-panel.is-collapsed {
    padding-bottom: 26px;
  }

  .player-panel.is-collapsed
  .player-content {
    display: block;
    height: 0;
    padding: 0;
  }

  .player-panel.is-collapsed
  .player-desktop-details {
    display: none;
  }

  .player-panel.is-collapsed
  .player-video-wrap {
    width: 100%;
    height: 0;
    margin: 0;
  }

  .player-panel.is-collapsed
  .player-statusbar {
    border-radius: 14px;
  }
  /*
 * プレーヤーのお気に入りボタン
 */
.player-detail-favorite {
  position: absolute;
  right: 0;
  bottom: 8px;

  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;

  color: rgba(
    255,
    187,
    71,
    .55
  );

  border: 1px dashed #e8bd70;
  border-radius: 9px;
  background: #fffaf0;

  cursor: pointer;
}

.player-detail-favorite.active {
  color: #ffbb47;
  background:
    #FFF2D9;
}

.player-detail-favorite
.favorite-star {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.player-detail-favorite.active
.favorite-star {
  fill: currentColor;
}

/* PCプレーヤー：LINKボタン */

.player-detail-streaming-link {
  position: absolute;
  top: 60px;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--accent);
  border:
    1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
}

.player-detail-streaming-link
img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player-equalizer span { animation: none; }
  .player-frame-wrap, .page-top-button { transition: none; }
}
