/* FASYNC — página inicial "A fita não para" */

/* =============== A FITA =============== */
.fx-fita { padding-top: 2.2rem; overflow: hidden; }
.fx-fita-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.fx-fita-ctrl { display: flex; gap: .7rem; }
.fx-fita-ctrl .fx-btn { height: 50px; padding: 0 1.4rem; }
.fx-fita.is-paused [data-fita-pause] { background: transparent; color: var(--fx-accent) !important; }
.fx-fita.is-paused .fx-rec { animation: none; background: var(--fx-muted); }

.fx-deck { position: relative; height: 270px; margin-top: 1.2rem; }
.fx-deck[hidden] { display: none; }
.fx-tape { position: absolute; left: 0; right: 0; top: 107px; height: 32px; background: linear-gradient(180deg, #6E4628, var(--fx-tape) 30%, #9A6740 55%, var(--fx-tape) 75%, #6E4628); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.fx-spool { position: absolute; z-index: 3; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.fx-spool .fx-spin { transform-box: fill-box; transform-origin: center; will-change: transform; }
.fx-spool-l { width: 248px; height: 248px; left: -124px; top: -1px; }
.fx-spool-r { width: 168px; height: 168px; right: -24px; top: 39px; }

.fx-track { position: absolute; left: 0; right: 0; top: 123px; z-index: 2; padding-left: 250px; }
.fx-tcards { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; width: max-content; will-change: transform; }
.fx-tcard { position: relative; width: 300px; flex: none; padding-top: 30px; }
.fx-tcard::before { content: ""; position: absolute; left: 24px; top: 0; width: 3px; height: 32px; background: var(--fx-accent); }
.fx-tcard a { display: flex; gap: .85rem; align-items: center; padding: .65rem; padding-right: 1rem; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 14px; text-decoration: none; color: var(--fx-light); transition: border-color .25s, background .25s, transform .25s; }
.fx-tcard a:hover { border-color: var(--fx-subtle); }
.fx-tcard.is-on a { border-color: var(--fx-accent); background: #222125; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,138,61,.12); }
.fx-dot { position: absolute; left: 21px; top: 50px; width: 9px; height: 9px; border-radius: 50%; background: var(--fx-muted); z-index: 2; }
.fx-tcard:nth-child(3n+1) .fx-dot { background: var(--fx-accent); }
.fx-tcard:nth-child(3n+2) .fx-dot { background: var(--fx-light); }
.fx-tcard.is-on .fx-dot { background: var(--fx-accent); box-shadow: 0 0 0 4px rgba(255,138,61,.25); }
.fx-tthumb { width: 96px; height: 64px; flex: none; border-radius: 9px; background: var(--fx-card-2); overflow: hidden; }
.fx-tthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-tbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.fx-tbody .fx-kicker { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-count { color: var(--fx-accent); }
.fx-ttitle { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-tbody .fx-meta { font-size: .78rem; }
.fx-tcard.is-empty .fx-ttitle { color: var(--fx-subtle); }
.fx-fita-none { font-family: var(--fx-mono); color: var(--fx-subtle); padding-top: 3rem; padding-bottom: 3rem; }

@media (max-width: 700px) {
	.fx-deck { height: 262px; }
	.fx-spool-l { width: 180px; height: 180px; left: -110px; top: 20px; }
	.fx-spool-r { width: 120px; height: 120px; right: -50px; top: 50px; }
	.fx-track { padding-left: 90px; }
	.fx-tcard { width: 250px; }
	.fx-tthumb { width: 72px; height: 54px; }
	.fx-fita-ctrl .fx-btn { height: 42px; }
}

/* =============== TOCANDO AGORA + EM ALTA =============== */
.fx-destaque { margin-top: 3rem; }
.fx-destaque-top { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .fx-destaque-top { grid-template-columns: 1fr; } }

.fx-now { display: flex; flex-direction: column; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--fx-light); transition: border-color .2s; }
.fx-now:hover { border-color: var(--fx-line-2); }
.fx-now-stage { position: relative; min-height: 420px; display: grid; place-items: center; background: var(--fx-card-2); overflow: hidden; }
.fx-now-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8) blur(1px); transform: scale(1.04); transition: opacity .4s, transform .6s; }
.fx-now:hover .fx-now-bg { opacity: .4; transform: scale(1.08); }
.fx-pill { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .45rem; background: var(--fx-accent); color: #18181B; font: 700 .76rem/1 var(--fx-mono); letter-spacing: .1em; text-transform: uppercase; padding: .55rem .85rem; border-radius: 999px; z-index: 2; }
.fx-pill .fx-ic { width: .75em; height: .75em; }
.fx-cassette { position: relative; z-index: 1; width: min(480px, 84%); background: #111113; border: 1px solid var(--fx-line-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .4s; }
.fx-now:hover .fx-cassette { transform: translateY(-4px) rotate(-1deg); }
.fx-cas-label { display: block; background: var(--fx-light); color: #18181B; font-weight: 800; font-size: 1rem; text-align: center; padding: .45rem; border-radius: 7px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-cas-win { display: flex; align-items: center; justify-content: space-between; gap: 0; margin-top: 14px; background: var(--fx-card-2); border-radius: 999px; padding: 12px 74px; }
.fx-cas-win .fx-minireel { width: 60px; height: 60px; flex: none; }
.fx-cas-win .fx-spin { transform-box: fill-box; transform-origin: center; animation: fx-spin 2.8s linear infinite; }
.fx-cas-tape { flex: 1; height: 8px; background: var(--fx-tape); margin: 0 -4px; }
.fx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--fx-line); }
.fx-progress i { display: block; height: 100%; width: 0; background: var(--fx-accent); animation: fx-progress 18s linear infinite; }
@keyframes fx-progress { to { width: 100%; } }
.fx-now-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.6rem 1.8rem; }
.fx-now-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.fx-now:hover .fx-now-title { color: var(--fx-accent); }
.fx-now-sub { color: var(--fx-subtle); font-size: 1.05rem; }
@media (max-width: 600px) {
	.fx-now-stage { min-height: 280px; }
	.fx-cas-win { padding: 10px 30px; }
	.fx-cas-win .fx-minireel { width: 46px; height: 46px; }
}

.fx-hot { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 20px; padding: 1.4rem 1.4rem .6rem; }
.fx-hot-h { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .6rem; }
.fx-hot-h .fx-ic { color: var(--fx-accent); width: 1.1rem; height: 1.1rem; }
.fx-hot ol { list-style: none; margin: 0; padding: 0; }
.fx-hot li { border-top: 1px solid var(--fx-line); }
.fx-hot li a { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--fx-light); }
.fx-num { font: 700 1.6rem/1 var(--fx-mono); color: var(--fx-accent); min-width: 2ch; }
.fx-hot-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.fx-hot-txt b { font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-hot-txt small { color: var(--fx-subtle); font-size: .88rem; }
.fx-hot li a:hover b { color: var(--fx-accent); }
.fx-hot-empty { padding: 1.2rem 0; color: var(--fx-subtle); font-family: var(--fx-mono); font-size: .85rem; }
.fx-eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; flex: none; }
.fx-eq i { width: 4px; height: 100%; background: var(--fx-accent); border-radius: 2px; transform-origin: bottom; animation: fx-eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
.fx-eq i:nth-child(2) { animation-duration: .8s; }
.fx-eq i:nth-child(3) { animation-duration: 1.3s; }
.fx-eq i:nth-child(4) { animation-duration: .7s; }
.fx-eq i:nth-child(5) { animation-duration: 1s; }
@keyframes fx-eq { 0% { transform: scaleY(.25); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.45); } }

/* Cards com barra de reprodução */
.fx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 1000px) { .fx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fx-cards { grid-template-columns: 1fr; } }
.fx-card { display: flex; flex-direction: column; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); overflow: hidden; text-decoration: none; color: var(--fx-light); transition: transform .2s, border-color .2s; }
.fx-card:hover { transform: translateY(-3px); border-color: var(--fx-accent); }
.fx-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--fx-card-2); overflow: hidden; }
.fx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fx-card:hover .fx-card-media img { transform: scale(1.05); }
.fx-scrub { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 3px; border-radius: 3px; background: rgba(82,82,91,.9); }
.fx-scrub i { position: absolute; top: 50%; left: var(--p); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--fx-accent); box-shadow: 0 0 0 3px rgba(24,24,27,.6); transition: left .9s cubic-bezier(.2,.8,.2,1); }
.fx-card:hover .fx-scrub i { left: 96%; }
.fx-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; }
.fx-card-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.fx-card:hover .fx-card-title { color: var(--fx-accent); }

