/* BlackStream TV — version légère (navigateurs TV, ordinateurs, mobiles) */
* { box-sizing: border-box; }
html, body { margin: 0; background: #0a0a0a; color: #f5f5f5; }
body { font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* En-tête */
.top { position: -webkit-sticky; position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  padding: 12px 3%; background: #0a0a0a; background: rgba(10,10,10,.96); border-bottom: 1px solid #1e1e1e; }
.logo { background: #E8231B; background: linear-gradient(90deg,#E8231B,#C4120A); color: #fff; font-weight: 800;
  font-size: 20px; padding: 5px 16px; border-radius: 20px; margin-right: 24px; letter-spacing: -.3px; }
.tabs { display: flex; overflow-x: auto; }
.tab { padding: 8px 16px; margin-right: 6px; border-radius: 20px; font-weight: 700; color: #bbb; white-space: nowrap; }
.tab.on { background: #2a2a2a; color: #fff; }

main { padding: 0 0 40px; }
.loading, .empty, .count, .foot { color: #9e9e9e; padding: 20px 3%; }
.h { font-size: 22px; font-weight: 800; margin: 26px 3% 12px; }

/* Rangées */
.row { margin-top: 22px; }
.row-h { display: flex; align-items: baseline; padding: 0 3%; margin-bottom: 10px; }
.row-h h2 { font-size: 19px; font-weight: 800; margin: 0; }
.row-h small { color: #E8231B; font-weight: 800; font-size: 11px; letter-spacing: 1.2px; margin-right: 10px; text-transform: uppercase; }
.track { display: flex; overflow-x: auto; overflow-y: hidden; padding: 10px 3% 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }

/* Miniatures */
.card { position: relative; flex: 0 0 auto; width: 176px; margin-right: 14px; border-radius: 12px; padding: 4px;
  border: 3px solid transparent; -webkit-transition: -webkit-transform .15s ease-out; transition: transform .15s ease-out; }
.card .pic { position: relative; width: 100%; padding-top: 62%; border-radius: 10px; background: #1e1e1e; overflow: hidden; }
.card .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.card .pic .ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; font-weight: 800; font-size: 14px; color: #ddd; }
.card .flag { position: absolute; left: 7px; top: 4px; font-size: 16px; }
.card .t { margin-top: 7px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .v { color: #9e9e9e; font-size: 12px; margin-top: 2px; }
.card.big { width: 300px; }
.grid .card { width: 176px; margin: 0 10px 16px 0; }

/* Top 10 */
.rank { display: flex; align-items: flex-end; width: 196px; }
.rank .n { font-size: 78px; line-height: .85; font-weight: 900; color: #0a0a0a; width: 56px; text-align: right; margin-right: 4px;
  -webkit-text-stroke: 2px #E8231B; text-shadow: 0 0 1px #E8231B; }
.rank .body { flex: 1; min-width: 0; }
.rank .pic { padding-top: 100%; }

/* Sélection : télécommande / clavier = zoom + contour rouge ; souris = léger zoom */
.f:focus { outline: none; }
.card:hover { -webkit-transform: scale(1.05); transform: scale(1.05); }
.card:focus, .card.focus { -webkit-transform: scale(1.08); transform: scale(1.08); border-color: #E8231B; background: rgba(232,35,27,.12); z-index: 2; }
.tab:focus, .logo:focus, .btn:focus, .chip:focus, .link:focus, .search:focus, .select:focus { box-shadow: 0 0 0 3px #E8231B; }

/* Explorer */
.filters { display: flex; flex-wrap: wrap; padding: 18px 3% 6px; }
.search, .select { background: #1e1e1e; color: #f5f5f5; border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px; margin: 0 10px 10px 0; }
.search { flex: 1 1 260px; min-width: 200px; }
.chips { display: flex; overflow-x: auto; padding: 4px 3% 6px; }
.chip { flex: 0 0 auto; background: #1e1e1e; color: #f5f5f5; border: 0; border-radius: 20px; padding: 9px 16px; margin-right: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip.on { background: #E8231B; color: #fff; }
.grid { display: flex; flex-wrap: wrap; padding: 6px 3%; }
.more-wrap { text-align: center; padding: 10px; }
.btn { background: #E8231B; color: #fff; border: 0; border-radius: 24px; padding: 12px 26px; font-size: 15px; font-weight: 800; cursor: pointer; }

/* Contact */
.contact-bar { display: flex; flex-wrap: wrap; align-items: center; margin: 34px 3% 0; padding: 16px 18px; background: #151515; border-radius: 14px; }
.contact-bar span { color: #bbb; margin-right: 14px; font-weight: 600; }
.cbtn { display: inline-block; margin: 6px 10px 6px 0; padding: 10px 16px; border-radius: 22px; background: #2a2a2a; font-weight: 700; font-size: 14px; }
.cbtn.wa, .link.wa { background: #128C3E; }
.cbtn:focus { box-shadow: 0 0 0 3px #E8231B; }

/* Plus */
.links { padding: 0 3%; }
.link { display: block; background: #151515; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; font-weight: 700; font-size: 17px; }
.link span { display: block; color: #9e9e9e; font-weight: 400; font-size: 13px; margin-top: 3px; }

@media (max-width: 600px) {
  .top { padding: 10px 12px; }
  .logo { font-size: 17px; margin-right: 10px; padding: 4px 12px; }
  .tab { padding: 7px 10px; font-size: 14px; }
  .card, .grid .card { width: 140px; }
  .card.big { width: 240px; }
  .grid .card { width: 46%; margin-right: 4%; }
  .rank { width: 170px; }
  .rank .n { font-size: 64px; width: 46px; }
}
