/* ── 粵語字幕庫 · 淺藍色主題 ── */

/* ── 基礎 ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'Noto Sans SC', 'PingFang HK', sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: #eef3f9;
  color: #2c3e50;
}

h1 {
  color: #1a6daa;
  border-bottom: 2px solid #c8dae8;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-cover {
  max-height: 100px;
  max-width: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

a {
  color: #2980b9;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #1a6daa;
}

/* ── 返回連結 ── */
.back {
  display: inline-block;
  margin-bottom: 20px;
  color: #7f8fa6;
  font-size: 14px;
}

/* ── 主頁卡片網格 ── */
.show-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}
@media (max-width: 860px) { .show-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) { .show-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .show-grid { grid-template-columns: repeat(2, 1fr); } }

.show-card {
  background: #ffffff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.show-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 109, 170, 0.12);
  border-color: #b8d0e8;
}

.show-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #e8eef5;
  display: block;
}

.show-cover-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  background: #e8eef5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  line-height: 1;
}

.show-icon {
  font-size: 42px;
  line-height: 1;
}

.show-card-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.show-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.show-name {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}

.show-info .sub {
  color: #7f8fa6;
  font-size: 11px;
}

/* ── 狀態徽章 ── */
.status-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.status-done {
  background: #27ae60;
  color: #fff;
}
.status-wip {
  background: #f39c12;
  color: #fff;
}

/* ── 統計區塊 ── */
.stats {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  margin-top: 10px;
}
.stats h3 {
  color: #1a6daa;
  margin-bottom: 10px;
}
.stats td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef3f9;
}

/* ── 統計列（show 頁面） ── */
.stats-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  color: #7f8fa6;
  font-size: 14px;
}
.stats-bar strong {
  color: #2c3e50;
}

/* ── 季度分組（collapsible） ── */
.season-section {
  background: #ffffff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  padding: 0;
  margin: 12px 0;
  overflow: hidden;
}
.season-header {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1a6daa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}
.season-header::-webkit-details-marker { display: none; }
.season-header::after {
  content: '▸';
  font-size: 12px;
  transition: transform 0.2s;
  color: #7f8fa6;
}
details[open] .season-header::after {
  transform: rotate(90deg);
}
.season-header:hover {
  background: rgba(26, 109, 170, 0.06);
}
.season-count {
  font-size: 13px;
  color: #7f8fa6;
  font-weight: 400;
}

/* ── 表格 ── */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 8px 20px;
  color: #7f8fa6;
  font-size: 12px;
  border-bottom: 1px solid #eef3f9;
}

td {
  padding: 8px 20px;
  border-bottom: 1px solid #eef3f9;
  font-size: 13px;
}

tr:hover td {
  background: rgba(26, 109, 170, 0.03);
}

.ep-num {
  color: #7f8fa6;
  width: 45px;
  font-size: 12px;
}

.ep-links {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

/* ── 頁尾 ── */
.updated {
  color: #95a5b8;
  font-size: 12px;
  margin-top: 30px;
  text-align: center;
}

.update-time {
  color: #95a5b8;
  font-size: 12px;
  margin-top: 30px;
  text-align: center;
}

/* ── 副標題文字 ── */
.subtitle-desc {
  margin-bottom: 25px;
  color: #7f8fa6;
}

/* ── 季度描述文字 ── */
.season-desc {
  color: #7f8fa6;
  margin-bottom: 20px;
}

/* ── 連結卡片（主頁） ── */
a.card-link {
  text-decoration: none;
}
