/* Tema oscuro de HDZero (variables y fondo tomados de su _hdzero_dark.css). */
:root {
  --body-bg: #0B0B0D;
  --nav-bg: #14161A;
  --panel-bg: #1C1F26;
  --row-bg: rgba(28, 31, 38, .92);
  --row-hover: #232731;
  --panel-head-bg: #14161A;
  --line: #3A404A;
  --row-line: #2a2e36;
  --fg: #F2F2F2;
  --muted: #A9B0BB;
  --red: #ff4444;
  --red-light: #ff6666;
  --red-soft: rgba(255, 68, 68, .65);
  --green: #3fb950;
  --purple: #a371f7;
  --amber: #f0b429;
  --blue: #58a6ff;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--body-bg); color: var(--fg); font: 15px/1.5 var(--font); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }

/* ---------------------------------------------------------------- barra superior */
.top-nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); box-shadow: 0 8px 10px 0 rgba(0, 0, 0, .2); }
.top-nav__inner { padding: 8px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.top-nav__logo { display: block; line-height: 0; }
.top-nav__logo img { width: 112px; height: auto; display: block; }
.top-nav__search input { width: 100%; height: 38px; min-height: 0; padding: 0 14px; font-size: 15px; border: 1px solid var(--line); border-radius: 9999px;
  background: #1C1F26; color: var(--fg); outline: none; }
.top-nav__search input::placeholder { color: var(--muted); }
.top-nav__search input:focus { border-color: var(--red-soft); }
.top-nav__toggle { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.top-nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top-nav__menu { grid-column: 1 / -1; display: none; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 18px; }
.top-nav__menu.open { display: flex; }
.top-nav__links, .top-nav__right { display: contents; }
.top-nav__menu a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius);
  color: var(--muted); font-size: 18px; text-decoration: none; }
.top-nav__menu a:hover { color: var(--fg); }
.top-nav__menu a[aria-current="page"] { color: var(--red-light); }
.top-nav__menu a[aria-current="page"] .label { box-shadow: inset 0 -2px 0 var(--red); }
.top-nav__user { color: var(--green) !important; font-weight: 700; }
.top-nav__user svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: var(--red); color: #fff; font-size: 12px;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- estructura */
main { max-width: 1480px; margin: 0 auto; padding: 18px 16px 60px; outline: none; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; color: var(--muted); font-size: 17px; }
.breadcrumb a { text-decoration: none; display: inline-flex; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb svg { width: 22px; height: 22px; fill: currentColor; }
.breadcrumb .sep { opacity: .7; }
.breadcrumb .here { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { background: var(--row-bg); margin-bottom: 18px; }
.panel__head { background: var(--panel-head-bg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 17px; color: #fff; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: inherit; font-weight: 500; }
.panel__head .note { margin: 0; }
.panel__body { padding: 14px 16px; }
.note { color: var(--muted); font-size: 14px; margin: 6px 0; }
.empty { color: var(--muted); padding: 22px 16px; text-align: center; margin: 0; }
.error-text { color: var(--red-light); }

/* Pestañas como «New torrents / Top seeded» */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--panel-head-bg); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; padding: 12px 18px; border: 0; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer;
  border-bottom: 3px solid transparent; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--muted); }

/* Botones como los del tracker */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 9999px; background: transparent; color: var(--fg); font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; }
.button:hover { border-color: var(--muted); }
.button.filled { background: var(--red); border-color: var(--red); color: #fff; }
.button.filled:hover { background: var(--red-light); border-color: var(--red-light); }
.button.small { min-height: 34px; padding: 5px 14px; font-size: 14px; }
.button.danger { color: var(--red-light); }
.button:disabled { opacity: .55; cursor: progress; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.button-grid .button { min-height: 48px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- lista de títulos */
.torrent-list { background: var(--row-bg); }
.torrent-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--row-line);
  text-decoration: none; color: inherit; }
a.torrent-row:hover { background: var(--row-hover); }
.poster { width: 88px; aspect-ratio: 2 / 3; border-radius: 6px; object-fit: cover; background: #2a2e36; display: block; }
.poster.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; padding: 4px; }
.torrent-row__type { display: none; }
.torrent-row__name { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--fg); }
.torrent-row__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); font-size: 14px; }
.torrent-row__stats { display: none; }
.torrent-row .actions { margin-top: 10px; }
.search-row > .actions { grid-column: 2; margin-top: 0; }
.stats-head { display: none; }
.slot__detail:empty, .slot .actions:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; background: #3A404A; color: var(--fg);
  font-size: 14px; line-height: 1.35; white-space: nowrap; }