/* =============== ASSISTA =============== */
.fx-assista { margin-top: 4.5rem; padding: 3.5rem 0 3.8rem; background: var(--fx-bg-2); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
.fx-assista-grid { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .fx-assista-grid { grid-template-columns: 1fr; } }
.fx-player { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--fx-card-2); border: 1px solid var(--fx-line); border-radius: 20px; overflow: hidden; text-decoration: none; }
.fx-player-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s; }
.fx-player:hover .fx-player-bg { opacity: .7; transform: scale(1.03); }
.fx-player-tag { position: absolute; left: 18px; top: 18px; color: var(--fx-light); z-index: 2; }
.fx-play { position: relative; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--fx-accent); color: #18181B; box-shadow: 0 0 0 18px rgba(255,138,61,.14); animation: fx-pulse 2.2s ease-in-out infinite; transition: transform .2s; }
.fx-play .fx-ic { width: 26px; height: 26px; margin-left: 4px; }
.fx-player:hover .fx-play { transform: scale(1.08); }
@keyframes fx-pulse { 50% { box-shadow: 0 0 0 26px rgba(255,138,61,.06); } }
.fx-bars { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 36px; display: flex; align-items: flex-end; gap: 4px; z-index: 2; }
.fx-bars i { flex: 1; height: 100%; border-radius: 2px; background: var(--fx-accent); transform-origin: bottom; animation: fx-eq 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); animation-duration: calc(.8s + (var(--i) * .037s)); }
.fx-bars i:nth-child(n+15) { background: var(--fx-yellow); }
.fx-bars i:nth-child(n+20) { background: var(--fx-red); }
.fx-player-title { margin: 1.1rem 0 0; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; }
.fx-player-title b { color: var(--fx-accent); }

