@charset "utf-8";

/* =========================================
   歌枠リレー用スタイル (style_relay.css)
   ========================================= */

/* -----------------------------------------
   リレーインデックス（目次）ナビゲーション
   ----------------------------------------- */
.nav-collapse-wrapper { margin-bottom: 40px; display: flex; flex-direction: column; }

.relay-index-nav {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 20px;
  background-color: rgba(37, 37, 37, 0.6); border: 1px solid #444; border-radius: 12px 12px 0 0;
  border-bottom: none; margin-bottom: 0; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden; max-height: 500px; opacity: 1;
}

.relay-index-nav.collapsed {
  max-height: 115px;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.nav-collapse-wrapper.no-btn .relay-index-nav { border-bottom: 1px solid #444; border-radius: 12px; }

.relay-index-link {
  display: inline-block; color: #ccc; text-decoration: none; font-size: 0.9rem;
  padding: 6px 14px; background-color: rgba(255, 255, 255, 0.05); border-radius: 20px;
  transition: all 0.2s ease; border: 1px solid transparent;
}

.relay-index-link:hover {
  color: #fff; background-color: var(--color-accent); border-color: var(--color-accent);
  transform: translateY(-2px);
}

.nav-toggle-btn {
  display: block; width: 100%; padding: 8px;
  background-color: rgba(37, 37, 37, 0.8); border: 1px solid #444;
  border-top: 1px solid rgba(255, 255, 255, 0.05); border-radius: 0 0 12px 12px;
  color: #ccc; cursor: pointer; text-align: center; font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-toggle-btn:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.toggle-icon { font-size: 0.8em; margin-left: 4px; }

/* -----------------------------------------
   検索・コントロールエリア
   ----------------------------------------- */
.controls-top-row {
  display: flex; align-items: center; gap: 15px; margin-bottom: 12px;
  width: 100%; flex-wrap: wrap;
}

.search-box { flex: 1; min-width: 200px; }
#singleViewControls { display: none; }

.back-to-all-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  color: #fff; background: #333; padding: 8px 16px; border-radius: 20px;
  font-size: 0.9em; transition: background 0.2s; margin-bottom: 15px; cursor: pointer;
}
.back-to-all-btn:hover { background: #555; }
.back-arrow-icon { margin-right: 6px; }

.date-filter-group {
  display: flex; gap: 8px; flex-wrap: wrap; margin-left: 0; width: 100%;
}

.date-filter-btn {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc; padding: 5px 14px; border-radius: 20px; cursor: pointer;
  font-size: 0.9rem; transition: all 0.2s ease;
}
.date-filter-btn:hover { background: rgba(255, 255, 255, 0.2); }
.date-filter-btn.active {
  background: #93aef3; color: #fff; border-color: #93aef3; font-weight: bold;
}
.hidden-by-date { display: none !important; }

/* -----------------------------------------
   セクション・ヘッダー & スタイル
   ----------------------------------------- */
.relay-section-wrapper {
  scroll-margin-top: 100px; margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.02); padding: 10px;
  border-radius: 16px; border: 1px solid #333;
}

.live-pickup-section {
  border: 1px solid var(--color-accent); background: rgba(255, 64, 129, 0.05); margin-bottom: 40px;
}
.live-pickup-section .section-title { border-left-color: var(--color-accent); color: var(--color-accent); }
.live-pickup-section .relay-count-badge { color: #ff80ab; }

.blinking-icon { animation: blink 2s infinite; }

.relay-name-anchor { text-decoration: none; color: inherit; cursor: pointer; }
.relay-playlist-link { color: inherit; text-decoration: none; transition: opacity 0.3s; }
.relay-playlist-link:hover { opacity: 0.7; text-decoration: underline; }

.relay-count-badge { font-size: 0.9rem; color: #aaa; font-weight: normal; }
.no-data-msg-box { padding: 40px; background: #252525; border-radius: 12px; }

/* リレー固有: カードスタイルオーバーライド */
.video-card-vertical:hover { border-color: var(--color-accent); }
.view-switcher button.active { background: var(--color-accent); } /* Commonの上書き */

.fin-badge-overlay {
  position: absolute; top: 0; left: 0; color: #aaa; padding: 5px 10px;
  border-radius: 0 0 6px 0; background-color: #444; font-size: 14px; 
  font-weight: bold; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.5); 
  pointer-events: none; line-height: 1; border: 1px solid #555;
  border-top: none; border-left: none;
}

.time-badge { background: var(--color-accent); color: #fff; } /* Commonの上書き */
.video-channel-row { background-color: rgba(0,0,0,0.2); border-radius: 0 0 10px 10px; }

.tooltip-relay-name { color: #aaa; font-size: 0.8em; }

@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* -----------------------------------------
   ECharts & タイムラインスタイル
   ----------------------------------------- */
body.mode-timeline .video-flex-row { display: none !important; }
body.mode-timeline .timeline-echarts-wrapper { display: block !important; }
body.mode-timeline #livePickupSection { display: none !important; }

.timeline-echarts-wrapper {
  display: none; width: 100%; height: 140px; background: #1a1a1a;
  border: 1px solid #444; border-radius: 8px; margin-bottom: 20px;
}
.echarts-viz { width: 100%; height: 100%; }

@media (max-width: 1400px) {
  body.mode-timeline .timeline-echarts-wrapper { display: none !important; }
  body.mode-timeline .video-flex-row { display: flex !important; flex-wrap: wrap; }
}

@media (max-width: 768px) {
   .section-title { font-size: 1.4rem; }
   .view-switcher { display: none; }
} 

@media (max-width: 450px) {
  .section-title { font-size: 1.3rem; }
  .fin-badge-overlay { font-size: 10px; padding: 4px 7px; }
}