* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f0f13;
  color: #e8e8e8;
  margin: 0;
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.updated {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* フィルター */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: #1a1a22;
  padding: 16px;
  border-radius: 10px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-filter {
  min-width: 200px;
}

.rank-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  background: #121218;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
}

.hint {
  color: #888;
  font-size: 0.8rem;
  margin: -8px 0 16px;
}

.rank-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #ccc;
  cursor: pointer;
  white-space: nowrap;
}

.rank-option input {
  accent-color: #7aa2ff;
  cursor: pointer;
}

label {
  font-size: 0.8rem;
  color: #aaa;
}

select,
input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #121218;
  color: #eee;
  min-width: 140px;
}

button {
  padding: 8px 16px;
  background: #333;
  color: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #444;
}

/* カード */
.video-card {
  background: #1a1a22;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.video-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.video-checkbox {
  margin-top: 4px;
  accent-color: #7aa2ff;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.video-title-area {
  flex: 1;
}

.video-title {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.video-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.video-meta a {
  color: #7aa2ff;
  text-decoration: none;
}

.video-meta a:hover {
  text-decoration: underline;
}

/* 試合リスト（配信用） */
.match-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.match-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0;
  border-top: 1px solid #2a2a35;
  align-items: center;
}

.match-checkbox {
  accent-color: #7aa2ff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.match-item a {
  color: #7aa2ff;
  text-decoration: none;
  font-weight: 500;
}

.match-item a:hover {
  text-decoration: underline;
}

.tag {
  background: #2a2a35;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 配信・動画本体がチェックされたとき → タイトル周りだけ暗くする */
.video-card.watched > .video-header,
.video-card.watched > .video-meta {
  opacity: 0.45;
}

/* 配信・動画本体がチェックされたとき → タイトル周りだけ暗くする */
.video-card.watched > .video-header,
.video-card.watched > .video-meta {
  opacity: 0.45;
}

/* タイムスタンプ自体がチェックされたとき暗くする */
.match-item.watched {
  opacity: 0.45;
}

/* タイムスタンプ自体がチェックされたときだけ暗くする */
.match-item.watched {
  opacity: 0.45;
}

/* 読み込み・終了メッセージ */
.loading,
.no-more {
  text-align: center;
  padding: 20px;
  color: #888;
}