/* Skin: "youtube" — the classic ~2009 YouTube watch page. White chrome, the
   You(Tube) logo, a black player, the five gold stars, a red Subscribe button,
   and a Related Videos rail down the right. Applied to every video entry. */

body.yt {
  margin: 0; background: #fff; color: #333;
  font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.4;
}

.ytpage { max-width: 960px; margin: 0 auto; padding: 0 10px 40px; }

/* --- Header: logo, search, account --- */
.yt-head {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 4px 10px; border-bottom: 1px solid #ccc; margin-bottom: 16px;
}
.yt-logo { text-decoration: none; font-weight: bold; font-size: 26px; line-height: 1;
  font-family: Arial, Helvetica, sans-serif; letter-spacing: -1px; white-space: nowrap; }
.yt-you { color: #333; }
.yt-tube { background: #cd201f; color: #fff; padding: 1px 5px 2px; border-radius: 5px; margin-left: 1px; }
.yt-search { flex: 1; display: flex; max-width: 560px; }
.yt-search input {
  flex: 1; border: 1px solid #9c9c9c; border-right: 0; height: 26px; padding: 0 8px;
  font-size: 13px; border-radius: 1px 0 0 1px; box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.yt-search button {
  border: 1px solid #9c9c9c; height: 28px; padding: 0 18px; cursor: pointer; font-size: 12px;
  color: #333; background: linear-gradient(#fcfcfc, #e8e8e8); border-radius: 0 2px 2px 0;
}
.yt-search button:hover { background: linear-gradient(#fff, #ddd); }
.yt-acct { font-size: 12px; }
.yt-acct a { color: #2b587a; text-decoration: none; font-weight: bold; }

/* --- Two-column body --- */
.yt-body { display: flex; gap: 18px; align-items: flex-start; }
.yt-main { flex: 1; min-width: 0; }
.yt-side { width: 220px; flex: none; }

/* --- The player --- */
.yt-player { background: #000; aspect-ratio: 16 / 9; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.yt-player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Title --- */
.yt-title { font-size: 17px; font-weight: bold; color: #111; margin: 12px 0 6px; line-height: 1.25; }

/* --- Stats bar: views, stars, tools --- */
.yt-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  border-bottom: 1px solid #e2e2e2; padding-bottom: 8px; margin-bottom: 12px;
}
.yt-views { color: #555; font-size: 12px; }
.yt-views b { color: #111; font-size: 13px; }
.yt-stars { color: #f0c14b; letter-spacing: 1px; font-size: 14px; }
.yt-stars i { font-style: normal; text-shadow: 0 0 1px #c69b1b; }
.yt-tools { margin-left: auto; display: flex; gap: 12px; }
.yt-tool { color: #2b587a; cursor: default; white-space: nowrap; }
.yt-tool.like { color: #167ac6; }

/* --- Uploader box --- */
.yt-uploader {
  display: flex; align-items: center; gap: 10px;
  background: #f4f4f4; border: 1px solid #e0e0e0; padding: 10px; margin-bottom: 14px;
}
.yt-avatar {
  width: 48px; height: 48px; flex: none; background: #b6452f; color: #fff;
  font-weight: bold; font-size: 18px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #8f3522;
}
.yt-up-meta { flex: 1; min-width: 0; }
.yt-channel { color: #2b587a; font-weight: bold; font-size: 13px; text-decoration: none; }
.yt-channel:hover { text-decoration: underline; }
.yt-subs { color: #888; margin-left: 6px; }
.yt-pub { margin: 4px 0 0; color: #888; font-size: 11px; }
.yt-sub {
  flex: none; display: inline-block; text-decoration: none; line-height: 1;
  border: 1px solid #9d2720; cursor: pointer; color: #fff; font-weight: bold;
  font-size: 12px; padding: 8px 16px; border-radius: 2px;
  background: linear-gradient(#e04b43, #cd201f); text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
.yt-sub:hover { background: linear-gradient(#e75d55, #b91d1c); }

/* --- Description --- */
.yt-desc { font-size: 13px; color: #222; line-height: 1.55; }
.yt-lead { font-weight: bold; color: #111; margin: 0 0 .7em; }
.yt-desc .entry-body p { margin: 0 0 .8em; }
.yt-watch { margin: 12px 0 0; }
.yt-watch a { color: #2b587a; font-weight: bold; text-decoration: none; }

/* --- Related videos rail --- */
.yt-side-h { font-size: 12px; color: #333; margin: 0 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid #ccc; font-weight: bold; }
.yt-rel { display: flex; gap: 8px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #eee; }
.yt-rel:hover .yt-rel-meta b { text-decoration: underline; }
.yt-rel-thumb { position: relative; flex: none; width: 120px; height: 68px; background: #000; }
.yt-rel-thumb img { width: 120px; height: 68px; display: block; object-fit: cover; }
.yt-rel-dur {
  position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,.8); color: #fff;
  font-style: normal; font-size: 10px; padding: 0 3px; line-height: 1.4;
}
.yt-rel-meta { display: flex; flex-direction: column; min-width: 0; }
.yt-rel-meta b { color: #2b587a; font-size: 12px; font-weight: bold; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-rel-by { color: #888; font-size: 11px; margin-top: 2px; }
.yt-rel-views { color: #888; font-size: 11px; }

/* --- Made-up related videos (placeholder thumbnails) --- */
.yt-rel.silly { cursor: default; }
.yt-rel-thumb.placeholder { display: flex; align-items: center; justify-content: center; }
.yt-rel-thumb.placeholder .ph-play {
  color: rgba(255,255,255,.85); font-size: 22px; line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* --- Comments --- */
.yt-comments { margin-top: 22px; border-top: 1px solid #e2e2e2; padding-top: 14px; }
.yt-c-h { font-size: 14px; font-weight: bold; color: #333; margin: 0 0 10px; }
.yt-c-box {
  border: 1px solid #d9d9d9; background: #fafafa; color: #999; font-size: 12px;
  padding: 7px 10px; margin-bottom: 16px;
}
.yt-comment { display: flex; gap: 10px; margin: 0 0 15px; }
.yt-c-avatar {
  width: 36px; height: 36px; flex: none; color: #fff; font-weight: bold; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.yt-c-body { flex: 1; min-width: 0; }
.yt-c-head { line-height: 1.2; }
.yt-c-user { color: #2b587a; font-weight: bold; font-size: 12px; }
.yt-c-time { color: #999; font-size: 11px; margin-left: 5px; }
.yt-c-text { margin: 3px 0 4px; color: #222; font-size: 13px; line-height: 1.45; }
.yt-c-actions { display: flex; gap: 12px; color: #888; font-size: 11px; }
.yt-c-vote { color: #555; }
.yt-c-reply { color: #2b587a; }

/* --- Footer --- */
.yt-foot {
  margin-top: 26px; padding-top: 12px; border-top: 1px solid #ccc;
  color: #999; font-size: 11px; text-align: center;
}
.yt-foot-logo { font-weight: bold; font-size: 14px; margin-right: 4px; }
.yt-foot .yt-tube { padding: 0 3px 1px; border-radius: 3px; }

@media (max-width: 760px) {
  .yt-body { flex-direction: column; }
  .yt-side { width: 100%; }
  .yt-tools { display: none; }
}

@media (max-width: 480px) {
  /* Header: let the search box shrink so "Sign In" stops overflowing the row */
  .ytpage { padding: 0 8px 30px; }
  .yt-head { gap: 10px; }
  .yt-search { min-width: 0; max-width: none; }
  .yt-search input { min-width: 0; }
}
