/* Zapping Web — CSS volutamente "vecchio stile" per funzionare anche sui browser delle smart TV del 2014 */
* { box-sizing: border-box; -webkit-box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; background: #0b0915; color: #f3f1ff;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
.hide { display: none !important; }
.dim { color: #a39dc4; }
.spacer { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }

#bg { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: #1d1640;
  background-size: cover; background-position: center; opacity: .35; -webkit-filter: blur(30px); filter: blur(30px);
  -webkit-transform: scale(1.2); transform: scale(1.2); -webkit-transition: background-image .4s; transition: background-image .4s; }
.screen { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
#home, #series { background: -webkit-linear-gradient(left, rgba(11,9,21,.95), rgba(11,9,21,.55)); background: linear-gradient(to right, rgba(11,9,21,.95), rgba(11,9,21,.55)); }

.logo { display: inline-block; width: 38px; height: 38px; line-height: 38px; text-align: center; border-radius: 10px;
  background: #ff8a3d; background: -webkit-linear-gradient(top left, #ff8a3d, #c2410c); background: linear-gradient(135deg, #ff8a3d, #c2410c);
  color: #1a0d02; font-weight: 800; font-size: 20px; vertical-align: middle; }
.logo.big { width: 64px; height: 64px; line-height: 64px; font-size: 34px; border-radius: 16px; }

/* login */
.loginbox { width: 340px; max-width: 90%; margin: 12vh auto 0; text-align: center; }
.loginbox h1 { margin: 14px 0 4px; font-size: 32px; }
.field { width: 100%; padding: 14px 16px; margin: 18px 0 10px; border-radius: 12px; border: 2px solid #2f2950;
  background: #1b1730; color: #fff; font-size: 18px; outline: none; }
.err { color: #fca5a5; margin: 6px 0; }
.field.tight { margin-top: 0; }
.okmsg { color: #86efac; }
#pwd .btn { display: block; margin-top: 10px; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; }

/* barra in alto */
.top { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; padding: 26px 48px 0; }
.brand { font-size: 24px; font-weight: 700; margin-left: 12px; }
.pill { font-size: 13px; color: #a39dc4; background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 20px; margin-right: 18px; }
.clock { font-size: 22px; font-weight: 300; }

.hero { padding: 26px 48px 0; min-height: 110px; }
.herotitle { font-size: 40px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.herometa { font-size: 16px; color: #e0dcf5; margin-top: 8px; line-height: 1.5; }
.status { margin: 8px 48px; color: #ffb347; font-size: 14px; }
.label { padding: 18px 48px 0; font-size: 13px; letter-spacing: 1.5px; color: #a39dc4; font-weight: 700; }

/* locandine */
.posters { white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 16px 48px 22px; -webkit-overflow-scrolling: touch; }
.poster { display: inline-block; position: relative; width: 140px; height: 210px; margin-right: 22px; border-radius: 14px;
  background-color: #221c3a; background-size: cover; background-position: center; vertical-align: top; overflow: hidden;
  -webkit-transition: -webkit-transform .15s; transition: transform .15s; cursor: pointer; white-space: normal; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.poster .letter { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 80px; font-weight: 800; color: rgba(255,255,255,.2); }
.poster .pname { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; font-weight: 700; font-size: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.poster.on { -webkit-transform: scale(1.1) translateY(-6px); transform: scale(1.1) translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 14px 30px rgba(0,0,0,.6); }

/* pulsanti */
.actions { padding: 0 48px 30px; }
.btn { display: inline-block; padding: 12px 22px; margin: 0 12px 12px 0; border-radius: 24px; background: rgba(255,255,255,.14);
  color: #f3f1ff; font-weight: 700; font-size: 16px; cursor: pointer; -webkit-transition: -webkit-transform .12s; transition: transform .12s; }
.btn.primary { background: #ff8a3d; color: #1a0d02; }
.btn.on { background: #fff !important; color: #1a0d02 !important; -webkit-transform: scale(1.06); transform: scale(1.06); }
.btn.wide { display: block; text-align: center; margin: 12px 0 0; }

/* pagina serie */
.cols { display: -webkit-box; display: -webkit-flex; display: flex; padding: 34px 40px 0 48px; height: 100%; }
.left { width: 190px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.sposter { width: 190px; height: 285px; margin: 0; cursor: default; }
.right { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; margin-left: 44px; min-width: 0; }
.stitle { font-size: 34px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eps { margin-top: 14px; padding-bottom: 80px; }
.season { color: #ffb347; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; margin: 22px 4px 8px; }
.ep { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 12px 16px; margin-bottom: 6px; border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; }
.ep .code { width: 110px; -webkit-flex-shrink: 0; flex-shrink: 0; color: #ffb347; font-weight: 700; font-size: 14px; }
.ep .t { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.ep .badge { margin-left: 12px; font-size: 13px; font-weight: 700; color: #4ade80; }
.ep.seen .t { color: #a39dc4; }
.ep.cur { background: rgba(255,138,61,.3); }
.ep.on { background: #fff; color: #1a0d02; }
.ep.on .t { color: #1a0d02; }

/* player */
#player { background: #000; overflow: hidden; }
#v { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000;
  -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; }
#v.stretch { -webkit-transform: scaleX(1.3333); transform: scaleX(1.3333); }
.osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 48px 26px;
  background: -webkit-linear-gradient(bottom, rgba(0,0,0,.92), rgba(0,0,0,0)); background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,0));
  -webkit-transition: opacity .4s; transition: opacity .4s; }
.osd.off { opacity: 0; }
.oseries { color: #ffb347; font-weight: 700; font-size: 15px; }
.otitle { font-size: 26px; font-weight: 700; margin-top: 4px; }
.bar { height: 6px; background: rgba(255,255,255,.3); border-radius: 3px; margin: 14px 0 8px; overflow: hidden; cursor: pointer; }
.bar i { display: block; height: 100%; width: 0; background: #ff8a3d; }
.orow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.otime { color: #ccc; font-size: 14px; }
.ctl { position: relative; display: inline-block; width: 52px; height: 52px; margin-left: 10px; border-radius: 26px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); cursor: pointer; text-align: center; vertical-align: middle;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-transition: -webkit-transform .12s, background .12s; transition: transform .12s, background .12s; }
.ctl svg { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; fill: #fff; }
.ctl b { position: absolute; left: 0; right: 0; bottom: 6px; font-size: 9px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.ctl[data-c=rw] svg, .ctl[data-c=ff] svg { margin-top: -15px; }
.ctl:hover, .ctl.on { background: rgba(255,255,255,.28); -webkit-transform: scale(1.08); transform: scale(1.08); }
.ctl.big { width: 64px; height: 64px; border-radius: 32px; background: #fff; border: 0; }
.ctl.big svg { width: 30px; height: 30px; margin: -15px 0 0 -15px; fill: #1a0d02; }
.ctl.big:hover { background: #ff8a3d; }
.ctl.pillc { width: auto; padding: 0 16px; line-height: 50px; font-weight: 800; font-size: 15px; color: #fff; }
.sep { display: inline-block; width: 1px; height: 30px; background: rgba(255,255,255,.2); margin: 0 6px 0 16px; vertical-align: middle; }
.hint { color: #9a9a9a; font-size: 12px; margin-top: 10px; }
.spin { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.25); border-top-color: #ff8a3d; -webkit-animation: sp 1s linear infinite; animation: sp 1s linear infinite; }
@-webkit-keyframes sp { to { -webkit-transform: rotate(360deg); } }
@keyframes sp { to { transform: rotate(360deg); } }
.pauseico { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 55px;
  background: rgba(0,0,0,.55); }
.pauseico svg { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; fill: #fff; }
.msg { position: absolute; top: 30px; left: 50%; width: 600px; max-width: 90%; margin-left: -300px; text-align: center;
  background: rgba(30,26,51,.9); padding: 12px 18px; border-radius: 12px; font-size: 16px; }

/* telefoni e tablet */
@media (max-width: 760px) {
  .top { padding: 16px 18px 0; }
  .pill { display: none; }
  .hero { padding: 14px 18px 0; min-height: 0; }
  .herotitle { font-size: 28px; }
  .label, .status { padding-left: 18px; margin-left: 0; }
  .posters { white-space: normal; overflow: visible; padding: 14px 10px 10px 18px; }
  .poster { width: 29%; height: auto; padding-top: 44%; margin: 0 3% 16px 0; }
  .poster .letter { font-size: 48px; }
  .poster .pname { font-size: 13px; padding: 8px; }
  .actions { padding: 0 18px 30px; }
  .cols { display: block; padding: 18px; height: auto; }
  .left { width: auto; }
  .sposter { width: 120px; height: 180px; float: left; margin-right: 16px; }
  .btn.wide { margin: 10px 0 0 136px; }
  .right { margin: 20px 0 0; clear: both; }
  .stitle { font-size: 26px; white-space: normal; }
  .ep .code { width: 92px; font-size: 12px; }
  .ep .t { font-size: 15px; }
  .osd { padding: 50px 14px 16px; }
  .otitle { font-size: 18px; }
  .hint { display: none; }
  .ctl { width: 40px; height: 40px; margin-left: 5px; }
  .ctl svg { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .ctl[data-c=rw] svg, .ctl[data-c=ff] svg { margin-top: -13px; }
  .ctl b { bottom: 3px; font-size: 8px; }
  .ctl.big { width: 50px; height: 50px; }
  .ctl.big svg { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .ctl.pillc { padding: 0 10px; line-height: 38px; font-size: 13px; }
  .sep { margin: 0 2px 0 8px; }
  .otime { font-size: 12px; }
  .msg { margin-left: -45%; }
}

/* modalità TV vecchie: video e comandi non si sovrappongono */
.omsg { color: #ffb347; font-size: 16px; margin-top: 6px; }
.tvmode #v { height: 100%; -webkit-transform: none !important; transform: none !important; }
.tvmode .osd { padding: 14px 48px 18px; background: #0b0b0d; border-top: 2px solid #2a2a30; }
.tvmode .osd.off { opacity: 1; display: none; }
.tvmode .pauseico, .tvmode .spin { display: none !important; }
.tvmode .hint { font-size: 13px; }
