/* ---------- page Mr. Robot Recompiled ---------- */
html { scroll-behavior: smooth; }
body.is-robot { background: #050505; }
#robot { overflow-x: clip; }
.rb-nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem var(--pad); background: linear-gradient(#050505 30%, transparent); font-size: .75rem; }
.rb-nav > * { flex: 1; }
.rb-back { white-space: nowrap; }
.rb-back:hover { color: var(--red); }
.rb-logo { flex: 0 0 auto; }
.rb-logo img { width: 62px; height: auto; }
.rb-nav .nav__lang { flex: 1; display: flex; justify-content: flex-end; border: 0; }

.rb-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem var(--pad) clamp(2.5rem, 8vh, 6rem); overflow: hidden; }
.rb-hero__img { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; object-position: 60% 35%; -webkit-mask: linear-gradient(90deg, transparent, #000 32%); mask: linear-gradient(90deg, transparent, #000 32%); opacity: .9; }
.rb-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #050505), repeating-linear-gradient(rgba(0,0,0,.22) 0 1px, transparent 1px 3px); pointer-events: none; }
.rb-hero__txt { position: relative; z-index: 1; max-width: 100%; }
.rb-type { margin: 0 0 1rem; color: var(--red); font-size: clamp(.9rem, 1.6vw, 1.15rem); min-height: 1.6em; }
.rb-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; background: var(--red); vertical-align: -.15em; animation: rbBlink 1s steps(2) infinite; }
@keyframes rbBlink { 50% { opacity: 0; } }
.rb-title { position: relative; font-family: var(--display); font-size: clamp(3.4rem, 10vw, 11rem); line-height: 1; text-transform: uppercase; }
.rb-title::before, .rb-title::after { content: attr(data-t); white-space: pre; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.rb-title::before { color: var(--red); animation: rbGlitch 5s infinite steps(1); }
.rb-title::after { color: #3ad6ff; animation: rbGlitch 5s .08s infinite steps(1) reverse; }
@keyframes rbGlitch { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .8; transform: translate(-6px, 2px); clip-path: inset(12% 0 62% 0); } 94% { opacity: .8; transform: translate(7px, -2px); clip-path: inset(58% 0 18% 0); } 96% { opacity: .8; transform: translate(-3px, 0); clip-path: inset(38% 0 44% 0); } 98% { opacity: 0; } }
.rb-lead { margin: 1.2rem 0 1.8rem; font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.4; }
.rb-jump { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .75rem; }
.rb-jump a { padding: .7rem 1.1rem; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; background: rgba(5,5,5,.6); transition: background .25s, border-color .25s; }
.rb-jump a:hover { background: var(--red); border-color: var(--red); }

.rb-nums { display: grid; grid-template-columns: repeat(6, auto); border-block: 1px solid var(--line); }
.rb-nums div { display: grid; gap: .3rem; padding: clamp(1.2rem, 2.5vw, 2rem) var(--pad); border-left: 1px solid var(--line); padding-inline: clamp(1rem, 2vw, 2rem); }
.rb-nums div:first-child { border-left: 0; padding-left: var(--pad); }
.rb-nums b { font: 400 clamp(1.9rem, 3.2vw, 3.2rem)/1 var(--display); white-space: nowrap; }
.rb-nums span { color: var(--muted); font-size: .85rem; }

.rb-sec { padding: clamp(4rem, 10vw, 8rem) var(--pad) 0; scroll-margin-top: 0; }
.rb-head { margin-bottom: clamp(1.6rem, 4vw, 3rem); max-width: 62rem; }
.rb-head > span { color: var(--red); font-size: .8rem; }
.rb-head h2 { margin: .3rem 0 0; font-family: var(--display); font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1; text-transform: uppercase; }
.rb-head p { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

.rb-poster { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: center; }
.rb-poster__img { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: none; box-shadow: 0 30px 90px rgba(227,18,28,.16); transition: border-color .25s, transform .5s cubic-bezier(.2,.7,.2,1); }
.rb-poster__img:hover { border-color: var(--red); transform: translateY(-6px); }
.rb-poster__img img { width: 100%; height: auto; }
.rb-poster__txt > .mono.red { margin: 0 0 .8rem; font-size: .8rem; }
.rb-poster h2 { font-family: var(--display); font-size: clamp(2.3rem, 5.5vw, 4.8rem); line-height: 1.02; text-transform: uppercase; }
.rb-poster__txt > p:not(.mono) { max-width: 34rem; margin: 1.2rem 0; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.rb-poster ul { margin: 0 0 1.6rem; padding: 0; list-style: none; font-size: .85rem; line-height: 2; text-transform: uppercase; letter-spacing: .12em; color: #c9c6cf; }
.rb-poster li::before { content: '>'; margin-right: .9em; color: var(--red); }
.rb-poster__by { margin: 0; font-size: .75rem; color: var(--muted); }

.rb-time__cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rb-time__col { padding: clamp(1.3rem, 2.4vw, 2.2rem); border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.rb-time__col > .mono { margin: 0 0 .7rem; font-size: .75rem; }
.rb-time__col h3 { margin: 0; font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.05 var(--display); text-transform: uppercase; }
.rb-time__sub { margin: .5rem 0 1.2rem; color: var(--ink); font-size: 1.05rem; }
.rb-time ul { margin: 0; padding: 0; list-style: none; }
.rb-time li { padding: .85rem 0; border-top: 1px solid var(--line); }
.rb-time li p { margin: .25rem 0 0; color: #b9b6c0; font-size: .95rem; line-height: 1.5; }

.rb-compil { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.rb-compil:not(:has(iframe)) { padding: 1.1rem 1.3rem; border: 1px dashed #3a3643; border-radius: 14px; background: var(--bg2); }
.rb-compil p { flex: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.rb-compil p b { display: block; font: 400 1.35rem/1.15 var(--display); text-transform: uppercase; color: var(--ink); }
.rb-compil em { font-style: normal; font-size: .72rem; color: #ffcf5a; white-space: nowrap; }
.rb-compil__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: rbBlink 1.6s steps(2) infinite; }
.rb-compil iframe { width: min(100%, 420px); aspect-ratio: 9/16; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; background: #000; }

.rb-films { display: grid; gap: 1.2rem; }
.rb-season { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; }
.rb-season h3 { font-size: .78rem; color: var(--muted); }
.rb-parts { display: flex; gap: .5rem; }
.rb-film { position: relative; flex: var(--m) 1 0; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .2rem .6rem; min-height: 104px; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #17090b, #0a0a0c 60%); transition: border-color .25s, background-color .25s; }
.rb-film:hover { border-color: var(--red); }
.rb-film b { grid-column: 1 / -1; align-self: start; font: 400 2rem/1 var(--display); color: var(--red); }
.rb-film span, .rb-film em { font-size: .72rem; font-style: normal; white-space: nowrap; }
.rb-film span { color: var(--muted); }

.rb-phases { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.rb-phase { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); overflow: hidden; }
.rb-phase[open] { border-color: #3a3643; }
.rb-phase summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; list-style: none; cursor: inherit; }
.rb-phase summary::-webkit-details-marker { display: none; }
.rb-phase summary::after { content: '+'; width: 1em; font: 400 1.6rem/1 var(--mono); text-align: center; color: var(--red); }
.rb-phase[open] summary::after { content: '−'; }
.rb-phase summary:hover b { color: var(--red); }
.rb-phase summary > span { font-size: .75rem; color: var(--red); }
.rb-phase summary b { flex: 1; font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--display); text-transform: uppercase; }
.rb-phase summary em { font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.rb-phase ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1.4rem 2rem; margin: 0; padding: .4rem 1.3rem 1.5rem; list-style: none; }
.rb-phase li { padding-top: 1rem; border-top: 1px solid var(--line); }
.rb-phase li > b { font-size: 1.08rem; }
.rb-phase li p { margin: .45rem 0 .9rem; color: #b9b6c0; font-size: .95rem; line-height: 1.5; }
.rb-tools { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .68rem; }
.rb-tools span { padding: .25rem .55rem; border: 1px solid #3a3643; border-radius: 99px; color: #b9b6c0; }
.rb-tools .is-script { border-color: rgba(43,255,136,.35); color: #2bff88; }
.rb-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: .8rem; }
.rb-two pre { margin: 0; padding: 1.2rem; min-height: 280px; font-size: clamp(.72rem, 1vw, .85rem); line-height: 1.8; white-space: pre-wrap; color: #cfd3cf; }
.rb-two pre .ok { color: #2bff88; } .rb-two pre .r { color: var(--red); } .rb-two pre .c { color: var(--muted); }
.rb-state { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.rb-state h3 { font: 400 1.6rem/1 var(--display); text-transform: uppercase; }
.rb-state ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.rb-state li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.rb-state b { font-size: .75rem; font-weight: 600; color: #2bff88; white-space: nowrap; }
.rb-state .is-wip b { color: #ffcf5a; }

.rb-ba { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; max-width: min(1200px, 122vh); touch-action: pan-y; }
.rb-ba img { width: 100%; height: auto; user-select: none; }
.rb-ba__top { position: absolute; inset: 0; height: 100% !important; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.rb-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.rb-ba__bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.rb-ba__bar span { position: absolute; top: 50%; left: 50%; display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #050505; font-weight: 700; font-style: normal; transform: translate(-50%, -50%); }
.rb-ba input:focus-visible ~ .rb-ba__bar span { outline: 3px solid var(--ember); outline-offset: 3px; }
.rb-ba__tag { position: absolute; top: .8rem; left: .8rem; padding: .3rem .6rem; border-radius: 6px; background: rgba(0,0,0,.7); font-size: .68rem; pointer-events: none; }
.rb-pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: min(1200px, 122vh); margin-top: .8rem; }
.rb-pairs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); color: var(--muted); text-align: left; }
.rb-pairs img { width: 100%; height: auto; opacity: .6; transition: opacity .25s; }
.rb-pairs span { display: block; padding: .6rem .8rem; font-size: .72rem; }
.rb-pairs button:hover img, .rb-pairs [aria-pressed="true"] img { opacity: 1; }
.rb-pairs [aria-pressed="true"] { border-color: var(--red); color: var(--ink); }
.rb-ba__tag--r { left: auto; right: .8rem; color: #2bff88; }
.rb-vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-top: 1rem; }
.rb-vids:empty { display: none; }
.rb-vids figure { margin: 0; }
.rb-vids iframe, .rb-vids video { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 14px; background: #000; display: block; }
.rb-vids figcaption { margin-top: .5rem; font-size: .75rem; color: var(--muted); }

.rb-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.rb-filter button { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--bg2); color: var(--ink); font: inherit; font-size: .78rem; transition: background .25s, border-color .25s; }
.rb-filter button:hover { border-color: var(--red); }
.rb-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.rb-filter small { opacity: .7; }
.rb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.rb-spot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); color: var(--ink); text-align: left; aspect-ratio: 9/16; }
.rb-spot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rb-spot:hover img { transform: scale(1.04); }
.rb-spot:hover { border-color: var(--red); }
.rb-spot span { position: absolute; inset: auto 0 0; padding: 3rem .9rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-size: .68rem; color: #c9c6cf; }
.rb-spot b { display: block; font: 400 1.25rem/1.1 var(--display); letter-spacing: 0; color: #fff; text-transform: uppercase; margin-bottom: .2rem; }

.rb-box { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; background: rgba(3,3,4,.94); }
.rb-box[hidden] { display: none; }
.rb-box figure { margin: 0; text-align: center; }
.rb-box img { max-height: 84svh; max-width: min(78vw, 720px); width: auto; border-radius: 14px; }
.rb-box figcaption { margin-top: .8rem; font-size: .8rem; color: var(--muted); }
.rb-box figcaption b { color: var(--ink); } .rb-box figcaption a { color: var(--red); text-decoration: underline; }
.rb-box button { background: none; border: 0; color: var(--ink); line-height: 1; }
.rb-box button:hover { color: var(--red); }
.rb-box.is-one .rb-box__nav { display: none; }
.rb-box__x { position: absolute; top: .6rem; right: 1rem; font-size: 2.4rem; padding: .4rem; }
.rb-box__nav { font-size: 3.4rem; padding: 1rem .6rem; }

.rb-foot { margin-top: clamp(4rem, 10vw, 8rem); padding: 3rem var(--pad); border-top: 1px solid var(--line); text-align: center; font-size: .75rem; color: var(--muted); }
.rb-bye { font-size: 1.1rem; color: var(--red); }
.rb-foot a { display: inline-block; margin-top: 1rem; color: var(--ink); }
.rb-foot a:hover { color: var(--red); }

@media (max-width: 1100px) { .rb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .rb-title { font-size: 19vw; }
  .rb-hero__img { width: 100%; height: 66%; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
  .rb-nums { grid-template-columns: 1fr 1fr; }
  .rb-nums div, .rb-nums div:first-child { padding: 1.1rem var(--pad); border-left: 0; border-bottom: 1px solid var(--line); }
  .rb-nums div:nth-child(even) { border-left: 1px solid var(--line); }
  .rb-nums div:nth-last-child(-n+2) { border-bottom: 0; }
  .rb-poster, .rb-time__cols { grid-template-columns: 1fr; }
  .rb-season { grid-template-columns: 1fr; gap: .5rem; }
  .rb-parts { gap: .4rem; }
  .rb-film { grid-template-columns: 1fr; padding: .7rem .6rem; min-height: 96px; flex: 1 1 0; }
  .rb-film b { font-size: 1.5rem; } .rb-film span, .rb-film em { font-size: .66rem; letter-spacing: 0; }
  .rb-pairs { grid-template-columns: 1fr 1fr; }
  .rb-two { grid-template-columns: 1fr; }
  .rb-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .rb-spot b { font-size: 1.02rem; }
  .rb-box__nav { position: absolute; left: 0; bottom: 40%; font-size: 2.6rem; background: rgba(0,0,0,.5) !important; border-radius: 0 10px 10px 0; }
  .rb-box__nav--r { left: auto; right: 0; border-radius: 10px 0 0 10px; }
  .rb-box img { max-width: 92vw; max-height: 80svh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rb-title::before, .rb-title::after, .rb-caret, .rb-compil__dot { animation: none; } }
