/* gameaday.xyz/tv: ten-foot layout, sized in vh so it reads from the couch. Old TV browsers:
   no gap, no inset, no aspect-ratio. */
@font-face { font-family: SG; src: url(/tv/sg-700.woff2) format("woff2"); font-weight: 700; }
html, body { margin: 0; height: 100%; }
body { background: #0b2a5c; color: #fff4e6; font-family: SG, "Arial Black", system-ui, sans-serif; overflow-x: hidden; transition: background-color 0.3s; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.hero { position: relative; height: 42vh; overflow: hidden; transition: background-color 0.3s; }
/* the whole page fits one 16:9 or 16:10 screen, so the remote never scrolls a card half off it.
   the clip takes the right of the hero, never more than 55% of the width, and the copy gets the rest:
   on a 16:10 laptop the old fixed 16:9 clip pushed under the copy */
.hero video { position: absolute; top: 0; right: 0; height: 100%; width: 74.7vh; width: calc(42vh * 16 / 9); max-width: 55vw; object-fit: cover; background: rgba(0, 0, 0, 0.15); }
.hero .shade { display: none; }
.hero .copy { position: absolute; top: 4vh; left: 5vw; width: 36vw; width: calc(100vw - min(42vh * 16 / 9, 55vw) - 9vw); }
.hero h1 { margin: 0; font-size: 6vh; line-height: 1; letter-spacing: 0.01em; }
.line { margin: 1.4vh 0 0; font-size: 2.4vh; line-height: 1.3; }
.meta { margin: 1vh 0 0; font-size: 2vh; opacity: 0.85; }
.setup { margin: 1.5vh 0 0; font-family: system-ui, sans-serif; font-weight: 600; font-size: 1.9vh; line-height: 1.35; opacity: 0.9; }
.play { margin-top: 1.8vh; background: #ffd23f; color: #1b1b2f; border: 0.5vh solid #1b1b2f; border-radius: 1.6vh; padding: 1.3vh 2.6vw; font-size: 2.8vh; font-weight: 700; box-shadow: 0 0.7vh 0 #1b1b2f; cursor: pointer; }
.soon { margin: 3.5vh 0 0; display: inline-block; font-size: 3vh; border: 0.4vh solid currentColor; border-radius: 1.6vh; padding: 1.2vh 2.4vw; opacity: 0.85; }

.rows { padding: 2vh 5vw 0; }
.rows h2 { margin: 0 0 1vh; font-size: 2.4vh; letter-spacing: 0.08em; opacity: 0.9; }
.row { display: flex; margin-bottom: 2.2vh; margin-right: -1.4vw; }
.tile { position: relative; flex: none; width: 24vh; width: calc(16vh * 16 / 9); height: 16vh; margin-right: 1.6vw; padding: 0; border: 0.5vh solid transparent; border-radius: 1.4vh; overflow: hidden; cursor: pointer; outline: none; transition: transform 0.12s, border-color 0.12s; }
.tile img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .n { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6vh 0.8vw; font-size: 1.9vh; text-align: left; background: rgba(0, 0, 0, 0.55); color: #fff; }
.tile:focus { border-color: #ffd23f; transform: scale(1.08); z-index: 2; box-shadow: 0 0 0 0.5vh #1b1b2f; }
/* play now: a picture and a name, all the cards sharing the width, so nothing runs off the page */
#now .tile { display: flex; flex-direction: column; flex: 1 1 0; width: auto; min-width: 0; height: auto; margin: 0 1.4vw 0 0; text-align: left; }
#now .tile img { position: relative; display: block; flex: none; height: auto; aspect-ratio: 16 / 9; }
#now .tile .n { position: static; display: block; padding: 1.2vh 1vw 1.4vh; background: none; color: inherit; font-size: 2.8vh; line-height: 1.05; }
#now .tile:focus { transform: scale(1.03); }
/* coming soon: small cards, ten to a line, picture then the whole name (it wraps, never cut); the hero tells the rest when one is chosen */
.row.small { flex-wrap: wrap; margin-bottom: 0; padding-bottom: 0; }
.row.small .tile { display: flex; flex-direction: column; flex: none; width: 8.6%; width: calc(10% - 1.4vw); height: auto; margin: 0 1.4vw 0 0; opacity: 0.85; text-align: left; }
.row.small .tile:focus { opacity: 1; }
.row.small .tile img { position: relative; display: block; height: auto; aspect-ratio: 16 / 9; }
.row.small .tile .n { position: static; display: block; padding: 0.7vh 0.6vw 0.8vh; background: none; color: inherit; font-size: 1.8vh; line-height: 1.12; }
.tile .tag { display: inline-block; background: #1b1b2f; color: #fff4e6; font-size: 1.4vh; padding: 0.4vh 0.6vw; border-radius: 0.8vh; }
.phonenote { margin: 2.4vh 0 0; padding: 14px 16px; background: #ffd23f; color: #1b1b2f; border-radius: 12px; font-size: 17px; line-height: 1.35; }
body.darkink .hero .copy { color: #1b1b2f; }

/* a phone or a narrow window: stack it */
@media (max-aspect-ratio: 1/1) {
  body { overflow: auto; }
  .hero { height: auto; }
  .hero video { position: relative; width: 100%; max-width: none; height: auto; display: block; }
  .hero .copy { position: relative; top: 0; left: 0; width: auto; min-width: 0; padding: 3vh 16px 3vh; }
  .hero h1 { font-size: 34px; }
  .line { font-size: 18px; } .meta { font-size: 15px; } .setup { font-size: 15px; }
  .play { font-size: 20px; padding: 12px 22px; }
  .rows { padding: 2.5vh 16px 0; }
  .rows h2 { font-size: 18px; }
  .row { flex-wrap: wrap; margin-right: -2vw; }
  #now .tile { flex: none; width: 44vw; margin: 0 2vw 2vw 0; }
  #now .tile .n { font-size: 16px; padding: 8px 10px 10px; }
  .row.small .tile { width: 29vw; margin: 0 2vw 2vw 0; }
  .row.small .tile .n { font-size: 12px; padding: 6px 8px 8px; }
  }
/* a phone gets the yellow note instead, which says the same thing */
body.phone .setup { display: none; }
