:root {
  --asphalt: #302F2C;
  --paper: #EFEDE3;
  --muted: #aaa89f;
  --line: rgba(239, 237, 227, .18);
  --cabinet: #252421;
  --cabinet-light: #393631;
  --brass: #b99a68;
  --signal: #c7d4a4;
  --screen: #080907;
  --display: Arial, Helvetica, sans-serif;
  --font-crt: "VT323", "Courier New", monospace;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  color-scheme: dark;
}
@font-face { font-family: "Silkscreen"; src: url("assets/fonts/silkscreen-bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url("assets/fonts/vt323-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
html { background: #171613; }
body { position: relative; margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 50% 0%, #36342f 0, #211f1c 47rem, #141312 100%); color: var(--paper); font-family: var(--display); overscroll-behavior: none; }
.scene-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; background-position: center; background-size: cover; filter: brightness(.78) saturate(.72); pointer-events: none; transition: opacity .45s ease; }
.scene-backdrop::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(8,7,6,.12), rgba(8,7,6,.34)), radial-gradient(ellipse at center, transparent 12%, rgba(7,6,5,.58) 88%); }
body[data-room="retro"] .scene-backdrop { opacity: 1; background-image: url("assets/room-sala-retro-web.jpg"); }
body[data-room="horror"] .scene-backdrop { opacity: 1; background-image: url("assets/room-cena-terror-web.jpg"); filter: brightness(.68) saturate(.56); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Carregamento: ao concluir, a TV liga automaticamente */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.5rem; background: #050505; transition: opacity .45s ease, visibility .45s ease; }
.loader.is-finished { opacity: 0; visibility: hidden; }
.loader__content { width: min(500px, 82vw); text-align: center; }
.loader__logo { display: block; width: 124px; height: 124px; margin: 0 auto 1.25rem; object-fit: contain; }
.loader__caption { display: flex; justify-content: space-between; gap: 1rem; color: var(--signal); font: 1.05rem var(--font-crt); letter-spacing: .12em; }
.loader__title { margin: .55rem 0 1.45rem; color: var(--paper); font: 700 clamp(.9rem, 2.6vw, 1.25rem)/1.4 var(--font-pixel); letter-spacing: .02em; }
.loader__track { height: 7px; overflow: hidden; background: #292929; border: 1px solid rgba(239,237,227,.12); border-radius: 99px; }
.loader__track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c755e, var(--signal)); transition: width .09s linear; }
.loader__frequency { margin: .8rem 0 0; color: #aaa89f; font: 1rem/1.4 var(--font-crt); letter-spacing: .1em; }

/* Gabinete — dimensão limitada ao viewport, sem rolagem de página */
.portfolio { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden; padding: 1rem; animation: portfolio-on .35s ease both; }
.tv-console { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(145px, 13vw, 190px); align-items: stretch; gap: clamp(.8rem, 2vw, 1.8rem); width: min(1510px, calc(100vw - 2rem)); height: min(920px, calc(100dvh - 2rem)); min-height: 0; padding: clamp(.75rem, 1.8vw, 1.4rem); border: 1px solid #5c5548; border-radius: 50px 44px 38px 42px; background: linear-gradient(138deg, #4a463d 0%, #2f2d29 19%, #242320 48%, #39352e 100%); box-shadow: 0 32px 90px rgba(0,0,0,.55), inset 2px 2px 1px rgba(255,255,255,.16), inset -3px -4px 14px rgba(0,0,0,.65); transition: background .35s, border-color .35s, box-shadow .35s; }
.tv-console::before { position: absolute; inset: 6px; z-index: 0; border: 1px solid rgba(0,0,0,.5); border-radius: 43px 37px 31px 36px; content: ""; pointer-events: none; }
.tv-console[data-frame="walnut"], .tv-console[data-frame="legs"] { border-color: #806044; background: linear-gradient(110deg, rgba(255,210,154,.12), transparent 23%, rgba(25,13,8,.22) 51%, rgba(241,193,137,.08)), linear-gradient(135deg, #815a3c, #563923 35%, #2b1d15 70%, #69472f); box-shadow: 0 32px 90px rgba(0,0,0,.62), inset 2px 2px 2px rgba(255,224,180,.2), inset -4px -5px 15px rgba(0,0,0,.72); }
.tv-console[data-frame="walnut"] .tv-bezel, .tv-console[data-frame="legs"] .tv-bezel { background: linear-gradient(145deg, #3b291e, #795438 27%, #38271d 72%, #8b6544); }
.tv-console[data-frame="walnut"] .tv-controls, .tv-console[data-frame="legs"] .tv-controls { border-color: #271a12; background: linear-gradient(145deg, #68482f, #3b281c 62%, #241910); }
.tv-console[data-frame="ivory"] { border-color: #b6a584; background: linear-gradient(140deg, #e0d4ba, #bcae90 55%, #ddd0b4); box-shadow: 0 32px 90px rgba(0,0,0,.55), inset 2px 2px 2px rgba(255,255,255,.56), inset -3px -4px 14px rgba(89,69,42,.38); }
.tv-console[data-frame="ivory"]::before { border-color: rgba(77,62,39,.5); }
.tv-console[data-frame="ivory"] .tv-bezel { border-color: #786a54; background: linear-gradient(145deg, #5e5342, #d3c4a5 26%, #776a54 75%, #e5d7ba); }
.tv-console[data-frame="ivory"] .tv-screen-frame { border-color: #352f26; background: #292720; }
.tv-console[data-frame="ivory"] .tv-controls { border-color: #514533; background: linear-gradient(145deg, #71634d, #40392d 58%, #2f2b23); }
.tv-antenna { position: absolute; top: -34px; left: 18%; z-index: 0; width: 104px; height: 40px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
.tv-antenna span { position: absolute; bottom: 0; left: 50%; width: 2px; height: 38px; border-radius: 3px; background: linear-gradient(#d6c9aa, #6e6049); box-shadow: 0 0 2px rgba(0,0,0,.6); transform-origin: bottom center; }
.tv-antenna span:first-child { transform: rotate(-48deg); }
.tv-antenna span:last-child { transform: rotate(48deg); }
.tv-antenna::after { position: absolute; bottom: -2px; left: calc(50% - 5px); width: 12px; height: 6px; border-radius: 50%; background: #a58a5d; content: ""; }
.tv-legs { position: absolute; right: 14%; bottom: -24px; left: 14%; z-index: 0; display: flex; justify-content: space-between; height: 32px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
.tv-legs span { width: 22px; height: 32px; border: 1px solid #3b2719; border-radius: 0 0 5px 5px; background: linear-gradient(90deg, #372318, #8a5c36 35%, #603f28 72%, #302015); box-shadow: inset 1px 0 rgba(255,219,171,.25), 2px 5px 5px rgba(0,0,0,.4); }
.tv-legs span:first-child { transform: skew(-7deg); }
.tv-legs span:last-child { transform: skew(7deg); }
.tv-console[data-frame="legs"] { height: min(920px, calc(100dvh - 6rem)); margin-bottom: 1.35rem; }
.tv-console[data-frame="legs"] .tv-antenna, .tv-console[data-frame="legs"] .tv-legs { opacity: 1; visibility: visible; }
.tv-bezel { position: relative; z-index: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; padding: clamp(.5rem, 1.1vw, .95rem); border: 1px solid rgba(7,7,6,.9); border-radius: 38px 31px 28px 32px; background: linear-gradient(145deg, #181816, #34312b 30%, #1d1c19 75%, #514938); box-shadow: inset 0 2px 3px rgba(255,255,255,.06), 0 2px 7px rgba(0,0,0,.7); transition: background .35s, border-color .35s; }
.tv-screen-frame { min-width: 0; min-height: 0; padding: clamp(.55rem, 1.2vw, 1rem); border: 1px solid #070706; border-radius: 31px 26px 24px 29px; background: #171715; box-shadow: inset 0 0 0 2px rgba(255,255,255,.035), inset 0 0 22px rgba(0,0,0,.9); }
.tv-glass { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: clamp(20px, 3vw, 42px) clamp(16px, 2.3vw, 34px) clamp(18px, 2.7vw, 38px) clamp(15px, 2vw, 28px); background: var(--screen); box-shadow: inset 0 0 45px rgba(0,0,0,.88), inset 0 0 2px rgba(255,255,255,.25); }
.screen-content { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.screen-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding: .6rem clamp(1rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background: rgba(8,9,7,.7); }
.brand { display: inline-flex; align-items: center; gap: .7rem; padding: 0; border: 0; background: transparent; color: #fff; font: 1rem/1.05 var(--font-crt); letter-spacing: .08em; text-align: left; cursor: pointer; }
.brand small { color: #c5c2b8; font: .9rem/1.15 var(--font-crt); letter-spacing: .06em; }
.brand__logo { width: 36px; height: 36px; object-fit: cover; border: 1px solid rgba(239,237,227,.3); border-radius: 50%; }
.top-nav { display: flex; justify-content: flex-end; gap: clamp(.6rem, 1.8vw, 1.5rem); }
.top-nav button { min-height: 40px; padding: .4rem 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #fff; font: 1rem var(--font-crt); letter-spacing: .06em; cursor: pointer; }
.top-nav button:hover, .top-nav button:focus-visible { border-color: var(--brass); color: var(--signal); }
.channel-stage { position: relative; min-width: 0; min-height: 0; overflow: auto; padding: clamp(1.1rem, 3vw, 3rem) clamp(1rem, 4vw, 4rem); overscroll-behavior: contain; scrollbar-color: rgba(185,154,104,.65) rgba(255,255,255,.05); scrollbar-width: thin; }
.channel-stage:focus { outline-offset: -5px; }
.screen-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 31px; padding: .3rem clamp(1rem, 3vw, 2.5rem); border-top: 1px solid rgba(239,237,227,.12); color: #79776f; font: .48rem/1.3 monospace; letter-spacing: .13em; }
.screen-footer > span:last-child { display: inline-flex; align-items: center; gap: .35rem; color: #a8a897; }
.screen-footer__led { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(199,212,164,.7); }
.screen-footer b { font-weight: 400; }
.bezel-caption { display: flex; justify-content: space-between; gap: .7rem; padding: .55rem .55rem 0; color: #9a907c; font: .48rem/1.4 monospace; letter-spacing: .16em; }
.tuning-noise { position: absolute; inset: 0; z-index: 7; display: block; width: 100%; height: 100%; opacity: 0; filter: contrast(1.3) brightness(1.1); image-rendering: auto; pointer-events: none; transition: opacity .04s linear; }
.tuning-scanlines { position: absolute; inset: 0; z-index: 8; opacity: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,.22) 3px, rgba(0,0,0,.22) 4px); }
.tuning-flicker { position: absolute; inset: 0; z-index: 9; opacity: 0; pointer-events: none; background: rgba(255,255,255,.025); }
.tv-glass.is-tuning .tuning-noise, .tv-glass.is-tuning .tuning-scanlines { opacity: 1; }
.tv-glass.is-tuning .tuning-flicker { animation: tuning-flicker .12s infinite; }
.crt-overlay { position: absolute; inset: 0; z-index: 11; border-radius: inherit; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 4px), radial-gradient(ellipse at center, transparent 44%, rgba(0,0,0,.1) 73%, rgba(0,0,0,.58) 110%); opacity: .42; pointer-events: none; }

/* Conteúdo exibido por canal */
.eyebrow { margin: 0; color: var(--signal); font-size: .62rem; letter-spacing: .17em; }
.channel-page { width: min(100%, 1100px); min-height: 100%; margin: 0 auto; animation: channel-fade .24s ease both; }
.channel-page__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; color: #8d8b81; font: .55rem monospace; letter-spacing: .14em; }
.channel-page h1 { margin: .25rem 0 1rem; font-size: clamp(2.1rem, 5.2vw, 5.2rem); font-weight: 500; letter-spacing: -.075em; line-height: .93; }
.channel-page__lead { max-width: 720px; margin: .75rem 0 1.5rem; color: var(--muted); font-size: clamp(.82rem, 1.35vw, 1rem); line-height: 1.7; }
.channel-category { display: flex; flex-direction: column; gap: 1rem; }
.channel-feature { position: relative; width: 100%; overflow: hidden; border: 1px solid rgba(239,237,227,.34); background: #080907; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.channel-feature__media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; min-height: 210px; padding: 0; overflow: hidden; border: 0; background: radial-gradient(ellipse at 50% 40%, #35342f, #10110e 70%); color: #fff; text-align: left; }
.channel-feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.08); transition: transform .55s ease, filter .3s ease; }
.channel-feature__media:hover img { transform: scale(1.025); filter: saturate(.9) contrast(1.08); }
.channel-feature__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.08) 5%, rgba(0,0,0,.05) 34%, rgba(0,0,0,.8) 100%), linear-gradient(90deg, rgba(0,0,0,.28), transparent 70%); pointer-events: none; }
.channel-feature__number { position: absolute; top: clamp(.75rem, 3vw, 2rem); right: clamp(.9rem, 3.5vw, 2.4rem); z-index: 4; color: #fff; font: 700 clamp(2.6rem, 7vw, 6rem)/.9 var(--font-pixel); letter-spacing: -.04em; text-shadow: 0 3px 18px rgba(0,0,0,.85); pointer-events: none; }
.channel-feature__copy { position: absolute; right: 5rem; bottom: clamp(.8rem, 3.6vw, 2.4rem); left: clamp(.8rem, 4vw, 3rem); z-index: 4; display: grid; gap: .26rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.88); pointer-events: none; }
.channel-page .channel-feature__label { display: block; max-width: 100%; margin: 0; color: #fff; font: 700 clamp(1.45rem, 5.2vw, 4.6rem)/1.08 var(--font-pixel); letter-spacing: -.035em; overflow-wrap: anywhere; }
.channel-feature__title { display: block; color: #fff; font: 400 clamp(1.3rem, 2.7vw, 2.2rem)/.98 var(--font-crt); text-transform: uppercase; }
.channel-feature__credit { display: block; color: #fff; font: 400 clamp(.95rem, 1.55vw, 1.35rem)/1.1 var(--font-crt); letter-spacing: .05em; text-transform: uppercase; }
.channel-feature__play { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.84); border-radius: 50%; background: rgba(8,9,7,.76); color: #fff; font-size: 1rem; pointer-events: none; }
.channel-feature__media:hover .channel-feature__play { background: #fff; color: var(--asphalt); }
.channel-feature--empty { display: grid; place-items: center; min-height: clamp(200px, 35vh, 420px); padding: 1rem; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px), radial-gradient(ellipse at center, #262722, #080907 70%); }
.channel-feature--empty .channel-feature__copy { position: relative; inset: auto; width: 100%; max-width: 720px; }
.channel-feature--empty .channel-feature__number { top: 1rem; right: 1rem; }
.channel-category__directory { padding-top: .4rem; }
.channel-category__directory .channel-page__topline { font-family: var(--font-crt); font-size: .95rem; }
.channel-category__tools { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.channel-category__tools .channel-page__lead { margin-bottom: .6rem; font-family: var(--font-crt); font-size: 1.15rem; }
.channel-page__topline { font-family: var(--font-crt); font-size: 1rem; }
.channel-search input { font-family: var(--font-crt); font-size: 1.2rem; }
.channel-search input::placeholder { font-family: var(--font-crt); }
.project-count { margin: .2rem 0 .6rem; color: var(--signal); font: 1rem var(--font-crt); letter-spacing: .08em; }
.channel-home { display: flex; flex-direction: column; justify-content: center; }
.channel-home h1 { max-width: 900px; font-size: clamp(3.2rem, 8vw, 8rem); }
.channel-home h1 em { color: #b0ada3; font-weight: 400; }
.home-art { position: absolute; top: 50%; right: 6%; display: grid; place-items: center; width: clamp(120px, 20vw, 250px); aspect-ratio: 1; border: 1px solid rgba(239,237,227,.15); border-radius: 50%; background: radial-gradient(circle, rgba(239,237,227,.07), transparent 69%); opacity: .35; transform: translateY(-50%); pointer-events: none; }
.home-art::before, .home-art::after { position: absolute; inset: 12%; border: 1px solid rgba(239,237,227,.16); border-radius: 50%; content: ""; }
.home-art::after { inset: 24%; border-style: dashed; }
.home-art img { width: 40%; height: 40%; border-radius: 50%; filter: grayscale(1); object-fit: cover; }
.tune-link { display: inline-flex; align-items: center; gap: .8rem; width: fit-content; min-height: 44px; margin-top: .7rem; padding: .6rem 0; border: 0; border-bottom: 1px solid rgba(239,237,227,.7); background: transparent; color: var(--paper); font-size: .62rem; letter-spacing: .15em; cursor: pointer; transition: color .2s, gap .2s; }
.tune-link:hover { gap: 1.15rem; color: var(--signal); }
.channel-search { display: flex; align-items: center; gap: .5rem; width: min(100%, 380px); min-height: 40px; margin: .6rem 0 1.15rem; border-bottom: 1px solid rgba(239,237,227,.34); }
.channel-search input { width: 100%; min-height: 40px; padding: .4rem 0; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: .76rem; }
.channel-search input::placeholder { color: #85837b; }
.channel-search__icon { color: var(--muted); font-size: 1.15rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); align-items: start; }
.project-card { min-width: 0; padding: .5rem; border: 1px solid rgba(239,237,227,.14); background: linear-gradient(145deg, rgba(239,237,227,.04), rgba(0,0,0,.17)); transition: border-color .2s, background .2s; }
.project-card:hover { border-color: rgba(185,154,104,.58); background: rgba(239,237,227,.045); }
.project-card__media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; padding: 0; overflow: hidden; border: 1px solid rgba(239,237,227,.09); background: #080907; color: inherit; }
.media-button { cursor: pointer; }
.project-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.project-card:hover .project-card__media img { transform: scale(1.025); filter: saturate(.85); }
.media-poster { position: absolute; inset: 0; display: block; overflow: hidden; }
.media-preview { position: absolute; inset: 0; z-index: 1; visibility: hidden; background: #000; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.media-button.is-previewing .media-preview { visibility: visible; opacity: 1; }
.media-preview iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.play-badge { position: absolute; z-index: 2; right: .8rem; bottom: .8rem; display: grid; place-items: center; width: 50px; height: 50px; padding-left: 3px; border: 1px solid rgba(239,237,227,.8); border-radius: 50%; background: rgba(8,9,7,.82); color: var(--paper); font-size: .8rem; transition: transform .2s, background .2s, color .2s, opacity .2s; }
.media-button:hover .play-badge { transform: scale(1.08); background: var(--paper); color: var(--asphalt); }
.media-button.is-previewing .play-badge { opacity: 0; }
.media-title { position: absolute; z-index: 2; right: 4.2rem; bottom: .72rem; left: .75rem; overflow: hidden; padding: .55rem .6rem; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.28), transparent); color: var(--paper); font-size: clamp(.7rem, 1.1vw, 1rem); text-align: left; text-overflow: ellipsis; text-shadow: 0 1px 5px #000; white-space: nowrap; pointer-events: none; }
.preview-label { position: absolute; z-index: 3; top: .7rem; left: .7rem; padding: .42rem .5rem; border: 1px solid rgba(239,237,227,.38); background: rgba(8,9,7,.8); color: var(--paper); font: .52rem monospace; letter-spacing: .13em; opacity: 0; }
.media-button.is-previewing .preview-label { opacity: 1; }
.project-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #8b897e; font: .62rem monospace; letter-spacing: .13em; text-align: center; }
.project-card__meta { display: flex; justify-content: space-between; gap: .8rem; margin-top: .8rem; color: #9e9c92; font: .55rem/1.5 monospace; letter-spacing: .06em; }
.project-card h2 { margin: .4rem 0; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 500; }
.project-card p { max-width: 680px; margin: .45rem 0; color: #aaa89f; font-size: .78rem; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; min-height: 42px; margin-top: .2rem; padding: .35rem 0; border-bottom: 1px solid rgba(239,237,227,.3); color: var(--paper); font: .56rem monospace; letter-spacing: .12em; }
.audio-player { display: block; width: min(100%, 600px); margin: .8rem 0; }
.empty-state { padding: 1rem; border: 1px dashed rgba(239,237,227,.22); color: #95938a; font: .68rem/1.7 monospace; }
.channel-note { max-width: 760px; color: #b3b0a7; font-size: clamp(.84rem, 1.35vw, 1rem); line-height: 1.8; }
.channel-info h1 { color: #fff; font: 700 clamp(1.7rem, 4.5vw, 3.8rem)/1.1 var(--font-pixel); letter-spacing: -.04em; }
.contact-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 46px; margin-top: 1rem; border-bottom: 1px solid rgba(239,237,227,.55); font-size: .66rem; letter-spacing: .14em; }

/* Reprodução dentro do vidro da própria TV */
.screen-player { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .7rem; padding: clamp(.75rem, 2vw, 1.5rem); background: rgba(5,6,5,.98); animation: channel-fade .18s ease both; }
.screen-player__top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: var(--signal); font: .55rem monospace; letter-spacing: .12em; }
.screen-player__back { min-height: 42px; padding: .45rem .65rem; border: 1px solid rgba(239,237,227,.24); background: transparent; color: var(--paper); font: .56rem monospace; letter-spacing: .09em; cursor: pointer; }
.screen-player__frame { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
.screen-player__frame iframe { display: block; width: 100%; max-width: 1100px; aspect-ratio: 16/9; max-height: 100%; border: 0; background: #000; }
.screen-player__title { margin: 0; color: #b9b6ac; font-size: .82rem; }

/* Controles físicos */
.tv-controls { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-width: 0; padding: 1rem .8rem; border: 1px solid rgba(0,0,0,.65); border-radius: 22px 22px 26px 26px; background: linear-gradient(145deg, #38352f, #24231f 58%, #171715); box-shadow: inset 1px 1px 1px rgba(255,255,255,.09), inset -2px -3px 8px rgba(0,0,0,.65), 0 6px 12px rgba(0,0,0,.35); transition: background .35s, border-color .35s; }
.control-topline { display: flex; align-items: center; gap: .45rem; color: #d0cbbd; font: .85rem var(--font-crt); letter-spacing: .06em; }
.power-led { display: inline-block; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: #8eab75; box-shadow: 0 0 9px rgba(142,171,117,.6); }
.channel-display { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 86px; padding: .5rem; border: 1px solid #171813; border-radius: 4px; background: linear-gradient(135deg, #161a14, #20241b); box-shadow: inset 0 0 18px rgba(0,0,0,.8); text-align: center; }
.channel-display__label { color: #b9c1a6; font: .74rem var(--font-crt); letter-spacing: .08em; }
.channel-display strong { margin: .2rem 0; color: #fff; font: 700 1.6rem/1 var(--font-pixel); letter-spacing: .03em; text-shadow: 0 0 9px rgba(239,237,227,.35); }
.channel-display > span:last-child { max-width: 100%; overflow: hidden; color: #fff; font: .86rem var(--font-crt); letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.channel-control-row { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.channel-step { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-width: 92px; min-height: 42px; border: 1px solid rgba(239,237,227,.12); border-radius: 3px; background: rgba(0,0,0,.19); color: #c9c6bb; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.channel-step span { font-size: 1.2rem; }
.channel-step small { font: .46rem monospace; letter-spacing: .11em; }
.channel-step:hover { border-color: var(--brass); background: rgba(185,154,104,.13); color: var(--paper); }
.tuner-button { position: relative; display: grid; place-items: center; width: 116px; height: 116px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.tuner-button::before { position: absolute; inset: 5px; border: 1px solid #777064; border-radius: 50%; background: radial-gradient(circle, #39362e 0 50%, #1a1916 52% 68%, #4d493e 70% 73%, #201f1b 76%); box-shadow: 0 5px 8px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.18); content: ""; }
.tuner-disc { position: relative; display: grid; place-items: center; width: 67%; height: 67%; border: 2px solid #6e6758; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #6c6658, #39362f 38%, #191816 78%); box-shadow: inset 0 2px 4px rgba(255,255,255,.13), 0 2px 5px rgba(0,0,0,.7); transform: rotate(var(--dial-angle, 0deg)); transition: transform .42s cubic-bezier(.2,.85,.25,1); }
.tuner-grip { position: absolute; top: 8%; left: calc(50% - 2px); width: 4px; height: 28%; border-radius: 4px; background: linear-gradient(#ded1af, #867657); box-shadow: 0 0 4px rgba(185,154,104,.35); }
.tuner-notch { position: absolute; z-index: 1; width: 3px; height: 8px; border-radius: 3px; background: var(--brass); }
.tuner-notch--one { top: 0; left: calc(50% - 1.5px); }
.tuner-notch--two { top: calc(50% - 4px); right: 0; transform: rotate(90deg); }
.tuner-notch--three { bottom: 0; left: calc(50% - 1.5px); }
.tuner-notch--four { top: calc(50% - 4px); left: 0; transform: rotate(90deg); }
.tuner-button:hover .tuner-disc { filter: brightness(1.18); }
.tuner-button:active .tuner-disc { transform: rotate(calc(var(--dial-angle, 0deg) + 10deg)) scale(.97); }
.noise-toggle { min-height: 40px; padding: .45rem .7rem; border: 1px solid rgba(239,237,227,.15); background: transparent; color: #fff; font: .95rem var(--font-crt); letter-spacing: .06em; cursor: pointer; }
.noise-toggle b { color: var(--signal); font-weight: 400; }
.noise-toggle[aria-pressed="true"] { border-color: rgba(199,212,164,.5); background: rgba(199,212,164,.08); color: var(--paper); }
.radio-player { position: relative; z-index: 14; display: grid; gap: .35rem; width: 100%; padding: .48rem; border: 1px solid rgba(185,154,104,.54); border-radius: 3px; background: linear-gradient(145deg, #292720, #171613 70%); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.35); }
.radio-player__heading { display: flex; justify-content: space-between; gap: .5rem; color: #f5f0e4; font: 1rem var(--font-crt); letter-spacing: .08em; }
.radio-player__display { display: flex; align-items: center; gap: .4rem; min-width: 0; min-height: 34px; padding: .3rem .4rem; border: 1px solid #11120e; background: linear-gradient(90deg, #11170f, #20271b); box-shadow: inset 0 0 9px rgba(0,0,0,.8); }
.radio-player__led { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #65735a; box-shadow: 0 0 4px rgba(199,212,164,.2); }
.radio-player.is-playing .radio-player__led { background: var(--signal); box-shadow: 0 0 8px rgba(199,212,164,.9); animation: radio-pulse 1.3s ease-in-out infinite; }
.radio-player__track { display: grid; min-width: 0; gap: .05rem; color: #e9f0d9; font: .88rem/1.05 var(--font-crt); }
.radio-player__track strong, .radio-player__track span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-player__track strong { font-weight: 400; }
.radio-player__track span { color: #9da58f; font-size: .78rem; }
.radio-player__buttons { display: flex; align-items: center; justify-content: center; gap: .25rem; }
.radio-player__buttons button { display: grid; place-items: center; min-width: 26px; min-height: 28px; padding: .1rem; border: 1px solid rgba(239,237,227,.15); border-radius: 2px; background: rgba(0,0,0,.25); color: #fff; font: 1rem var(--font-crt); cursor: pointer; }
.radio-player__buttons .radio-player__play { min-width: 37px; min-height: 30px; border-color: rgba(185,154,104,.55); color: #fff; }
.radio-player__buttons button:disabled, .radio-player__source-row button:disabled { opacity: .38; cursor: not-allowed; }
.radio-player__buttons button:not(:disabled):hover, .radio-player__source-row button:not(:disabled):hover { border-color: var(--signal); color: var(--signal); }
.radio-player__more-toggle { margin-left: auto; }
.radio-player__more { position: absolute; right: 0; bottom: calc(100% + .45rem); z-index: 26; display: grid; gap: .5rem; width: min(280px, calc(100vw - 1rem)); padding: .7rem; border: 1px solid rgba(185,154,104,.65); background: rgba(20,19,16,.98); box-shadow: 0 12px 30px rgba(0,0,0,.65); }
.radio-player__progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem; color: #eee9dc; font: .9rem var(--font-crt); }
.radio-player__progress-row input { width: 100%; accent-color: var(--brass); }
.radio-player__source-row { display: flex; align-items: center; justify-content: space-between; color: #fff; font: .95rem var(--font-crt); }
.radio-player__source-row button { min-height: 30px; padding: .2rem .5rem; border: 1px solid rgba(239,237,227,.24); background: transparent; color: #fff; font: .9rem var(--font-crt); cursor: pointer; }
.radio-player__hint { margin: 0; color: #bdb7a9; font: .88rem/1.25 var(--font-crt); }
.radio-player__spotify { min-width: 0; overflow: hidden; border-radius: 8px; }
.radio-player__spotify iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 8px; }
.radio-player__more[hidden] { display: none; }
.appearance-panel { position: relative; z-index: 12; width: 100%; margin-top: auto; }
.appearance-panel__trigger { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: .45rem .55rem; border: 1px solid rgba(239,237,227,.2); background: rgba(0,0,0,.16); color: #fff; font: 1rem var(--font-crt); letter-spacing: .06em; cursor: pointer; list-style: none; }
.appearance-panel__trigger::-webkit-details-marker { display: none; }
.appearance-panel[open] .appearance-panel__trigger { border-color: var(--brass); color: var(--signal); }
.appearance-panel[open] .appearance-panel__trigger > span:last-child { transform: rotate(180deg); }
.appearance-panel__body { position: absolute; right: 0; bottom: calc(100% + .45rem); z-index: 20; display: grid; gap: .65rem; width: 100%; padding: .8rem; border: 1px solid rgba(185,154,104,.52); background: rgba(24,22,18,.98); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.appearance-panel__heading { margin: 0; color: var(--signal); font: 1rem var(--font-crt); letter-spacing: .06em; }
.appearance-panel__body label { display: grid; gap: .3rem; color: #e2ded3; font: .92rem var(--font-crt); letter-spacing: .06em; }
.appearance-panel__body select { width: 100%; min-height: 38px; padding: .35rem .45rem; border: 1px solid rgba(239,237,227,.2); border-radius: 2px; background: #12110f; color: var(--paper); font: .65rem Arial, sans-serif; }
.appearance-panel__reset { min-height: 36px; border: 1px solid rgba(239,237,227,.18); background: transparent; color: #fff; font: .9rem var(--font-crt); letter-spacing: .05em; cursor: pointer; }
.appearance-panel__reset:hover { border-color: var(--brass); color: var(--signal); }
.speaker-grille { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px 4px; width: 74%; padding: .25rem .1rem; opacity: .45; }
.speaker-grille i { width: 4px; height: 4px; border-radius: 50%; background: #080807; box-shadow: 0 1px rgba(255,255,255,.12); }
.control-hint { margin: 0; color: #8b887e; font: .48rem/1.7 monospace; text-align: center; }
.channel-osd { position: absolute; top: 18%; left: 50%; z-index: 10; max-width: calc(100% - 2rem); padding: .65rem 1rem; border: 1px solid rgba(239,237,227,.66); background: rgba(8,9,7,.94); color: #fff; font: 1.05rem var(--font-crt); letter-spacing: .08em; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .18s, transform .18s; }
.channel-osd.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes portfolio-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes channel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tuning-flicker { 0% { opacity: .15; } 25% { opacity: .45; } 50% { opacity: .1; } 75% { opacity: .3; } 100% { opacity: .2; } }
@keyframes radio-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

@media (max-width: 900px) and (min-width: 701px) {
  .tv-console { grid-template-columns: minmax(0, 1fr) 142px; gap: .7rem; }
  .tv-controls { padding-inline: .55rem; }
  .tuner-button { width: 100px; height: 100px; }
  .channel-stage { padding: 1.2rem; }
}
@media (max-width: 700px) {
  .portfolio { padding: .45rem; }
  body[data-room="retro"] .scene-backdrop { background-position: left center; }
  body[data-room="horror"] .scene-backdrop { background-position: right center; }
  .tv-console { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .28rem; width: min(100%, 520px); height: auto; max-height: calc(100dvh - .9rem); padding: .35rem; border-radius: 25px; }
  .tv-console[data-frame="legs"] { height: auto; margin-bottom: 1.25rem; }
  .tv-console[data-frame="legs"] .tv-antenna { top: -30px; width: 76px; height: 36px; }
  .tv-console[data-frame="legs"] .tv-antenna span { height: 34px; }
  .tv-console[data-frame="legs"] .tv-legs { right: 18%; bottom: -19px; left: 18%; height: 24px; }
  .tv-console[data-frame="legs"] .tv-legs span { width: 16px; height: 24px; }
  .tv-console::before { inset: 3px; border-radius: 22px; }
  .tv-bezel { aspect-ratio: 4/3; padding: .3rem; border-radius: 20px; }
  .tv-screen-frame { height: 100%; padding: .3rem; border-radius: 16px; }
  .tv-glass { border-radius: 13px; }
  .screen-header { min-height: 40px; gap: .5rem; padding: .28rem .65rem; }
  .brand { gap: .4rem; font-size: .5rem; }
  .brand small { font-size: .4rem; }
  .brand__logo { width: 25px; height: 25px; }
  .top-nav { gap: .42rem; }
  .top-nav button { min-height: 38px; font-size: .86rem; letter-spacing: .02em; }
  .screen-footer { display: none; }
  .channel-stage { padding: .18rem .4rem; }
  .channel-category { gap: .6rem; }
  .channel-feature__media { min-height: 160px; }
  .channel-feature__copy { right: 3.2rem; bottom: .6rem; left: .65rem; gap: .16rem; }
  .channel-feature__number { top: .5rem; right: .65rem; font-size: clamp(2rem, 9vw, 3.6rem); }
  .channel-page .channel-feature__label { font-size: clamp(1.2rem, 5.1vw, 2.15rem); line-height: 1.08; }
  .channel-feature__title { font-size: clamp(1.1rem, 4vw, 1.55rem); }
  .channel-feature__credit { font-size: clamp(.83rem, 3vw, 1.05rem); }
  .channel-feature__play { right: .45rem; bottom: .45rem; width: 34px; height: 34px; font-size: .75rem; }
  .channel-category__directory .channel-page__topline { font-size: .82rem; }
  .channel-category__tools { display: block; }
  .channel-category__tools .channel-page__lead { margin: .1rem 0 .35rem; font-size: .98rem; }
  .channel-page__topline { font-size: .82rem; }
  .channel-page h1 { margin-bottom: .7rem; font-size: clamp(1.65rem, 8vw, 2.6rem); }
  .channel-home h1 { font-size: clamp(2.5rem, 11.5vw, 4.2rem); }
  .channel-page__lead { margin: .5rem 0 1rem; font-size: .75rem; }
  .home-art { right: 1%; width: 34vw; opacity: .21; }
  .tune-link { min-height: 42px; font-size: .55rem; }
  .screen-footer { min-height: 24px; padding: .25rem .65rem; font-size: .39rem; letter-spacing: .08em; }
  .tv-controls { display: flex; flex-direction: row; justify-content: space-between; gap: .28rem; min-height: 70px; padding: .3rem .42rem; border-radius: 14px; }
  .control-topline, .speaker-grille, .control-hint, .channel-display__label { display: none; }
  .channel-display { flex: 0 1 52px; width: auto; min-width: 48px; min-height: 48px; padding: .2rem; border: 0; background: transparent; box-shadow: none; }
  .channel-display strong { margin: 0; font-size: 1.05rem; }
  .channel-display > span:last-child { max-width: 60px; font-size: .7rem; }
  .channel-control-row { flex-direction: row; gap: .15rem; }
  .channel-step { flex: 0 0 36px; width: 36px; min-width: 36px; min-height: 42px; border-radius: 50%; }
  .channel-step small { display: none; }
  .channel-step span { font-size: 1.05rem; }
  .tuner-button { flex: 0 0 46px; width: 46px; height: 46px; }
  .tuner-button::before { inset: 2px; }
  .tuner-notch { width: 2px; height: 5px; }
  .noise-toggle { flex: 0 0 46px; min-width: 46px; min-height: 42px; padding: .25rem; font-size: .76rem; letter-spacing: 0; }
  .radio-player { flex: 0 0 62px; width: 62px; min-width: 0; gap: .1rem; padding: .12rem; }
  .radio-player__heading { display: flex; justify-content: center; gap: 0; font-size: .82rem; line-height: .85; }
  .radio-player__heading span:last-child, .radio-player__display { display: none; }
  .radio-player__buttons { gap: .05rem; }
  .radio-player__buttons button { min-width: 12px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: .95rem; }
  .radio-player__buttons .radio-player__play { min-width: 22px; min-height: 36px; border: 1px solid rgba(185,154,104,.55); font-size: .9rem; }
  .radio-player__more-toggle { margin-left: 0; }
  .radio-player__more { bottom: calc(100% + .55rem); right: -2rem; width: min(280px, calc(100vw - 1rem)); padding: .55rem; }
  .appearance-panel { flex: 0 0 46px; width: auto; margin: 0; }
  .appearance-panel__trigger { justify-content: center; gap: .18rem; min-height: 42px; padding: .25rem .15rem; font-size: .86rem; letter-spacing: 0; }
  .appearance-panel__body { right: 0; width: min(280px, calc(100vw - .9rem)); padding: .75rem; }
  .screen-player { gap: .45rem; padding: .55rem; }
  .screen-player__top { font-size: .45rem; }
  .screen-player__back { min-height: 40px; padding: .35rem .5rem; font-size: .48rem; }
  .screen-player__title { font-size: .67rem; }
  .project-card { padding: .25rem; }
  .project-card h2 { font-size: 1rem; }
  .project-card p { font-size: .7rem; }
  .play-badge { right: .55rem; bottom: .55rem; width: 42px; height: 42px; }
  .channel-osd { top: 18%; width: max-content; font-size: .5rem; }
}
@media (max-width: 370px) {
  .tv-console { width: 100%; padding: .25rem; }
  .screen-header { padding-inline: .45rem; }
  .top-nav { gap: .25rem; }
  .top-nav button { font-size: .4rem; }
  .tv-controls { flex-wrap: wrap; justify-content: center; gap: .16rem; padding-inline: .27rem; }
  .channel-display { flex-basis: 50px; min-width: 48px; }
  .channel-control-row { gap: .06rem; }
  .channel-step { flex-basis: 36px; width: 36px; min-width: 36px; }
  .tuner-button { flex-basis: 44px; width: 44px; height: 44px; }
  .noise-toggle { flex-basis: 44px; min-width: 44px; padding-inline: .2rem; font-size: .72rem; }
  .radio-player { flex-basis: 60px; width: 60px; }
  .appearance-panel { flex-basis: 44px; }
  .appearance-panel__trigger { font-size: .78rem; }
}
@media (max-height: 510px) and (max-width: 700px) {
  .tv-console { height: calc(100dvh - .5rem); max-height: none; grid-template-rows: minmax(0, 1fr) 62px; }
  .tv-bezel { aspect-ratio: auto; }
  .channel-stage { padding: .55rem; }
  .tv-controls { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tv-glass.is-tuning .tuning-flicker { animation: none; opacity: .08; }
}
