/* =========================================================================
   📺 BLM48 — แถบบนของแท็บ Fan Post (fanpost.html) / Video (musicvideo.html)
   แท็บข้อความ (อันที่เลือกตัวเข้ม + ขีดเหลือง) + ไอคอนเหรียญตรา (leaderboard) + ค้นหา (search)
   สไตล์อ้างอิงแถบ Live / Theater / Video ของ iAM48
   ========================================================================= */
.media-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.media-topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.media-tabs { display: flex; align-items: center; gap: 22px; }
.media-tab {
  position: relative;
  border: none;
  background: none;
  padding: 6px 0;
  font-family: 'Quicksand', 'Kanit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #767b84;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
}
.media-tab.active { color: #222; font-weight: 700; }
/* ขีดเหลืองใต้แท็บที่เลือก (ทับครึ่งล่างของตัวอักษรเล็กน้อยแบบ iAM) */
.media-tab.active::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 5px;
  border-radius: 3px;
  background: #ffde5b;
  z-index: -1;
}
.media-actions { display: flex; align-items: center; gap: 4px; }
.media-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.media-icon-btn svg { width: 25px; height: 25px; }
.media-icon-btn:active { opacity: 0.6; }
