/* Archivio TV Moderno (APK/Tizen PaginaArchivioModerno). Tela 1920×1080, accent Leleg #45C7F1. */
.am-pagina {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: #141414 url("../assets/bg-gradient-leleg.png") center / cover no-repeat;
  color: #fff;
  font-family: "Poppins", sans-serif;
}
.am-pagina.am-pieno .am-corpo { display: none; }
.am-pagina .intestazione { position: relative; z-index: 2; }

.am-corpo { position: absolute; left: 0; right: 0; top: 110px; bottom: 0; }
.am-titolo-riga {
  position: absolute; left: 60px; top: 0; margin: 0;
  font-size: 42px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.am-titolo-riga i { color: #45C7F1; margin-right: 14px; }

/* Pillole categorie */
.am-schede {
  position: absolute; left: 60px; right: 60px; top: 70px;
  height: 56px; overflow: hidden; white-space: nowrap; font-size: 0;
}
.am-scheda {
  display: inline-block; height: 56px; line-height: 56px;
  padding: 0 24px; margin-right: 12px; border-radius: 28px;
  background: #2a2a2a; color: #fff; font-size: 22px; font-weight: 600;
  border: 0; cursor: pointer; font-family: inherit;
}
.am-scheda.am-attiva { background: #5a5a5a; }
.am-scheda.am-focus,
.am-scheda:hover { background: #45C7F1; color: #111; }

/* Colonne canali | giorni | eventi */
.am-col {
  position: absolute; top: 150px; bottom: 40px;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.am-canali { left: 60px; width: 400px; }
.am-giorni { left: 480px; width: 220px; }
.am-eventi { left: 720px; right: 60px; }

.am-riga {
  position: relative; height: 54px; line-height: 54px;
  margin-bottom: 6px; padding: 0 16px 0 44px; border-radius: 10px;
  color: #e6e6e6; font-size: 24px; font-weight: 600;
  white-space: nowrap; overflow: hidden; cursor: pointer;
  border: 0; background: transparent; width: 100%; text-align: left; font-family: inherit;
}
.am-riga.am-scelto { background: #3c3c3c; color: #fff; }
.am-riga.am-focus,
.am-riga:hover { box-shadow: inset 0 0 0 3px #45C7F1; color: #fff; }
.am-spunta { position: absolute; left: 14px; top: 0; font-size: 20px; font-weight: 700; color: #45C7F1; }
.am-nome { display: block; overflow: hidden; text-overflow: ellipsis; padding-right: 56px; }
.am-giorno .am-nome { padding-right: 0; }
.am-gg { position: absolute; right: 16px; top: 0; color: #8a8a8a; font-size: 16px; font-weight: 400; }

/* Programmi con miniatura */
.am-evento {
  position: relative; min-height: 129px; padding: 4px 8px 4px 4px;
  margin-bottom: 14px; border-radius: 10px; border: 3px solid transparent;
  cursor: pointer; box-sizing: border-box;
}
.am-evento.am-focus,
.am-evento:hover { border-color: #45C7F1; background: rgba(69, 199, 241, 0.12); }
.am-evento.am-disattivo { opacity: 0.72; cursor: default; }
.am-mini {
  position: absolute; left: 4px; top: 4px; width: 220px; height: 124px;
  border-radius: 8px; background: #1f2430 center / cover no-repeat; overflow: hidden;
}
.am-badge {
  position: absolute; left: 6px; top: 6px; height: 24px; line-height: 24px;
  padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff;
}
.am-diretta { background: #e50914; }
.am-prossimamente { background: rgba(20, 40, 80, 0.85); }
.am-play {
  position: absolute; left: 92px; top: 44px; width: 36px; height: 36px; line-height: 36px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.92); color: #45C7F1;
  text-align: center; font-size: 14px;
}
.am-durata {
  position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.65); font-size: 13px; font-weight: 600;
}
.am-testi { margin-left: 236px; padding-top: 4px; overflow: hidden; }
.am-ev-titolo {
  font-size: 22px; font-weight: 700; line-height: 30px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-ora { margin-right: 12px; color: #45C7F1; }
.am-sotto {
  font-size: 16px; line-height: 24px; color: #d0d0d0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-descr {
  margin-top: 4px; font-size: 15px; line-height: 20px; max-height: 40px;
  color: #9a9a9a; overflow: hidden;
}

.am-vuoto { padding: 14px 16px; color: #b3b3b3; font-size: 22px; }
.am-player {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: #000; z-index: 20; display: none;
}
.am-pagina.am-pieno .am-player { display: block; }
.am-pagina.am-pieno .intestazione { visibility: hidden; }
.am-player .player-wrap {
  position: absolute !important; left: 0; top: 0; right: 0; bottom: 0;
  width: auto !important; height: auto !important;
  border-radius: 0 !important; max-height: none !important; overflow: hidden;
}
.am-player .player-wrap .tv-video,
.am-player .tv-video {
  position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important;
  max-height: none !important; object-fit: contain; background: #000; display: block;
}
.am-player .player-osd {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
}
.am-chiudi-player {
  position: absolute; top: 24px; left: 24px; z-index: 30;
  height: 48px; padding: 0 20px; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.65);
  color: #fff; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
}
.am-chiudi-player:hover,
.am-chiudi-player:focus-visible { border-color: #45C7F1; outline: none; }
