/* streams.css — คลังสตรีม & VOD (เฉพาะหน้านี้) */

/* ช่องทางหลัก — มือถือ: ปุ่มไอคอน 3 ช่องในแถวเดียว · จอกว้าง: ป้ายมีชื่อช่อง */
.st-channels { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--sp-5); }
.st-channel { border: 1px solid var(--edge); }
.st-channel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; padding: var(--sp-2);
  background: var(--paper); color: var(--ink); text-decoration: none; text-align: center;
  border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
@media (hover: hover) { .st-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); text-decoration: none; } }
.st-channel b { display: block; line-height: 1.2; font-size: var(--fs-small); }
.st-channel small { display: none; color: var(--ink-3); font-size: var(--fs-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-channel__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-blue); color: var(--on-blue); font-size: 1.2rem; flex: none; }
.st-channel__icon--kick { background: var(--c-yellow); color: var(--on-yellow); }
.st-channel__icon--yt { background: var(--c-pink-deep); color: var(--on-pink-deep); }
@media (min-width: 768px) {
  .st-channels { gap: var(--sp-4); }
  .st-channel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-3); text-align: left; min-height: 64px; padding: var(--sp-3) var(--sp-4); }
  .st-channel__icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; }
  .st-channel b { font-size: var(--fs-body); }
  .st-channel small { display: block; }
}

/* ทีวีย้อนหลัง (.mini-win.player) — จอไม่มีแผ่นเสียง ใช้ความกว้างเต็ม */
.st-player .player__stage { padding-right: 0; }
.st-now__desc { font-weight: 400; }
.st-now__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-now__chips .chip i { font-size: 1.05em; }
.st-parts { flex-wrap: wrap; max-width: 100%; }
.st-parts button { min-height: 44px; }
@media (min-width: 900px) {
  .st-player .player__body { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "stage list" "deck list"; }
  .st-player .player__list { padding: 0 0 0 var(--sp-4); border-right: 0; border-left: 2px dashed var(--win-line); }
  .st-player .player__stage, .st-player .player__deck { max-width: none; }
}

/* เพลย์ลิสต์: ค้นหา + ชิปเกม + รายการสตรีม (รูปย่อ + ชื่อ + วันที่) */
.st-tools { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.st-filters .tab[aria-pressed="true"] { background: var(--c-pink-deep); border-color: transparent; color: #fff; }
.st-count { font: 500 .8125rem/1 var(--f-body); color: var(--ink-3); }
.st-playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-item {
  display: grid; grid-template-columns: auto 96px minmax(0, 1fr); align-items: center; gap: var(--sp-3);
  width: 100%; padding: 6px 8px; border: 1.5px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
@media (hover: hover) { .st-item:hover { background: var(--paper-2); border-color: var(--win-line); } }
.st-item[aria-current="true"] { background: var(--c-pink-soft); border-color: var(--win-border); }
.st-item__no { position: relative; font: 500 .75rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 1.6em; }
/* สตรีมที่อยู่บนจอ: เลขลำดับกลายเป็น ▶ */
.st-item[aria-current="true"] .st-item__no { color: transparent; }
.st-item[aria-current="true"] .st-item__no::before { content: "\25B6"; position: absolute; left: 0; top: 50%; translate: 0 -50%; color: var(--c-pink-deep); font-size: .8125rem; }
.st-item__thumb { width: 96px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--edge); background: var(--paper-2); }
.st-item__text { display: grid; gap: 2px; min-width: 0; }
.st-item__title { font-weight: 600; font-size: var(--fs-small); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.st-item__meta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); color: var(--ink-3); }
.st-player .more-wrap { margin-top: var(--sp-3); }
.st-player .empty { padding: var(--sp-5) 0; }

/* เพลเยอร์ YouTube (โหลด iframe เมื่อกดเท่านั้น) */
.st-media { border: 0; border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.st-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; }
.st-play img { width: 100%; height: 100%; object-fit: cover; transition: filter var(--t-fast); }
@media (hover: hover) { .st-play:hover img { filter: brightness(.82); } }
.st-play__btn {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--win-bar); color: #fff; font-size: 1.6rem;
  border: 3px solid #fff; box-shadow: var(--shadow-2);
}
.st-play__label {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0;
  padding: 2px 12px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap;
}

/* กล่องแทนเพลเยอร์ (ลิงก์ไปแพลตฟอร์ม / รอคลิป / คลิปหาย) — สูงตามเนื้อหา ไม่บังคับ 16:9 */
.st-ph {
  display: grid; justify-items: center; gap: var(--sp-2);
  min-height: 160px; padding: var(--sp-5) var(--sp-4); align-content: center;
  border: 2px dashed var(--paper-line); border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink-2); text-align: center; font-size: var(--fs-small);
}
.st-ph > i { font-size: 2rem; color: var(--c-blue-text); }
.st-ph p { margin: 0; max-width: 40ch; }
.st-ph strong { color: var(--ink); }
.st-ph .btn { max-width: 100%; white-space: normal; }
.st-ph--gone > i { color: var(--ink-3); }
/* มือถือ: กล่องแทนเพลเยอร์แบบเตี้ย — ไอคอนซ้าย ข้อความขวา ปุ่มเต็มแถว */
@media (max-width: 599px) {
  .st-ph { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; min-height: 0; padding: var(--sp-3); gap: var(--sp-2) var(--sp-3); font-size: var(--fs-caption); }
  .st-ph > i { font-size: 1.6rem; align-self: start; }
  .st-ph .btn { grid-column: 1 / -1; justify-self: stretch; }
}

.st-guests { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-guests__label { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.st-guests a.chip { text-decoration: none; }
.st-guests a.chip:hover { color: var(--c-pink-text); }

.st-social .icon-btn { text-decoration: none; }
.st-item { padding: 8px 12px; }

/* การ์ดช่วยดันเส้นทางเกม: ระยะแน่นพอดี (เดิมมีที่ว่างก้อนใหญ่ก่อนปุ่ม) */
.st-help { display: grid; gap: var(--sp-2); justify-items: start; }
.st-help p { margin: 0; }
.st-help .btn { margin-top: var(--sp-2); }
