/* =====================================================
   Words meets notes (WMN) - styles.css
   ダークネオン系テーマ（Zoom Zoom Maker 配色イメージ参考）
   ===================================================== */

:root {
  /* ベースカラー */
  --bg-deep:     #0a0a12;   /* 最背面 */
  --bg-panel:    #14141f;   /* サイドパネル・カード */
  --bg-panel-2:  #1c1c2b;   /* 入れ子要素 */
  --border-soft: #2a2a3d;

  /* アクセント（C1 / C2） */
  --c1: #00e5ff;   /* シアン系ネオン：メインアクション */
  --c1-glow: rgba(0, 229, 255, 0.45);
  --c2: #ff4fd8;   /* マゼンタ系ネオン：強調/書き出し */
  --c2-glow: rgba(255, 79, 216, 0.45);

  /* テキスト */
  --text-main: #eaeaf0;
  --text-sub:  #9a9ab0;
  --text-dim:  #6a6a80;

  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 14px;
}

/* =====================================================
   ヘッダー
   ===================================================== */
.wmn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, #101019, #0d0d16);
  border-bottom: 1px solid var(--border-soft);
}

.wmn-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wmn-logo-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wmn-logo-accent {
  color: var(--c1);
  text-shadow: 0 0 8px var(--c1-glow);
  margin: 0 2px;
}

.wmn-logo-sub {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.wmn-project-actions {
  display: flex;
  gap: 8px;
}

/* =====================================================
   ボタン共通
   ===================================================== */
.btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-panel-2);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--c1);
  box-shadow: 0 0 10px var(--c1-glow);
}

.btn-ghost {
  background: transparent;
}

.btn-primary {
  background: var(--c1);
  color: #001217;
  border-color: var(--c1);
  font-weight: 600;
}
.btn-primary:hover {
  box-shadow: 0 0 16px var(--c1-glow);
}

.btn-secondary {
  background: var(--bg-panel-2);
  color: var(--c1);
  border-color: var(--c1);
}

.btn-accent {
  background: var(--c2);
  color: #1a0014;
  border-color: var(--c2);
  font-weight: 600;
}
.btn-accent:hover {
  box-shadow: 0 0 16px var(--c2-glow);
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

/* =====================================================
   タブナビゲーション
   ===================================================== */
.wmn-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 20px 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-soft);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.is-active {
  color: var(--c1);
  border-bottom-color: var(--c1);
  text-shadow: 0 0 6px var(--c1-glow);
}

/* =====================================================
   メインレイアウト
   ===================================================== */
.wmn-main {
  display: flex;
  height: calc(100vh - 118px);
}

/* ---- サイドパネル ---- */
.wmn-sidepanel {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-soft);
  padding: 18px;
  overflow-y: auto;
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

.panel-title {
  font-size: 13px;
  color: var(--c1);
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 20px 0;
}

/* アップロードボックス */
.upload-box {
  background: var(--bg-panel-2);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  text-align: center;
  transition: border-color 0.15s ease;
}
.upload-box:hover {
  border-color: var(--c1);
}

.upload-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-main);
}

.upload-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-dim);
}

input[type="file"] {
  color: var(--text-sub);
  font-size: 12px;
  max-width: 100%;
}

/* =====================================================
   歌詞直接入力
   ===================================================== */
.lyrics-input-box {
  margin-top: 8px;
}

.lyrics-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  color: var(--text-main);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
  outline: none;
}

.lyrics-textarea::placeholder {
  color: var(--text-dim);
}

.lyrics-textarea:focus {
  border-color: var(--c1);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.button-row .btn {
  flex: 1;
}

/* ラジオ選択 */
.mode-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  font-size: 13px;
}

.radio-item:hover {
  border-color: var(--c2);
}

/* 採り直しガイド */
.timing-guide {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.04);
}

.timing-guide-title {
  margin: 0 0 8px;
  color: var(--c1);
  font-size: 12px;
  font-weight: 700;
}

.timing-guide ul {
  margin: 0;
  padding-left: 18px;
}

.timing-guide li {
  margin: 5px 0;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

/* タイミング打刻パッド */
.timing-pad {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 18px 14px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(0, 229, 255, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 79, 216, 0.08));
  box-shadow:
    0 0 22px rgba(0, 229, 255, 0.12),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
  text-align: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.timing-pad:hover {
  border-color: rgba(0, 229, 255, 0.8);
  box-shadow:
    0 0 26px rgba(0, 229, 255, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.06);
}

.timing-pad:focus-visible {
  outline: none;
  border-color: var(--c1);
  box-shadow:
    0 0 0 2px rgba(0, 229, 255, 0.2),
    0 0 26px rgba(0, 229, 255, 0.24);
}

.timing-pad.is-pressing {
  transform: scale(0.98);
  border-color: rgba(255, 79, 216, 0.92);
  background:
    radial-gradient(circle at center, rgba(255, 79, 216, 0.24), transparent 62%),
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), rgba(0, 229, 255, 0.08));
  box-shadow:
    0 0 30px rgba(255, 79, 216, 0.34),
    inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.timing-pad-main {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffffff;
}

.timing-pad-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.timing-pad-line {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--c1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* フィールド系 */
.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin: 14px 0 6px;
}

.field-select {
  width: 100%;
  background: var(--bg-panel-2);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 13px;
}

.field-select:focus {
  outline: none;
  border-color: var(--c1);
}

.field-color {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  cursor: pointer;
}

/* =====================================================
   プレビューエリア
   ===================================================== */
.wmn-preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 30%, #12121e, #05050a 80%);
}

.preview-stage {
  flex: 1;
  margin: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08) inset;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
}

.lyric-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  font-size: 32px;
  font-weight: 700;
  color: var(--wmn-text-color, #ffffff);
  text-shadow: 0 0 14px var(--c1-glow);
  pointer-events: auto;
  overflow-y: auto;
}

.lyric-line {
  max-width: 90%;
  padding: 6px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(18px, 3vw, 40px);
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    text-shadow 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.lyric-line.is-active {
  color: var(--wmn-text-color, #ffffff);
  text-shadow:
    0 0 10px var(--c1-glow),
    0 0 22px var(--c1-glow);
  transform: scale(1.04);
}

.lyric-line.is-record-target {
  outline: 1px solid var(--c1);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16);
}

.lyric-line.is-recording-timing {
  outline: 1px solid var(--c2);
  background: rgba(255, 79, 216, 0.12);
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.28);
}

.lyric-line.has-timestamp::after {
  content: "  ●";
  color: var(--c1);
  font-size: 0.7em;
}

.lyric-line.has-timing::after {
  content: "  ✓";
  color: var(--c2);
  font-size: 0.7em;
}

.notes-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 80%, var(--c2-glow));
}

/* =====================================================
   再生コントロールバー
   ===================================================== */
.playback-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.pb-btn {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pb-btn:hover {
  border-color: var(--c1);
  box-shadow: 0 0 10px var(--c1-glow);
}

.pb-btn-main {
  background: var(--c1);
  color: #001217;
  border-color: var(--c1);
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.pb-speed {
  background: var(--bg-panel-2);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}

.pb-time {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  min-width: 90px;
}

.pb-seek-wrap {
  flex: 1;
}

.pb-seek {
  width: 100%;
  accent-color: var(--c1);
}

/* =====================================================
   フッター
   ===================================================== */
.wmn-footer {
  text-align: center;
  padding: 10px;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
}

/* =====================================================
   スクロールバー（お好み調整）
   ===================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c1);
}