/* 杉村と常に考える！ - Premium Dark UI */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;900&display=swap');

:root {
  --bg-primary: #080b14;
  --bg-secondary: #0d1117;
  --bg-card: rgba(22, 27, 44, 0.85);
  --bg-card-hover: rgba(30, 38, 60, 0.95);
  --bg-glass: rgba(16, 20, 35, 0.7);
  --text-primary: #eaedf3;
  --text-secondary: #8b93a7;
  --text-muted: #505872;
  --accent: #ff3860;
  --accent-glow: rgba(255, 56, 96, 0.3);
  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.2);
  --accent-blue: #448aff;
  --accent-blue-glow: rgba(68, 138, 255, 0.2);
  --accent-yellow: #ffd740;
  --accent-orange: #ff9100;
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 56, 96, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --nav-height: 64px;
  --header-height: 54px;
  --radius: 14px;
  --radius-sm: 8px;
  --font-scale: 1;
}

/* フォントサイズ（zoom で全体スケール） */
html.font-s { --font-scale: 0.85; }
html.font-m { --font-scale: 1; }
html.font-l { --font-scale: 1.2; }
html.font-xl { --font-scale: 1.4; }
html.font-s #app-content, html.font-s #bottom-nav { zoom: 0.85; }
html.font-l #app-content, html.font-l #bottom-nav { zoom: 1.2; }
html.font-xl #app-content, html.font-xl #bottom-nav { zoom: 1.4; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* フォントサイズ切替ボタン */
.font-size-selector {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.font-size-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.font-size-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* 背景グラデーション */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 56, 96, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(68, 138, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ヘッダー */
#app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

#app-header h1 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff3860 0%, #ff9100 50%, #ffd740 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 56, 96, 0.3);
}

#status-indicator {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* メインコンテンツ */
#app-content {
  position: relative;
  z-index: 1;
  margin-top: var(--header-height);
  margin-bottom: var(--nav-height);
  padding: 16px;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

/* ボトムナビ */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 9px;
  padding: 8px 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 52px;
  border-radius: 12px;
  position: relative;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 3px;
  transition: transform 0.2s;
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-label {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* カード */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover, .card:active {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--accent-blue);
}

.card-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.section-more {
  font-size: 12px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-blue-glow);
  transition: all 0.2s;
}

.section-more:hover {
  background: rgba(68, 138, 255, 0.3);
}

/* バッジ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-estock {
  background: linear-gradient(135deg, rgba(255, 56, 96, 0.2), rgba(255, 56, 96, 0.1));
  color: var(--accent);
  border: 1px solid rgba(255, 56, 96, 0.2);
}
.badge-kabutan {
  background: linear-gradient(135deg, rgba(68, 138, 255, 0.2), rgba(68, 138, 255, 0.1));
  color: var(--accent-blue);
  border: 1px solid rgba(68, 138, 255, 0.2);
}
.badge-radio {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.1));
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.badge-sugimura {
  background: linear-gradient(135deg, rgba(255, 215, 64, 0.3), rgba(255, 145, 0, 0.2));
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 215, 64, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}
.badge-morning {
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.2), rgba(255, 145, 0, 0.1));
  color: var(--accent-orange);
  border: 1px solid rgba(255, 145, 0, 0.2);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 64, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 215, 64, 0.2); }
}

/* 銘柄チップ */
.ticker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(68, 138, 255, 0.15), rgba(68, 138, 255, 0.08));
  border: 1px solid rgba(68, 138, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  transition: all 0.2s;
}

.ticker-chip:hover {
  background: rgba(68, 138, 255, 0.25);
  border-color: rgba(68, 138, 255, 0.4);
  transform: translateY(-1px);
}

