@charset "utf-8";

/* =========================================
   動画一覧/アーカイブ用スタイル (style_root.css)
   ========================================= */
.archive-row .video-card-vertical {
  width: calc((100% - 70px) / 8);
  min-width: 0;
}

.archive-row .video-title-compact {
  font-size: 12px;
  line-height: 1.3;
}

.archive-row .time-badge,
.archive-row .channel-name-mini,
.archive-row .member-status-text,
.archive-row .viewer-count-text {
  font-size: 12px;
}

.archive-row .channel-icon-mini {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* ==================
   Birthday Pickup
   ================== */
.pickup-section {
  background: linear-gradient(135deg, #2d2025 0%, #2d2815 100%);
  border: 2px solid #ffca28;
  border-radius: 12px;
  margin: 0 auto 30px;
  width: fit-content;
  max-width: min(1400px, 100%);
  min-width: 280px;
  box-sizing: border-box;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
}

.close-pickup-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-pickup-btn:hover {
  background: rgba(255, 64, 129, 0.9);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 64, 129, 0.6);
}

.pickup-section::before {
  content: "✨";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
  opacity: 0.5;
  animation: spin 8s linear infinite;
  pointer-events: none;
}

.pickup-section::after {
  content: "🎁";
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 1.5rem;
  opacity: 0.3;
  transform: rotate(15deg);
  z-index: 0;
  pointer-events: none;
}

.pickup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.pickup-title-wrapper h3 {
  background: linear-gradient(to right, #ff4081, #ffab40);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.pickup-title-wrapper p {
  color: #ddd;
  font-size: 0.9rem;
  margin-top: 5px;
}

.pickup-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.pickup-channel-group {
  flex: 0 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

.pickup-channel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.pickup-ch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.pickup-ch-link:hover {
  opacity: 0.85;
}

.pickup-ch-link:hover .pickup-ch-name {
  color: #ffca28;
  text-decoration: underline;
}

.pickup-ch-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffca28;
  object-fit: cover;
}

.pickup-ch-name {
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
  transition: color 0.2s ease;
}

.pickup-ch-count {
  font-size: 0.78rem;
  color: #ffca28;
  background: rgba(255, 202, 40, 0.15);
  border: 1px solid rgba(255, 202, 40, 0.3);
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.pickup-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  padding-top: 6px;
  scroll-behavior: smooth;
  cursor: grab;
}

.pickup-scroll-container.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.pickup-scroll-container.is-dragging * {
  user-select: none;
  pointer-events: none;
}

.pickup-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.pickup-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.pickup-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 202, 40, 0.5);
  border-radius: 3px;
}

.pickup-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 190px;
  background: #222;
  border-radius: 8px;
  text-decoration: none;
  color: #eee;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  border: 1px solid #444;
}

.pickup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  border-color: #ffca28;
}

.pickup-card.is-live {
  border-color: rgba(239, 68, 68, 0.6);
}

.pickup-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}

.pickup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pickup-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  z-index: 5;
}

.pickup-badge.live {
  background: #f00;
}

