/**
 * The watch wall.
 *
 * Built to make pressing play the obvious thing to do: one big player, a grid of
 * real YouTube thumbnails underneath, and the creator's console tucked at the
 * bottom where it stays out of a visitor's way.
 */

.watch-head {
  padding: 1.6rem 0 0;
}

.watch-head h1 {
  margin: 0.5rem 0 0.3rem;
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
  margin: 1.4rem 0 2rem;
}

.watch-side {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .watch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- the player ---------------------------------------------------- */

/* The player and the "watch next" strip are styled in growth.css, because the
   same two pieces are mounted inside the game's pause and end-of-run sheets,
   which load growth.css rather than this file. */

.watch-controls {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.autoplay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.autoplay input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--mint);
}

/* --- the wall ------------------------------------------------------ */

.video-wall {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.video-wall li {
  display: grid;
  gap: 0.3rem;
}

.video-tile {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.video-tile:hover {
  border-color: var(--amber);
}

.video-tile.playing {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 95, 162, 0.28);
}

.video-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-tile strong {
  padding: 0 0.6rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.video-tile small {
  padding: 0 0.6rem 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.video-kind {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-direct {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* --- the creator's console ----------------------------------------- */

.own-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.own-row.hidden-row {
  opacity: 0.6;
}

.own-row img {
  width: 80px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.own-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.own-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: flex-start;
}

.danger-btn {
  color: var(--danger);
  border-color: var(--danger);
}

@media (max-width: 640px) {
  .own-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .own-row img {
    width: 120px;
  }
}

/* --- the pause-screen mini wall ------------------------------------ */

/* Also in growth.css — see the note by the player styles above. */