.chip.kind svg, .type-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.count { font-weight: 700; }
.count.uploaded { color: var(--green); }
.count.assigned { color: var(--purple); }
.count.reserved { color: var(--amber); }
.count.free { color: var(--muted); }
.count.mine { color: #fff; }

/* ---------------------------------------------------------------- ficha */
.title-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 4px; }
.title-hero .poster { width: 120px; }
.title-hero h1 { margin: 0 0 4px; font-size: 21px; line-height: 1.25; color: var(--red); overflow-wrap: anywhere; }
.title-hero .original { color: var(--muted); margin: 0 0 10px; }
.title-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--fg); font-size: 14px; }
.title-meta > * + *::before { content: "•"; margin-right: 10px; color: var(--muted); }
.title-meta strong { font-weight: 700; }
.title-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.kowalski-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--amber); background: rgba(240, 180, 41, .08); color: var(--fg); font-size: 14px; }
.check-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.legend .l-uploaded::before { background: var(--green); }
.legend .l-assigned::before { background: var(--purple); }
.legend .l-reserved::before { background: var(--amber); }

.slot-group { border-bottom: 1px solid var(--row-line); }
.slot-group:last-child { border-bottom: 0; }
.slot-group__type { padding: 10px 16px 0; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: none; }
.slot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 16px 12px; }
.slot + .slot { border-top: 1px solid #23272f; }
.slot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.slot__label { font-weight: 700; font-size: 15px; color: var(--red-light); }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700;
  border: 1px solid currentColor; white-space: nowrap; }
.state.uploaded { color: var(--green); }
.state.assigned { color: var(--purple); }
.state.reserved { color: var(--amber); }
.state.free { color: var(--muted); }
.state.mine { color: #fff; background: rgba(163, 113, 247, .35); border-color: var(--purple); }
.slot__detail { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; display: grid; gap: 2px; }
.slot__detail .who { color: var(--purple); font-weight: 700; }
.slot__torrent { color: var(--fg); text-decoration: none; }
.slot__torrent:hover { text-decoration: underline; }
.slot .actions .button { flex: 1 1 140px; }
.inline-form { display: grid; gap: 8px; width: 100%; }
.inline-form .row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form .row > * { flex: 1 1 160px; }

/* ---------------------------------------------------------------- formularios */
label.field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #14161A; color: var(--fg); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-soft); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.form-grid { display: grid; gap: 14px; max-width: 460px; }

/* ---------------------------------------------------------------- acceso */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: min(100%, 400px); display: grid; gap: 16px; text-align: center; }
.auth__card img { width: min(100%, 300px); height: auto; margin: 0 auto 6px; }
.auth__card h1 { margin: 0; font-size: 22px; }
.auth__card form { display: grid; gap: 12px; text-align: left; }
.auth__card .button { width: 100%; min-height: 46px; }

