:root { --bg: #0f0f0f; --accent: #ff0033; --text: #fff; --muted: #aaa; --card: #212121; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; background: var(--bg); color: var(--text);
  font-family: Roboto, "Segoe UI", Arial, sans-serif; overflow: hidden; }
#app { height: 100%; }

.layout { display: flex; height: 100vh; }
.sidebar { width: 180px; flex: 0 0 180px; background: rgba(0,0,0,.35); padding: 24px 12px; }
.side-profile { display: flex; align-items: center; padding: 10px; margin-bottom: 18px; border-radius: 10px; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 10px; }
.side-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item { padding: 12px 14px; margin-bottom: 6px; border-radius: 10px; color: var(--muted); font-size: 17px; cursor: pointer; }
.side-item.active { color: var(--text); }
.si-label { pointer-events: none; }

.main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px 32px 60px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.greet { font-size: 22px; font-weight: 500; }
.logo { display: flex; align-items: center; font-size: 20px; font-weight: 700; }
.logo::before { content: "\25B6"; background: var(--accent); color: #fff; border-radius: 6px;
  padding: 2px 7px; margin-right: 8px; font-size: 14px; }

.row { margin-bottom: 30px; }
.row-title { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.strip { white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 10px 6px; font-size: 0; }
.strip::-webkit-scrollbar { display: none; }

.tile { display: inline-block; vertical-align: top; width: 300px; margin-right: 16px; cursor: pointer;
  border-radius: 12px; padding: 4px; white-space: normal; font-size: 15px; }
.thumb { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; background: var(--card);
  border-radius: 10px; overflow: hidden; }
.thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dur { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.85);
  font-size: 12px; padding: 1px 5px; border-radius: 4px; }
.heart { position: absolute; top: 6px; right: 8px; font-size: 20px; color: rgba(255,255,255,.55);
  text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.heart.on { color: var(--accent); }
.t-title { font-size: 15px; margin-top: 8px; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.t-chan { font-size: 13px; color: var(--muted); margin-top: 3px; }

.tile.focused { box-shadow: 0 0 0 3px #fff; }
.side-item.focused, .side-profile.focused { background: rgba(255,255,255,.18); color: #fff; }
.btn.focused, .search-input.focused, .add-input.focused, .pin-input.focused { box-shadow: 0 0 0 3px #fff; }

.empty { color: var(--muted); font-size: 16px; margin-top: 20px; }
.searchbox { margin-bottom: 20px; }
.search-input, .add-input, .pin-input { width: 100%; max-width: 480px; font-size: 18px; padding: 12px 16px;
  border-radius: 24px; border: none; background: var(--card); color: #fff; }

.sec { font-size: 18px; margin: 24px 0 12px; }
.chan-list { max-width: 620px; }
.chan-row { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cr-name { font-size: 16px; }
.btn { background: var(--accent); color: #fff; border: none; border-radius: 20px;
  padding: 10px 18px; font-size: 15px; cursor: pointer; margin-right: 10px; }
.btn.small { background: #333; padding: 7px 14px; font-size: 14px; }
.add-row, .theme-row { margin: 12px 0; max-width: 620px; }
.add-input { display: inline-block; width: auto; max-width: 380px; margin-right: 10px; vertical-align: middle; }
.gate { max-width: 360px; margin: 40px auto; text-align: center; }
.gate > * { margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 14px; }

#player-overlay { display: none; position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; background: #000; z-index: 100; }
#player-host { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; }
#player-host iframe { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; border: 0; }
.player-hint { position: absolute; top: 14px; left: 18px; color: rgba(255,255,255,.7);
  font-size: 14px; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 6px; z-index: 2; }
