/* 直播互動小房間（首頁的推薦區塊）：左邊像素遊戲，右邊仿 YouTube 聊天室 */
.band-room {
  --ink: #3d2c1c; --ink-soft: #6e5a46; --paper: #fbf7ea; --pink: #e06c7d; --peach: #f7d6b0;
  position: relative; padding: 76px 24px 84px; color: var(--ink);
  background-color: #f3d98c;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 2px, transparent 2px);
  background-size: 32px 32px;
  border-bottom: 6px solid #b8913a;
}
.band-room .room-inner { max-width: 1180px; margin: 0 auto; }
.room-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.room-head .rec { display: inline-block; font: 15px/1 var(--pixel); color: #fff; background: var(--pink); padding: 8px 12px; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
.room-head h2 { font: 40px/1.15 var(--pixel); margin: 0 0 10px; }
.room-head p { font: 16px/1.8 var(--pixel); color: var(--ink-soft); margin: 0; max-width: 640px; }
/* 直播小房間 */
.room-demo { display: grid; grid-template-columns: auto minmax(300px, 380px); gap: 28px; align-items: start; justify-content: start; }
.room-left { min-width: 0; }
.room-stage { position: relative; display: inline-block; filter: drop-shadow(6px 6px 0 rgba(61, 44, 28, 0.22)); }
.room-stage canvas { display: block; outline: none; image-rendering: pixelated; }
.room-stage canvas:focus-visible { outline: 3px dashed var(--pink); outline-offset: 4px; }
/* 開始遊玩的告示：房間照樣在後面動，點一下就開始 */
.play-cover {
  position: absolute; inset: 0; z-index: 2; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(61, 44, 28, 0.38);
  font-family: var(--pixel);
}
.play-cover:hover { background: rgba(61, 44, 28, 0.28); }
.play-btn {
  font: 26px/1 var(--pixel); color: #fff; background: var(--pink);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 16px 24px;
  animation: playPulse 1.2s steps(2) infinite;
}
.play-tip { font: 15px/1.4 var(--pixel); color: #fff; background: rgba(61, 44, 28, 0.75); padding: 6px 12px; }
@keyframes playPulse { 50% { transform: translateY(-4px); } }
.room-loading { position: absolute; inset: 0; min-width: 266px; min-height: 282px; display: flex; align-items: center; justify-content: center; font: 15px var(--pixel); }
.emote-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font: 15px/1 var(--pixel); }
.emote-bar span { margin-right: 4px; }
.emote-bar button {
  min-width: 44px; height: 40px; font: 18px/1 var(--pixel); color: var(--ink); cursor: pointer;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.emote-bar button:hover { background: var(--peach); }
.emote-bar button:active { transform: translate(3px, 3px); box-shadow: none; }
.emote-bar kbd { font-size: 11px; margin: 0 0 0 4px; padding: 1px 3px; border-width: 1px; vertical-align: 2px; }
.say-box { margin-top: 10px; }
.say-box input { width: 100%; font: 15px/1.4 var(--pixel); color: var(--ink); background: #fffbe6; border: 3px solid var(--ink); padding: 8px 10px; outline: none; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font: 14px/1.9 var(--pixel); color: var(--ink-soft); }
kbd { font: 13px/1 var(--pixel); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-bottom-width: 4px; padding: 3px 6px; margin-right: 3px; }
.room-note { margin-top: 32px; background: var(--paper); border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(61, 44, 28, 0.2); padding: 20px 24px; }
.room-note h3 { font: 20px/1.3 var(--pixel); margin: 0 0 8px; }
.room-note ul { margin: 0; padding-left: 1.2em; }

/* ---------- 仿 YouTube 直播聊天室（刻意不用像素風） ---------- */
.yt {
  --yt-text: #0f0f0f; --yt-sub: #606060; --yt-line: #e5e5e5;
  display: flex; flex-direction: column; height: 600px;
  background: #fff; border: 1px solid var(--yt-line); border-radius: 12px; overflow: hidden;
  font: 13px/1.5 Roboto, Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: var(--yt-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.yt-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--yt-line); font-size: 16px; }
.yt-head .tab { display: flex; align-items: center; gap: 6px; }
.yt-head .tab::after { content: ""; border: 5px solid transparent; border-top-color: var(--yt-text); margin-top: 5px; }
.yt-head .icons { display: flex; gap: 2px; color: var(--yt-sub); }
.yt-head .icons span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 18px; }
.yt-pin { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--yt-line); background: #f9f9f9; }
.yt-pin .pin-label { font-size: 11px; color: var(--yt-sub); }
.yt-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.yt-msg { display: flex; gap: 16px; padding: 4px 24px 4px 16px; align-items: flex-start; }
.yt-msg:hover { background: #f2f2f2; }
.av {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 500;
}
.yt-body { min-width: 0; padding-top: 2px; }
.yt-name { color: var(--yt-sub); font-weight: 500; margin-right: 8px; }
.yt-name.member { color: #2ba640; }
.yt-name.mod { color: #5e84f1; }
.yt-name.owner { color: #0f0f0f; background: #ffd600; padding: 0 4px; border-radius: 2px; }
.yt-name.me { color: #0f0f0f; }
.badge { display: inline-block; font-size: 11px; margin: 0 4px 0 -4px; vertical-align: 1px; }
.yt-text { word-break: break-word; }
.yt-text.cmd { color: #065fd4; }
.yt-sys { padding: 6px 16px; color: var(--yt-sub); font-size: 12px; }
/* 超級留言 */
.yt-sc { margin: 6px 16px; border-radius: 4px; overflow: hidden; color: #fff; }
.yt-sc .sc-top { display: flex; gap: 12px; align-items: center; padding: 8px 16px; }
.yt-sc .sc-top b { display: block; font-weight: 500; opacity: 0.85; }
.yt-sc .sc-top em { font-style: normal; font-weight: 700; }
.yt-sc .sc-msg { padding: 8px 16px; }
.yt-sc.blue .sc-top { background: #1565c0; } .yt-sc.blue .sc-msg { background: #1e88e5; }
.yt-sc.pink .sc-top { background: #c2185b; } .yt-sc.pink .sc-msg { background: #e91e63; }
.yt-sc.yellow { color: #000; } .yt-sc.yellow .sc-top { background: #ffb300; } .yt-sc.yellow .sc-msg { background: #ffca28; }

.yt-input { border-top: 1px solid var(--yt-line); padding: 12px 16px 10px; }
.yt-me { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.yt-me b { font-weight: 500; color: var(--yt-sub); }
.yt-form { display: flex; align-items: center; gap: 8px; padding-left: 40px; }
.yt-form input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid #ccc; padding: 6px 0; font: inherit; font-size: 14px; outline: none; background: transparent;
}
.yt-form input:focus { border-bottom: 2px solid var(--yt-text); }
.yt-count { color: var(--yt-sub); font-size: 12px; }
.yt-send { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--yt-sub); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yt-send:hover { background: #f2f2f2; color: var(--yt-text); }
.yt-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0 0 40px; }
.yt-chips button {
  font: inherit; font-size: 13px; border: 0; border-radius: 8px; background: #f2f2f2; color: var(--yt-text); padding: 6px 12px; cursor: pointer;
}
.yt-chips button:hover { background: #e5e5e5; }


@media (max-width: 960px) {
  .room-demo { grid-template-columns: 1fr; }
  .yt { height: 480px; }
}
@media (max-width: 560px) {
  .band-room { padding: 56px 16px 64px; }
  .room-head h2 { font-size: 30px; }
}