.pickup-badge.time {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pickup-card-title {
  margin: 6px 8px 8px 8px;
  padding: 0;
  font-size: 0.76rem;
  color: #ddd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  height: calc(0.76rem * 1.35 * 2);
  word-break: break-all;
  box-sizing: content-box;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ==========================================================
   レスポンシブ設定 (Responsive Design)
   ========================================================== */
@media (max-width: 1200px) {
  .archive-row .video-card-vertical {
    width: calc((100% - 50px) / 6);
  }
}
@media (max-width: 1000px) {
  .archive-row .video-card-vertical {
    width: calc((100% - 40px) / 5);
  }
}
@media (min-width: 960px) {
  .pickup-section {
    padding: 18px 30px;
  }

  .pickup-card {
    flex: 0 0 210px;
  }
}
@media (max-width: 768px) {
  .pickup-card {
    flex: 0 0 160px;
  }

  .pickup-ch-name {
    font-size: 0.84rem;
  }
}
@media (max-width: 768px) {
  .archive-row .video-card-vertical {
    width: calc((100% - 30px) / 4);
    min-width: 0;
  }

  .archive-row .section-title {
    font-size: 1.3rem;
  }

  .archive-row .video-info-compact {
    padding: 6px;
  }

  .archive-row .video-title-compact {
    font-size: 11px;
    line-height: 1.35;
  }

  .archive-row .time-badge,
  .archive-row .viewer-count-text,
  .archive-row .member-status-text {
    font-size: 11px;
    padding: 2px 4px;
    flex-shrink: 0;
  }

  .archive-row .channel-name-mini {
    font-size: 10px;
    min-width: 0;
  }

  .archive-row .channel-icon-mini {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }
}
@media (max-width: 580px) {
  .archive-row .video-card-vertical {
    width: calc((100% - 20px) / 3);
  }
}

/* ==========================================================
   検索・所属企業フィルターの横スクロールおよびタグ用スタイル
   ========================================================== */
.quick-filters.bottom-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.quick-filters.bottom-filters .filter-tag {
  flex-shrink: 0;
}
.quick-filters.bottom-filters::-webkit-scrollbar {
  display: none;
}

.quick-filters.bottom-filters {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.agency-filter-row {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap !important;
  gap: 8px;
  white-space: normal !important;
  width: auto !important;
  flex: 1;
  min-width: 0;
}
.agency-filter-row::-webkit-scrollbar {
  display: none;
}

.agency-filter-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.agency-tag {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #aaa !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  height: 30px !important;
  padding: 0 14px !important;
  cursor: pointer;
  font-size: 0.8rem !important;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.agency-tag:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.agency-tag.active {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  font-weight: bold;
}

/* 時間ブロック オプションボタン */
.timeblock-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ccc;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.timeblock-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.timeblock-toggle-btn.active {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  font-weight: 600;
}

/* スティッキーバー */
#timebar {
  position: sticky;
  top: 0; /* JSで site-header の高さに応じて動的更新 */
  z-index: 900;
  background: rgba(13, 13, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* カテゴリ切り替えタブ (当日 / 未来 / アーカイブ) */
.timebar-categories {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tb-cat-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tb-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tb-cat-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* 時間ブロックのエリア（PCは自動折り返し多段表示、SPは横スクロール） */
.timebar-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-bottom: 2px;
}

.timebar-blocks::-webkit-scrollbar {
  display: none;
}

.timebar-date {
  font-size: 0.75rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-right: 2px;
}

.timebar-separator {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}

.timebar-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.timebar-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.timebar-btn--live {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 600;
}

.timebar-btn--live:hover {
  background: rgba(220, 38, 38, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* 日付セクション */
.tb-date-section {
  margin-bottom: 4px;
}

/* 各時間ブロック */
.time-block-section {
  margin-bottom: 5px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.time-block-section:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* アコーディオンヘッダー */
.time-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.18s ease;
}

.time-block-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.time-block-header.is-live-header {
  background: rgba(220, 38, 38, 0.08);
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
}

.time-block-header.is-live-header:hover {
  background: rgba(220, 38, 38, 0.13);
}

/* ブロックラベル */
.tb-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d8d8e8;
  flex: 1;
  min-width: 0;
  letter-spacing: 0.01em;
}

/* アバタープレビュー */
.tb-avatars {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.tb-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 30, 50, 0.9);
  object-fit: cover;
  margin-left: -5px;
  transition: transform 0.15s ease;
  position: relative;
}

.tb-avatar:first-child {
  margin-left: 0;
}

.tb-avatar:hover {
  transform: scale(1.15);
  z-index: 2;
}

.tb-avatar-extra {
  font-size: 0.7rem;
  color: #888;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2px 7px;
  white-space: nowrap;
  margin-left: 5px;
  flex-shrink: 0;
}

/* 展開矢印 */
.tb-arrow {
  flex-shrink: 0;
  color: #666;
  transition: transform 0.22s ease, color 0.18s ease;
}

.time-block-header:hover .tb-arrow {
  color: #999;
}

.tb-arrow.is-open {
  transform: rotate(180deg);
}

/* アコーディオン本体 */
.time-block-body {
  display: none;
  padding: 10px 10px 14px;
  background: rgba(0, 0, 0, 0.15);
}

.time-block-body.is-open {
  display: block;
}

/* =============================
   タイムブロック レスポンシブ
   ============================= */
@media (max-width: 768px) {
  #timebar {
    top: 48px;
    gap: 5px 4px;
    padding: 6px 8px;
  }

  .timebar-blocks {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .timebar-date {
    font-size: 0.7rem;
    padding: 1px 6px;
  }

  .timebar-btn {
    padding: 3px 9px;
    font-size: 0.72rem;
  }

  .tb-avatar {
    width: 20px;
    height: 20px;
  }

  .tb-label {
    font-size: 0.82rem;
  }

  .time-block-header {
    padding: 9px 12px;
    gap: 8px;
  }
}