/* AniManga TV — pensado para 1920x1080 visto de longe e navegação pelas setas do controle */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0b10; color: #eee; font-family: "Samsung One", "Segoe UI", Roboto, Arial, sans-serif; overflow: hidden; }
body { font-size: 22px; }
#app { height: 100%; overflow-y: auto; scroll-behavior: smooth; }
.hidden { display: none !important; }
.muted { color: #9a9aa5; }
.small { font-size: 17px; }
.warn { color: #ffb74d; }
.err { color: #ff6b6b; }

/* foco do controle remoto */
.f { outline: none; transition: transform .12s, box-shadow .12s; }
.f:focus { transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(0,0,0,.6); z-index: 2; position: relative; }

/* topo */
.top { display: flex; align-items: center; gap: 18px; padding: 22px 48px 10px; }
.logo { font-size: 30px; font-weight: 800; margin-right: 24px; letter-spacing: .5px; }
.logo b { color: #e8a0a0; }
.tab { padding: 10px 24px; border-radius: 30px; background: #1b1b24; font-weight: 600; cursor: pointer; }
.tab.on { background: #e8a0a0; color: #2a1215; }
.spacer { flex: 1; }

/* fileiras */
.row { padding: 8px 48px 6px; }
.row h2 { font-size: 26px; margin: 18px 0 12px; font-weight: 700; }
.strip { display: flex; gap: 22px; overflow-x: auto; padding: 10px 6px 18px; scroll-behavior: smooth; }
.strip::-webkit-scrollbar { display: none; }
.card { flex: 0 0 200px; cursor: pointer; border-radius: 10px; }
.card .poster { width: 200px; height: 290px; border-radius: 10px; background: #1b1b24 center/cover no-repeat; position: relative; }
.card .t { margin-top: 8px; font-size: 18px; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.card .s { font-size: 15px; color: #9a9aa5; margin-top: 2px; }
.badge { position: absolute; left: 8px; top: 8px; background: #e8a0a0; color: #2a1215; font-size: 14px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.2); border-radius: 0 0 10px 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #e8a0a0; }

/* detalhes */
.hero { position: relative; height: 470px; background: #15151c center/cover no-repeat; }
.hero:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(11,11,16,.96) 0%, rgba(11,11,16,.75) 45%, rgba(11,11,16,.2) 100%), linear-gradient(0deg, #0b0b10 0%, transparent 40%); }
.hero .in { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 26px; display: flex; gap: 32px; align-items: flex-end; }
.hero .poster { width: 220px; height: 320px; border-radius: 12px; background: #1b1b24 center/cover no-repeat; flex: none; }
.hero h1 { font-size: 46px; margin: 0 0 10px; }
.hero .desc { max-width: 1100px; color: #cfcfd6; font-size: 19px; line-height: 1.4; max-height: 5.6em; overflow: hidden; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 30px; background: #26263a; font-weight: 600; cursor: pointer; margin-right: 12px; }
.btn.primary { background: #e8a0a0; color: #2a1215; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 48px; }
.chip { min-width: 74px; text-align: center; padding: 10px 16px; border-radius: 10px; background: #1b1b24; cursor: pointer; font-weight: 600; }
.chip.on { background: #6b3d34; }
.chip.seen { color: #9fe39f; }

/* fontes */
.sources { padding: 6px 48px 60px; }
.src { display: flex; gap: 18px; align-items: center; background: #15151c; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; cursor: pointer; }
.src .main { flex: 1; min-width: 0; }
.src .name { font-size: 16px; color: #b9b9c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.src .note { font-size: 15px; color: #ffb74d; margin-top: 4px; }
.src .seeds { text-align: right; font-weight: 700; min-width: 130px; }
.tag { display: inline-block; font-size: 15px; padding: 3px 9px; border-radius: 6px; margin: 0 6px 4px 0; background: #2d2d3b; color: #fff; }
.g-otima { background: #2e7d32; } .g-boa { background: #558b2f; } .g-regular { background: #ef6c00; } .g-ruim { background: #c62828; }
.h-excelente, .h-direto { color: #a5f58b; } .h-boa { color: #c8f5c8; } .h-fraca { color: #ffb74d; } .h-sem-seeds { color: #ff6b6b; }
.best { border: 2px solid #f5c542; }

/* login */
.login { height: 100%; display: flex; align-items: center; justify-content: center; gap: 80px; padding: 40px; }
.qr { background: #fff; padding: 22px; border-radius: 18px; width: 420px; height: 420px; display: flex; align-items: center; justify-content: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.code { font-size: 64px; letter-spacing: 10px; font-weight: 800; margin: 16px 0; color: #e8a0a0; }
.steps { font-size: 24px; line-height: 1.6; color: #cfcfd6; max-width: 760px; }

/* busca */
.search { padding: 10px 48px; }
.search input { width: 100%; font-size: 30px; padding: 16px 24px; border-radius: 14px; border: 0; background: #1b1b24; color: #fff; }

/* player */
#player { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 50; }
#player video { width: 100%; height: 100%; background: #000; }
#subs { position: absolute; left: 10%; right: 10%; bottom: 7%; text-align: center; font-size: 42px; line-height: 1.25; color: #fff; text-shadow: 0 0 6px #000, 0 2px 4px #000, 0 0 2px #000; pointer-events: none; white-space: pre-line; }
#osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 60px 34px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); transition: opacity .3s; }
#osd.off { opacity: 0; }
#osd .title { font-size: 30px; font-weight: 700; }
#osd .line { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
#osd .track { flex: 1; height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
#osd .track i { display: block; height: 100%; background: #e8a0a0; width: 0; }
#osd .info { font-size: 18px; color: #cfcfd6; margin-top: 10px; }
#wait { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 26px; background: rgba(0,0,0,.6); }
.spin { width: 70px; height: 70px; border-radius: 50%; border: 6px solid #333; border-top-color: #e8a0a0; animation: r 1s linear infinite; }
@keyframes r { to { transform: rotate(360deg); } }

#toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: #26263a; padding: 16px 30px; border-radius: 14px; font-size: 22px; opacity: 0; transition: opacity .3s; z-index: 99; pointer-events: none; max-width: 80%; }
#toast.on { opacity: 1; }
.empty { padding: 30px 48px; color: #9a9aa5; }