.fx-vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.fx-vlist li > a, .fx-vlist li > span { display: flex; align-items: center; gap: 1rem; padding: .6rem; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 14px; text-decoration: none; color: var(--fx-light); transition: border-color .2s, transform .2s; }
.fx-vlist li > a:hover { border-color: var(--fx-accent); transform: translateX(3px); }
.fx-vthumb { position: relative; width: 130px; height: 74px; flex: none; border-radius: 10px; background: var(--fx-card-2); display: grid; place-items: center; overflow: hidden; }
.fx-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.fx-vthumb .fx-minireel { position: relative; width: 34px; height: 34px; }
.fx-vthumb .fx-spin { transform-box: fill-box; transform-origin: center; }
.fx-vlist a:hover .fx-vthumb .fx-spin { animation: fx-spin 1s linear infinite; }
.fx-dur { position: absolute; right: 6px; bottom: 6px; font: 600 .68rem/1 var(--fx-mono); color: var(--fx-light); background: #111113; padding: .25rem .35rem; border-radius: 4px; }
.fx-vtxt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fx-vtxt b { font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-vtxt small { color: var(--fx-subtle); font-size: .85rem; }
.fx-vlist .is-empty b { color: var(--fx-subtle); }

/* =============== EXPLORE =============== */
.fx-explore { margin-top: 4rem; }
.fx-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .fx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-cat { position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 120px; padding: 1.5rem 1.2rem 1.2rem; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 0 0 var(--fx-r) var(--fx-r); text-decoration: none; color: var(--fx-light); transition: transform .2s, background .2s; }
.fx-cat::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 10px; background: var(--fx-muted); transition: height .2s; }
.fx-cat-0::before { background: var(--fx-accent); }
.fx-cat-1::before { background: var(--fx-light); }
.fx-cat:hover { transform: translateY(-3px); background: #232327; }
.fx-cat:hover::before { height: 14px; }
.fx-cat-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; padding-right: 2.2rem; }
.fx-cat .fx-minireel { position: absolute; right: 1.1rem; top: 1.45rem; width: 26px; height: 26px; }
.fx-cat-0 .fx-minireel circle:first-child { fill: var(--fx-accent); }
.fx-cat-1 .fx-minireel circle:first-child { fill: var(--fx-light); }
.fx-cat-1 .fx-minireel .fx-spin circle:first-child { fill: #52525B; }
.fx-cat .fx-spin { transform-box: fill-box; transform-origin: center; }
.fx-cat:hover .fx-spin { animation: fx-spin 1s linear infinite; }
.fx-cat .fx-meta { font-family: var(--fx-mono); font-size: .8rem; margin-top: auto; }
.fx-cat:hover .fx-meta { color: var(--fx-accent); }

/* =============== FIQUE EM SYNC + FAS GAMES =============== */
.fx-sync { margin-top: 3.5rem; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .fx-sync { grid-template-columns: 1fr; } }
.fx-news { background: var(--fx-accent); color: #18181B; border-radius: 22px; padding: 2rem; }
.fx-news .fx-label { color: #18181B; }
.fx-news .fx-rec { background: var(--fx-red); }
.fx-news h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; margin: .6rem 0 .5rem; }
.fx-news p { margin: 0; font-size: 1.05rem; }
.fx-news-row { display: flex; gap: .6rem; margin-top: 1.3rem; }
.fx-news input[type=email] { flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 999px; padding: 0 1.3rem; background: #FFF1E6; color: #18181B; font: 500 1rem var(--fx-font); outline: none; }
.fx-news input[type=email]:focus { box-shadow: 0 0 0 3px #18181B; }
.fx-news button { height: 52px; padding: 0 1.5rem; border: 0; border-radius: 999px; background: #18181B; color: var(--fx-accent); font: 700 1rem var(--fx-font); cursor: pointer; transition: transform .15s; }
.fx-news button:hover { transform: translateY(-1px); }
.fx-hp { position: absolute !important; left: -9999px !important; }
.fx-sync-msg { margin-top: .9rem !important; font-weight: 700; }
@media (max-width: 480px) { .fx-news-row { flex-direction: column; } }

.fx-games { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; min-height: 240px; padding: 2rem; border: 2px solid var(--fx-yellow); border-radius: 22px; background: var(--fx-bg); text-decoration: none; overflow: hidden; transition: background .25s; }
.fx-games:hover { background: #1F1D16; }
.fx-games-face { position: absolute; left: 2rem; top: 2rem; width: 70px; transition: transform .3s; }
.fx-games:hover .fx-games-face { transform: rotate(-8deg) scale(1.08); }
.fx-games-name { font-size: clamp(1.9rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--fx-yellow); }
.fx-games-url { font-family: var(--fx-mono); color: var(--fx-light); }
.fx-games:hover .fx-games-url { color: var(--fx-yellow); }

/* =============== Entrada da página =============== */
.fx-fita-head > div:first-child { animation: fx-in .7s ease-out both; }
.fx-fita-ctrl { animation: fx-in .7s ease-out .15s both; }
.fx-deck { animation: fx-in .8s ease-out .25s both; }
@keyframes fx-in { from { opacity: 0; transform: translateY(14px); } }
@supports (animation-timeline: view()) {
	.fx-now, .fx-hot, .fx-card, .fx-player, .fx-vlist li, .fx-cat, .fx-news, .fx-games { animation: fx-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

/* Editor: blocos do tema */
.fx-editor-block { pointer-events: none; }

/* Plano B: se o script não carregar, os rolos giram e a fita corre só com CSS */
.fx-fita:not(.fx-js) .fx-spool .fx-spin { animation: fx-spin 3s linear infinite; }
.fx-fita:not(.fx-js) .fx-tcards { animation: fx-marquee 60s linear infinite; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
