/*
 * The weather card (weather.js), floating in Liquid Glass over the dimmed home screen, and Recent Apps (home.js), a row
 * of cards over the Frosted Horizon (.hz-day / .hz-night from home.css); dark text by day, white at night.
 * Only transform and opacity animate.
 */

#forecast, #recents { z-index: 5; color: #1D1D1F; opacity: 0; visibility: hidden; }
.night #forecast, .night #recents { color: #FFF; }

/* The card floats over the home screen, dimmed behind it (no Horizon of its own). */
#forecast .veil { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(22, 33, 45, 0.32); }
.night #forecast .veil { background: rgba(0, 0, 0, 0.4); }
#forecast .panel {
  position: absolute;
  left: 140px;
  top: 120px;
  width: 720px;
  height: 840px;
  border-radius: 40px;
  background: rgba(246, 247, 250, 0.94);
  box-shadow: 0 40px 90px rgba(22, 33, 45, 0.26), inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.night #forecast .panel {
  background: rgba(30, 35, 48, 0.94);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42), inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.frosted #forecast .panel { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3); }
#forecast .empty { position: absolute; left: 0; right: 0; top: 390px; text-align: center; font-size: 30px; font-weight: 600; opacity: 0.72; }
#forecast .head { font-size: 19px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; margin-bottom: 10px; white-space: nowrap; }

#forecast .now { position: absolute; left: 48px; top: 40px; width: 360px; }
#forecast .city { font-size: 28px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#forecast .big { height: 76px; margin-top: 2px; white-space: nowrap; }
#forecast .big .sym { width: 48px; height: 48px; vertical-align: 10px; margin-right: 14px; }
#forecast .big .temp { font-size: 64px; font-weight: 300; line-height: 76px; letter-spacing: -0.02em; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#forecast .cond { font-size: 24px; font-weight: 600; white-space: nowrap; }
#forecast .range { margin-top: 4px; font-size: 22px; font-weight: 500; opacity: 0.62; white-space: pre; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#forecast .stats { position: absolute; left: 424px; top: 48px; width: 260px; font-size: 0; }
#forecast .stat { display: inline-block; width: 130px; margin-bottom: 18px; vertical-align: top; }
#forecast .stat .label { font-size: 17px; font-weight: 600; opacity: 0.55; white-space: nowrap; }
#forecast .stat .value { margin-top: 2px; font-size: 24px; font-weight: 500; white-space: nowrap; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }

#forecast .hours { position: absolute; left: 48px; right: 48px; top: 236px; height: 176px; padding-top: 14px; border-top: 1px solid rgba(29, 29, 31, 0.1); }
.night #forecast .hours, .night #forecast .week { border-top-color: rgba(255, 255, 255, 0.12); }
#forecast .view { position: relative; width: 624px; height: 140px; overflow: hidden; }
#forecast .strip { position: absolute; left: 0; top: 0; height: 140px; }
#forecast .hour { position: absolute; z-index: 0; top: 2px; width: 104px; height: 134px; border-radius: 24px; text-align: center; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#forecast .hour .t { margin-top: 10px; font-size: 19px; font-weight: 600; opacity: 0.62; white-space: nowrap; }
#forecast .hour .sym { display: block; width: 34px; height: 34px; margin: 10px auto 0; }
#forecast .hour .r { height: 20px; font-size: 16px; font-weight: 700; color: #5AC8FA; }
#forecast .hour .d { font-size: 24px; font-weight: 500; }

#forecast .week { position: absolute; left: 48px; right: 48px; top: 430px; padding-top: 14px; border-top: 1px solid rgba(29, 29, 31, 0.1); }
#forecast .day { position: relative; height: 50px; font-size: 24px; font-weight: 500; line-height: 50px; white-space: nowrap; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#forecast .day > span { position: absolute; top: 0; }
#forecast .day .name { left: 0; width: 100px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
#forecast .day .icon { left: 104px; }
#forecast .day .icon .sym { width: 30px; height: 30px; margin-top: 10px; }
#forecast .day .rain { left: 142px; width: 60px; font-size: 16px; font-weight: 700; color: #5AC8FA; }
#forecast .day .min { left: 200px; width: 64px; text-align: right; opacity: 0.55; }
#forecast .day .track { left: 284px; top: 21px; width: 196px; height: 8px; border-radius: 4px; background: rgba(29, 29, 31, 0.12); }
.night #forecast .day .track { background: rgba(255, 255, 255, 0.16); }
#forecast .day .fill {
  position: absolute;
  top: 0;
  height: 8px;
  border-radius: 4px;
  background: -webkit-linear-gradient(left, #FACC15, #FB923C);
  background: linear-gradient(90deg, #FACC15, #FB923C);
}
#forecast .day .dot { position: absolute; top: -2px; width: 12px; height: 12px; border-radius: 6px; background: #FFF; box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2); }
#forecast .day .max { left: 500px; width: 124px; text-align: right; }

#forecast .hour::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(22, 33, 45, 0.14);
  opacity: 0;
  -webkit-transition: opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
#forecast .hour.focus::before { opacity: 1; }
.night #forecast .hour::before { background: rgba(255, 255, 255, 0.16); box-shadow: none; }

/* Recent Apps: the tvOS app switcher. The focused card, 845 x 475, sits centred; the next one waits to its right and the
 * earlier ones stack behind it on the left (placeRecents in home.js). Each card carries its app's badge and name above it. */
#recents .row { position: absolute; left: 0; top: 302px; width: 1920px; height: 475px; }
#recents .card { position: absolute; left: 0; top: 0; width: 845px; height: 475px; }
#recents .card .face { position: absolute; left: 0; top: 0; width: 845px; height: 475px; border-radius: 44px; overflow: hidden; box-shadow: 0 24px 60px rgba(22, 33, 45, 0.3); }
#recents .card.focus .face { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.86), 0 30px 70px rgba(22, 33, 45, 0.36); }
#recents .face .word { margin-top: -40px; height: 80px; line-height: 80px; }
#recents .hdr { position: absolute; left: 4px; top: -58px; height: 34px; white-space: nowrap; }
#recents .badge { position: relative; display: inline-block; vertical-align: top; width: 56px; height: 34px; border-radius: 8px; overflow: hidden; }
#recents .badge img { position: absolute; left: 50%; top: 50%; max-width: 80%; max-height: 70%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
#recents .badge img.logo { width: 74%; height: 56%; max-width: none; max-height: none; object-fit: contain; }
#recents .badge .word { position: absolute; left: 2px; right: 2px; top: 0; line-height: 34px; text-align: center; font-weight: 700; color: #FFF; overflow: hidden; white-space: nowrap; }
#recents .badge .sym { position: absolute; left: 17px; top: 6px; width: 22px; height: 22px; color: #FFF; }
#recents .name { display: inline-block; vertical-align: top; margin-left: 14px; line-height: 34px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
#recents .empty { position: absolute; left: 0; right: 0; top: 500px; text-align: center; font-size: 34px; font-weight: 600; opacity: 0.72; }

.lite #forecast .hour::before { -webkit-transition: none; transition: none; }