/* ---------------------------------------------------------------- listas */
.item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--row-line); }
.item:last-child { border-bottom: 0; }
.item .poster { width: 54px; }
.item__title { font-weight: 700; color: var(--fg); text-decoration: none; }
.item__title:hover { text-decoration: underline; }
.item__lines { display: grid; gap: 3px; font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.item .actions { margin-top: 8px; }
.user-row { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--row-line); }
.user-row:last-child { border-bottom: 0; }
.user-row__name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 9999px; background: #3A404A; color: var(--fg); }
.tag.red { background: var(--red); color: #fff; }
.tag.amber { background: var(--amber); color: #1C1F26; }
.link-box { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.link-box code { overflow-wrap: anywhere; font-size: 13px; color: var(--fg); }

/* ---------------------------------------------------------------- diálogo y aviso */
dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: 10px; background: var(--panel-bg); color: var(--fg);
  box-shadow: 0 12px 17px 2px rgba(0, 0, 0, .14), 0 5px 22px 4px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dialog__body { padding: 20px; display: grid; gap: 14px; }
.dialog__body h2 { margin: 0; font-size: 19px; }
.dialog__body p { margin: 0; color: var(--muted); }
.dialog__body .actions { justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); max-width: calc(100vw - 32px); padding: 12px 18px;
  border-radius: 9999px; background: #3A404A; color: #fff; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a32020; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .toast { transition: none; } }

/* ---------------------------------------------------------------- cards con carátula */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: var(--row-bg); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid #2a2e36; border-radius: 10px;
  overflow: hidden; background: var(--panel-bg); color: var(--fg); text-decoration: none; text-align: left; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--red-soft); box-shadow: 0 10px 22px rgba(0, 0, 0, .45); }
.card:disabled { opacity: .6; cursor: progress; }
.card__poster { position: relative; aspect-ratio: 2 / 3; background: #262a33; overflow: hidden; }
.card__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .card__poster img { transform: scale(1.04); }
.card__placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; color: var(--muted);
  font-size: 13px; text-align: center; }
.card__placeholder svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card__badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: start; gap: 6px; }
.card__asks { position: absolute; left: 8px; bottom: 8px; }
.card__asks, .pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px; font-size: 11px; font-weight: 700;
  line-height: 1.3; background: rgba(11, 11, 13, .85); color: #fff; white-space: nowrap; }
