/* 1zoku TV: a 2005-06 video-site watch page. Arial 12px, blue links, tabbed header, grey rounded boxes. */
* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; padding: 8px; font: 12px Arial, Helvetica, sans-serif; color: #000; background: #fff; }
a { color: #03c; }
#page { max-width: 875px; margin: 0 auto; }

/* Header: logo, util links, search, tabs, sub-nav strip */
header { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; }
.logo { grid-row: 1 / 3; font: bold 34px/1 'Arial Black', Arial, sans-serif; letter-spacing: -2px; color: #222; text-decoration: none; }
.logo b { color: #03c; font-style: italic; margin-left: 3px; }
.logo small { display: block; margin-top: 2px; font: 12px Arial, sans-serif; letter-spacing: 0; color: #888; }
.util { margin: 0 0 6px; text-align: right; }
.search { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 4px; }
.search input { width: 250px; min-width: 0; font: 12px Arial, sans-serif; padding: 2px; border: 1px solid #999; }
.search button { font: 12px Arial, sans-serif; }
.tabs { grid-column: 1 / -1; display: flex; gap: 5px; margin-top: 12px; }
.tabs a { flex: 1; padding: 4px 5px 3px; text-align: center; font-weight: bold; font-size: 13px; background: #bce; border-radius: 6px 6px 0 0; }
.tabs a.on { background: #ddd; }
.subnav { grid-column: 1 / -1; padding: 6px 8px; background: #ddd; color: #333; text-align: center; }

/* Watch: player, then title / From: / description; Related Videos on the right */
main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 15px; margin-top: 15px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; min-width: 480px; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Our control bar sits below the video, never over it */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 3px 4px; border: 1px solid #999; border-top: 0; background: linear-gradient(#f6f6f6, #ccc); }
.bar button { min-width: 28px; padding: 1px 5px; font: bold 11px Arial, sans-serif; }
#seek { flex: 1 1 120px; min-width: 80px; }
#vol { width: 60px; }
#time { font-size: 11px; color: #333; white-space: nowrap; }
.ident { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #444; font: bold 22px Arial, sans-serif; }
h1 { margin: 10px 0 4px; font-size: 18px; }
.from { margin: 0 0 8px; color: #666; font-size: 11px; }
.from b { color: #000; font-size: 12px; }
.desc { line-height: 1.4; overflow-wrap: anywhere; }
.desc p { margin: 0 0 8px; }
.desc img { max-width: 100%; }

.box h2 { margin: 0; padding: 4px 6px 3px; font-size: 13px; color: #333; background: #ccc; border-radius: 8px 8px 0 0; }
#list { margin: 0; padding: 0 6px 6px; list-style: none; background: #eee; border: 1px solid #ccc; border-top: 0; }
#list li { display: grid; grid-template-columns: 120px 1fr; column-gap: 8px; align-content: start; padding: 6px 4px 2px; }
#list a { display: contents; font-weight: bold; }
#list img { grid-row: 1 / 6; border: 1px solid #999; background: #000; }
#list b { overflow-wrap: anywhere; }
#list span { color: #666; font-size: 11px; overflow-wrap: anywhere; }
#list li:has([aria-current='true']) { background: #ffc; }
#list li:has([aria-current='true'])::after { content: '\AB  Now Playing'; font: bold 11px Arial, sans-serif; }
#list .none { display: block; padding: 12px 4px 8px; color: #666; }
#list li[hidden] { display: none; }

/* Placeholder tag: sample content the crew hasn't replaced yet */
.ph { display: inline-block; justify-self: start; margin: 2px 0; padding: 0 3px; font: bold 9px/13px Arial, sans-serif; text-transform: uppercase; color: #fff !important; background: #f90; border-radius: 3px; vertical-align: middle; }

@media (max-width: 820px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .player { min-width: 0; }
}
@media (max-width: 520px) {
  .logo { font-size: 28px; }
  .search input { width: auto; flex: 1; }
  .tabs a { font-size: 12px; padding-inline: 2px; }
}
