:root { --bg: #14121a; --surface: #1e1b26; --surface-2: #2a2635; --text: #ece8f4; --muted: #9a93ab; --accent: #bf78fa; --accent-ink: #14121a; --danger: #ff6b81; --radius: 10px; color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } a { color: inherit; text-decoration: none; } button, input, select { font: inherit; color: inherit; } img { display: block; } #topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(20, 18, 26, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-2); } .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; } #topbar nav { display: flex; gap: 4px; } #topbar nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); } #topbar nav a.active, #topbar nav a:hover { color: var(--text); background: var(--surface-2); } body.reading #topbar { display: none; } main { max-width: 1200px; margin: 0 auto; padding: 16px; } body.reading main { max-width: none; padding: 0; } h1 { font-size: 1.6rem; margin: 0 0 8px; } h2 { font-size: 1.15rem; margin: 24px 0 12px; } .muted { color: var(--muted); } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--surface-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; } .btn:hover { background: var(--surface-2); } .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; } .btn.primary:hover { filter: brightness(1.08); } .btn.small { padding: 5px 10px; font-size: .88rem; } .btn.danger { color: var(--danger); } input[type=text], input[type=password], input[type=search], select { padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--surface-2); background: var(--surface); outline: none; } input:focus, select:focus { border-color: var(--accent); } .auth { max-width: 360px; margin: 10vh auto; background: var(--surface); padding: 24px; border-radius: 14px; } .auth form { display: grid; gap: 12px; } .error { color: var(--danger); min-height: 1.2em; margin: 0; } .search { display: flex; gap: 8px; margin-bottom: 8px; } .search input { flex: 1; min-width: 0; } .tabs { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; } .tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--surface-2); background: transparent; cursor: pointer; color: var(--muted); } .tabs button.on { background: var(--surface-2); color: var(--text); } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; } .card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); } .card .cover { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; background: var(--surface-2); } .card .t { padding: 8px 10px 10px; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card .sub { padding: 0 10px 10px; font-size: .8rem; color: var(--muted); margin-top: -6px; } .bar { height: 4px; background: var(--surface-2); } .bar > i { display: block; height: 100%; background: var(--accent); } .continue { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 12px; overflow-x: auto; padding-bottom: 6px; } .cont { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--surface); align-items: center; } .cont img { width: 56px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex: none; } .cont .info { min-width: 0; flex: 1; } .cont .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cont .bar { margin-top: 6px; border-radius: 2px; } .detail { display: grid; grid-template-columns: 220px 1fr; gap: 24px; } .detail .cover { width: 100%; border-radius: var(--radius); aspect-ratio: 2/3; object-fit: cover; background: var(--surface-2); } .desc { white-space: pre-line; color: #cfc8dc; max-height: 12em; overflow: auto; } .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .tag { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); } .chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .chapters a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface); align-items: center; } .chapters a:hover { background: var(--surface-2); } .chapters a.read { opacity: .5; } .chapters a.current { outline: 1px solid var(--accent); opacity: 1; } .chapters .meta { font-size: .8rem; color: var(--muted); text-align: right; flex: none; } .history { display: grid; gap: 10px; } .history .cont { justify-content: space-between; } .settings { max-width: 480px; display: grid; gap: 16px; } .settings section { background: var(--surface); padding: 16px; border-radius: var(--radius); display: grid; gap: 10px; } .loading { padding: 40px; text-align: center; color: var(--muted); } /* ---- Lector ---- */ .reader { min-height: 100vh; background: #000; position: relative; } .rbar { position: fixed; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(10, 9, 14, .9); backdrop-filter: blur(6px); transition: transform .2s; flex-wrap: wrap; } .rbar.top { top: 0; padding-top: max(8px, env(safe-area-inset-top)); } .rbar.bottom { bottom: 0; justify-content: center; padding-bottom: max(8px, env(safe-area-inset-bottom)); } .reader.hide-ui .rbar.top { transform: translateY(-110%); } .reader.hide-ui .rbar.bottom { transform: translateY(110%); } .rbar .ttl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; } .rbar select { padding: 5px 8px; } .rbar input[type=range] { flex: 1; max-width: 520px; accent-color: var(--accent); } #pages img { filter: var(--page-filter, none); transition: filter .2s; } .paged { height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; user-select: none; } .paged img { max-width: 100%; max-height: 100%; object-fit: contain; } .paged.fit-width { height: auto; min-height: 100vh; align-items: flex-start; } .paged.fit-width img { max-height: none; width: 100%; max-width: 900px; } .vertical { display: flex; flex-direction: column; align-items: center; } .vertical img { width: 100%; max-width: 900px; min-height: 300px; background: #111; } .vertical img[data-loaded] { min-height: 0; } .chapter-end { padding: 40px 16px 120px; text-align: center; display: grid; gap: 12px; justify-items: center; } #toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--surface-2); padding: 10px 16px; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.4); } @media (max-width: 640px) { .detail { grid-template-columns: 1fr; } .detail .cover { max-width: 180px; } .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; } #topbar .brand span { display: none; } #topbar nav a { padding: 6px 8px; } } /* Categorías y descargas */ .cats h3 { font-size: .95rem; color: var(--muted); margin: 18px 0 8px; } a.tag { cursor: pointer; } a.tag:hover, .tag.on { background: var(--accent); color: var(--accent-ink); } .tag.big { font-size: .88rem; padding: 5px 12px; } .dlbox { display: grid; gap: 6px; margin-top: 10px; max-width: 520px; } .dlbar { height: 8px; border-radius: 4px; overflow: hidden; } .dlbar > i { transition: width .6s ease; } .history .cont a.info { display: block; min-width: 0; flex: 1; } /* Iconos */ .ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; } #topbar nav a { display: inline-flex; align-items: center; gap: 6px; } .tabs button { display: inline-flex; align-items: center; gap: 6px; } .chapters .meta .ic { width: 1em; height: 1em; } @media (max-width: 560px) { #topbar nav a span { display: none; } /* en móvil solo iconos en el menú */ #topbar nav a { padding: 8px 10px; } #topbar nav a .ic { width: 1.35em; height: 1.35em; } .search .btn .lbl { display: none; } }