.card__asks { background: rgba(240, 180, 41, .92); color: #1C1F26; }
.pill.kind-movie { background: rgba(255, 68, 68, .92); }
.pill.kind-tv { background: rgba(88, 166, 255, .92); color: #0B0B0D; }
.pill.kind-doc { background: rgba(63, 185, 80, .92); color: #0B0B0D; }
.pill.mine { background: rgba(163, 113, 247, .95); }
.pill.added { background: rgba(11, 11, 13, .85); color: var(--green); border: 1px solid var(--green); }
.slotbar { display: flex; height: 4px; background: #2a2e36; }
.slotbar span { flex-basis: 0; }
.slotbar__uploaded { background: var(--green); }
.slotbar__assigned { background: var(--purple); }
.slotbar__reserved { background: var(--amber); }
.slotbar__free { background: #4a505b; }
.card__body { display: grid; gap: 4px; padding: 10px 12px 12px; align-content: start; flex: 1; }
.card__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.card__sub { margin: 0; color: var(--muted); font-size: 13px; }
.card__stats { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; margin-top: 2px; }
.card__stats .count { font-weight: 600; }
.card__cta { margin-top: 6px; color: var(--red-light); font-size: 13px; font-weight: 700; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 36px 16px; color: var(--muted); text-align: center; }
.empty-state p { margin: 0; }

/* ---------------------------------------------------------------- buscador en vivo */
.suggest { position: fixed; z-index: 60; max-height: min(72vh, 620px); overflow-y: auto; background: #1C1F26; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); padding: 6px; overscroll-behavior: contain; }
.suggest__item { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--fg); text-align: left; cursor: pointer; }
.suggest__item:hover, .suggest__item.active { background: #2a2e38; }
.suggest__item img, .suggest__noposter { width: 52px; height: 78px; border-radius: 5px; object-fit: cover; background: #2a2e36; }
.suggest__noposter { display: grid; place-items: center; color: var(--muted); }
.suggest__noposter svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.suggest__text { display: grid; gap: 5px; min-width: 0; }
.suggest__title { font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.suggest__original { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.suggest__status { color: var(--green); font-size: 12px; font-weight: 700; text-align: right; max-width: 90px; }
.suggest__go { color: var(--muted); font-size: 24px; padding-right: 4px; }
.suggest__empty { margin: 0; padding: 16px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.suggest__all { width: 100%; margin-top: 4px; padding: 11px; border: 0; border-top: 1px solid #2a2e36; background: transparent;
  color: var(--red-light); font-weight: 700; cursor: pointer; border-radius: 0 0 8px 8px; }
.suggest__all:hover { background: #2a2e38; }

/* ---------------------------------------------------------------- selector de temporadas */
dialog.dialog--wide { width: min(96vw, 920px); max-height: 90vh; }
.dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog__head p { margin: 4px 0 0; }
.dialog__close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg);
  font-size: 22px; line-height: 1; cursor: pointer; }
.dialog__close:hover { border-color: var(--muted); }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.card--season .card__title { font-size: 14px; }

/* ---------------------------------------------------------------- ficha con fondo */
.backdrop { position: absolute; left: 0; right: 0; top: 0; height: 560px; overflow: hidden; z-index: -1; pointer-events: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 13, .35), rgba(11, 11, 13, .85) 70%, var(--body-bg)); }
main { position: relative; isolation: isolate; }
.title-hero__poster { width: 120px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #262a33;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55); }
.title-hero__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item__poster { display: block; width: 54px; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: #262a33; }
.item__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item__poster .card__placeholder svg { width: 20px; height: 20px; }
.item { grid-template-columns: 54px minmax(0, 1fr); }

/* ================================================================ tableta */
@media (min-width: 760px) {
  .title-hero h1 { font-size: 26px; }
  .title-hero { grid-template-columns: 170px minmax(0, 1fr); gap: 26px; }
  .title-hero .poster { width: 170px; }
  .slot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .slot .actions { justify-content: flex-end; }
  .slot .actions .button { flex: 0 0 auto; }
  .slot .inline-form { grid-column: 1 / -1; }
  .button-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .user-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* ================================================================ escritorio: como hdzero.org en PC */
@media (min-width: 980px) {
  body { font-size: 13px; background: var(--body-bg) url(/assets/background.jpg) center / cover fixed; }
  .top-nav { background: rgba(20, 22, 26, .96); }
  .top-nav__inner { padding: 6px 18px; grid-template-columns: auto 300px minmax(0, 1fr); gap: 26px; min-height: 64px; }
  .top-nav__logo img { width: 190px; }
  .top-nav__search input { height: 32px; min-height: 0; padding: 0 14px; font-size: 13px; background: rgba(28, 31, 38, .7); border-radius: 9999px; }
  .top-nav__toggle { display: none; }
  .top-nav__menu { grid-column: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0; gap: 0; }
  .top-nav__links { display: flex; justify-content: center; grid-column: 2; gap: 4px; }
  .top-nav__right { display: flex; justify-content: flex-end; grid-column: 3; gap: 4px; }
  .top-nav__menu a { font-size: 13px; padding: 6px 10px; color: #c9ced6; }
  .top-nav__menu a:hover { color: #fff; }
  .top-nav__menu a[aria-current="page"] { color: var(--red-light); }
  .badge { min-width: 17px; height: 17px; font-size: 11px; }

  main { padding: 0 16px 60px; }
  .breadcrumb { position: relative; left: 50%; width: 100vw; margin: 0 0 14px -50vw; padding: 9px 18px; font-size: 12px;
    background: rgba(20, 22, 26, .55); }
  .breadcrumb svg { width: 15px; height: 15px; }
  .breadcrumb .here { color: #fff; }
  .page { width: min(100%, 1474px); margin: 0 auto; }

  .panel { margin-bottom: 14px; }
  .panel__head { padding: 9px 4px; font-size: 13px; background: transparent; }
  .panel > .panel__body, .panel > .torrent-list, .panel > .item, .panel > .user-row, .panel > .empty, .panel > .slot-group { background: var(--row-bg); }
  .panel { background: transparent; }
  .tabs { background: transparent; border-bottom: 0; }
  .tabs button { font-size: 13px; padding: 7px 12px; }
  .note, .empty { font-size: 13px; }

  .button { min-height: 32px; padding: 5px 14px; font-size: 13px; }
  .button.small { min-height: 28px; padding: 3px 12px; font-size: 12px; }
  .button svg { width: 15px; height: 15px; }

  .torrent-row { grid-template-columns: 42px 72px minmax(0, 1fr) auto; gap: 16px; padding: 7px 6px; align-items: center; min-height: 80px; }
  .torrent-row .poster { width: 42px; border-radius: 3px; }
  .torrent-row__type { display: grid; justify-items: center; gap: 3px; color: var(--muted); text-align: center; }
  .torrent-row__type .type-icon { color: var(--blue); line-height: 0; }
  .torrent-row__type .type-icon svg { width: 22px; height: 22px; }
  .torrent-row__type .chip { display: block; padding: 2px 6px; font-size: 11px; line-height: 1.3; background: #3A404A; white-space: normal; }
  .torrent-row__name { font-size: 13px; margin: 0 0 4px; }
  .torrent-row__meta { font-size: 12px; gap: 4px 12px; }
  .torrent-row__meta .count, .torrent-row__meta .mobile-only { display: none; }
  .torrent-row__stats { display: grid; grid-template-columns: repeat(5, 74px) 120px; align-items: center; text-align: right; font-size: 13px;
    padding-right: 10px; }
  .torrent-row__stats .when { color: #fff; }
  .stats-head { display: grid; justify-content: end; grid-template-columns: repeat(5, 74px) 120px; text-align: right; padding: 0 16px 4px 0;
    color: var(--muted); font-size: 12px; }
  .torrent-row .chip.kind { display: none; }
  .torrent-row .actions { margin: 0; }
  .search-row { grid-template-columns: 42px minmax(0, 1fr) auto; }

  .title-hero { grid-template-columns: 255px minmax(0, 1fr); gap: 28px; padding: 22px 16px 10px; }
  .title-hero .poster { width: 255px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
  .title-hero h1 { font-size: 22px; margin-top: 6px; }
  .title-hero .original { font-size: 13px; }
  .title-meta { font-size: 13px; }
  .kowalski-note { font-size: 13px; max-width: 900px; }
  .check-line { font-size: 12px; margin: 10px 4px 6px; }
  .legend { margin-left: auto; font-size: 12px; }

  .slot-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .slot-group__type { padding: 0 0 0 22px; color: #fff; font-size: 13px; font-weight: 400; }
  .slot { grid-template-columns: 150px 160px minmax(0, 1fr) auto; gap: 14px; padding: 7px 12px; min-height: 42px; }
  .slot__top { display: contents; }
  .slot__label { font-size: 13px; font-weight: 400; }
  .slot .state { justify-self: start; }
  .slot__detail { font-size: 12px; display: block; }
  .slot__torrent { display: block; }
  .slot .actions .button { min-width: 150px; }
  .slot__detail-wrap { display: contents; }

  .item { grid-template-columns: 42px minmax(0, 1fr); padding: 8px 10px; }
  .item .poster { width: 42px; border-radius: 3px; }
  .item__lines { font-size: 12px; }
  .item__title { font-size: 13px; }
  .user-row { padding: 9px 12px; }
  label.field { font-size: 12px; }
  input[type="text"], input[type="password"], select, textarea { min-height: 34px; padding: 6px 12px; font-size: 13px; }
}

/* Cards y carátulas grandes */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; padding: 16px; }
  .title-hero__poster { width: 170px; }
  .season-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; padding: 18px; }
  .card__title { font-size: 14px; }
  .title-hero__poster { width: 255px; border-radius: 10px; }
  .backdrop { height: 640px; }
  .backdrop img { opacity: .38; }
  .breadcrumb { background: rgba(20, 22, 26, .4); }
  .item { grid-template-columns: 54px minmax(0, 1fr); }
  .item__poster { width: 54px; }
}

/* Buscador como el de hdzero.org: píldora oscura con borde fino (va al final para ganar a la regla general de inputs) */
.top-nav .top-nav__search input { height: 40px; min-height: 0; padding: 0 18px; border: 1px solid #3A404A; border-radius: 9999px;
  background: #1C1F26; color: var(--fg); font-size: 16px; -webkit-appearance: none; appearance: none; }
.top-nav .top-nav__search input::placeholder { color: #8b929d; }
.top-nav .top-nav__search input::-webkit-search-cancel-button, .top-nav .top-nav__search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.top-nav .top-nav__search input:focus { border-color: var(--red-soft); }
@media (min-width: 980px) {
  .top-nav .top-nav__search input { height: 32px; padding: 0 16px; font-size: 13px; background: rgba(28, 31, 38, .7); }
}
