:root {
  --yt-bg: #fff;
  --yt-text: #0f0f0f;
  --yt-muted: #606060;
  --yt-hover: #f2f2f2;
  --yt-line: #ccc;
  --yt-search-bg: #fff;
  --yt-search-border: #ccc;
  --yt-chip: #f2f2f2;
  --yt-header-h: 56px;
  --yt-guide-w: 240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.yt {
  font-family: Roboto, Arial, sans-serif;
  background: var(--yt-bg);
  color: var(--yt-text);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.yt-header {
  position: sticky;
  top: 0;
  z-index: 8;
  height: var(--yt-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--yt-bg);
}
.yt-left, .yt-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}
.yt-right { justify-content: flex-end; gap: 10px; }
.yt-icon {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--yt-text);
}
.yt-icon:hover { background: var(--yt-hover); }
.yt-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 8px;
  color: inherit;
}
.yt-logo svg { display: block; }
.yt-word {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-left: 2px;
  font-family: "Roboto", Arial, sans-serif;
}
.yt-cc { font-size: 10px; color: var(--yt-muted); align-self: flex-start; margin-top: 8px; margin-left: 2px; }
.yt-search-wrap {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.yt-search {
  flex: 1;
  display: flex;
  height: 40px;
}
.yt-search input {
  flex: 1;
  border: 1px solid var(--yt-search-border);
  border-right: 0;
  border-radius: 40px 0 0 40px;
  padding: 0 16px 0 18px;
  font-size: 16px;
  outline: none;
  background: var(--yt-search-bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
  min-width: 0;
}
.yt-search input:focus {
  border-color: #1c62b9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.0);
}
.yt-search-btn {
  width: 64px;
  border: 1px solid var(--yt-search-border);
  border-radius: 0 40px 40px 0;
  background: #f8f8f8;
  cursor: pointer;
  color: #0f0f0f;
}
.yt-search-btn:hover { background: #f0f0f0; }
.yt-mic {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  cursor: default;
  display: grid;
  place-items: center;
}
.yt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #aa47bc;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 14px;
}
.yt-err {
  text-align: center;
  color: #606060;
  font-size: 14px;
  margin: 8px 0 0;
}
.yt-flash {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}
.yt-layout {
  display: flex;
  min-height: calc(100vh - var(--yt-header-h));
}
.yt-guide {
  width: var(--yt-guide-w);
  padding: 8px 12px 24px;
  flex-shrink: 0;
  position: sticky;
  top: var(--yt-header-h);
  height: calc(100vh - var(--yt-header-h));
  overflow-y: auto;
}
.yt-gitem {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--yt-text);
  font-size: 14px;
}
.yt-gitem:hover { background: var(--yt-hover); }
.yt-gitem.active { background: var(--yt-hover); font-weight: 500; }
.yt-gitem svg { flex-shrink: 0; }
.yt-gsep {
  height: 1px;
  background: #e5e5e5;
  margin: 12px 0;
}
.yt-gtitle {
  font-size: 16px;
  font-weight: 500;
  padding: 6px 12px 8px;
}
.yt-main { flex: 1; min-width: 0; padding: 0 24px 48px; }
.yt-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0 18px;
  position: sticky;
  top: var(--yt-header-h);
  background: var(--yt-bg);
  z-index: 4;
}
.yt-chips::-webkit-scrollbar { display: none; }
.yt-chip {
  background: var(--yt-chip);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
  cursor: default;
}
.yt-chip.on {
  background: #0f0f0f;
  color: #fff;
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 16px;
}
.yt-card { cursor: default; }
.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #ccc;
}
.yt-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 500;
}
.yt-meta { display: flex; gap: 12px; margin-top: 12px; }
.yt-ch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.yt-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-sub { color: var(--yt-muted); font-size: 14px; line-height: 1.4; }
@media (max-width: 900px) {
  .yt-guide { display: none; }
  .yt-left, .yt-right { min-width: 0; }
  .yt-right .yt-icon:not(.yt-keep) { display: none; }
  .yt-word, .yt-cc { display: none; }
  .yt-main { padding: 0 12px 32px; }
}