/* 銘柄テーブル */
.stock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.stock-table th {
  background: var(--bg-secondary);
  padding: 10px 8px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.stock-table th:hover {
  color: var(--accent-blue);
}

.stock-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.stock-table tr {
  transition: background 0.2s;
}

.stock-table tr:hover td {
  background: rgba(68, 138, 255, 0.05);
}

.stock-table a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.stock-table a:hover {
  text-decoration: underline;
}

.stock-name {
  font-weight: 700;
  color: var(--text-primary);
}

.positive { color: var(--accent-green); }
.negative { color: var(--accent); }

/* 朝レポート */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.report-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.report-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.report-item:hover::after {
  opacity: 1;
}

.report-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.report-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.report-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.report-change {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
}

/* 方向性カード */
.direction-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.direction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.direction-card.bullish::before {
  background: linear-gradient(90deg, var(--accent-green), transparent);
  box-shadow: 0 0 20px var(--accent-green-glow);
}
.direction-card.bearish::before {
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.direction-card.neutral::before {
  background: linear-gradient(90deg, var(--accent-yellow), transparent);
}

.direction-label {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 4px;
}

.direction-card.bullish .direction-label { color: var(--accent-green); }
.direction-card.bearish .direction-label { color: var(--accent); }
.direction-card.neutral .direction-label { color: var(--accent-yellow); }

.direction-signals {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.8;
}

/* セクター */
.sector-list {
  list-style: none;
}

.sector-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.sector-item:last-child {
  border-bottom: none;
}

/* オーディオプレーヤー */
.audio-player {
  width: 100%;
  margin-top: 12px;
}

.audio-player audio {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.8;
}

/* 文字起こし */
.transcript-toggle {
  background: rgba(68, 138, 255, 0.1);
  border: 1px solid rgba(68, 138, 255, 0.2);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.transcript-toggle:hover {
  background: rgba(68, 138, 255, 0.2);
}

.transcript-content {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.transcript-content.show {
  display: block;
}

/* ローディング */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.loading::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.7s linear infinite;
}

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

/* ボタン */
.scrape-btn {
  background: linear-gradient(135deg, rgba(68, 138, 255, 0.15), rgba(68, 138, 255, 0.05));
  border: 1px solid rgba(68, 138, 255, 0.2);
  color: var(--accent-blue);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.scrape-btn:hover {
  background: rgba(68, 138, 255, 0.25);
  border-color: rgba(68, 138, 255, 0.4);
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.scrape-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* 空状態 */
.empty-state {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 14px;
  font-weight: 600;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* アニメーション */
.card {
  animation: fadeIn 0.3s ease-out;
}

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

/* レスポンシブ */
@media (min-width: 768px) {
  #app-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  .report-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-title {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  #app-content {
    max-width: 960px;
  }
}

/* テーマタグ */
.theme-tag {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 145, 0, 0.12);
  border: 1px solid rgba(255, 145, 0, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 1px;
  white-space: nowrap;
}

/* カスタムオーディオプレーヤー */
.custom-player {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.player-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.player-btn.play-btn {
  background: var(--accent);
  border-color: var(--accent);
  font-size: 16px;
  padding: 6px 16px;
}

.player-btn.play-btn:hover {
  background: #ff4d6d;
}

.player-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  font-family: 'SF Mono', monospace;
}

.player-seek {
  width: 100%;
  margin: 8px 0 4px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.player-speed {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.speed-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}

.speed-btn:hover, .speed-btn.active {
  background: rgba(68, 138, 255, 0.2);
  color: var(--accent-blue);
  border-color: rgba(68, 138, 255, 0.3);
}

/* タイムスタンプリンク */
.timestamp-link {
  color: var(--accent-blue);
  cursor: pointer;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  text-decoration: underline;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(68, 138, 255, 0.1);
}

.timestamp-link:hover {
  background: rgba(68, 138, 255, 0.25);
}

/* チャプターアイテム */
.chapter-item:hover {
  background: rgba(68, 138, 255, 0.08) !important;
  border-radius: 6px;
}

/* 記事サマリー */
.article-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}

/* === エピソード専用再生画面（3分割） === */

/* 全体レイアウト: 画面を3分割 */
.ep-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--nav-height));
  margin: -16px;
  overflow: hidden;
}

/* 上段: プレーヤー (auto / 最大30%) */
.ep-player-section {
  flex: 0 0 auto;
  max-height: 30vh;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent);
  padding: 8px 16px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* 中段: 目次 (40%) */
.ep-middle-section {
  flex: 4;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

/* 下段: 銘柄 (30%) */
.ep-bottom-section {
  flex: 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* セクションヘッダー（中段・下段） */
.ep-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ep-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.ep-toggle-btn {
  background: rgba(68, 138, 255, 0.1);
  border: 1px solid rgba(68, 138, 255, 0.2);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.ep-toggle-btn:hover {
  background: rgba(68, 138, 255, 0.2);
}

/* スクロール可能なコンテンツ内部 */
.ep-scroll-inner {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 8px;
  -webkit-overflow-scrolling: touch;
}

/* 目次行 */
.chapter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.chapter-row:hover, .chapter-row:active {
  background: rgba(68, 138, 255, 0.08);
  border-radius: 6px;
}

.chapter-time {
  color: var(--accent-blue);
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(68, 138, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.chapter-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

/* 折りたたみパネル */
.ep-collapsible {
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 上部固定プレーヤー - レガシー（ダッシュボード用） */
.player-fixed-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent);
  padding: 10px 16px 12px;
  margin: calc(-1 * 16px) calc(-1 * 16px) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.player-back-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.player-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.player-external-link {
  font-size: 11px;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-blue-glow);
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.player-episode-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 大きなプレーヤーコントロール */
.player-main {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.player-seek-large {
  width: 100%;
  margin: 0 0 4px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.player-seek-large::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.player-time-large {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
  margin-bottom: 6px;
}

.player-controls-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.player-btn-lg {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.player-btn-lg:hover {
  background: rgba(255, 255, 255, 0.15);
}

.play-btn-lg {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  font-size: 20px;
  padding: 10px 24px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.play-btn-lg:hover {
  background: #ff4d6d !important;
}

.player-speed-large {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

/* 下部コンテンツエリア (スクロール可能) */
.player-content-area {
  padding-top: 8px;
}

/* タブ切り替え */
.player-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.player-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.player-tab.active {
  background: rgba(68, 138, 255, 0.2);
  border-color: rgba(68, 138, 255, 0.4);
  color: var(--accent-blue);
}

.player-tab-content {
  display: none;
}

.player-tab-content.active {
  display: block;
}

/* 要約コンテンツ */
.summary-content {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

/* エピソードカード（一覧用） */
.episode-card:active {
  transform: scale(0.98);
}

/* 銘柄コードインラインリンク */
.ticker-inline {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}
.ticker-inline:hover { text-decoration: underline; }

/* 銘柄理由行（推奨理由を銘柄行の下に表示） */
.stock-reason-row td {
  border-bottom: 1px solid var(--border) !important;
  background: rgba(0,0,0,0.1);
}
