/* ==========================================================================
   Zine — estilo do site (moderno, com cara de fanzine)
   ========================================================================== */
:root {
  --bg: #121211;
  --bg-2: #1b1b19;
  --bg-3: #262623;
  --bg-hover: #31312d;
  --line: #34342f;
  --text: #f4f1ea;
  --text-2: #b4b0a5;
  --text-3: #7d7a71;
  --accent: #ffd60a;          /* marca-texto */
  --accent-ink: #121211;
  --pink: #ff4f8b;
  --ok: #3ddc84;
  --warn: #ffb020;
  --danger: #ff5a5a;
  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 60px;
  --sidebar-w: 236px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-2: #fffdf8;
  --bg-3: #ebe7dd;
  --bg-hover: #e0dbcf;
  --line: #dcd6c8;
  --text: #171714;
  --text-2: #57554e;
  --text-3: #8b887e;
  --shadow: 0 14px 40px rgba(60, 50, 20, .15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-3); color: var(--text); font-weight: 650; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .05s, filter .15s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.on { background: var(--bg-3); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: inline-grid; place-items: center; font-size: 17px; color: inherit;
}
.icon-btn:hover { background: var(--bg-3); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.logo { display: flex; align-items: center; gap: 8px; }
.lang-sel {
  height: 32px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2, var(--bg));
  color: inherit; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
}
.lang-sel:hover { background: var(--bg-3); }
.lang-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.logo-mark {
  display: inline-block; padding: 1px 10px 3px; background: var(--accent); color: #121211; font-weight: 900;
  font-size: 21px; letter-spacing: -.04em; transform: rotate(-3deg); border-radius: 3px;
  box-shadow: 3px 3px 0 var(--pink); font-family: "Arial Black", Impact, system-ui, sans-serif;
}
.search { flex: 1 1 auto; min-width: 0; max-width: 540px; display: flex; }
.search input {
  flex: 1; min-width: 0; width: 100%; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px; background: var(--bg-2); outline: none;
}
.search input:focus { border-color: var(--accent); }
.search button { width: 56px; height: 40px; border: 1px solid var(--line); border-radius: 0 999px 999px 0; background: var(--bg-3); }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-3); flex: none; }
.avatar.lg { width: 44px; height: 44px; }
.avatar.xl { width: 112px; height: 112px; }
.menu {
  position: fixed; right: 12px; top: calc(var(--topbar-h) - 4px); min-width: 250px; padding: 8px 0; z-index: 60;
  max-height: calc(100vh - var(--topbar-h) - 12px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg-3); }
.menu i { width: 18px; text-align: center; color: var(--text-2); }

/* ---------- Layout ---------- */
.layout { display: flex; }
.sidebar {
  position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); width: var(--sidebar-w); flex: none;
  overflow-y: auto; padding: 12px; border-right: 1px solid var(--line);
}
.side-link { display: flex; align-items: center; gap: 14px; padding: 0 12px; height: 40px; border-radius: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link i { width: 20px; text-align: center; color: var(--text-2); }
.side-link:hover { background: var(--bg-3); }
.side-link.active { background: var(--bg-3); font-weight: 650; }
.side-link.active i { color: var(--accent); }
.side-link .avatar { width: 24px; height: 24px; border-radius: 6px; }
.side-title { margin: 16px 12px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.side-sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.side-empty { padding: 4px 12px; font-size: 13px; color: var(--text-3); }
.main { flex: 1; min-width: 0; outline: none; }
/* computador: o ☰ esconde a barra lateral */
body.side-hidden .sidebar { display: none; }
.page { padding: 24px; max-width: 1500px; margin: 0 auto; }
.scrim { display: none; }

/* ---------- Elementos comuns ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.section-title { font-size: 18px; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--bg-3); font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { background: var(--bg-hover); }
.chip.active { background: var(--text); color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--bg-3); color: var(--text-2); white-space: nowrap; }
.pill.private { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); }
.pill.public { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.suspended { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.pill.clip { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }

.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 34px 30px; margin-bottom: 8px;
  background: var(--accent); color: #121211;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-family: "Arial Black", Impact, system-ui, sans-serif; max-width: 760px; }
.hero p { margin: 0 0 18px; max-width: 640px; font-size: 16px; }
.hero .btn { background: #121211; color: #fff; }
.hero .btn-ghost { background: transparent; border-color: #121211; color: #121211; }
.hero .tape { position: absolute; right: -30px; top: 18px; transform: rotate(18deg); background: var(--pink); color: #fff; font-weight: 900; padding: 6px 60px; font-size: 13px; letter-spacing: .1em; }

/* Cards de zine */
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.zcard { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s; min-width: 0; }
.zcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.zcard .zc-banner { height: 84px; background: linear-gradient(120deg, var(--bg-3), var(--bg-hover)); overflow: hidden; }
.zcard .zc-banner img { width: 100%; height: 100%; object-fit: cover; }
.zcard .zc-body { padding: 0 14px 14px; margin-top: -24px; }
.zcard .zc-av { width: 52px; height: 52px; border-radius: 12px; border: 3px solid var(--bg-2); background: var(--bg-3); object-fit: cover; }
.zcard h3 { margin: 8px 0 2px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zcard p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.zcard .zc-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards de vídeo/clipe */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 16px; }
.card { display: block; min-width: 0; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb .badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .8); color: #fff; }
.thumb .badge.left { right: auto; left: 8px; }
.thumb .badge.clip { background: var(--accent); color: #121211; }
.thumb .badge.gif { background: var(--pink); }
.card-body { display: flex; gap: 10px; margin-top: 10px; }
.card-title { margin: 0 0 3px; font-size: 15px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-meta { font-size: 13px; color: var(--text-2); }
.card-meta a:hover { text-decoration: underline; }
.load-more { display: flex; justify-content: center; align-items: center; margin: 24px 0 8px; min-height: 44px; }
.load-more .spin { display: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--bg-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.load-more.busy .spin { display: block; }
.load-more.busy .btn { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 56px 16px; color: var(--text-2); max-width: 540px; margin: 0 auto; }
.empty i.big { font-size: 44px; color: var(--text-3); margin-bottom: 14px; }
.empty h2 { color: var(--text); margin: 0 0 8px; font-size: 20px; }
.empty .btn { margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, var(--bg-3), var(--bg-hover), var(--bg-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-line { height: 14px; margin-top: 10px; border-radius: 6px; }

/* ---------- Formulários ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 6px; font-size: 19px; }
.panel > p.lead { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--text-3); font-weight: 400; }
.field small { display: block; margin-top: 5px; color: var(--text-3); font-size: 12px; }
.field small.ok { color: var(--ok); }
.field small.err { color: var(--danger); }
.input { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); outline: none; transition: border-color .15s; }
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { border-color: var(--accent); }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--bg-3); color: var(--text-2); font-size: 13px; white-space: nowrap; }
.prefix-input .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.radio-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.radio-card input { accent-color: var(--accent); margin-top: 3px; }
.radio-card b { display: block; font-size: 14px; }
.radio-card span { font-size: 12px; color: var(--text-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; }
.check input { accent-color: var(--accent); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert i { margin-top: 3px; }
.alert b { display: block; }
.alert.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.alert.warn i { color: var(--warn); }
.alert.danger { background: color-mix(in srgb, var(--danger) 11%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.alert.danger i { color: var(--danger); }
.alert.info { background: var(--bg-3); }
.alert.info i { color: var(--accent); }
.token-row { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--bg); }
.token-row b { display: flex; align-items: center; gap: 8px; }
.token-row p { margin: 4px 0 10px; font-size: 13px; color: var(--text-2); }
.token-value { display: flex; gap: 8px; }
.token-value input { flex: 1; min-width: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Toast / Modal / Popover ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 14px; animation: tin .2s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
.toast a { text-decoration: underline; font-weight: 800; margin-left: auto; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal-root:empty { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { width: min(100%, 500px); max-height: 90vh; overflow: auto; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 8px; font-size: 19px; }
.modal p { color: var(--text-2); margin: 0 0 16px; font-size: 14px; }

/* ---------- Estúdio ---------- */
.studio-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.studio-head h1 { margin: 0; font-size: 22px; }
.studio-head .grow { flex: 1; min-width: 160px; }
.tabs-line { border-bottom: 1px solid var(--line); margin-bottom: 20px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 11px 14px; border: 0; background: none; font-weight: 650; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab .count { background: var(--pink); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--text-2); }
.row-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-item .thumb { border-radius: var(--radius-sm); }
.row-item h3 { margin: 0 0 6px; font-size: 15px; overflow-wrap: anywhere; }
.row-item .nums { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); align-items: center; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.sticker-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-align: center; background: var(--bg); position: relative; }
.sticker-tile img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 6px; }
.sticker-tile code { font-size: 12px; overflow-wrap: anywhere; }
.sticker-tile .pill { position: absolute; top: 6px; left: 6px; }
.sticker-tile .tile-actions { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.clip-editor .player { margin-bottom: 12px; }
.time-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.time-row .field { flex: 1; min-width: 130px; margin-bottom: 0; }
.time-row .btn { margin-bottom: 0; }

/* ---------- Player ---------- */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* tela cheia: o player volta ao tamanho normal (sem a redução usada para a qualidade) */
.player iframe:fullscreen { transform: none !important; width: 100% !important; height: 100% !important; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .poster .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 16px; background: rgba(0, 0, 0, .72);
  color: #fff; display: grid; place-items: center; font-size: 24px; transition: background .15s, transform .15s; }
.player .poster:hover .play, .player .poster:focus-visible .play { background: var(--accent); color: #121211; transform: scale(1.06); }
/* efeito do zine no vídeo: mais suave que nas imagens, e a pessoa pode desligar (fica salvo no navegador) */
.player.vfx .poster img { filter: var(--fxk, none); }
.player.vfx iframe { filter: var(--fxk-v, none); }
.player.vfx iframe:fullscreen { filter: var(--fxk-fs, var(--fxk-v, none)); }
/* tela cheia do Zine: o player inteiro (vídeo + camadas do efeito) */
.player:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
/* tela cheia por CSS (iPhone e navegadores que não deixam pôr o player em tela cheia) */
.player.pfs { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
body.pfs-on { overflow: hidden; }
/* botão de tela cheia do site, no canto do vídeo (onde fica o do YouTube) */
.pfs-btn { position: absolute; right: 12px; bottom: 64px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; opacity: .8; transition: opacity .15s, background .15s; }
.pfs-btn:hover, .pfs-btn:focus-visible { opacity: 1; background: rgba(0, 0, 0, .85); }
.player:is(:fullscreen, .pfs) .pfs-btn { bottom: 76px; right: 20px; }
@media (max-width: 640px) { .pfs-btn { width: 36px; height: 36px; bottom: 52px; right: 8px; } }
.player:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.player.vfx::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--fx-lines); opacity: var(--fxo, 1); }
/* camadas de cor dos efeitos em SVG, só sobre o vídeo (a capa já usa o filtro exato) */
.player.vfx:has(iframe)::before, .player.vfx:has(iframe) .vfx-add { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--fxo, 1); }
.player.vfx:has(iframe)::before { background: var(--fx-mul, transparent); mix-blend-mode: multiply; }
.player.vfx:has(iframe) .vfx-add { background: var(--fx-add, transparent); mix-blend-mode: plus-lighter; }
.player:not(.vfx) .vfx-add, .player:not(:has(iframe)) .vfx-add { display: none; }
.vfx-wrap { position: relative; display: inline-flex; }
/* o bloco do vídeo fica por cima dos blocos de baixo enquanto o painel está aberto */
.z-panel:has(.vfx-pop:not(.hidden)), .watch-actions:has(.vfx-pop:not(.hidden)) { position: relative; z-index: 40; }
#vfx-val { font-variant-numeric: tabular-nums; font-size: 13px; }
.vfx-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 270px; padding: 14px; border-radius: 14px;
  background: linear-gradient(var(--z-panel, var(--bg-2)), var(--z-panel, var(--bg-2))), var(--z-bg, var(--bg-2)); color: var(--z-text, var(--text)); border: 1px solid var(--z-line, var(--line)); box-shadow: var(--shadow); display: grid; gap: 10px; }
.vfx-pop label { font-weight: 700; font-size: 14px; }
.vfx-pop input[type=range] { width: 100%; height: 28px; accent-color: var(--z-accent, var(--accent)); cursor: pointer; }
.vfx-marks { display: flex; justify-content: space-between; gap: 6px; }
.vfx-marks button { border: 1px solid var(--z-line, var(--line)); background: transparent; color: inherit; border-radius: 8px; padding: 5px 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.vfx-marks button:hover { background: var(--z-panel-2, var(--bg-3)); }
@media (max-width: 640px) {
  /* no celular: painel preso embaixo da tela, com a barra grande para o dedo */
  .vfx-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 18px; }
  .vfx-pop input[type=range] { height: 40px; }
  .vfx-marks button { padding: 9px 10px; font-size: 13px; }
}
.player.vfx:has(iframe:fullscreen)::after { display: none; }
#vfx-btn.on { color: var(--z-accent, var(--accent)); }
/* prévia do vídeo ao passar o mouse */
.thumb .hv { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0; }
.thumb .hv.on { opacity: 1; }
.card-body > a:has(> .avatar) { flex: none; }
.player .clip-tag { position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none; }

/* ---------- Comentários e figurinhas ---------- */
.comments h2 { font-size: 18px; margin: 0 0 14px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 22px; }
.comment-form .box { flex: 1; min-width: 0; }
.comment-form .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment-head { font-size: 13px; color: var(--z-muted, var(--text-2)); display: flex; gap: 8px; align-items: center; }
.comment-head b { color: var(--z-text, var(--text)); }
.comment-text { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.comment-text img.sticker { display: inline-block; height: 2.6em; width: auto; vertical-align: middle; margin: 0 2px; }
.comment-text.only-stickers img.sticker { height: 5em; }
.del-btn { margin-left: auto; border: 0; background: none; color: var(--text-3); padding: 2px 6px; border-radius: 6px; }
.del-btn:hover { color: var(--danger); }
.login-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--z-border, var(--line)); border-radius: var(--radius); margin-bottom: 22px; }
.picker { position: absolute; z-index: 70; width: min(340px, 92vw); max-height: 300px; overflow: auto; padding: 10px; border-radius: var(--radius); background: var(--bg-2); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.picker-grid button { border: 0; background: var(--bg-3); border-radius: 8px; padding: 6px; display: grid; justify-items: center; gap: 2px; }
.picker-grid button:hover { background: var(--bg-hover); }
.picker-grid img { width: 48px; height: 48px; object-fit: contain; }
.picker-grid span { font-size: 10px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Página do zine — TEMAS RETRÔ
   Cada tema define variáveis --z-*. Os componentes do zine usam só elas.
   ========================================================================== */
.zine {
  --z-bg: var(--bg); --z-panel: var(--bg-2); --z-panel-2: var(--bg-3); --z-text: var(--text); --z-muted: var(--text-2);
  --z-accent: var(--accent); --z-accent-ink: #121211; --z-border: var(--line); --z-radius: 12px;
  --z-font: inherit; --z-title-font: "Arial Black", Impact, system-ui, sans-serif; --z-shadow: none; --z-link: var(--z-accent);
  background: var(--z-bg); color: var(--z-text); font-family: var(--z-font); min-height: calc(100vh - var(--topbar-h));
  background-attachment: fixed; position: relative;
}
.zine .z-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 48px; }
.zine .z-panel { background: var(--z-panel); border: 1px solid var(--z-border); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.zine .z-banner.clear { background: transparent; }
.zine .z-banner { height: clamp(110px, 18vw, 230px); overflow: hidden; border-radius: 0 0 var(--z-radius) var(--z-radius); background: linear-gradient(120deg, var(--z-accent), var(--z-panel-2)); }
.zine .z-banner img { width: 100%; height: 100%; object-fit: cover; }
.zine .z-head { display: flex; gap: 18px; align-items: center; margin: -44px 0 14px; padding: 14px 16px; flex-wrap: wrap; position: relative;
  background: var(--z-panel); border: 1px solid var(--z-border); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.zine .z-avatar { width: 96px; height: 96px; margin-top: -40px; border-radius: 22px; object-fit: cover; border: 4px solid var(--z-panel); background: var(--z-panel-2); box-shadow: var(--z-shadow); }
.zine .z-info { flex: 1; min-width: 220px; padding-bottom: 4px; }
.zine .z-info h1 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; font-family: var(--z-title-font); letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: var(--z-title-shadow, none); }
.zine .z-info .meta { color: var(--z-muted); font-size: 14px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zine .z-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.zine .btn { border-radius: var(--z-btn-radius, 999px); }
.zine .btn-primary { background: var(--z-accent); color: var(--z-accent-ink); }
.zine .btn:not(.btn-primary):not(.btn-danger) { background: var(--z-panel-2); color: var(--z-text); border-color: var(--z-border); }
.zine .z-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; margin-bottom: 18px; }
.zine .z-tab { padding: 8px 14px; border-radius: calc(var(--z-radius) - 4px); font-weight: 700; font-size: 14px; color: var(--z-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.zine .z-tab:hover { color: var(--z-text); background: var(--z-panel-2); }
.zine .z-tab.active { background: var(--z-accent); color: var(--z-accent-ink); }
.zine .z-marquee { overflow: hidden; white-space: nowrap; padding: 6px 0; margin-bottom: 12px; font-weight: 700; color: var(--z-accent); }
.zine .z-marquee span { display: inline-block; padding-left: 100%; animation: marquee 18s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.zine .z-counter { display: inline-flex; gap: 2px; font-family: "Courier New", monospace; font-weight: 700; }
.zine .z-counter b { background: #000; color: #39ff14; padding: 0 3px; border-radius: 2px; font-size: 13px; }
.zine .z-section { padding: 18px; margin-bottom: 18px; }
.zine .z-section h2 { margin: 0 0 14px; font-size: 18px; font-family: var(--z-title-font); }
.zine .card-meta, .zine .muted { color: var(--z-muted); }
.zine .thumb { border-radius: calc(var(--z-radius) - 2px); background: var(--z-panel-2); }
.zine a.link, .zine .desc a { color: var(--z-link); text-decoration: underline; }
.zine .input { background: var(--z-bg); color: var(--z-text); border-color: var(--z-border); }
.zine .pill { background: var(--z-panel-2); color: var(--z-muted); }
.zine .pill.private { background: color-mix(in srgb, var(--pink) 20%, transparent); color: var(--pink); }
.zine .pill.clip { background: var(--z-accent); color: var(--z-accent-ink); }
.zine .watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.zine .watch h1 { font-size: 21px; margin: 14px 0 6px; overflow-wrap: anywhere; font-family: var(--z-font); }
.zine .credit { font-size: 13px; color: var(--z-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.zine .credit a { color: var(--z-link); text-decoration: underline; }
.zine .watch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.zine .btn.liked { background: var(--z-accent); color: var(--z-accent-ink); }
.zine .desc { padding: 12px 14px; font-size: 14px; overflow-wrap: anywhere; margin-top: 16px; }
.zine .desc-text { white-space: pre-wrap; margin-top: 6px; }
.zine .side-card { display: flex; gap: 10px; margin-bottom: 12px; }
.zine .side-card .thumb { width: 150px; flex: none; }
.zine .side-card .card-title { font-size: 14px; }
/* Modo vídeo maior: a coluna "Mais de" desce para baixo do vídeo, em grade */
.zine .watch.wide { grid-template-columns: minmax(0, 1fr); }
.zine .watch.wide aside .z-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.zine .watch.wide aside .z-section > h2, .zine .watch.wide aside .z-section > p { grid-column: 1 / -1; margin-bottom: 0; }
.zine .watch.wide aside .side-card { margin-bottom: 0; }
.zine .desc-links a { color: var(--z-link); text-decoration: underline; }
.zine .gb-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--z-border); }
.zine .private-lock { text-align: center; padding: 40px 16px; }
.zine .private-lock i.big { font-size: 40px; color: var(--pink); margin-bottom: 12px; }

/* --- Tema: Geocities (anos 90) --- */
.zine[data-preset="geocities"] {
  --z-bg: #000080; --z-panel: #c0c0ff; --z-panel-2: #e0e0ff; --z-text: #000; --z-muted: #202060; --z-accent: #ff0; --z-accent-ink: #000080;
  --z-border: #000; --z-radius: 0; --z-font: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive; --z-title-font: "Times New Roman", Times, serif;
  --z-shadow: 4px 4px 0 #000; --z-link: #0000ee; --z-btn-radius: 0; --z-title-shadow: 3px 3px 0 #f0f;
  background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#ff0 1px, transparent 1.5px);
  background-size: 40px 40px, 70px 70px; background-position: 0 0, 20px 30px;
}
.zine[data-preset="geocities"] .z-info h1 { color: #000080; }
.zine[data-preset="geocities"] .z-marquee { color: #0f0; background: #000; border: 2px ridge #c0c0c0; }
.zine[data-preset="geocities"] .z-tab.active { color: #000080; }
.zine[data-preset="geocities"] .btn { border: 2px outset #fff !important; }

/* --- Tema: Windows 98 --- */
.zine[data-preset="win98"] {
  --z-bg: #008080; --z-panel: #c0c0c0; --z-panel-2: #dfdfdf; --z-text: #000; --z-muted: #333; --z-accent: #000080; --z-accent-ink: #fff;
  --z-border: #808080; --z-radius: 0; --z-font: Tahoma, "MS Sans Serif", Geneva, sans-serif; --z-title-font: Tahoma, "MS Sans Serif", sans-serif;
  --z-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; --z-link: #00e; --z-btn-radius: 0;
}
.zine[data-preset="win98"] .z-panel { border: 0; }
.zine[data-preset="win98"] .z-section > h2 { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; margin: -18px -18px 14px; padding: 4px 8px; font-size: 14px; }
.zine[data-preset="win98"] .btn { box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; border: 0 !important; height: 32px; }
.zine[data-preset="win98"] .btn-primary { background: #c0c0c0; color: #000; font-weight: 800; }
.zine[data-preset="win98"] .z-marquee { background: #000; color: #0f0; font-family: "Courier New", monospace; }

/* --- Tema: Y2K cromado --- */
.zine[data-preset="y2k"] {
  --z-bg: #dfe7f2; --z-panel: rgba(255, 255, 255, .78); --z-panel-2: #eef3fa; --z-text: #0b1f44; --z-muted: #4b5f80; --z-accent: #1e6bff; --z-accent-ink: #fff;
  --z-border: #b9c8de; --z-radius: 22px; --z-font: Verdana, Geneva, sans-serif; --z-title-font: "Trebuchet MS", Verdana, sans-serif;
  --z-shadow: 0 8px 24px rgba(30, 80, 160, .18), inset 0 1px 0 #fff; --z-link: #1e6bff; --z-title-shadow: 0 2px 0 #fff;
  background-image: linear-gradient(180deg, #f6f9ff 0%, #c9d6ea 55%, #e8eef8 100%);
}
.zine[data-preset="y2k"] .btn-primary { background: linear-gradient(180deg, #7fb1ff, #1e6bff 50%, #1452cc); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.zine[data-preset="y2k"] .z-info h1 { background: linear-gradient(180deg, #5d6f8c, #0b1f44 50%, #6b84ad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }

/* --- Tema: Vaporwave --- */
.zine[data-preset="vapor"] {
  --z-bg: #1a0933; --z-panel: rgba(40, 12, 70, .82); --z-panel-2: rgba(255, 113, 206, .12); --z-text: #fbe9ff; --z-muted: #c9a7e8; --z-accent: #ff71ce; --z-accent-ink: #1a0933;
  --z-border: #01cdfe; --z-radius: 4px; --z-font: "Trebuchet MS", system-ui, sans-serif; --z-title-font: Georgia, "Times New Roman", serif;
  --z-shadow: 0 0 0 1px #01cdfe, 6px 6px 0 #b967ff; --z-link: #05ffa1; --z-title-shadow: 3px 3px 0 #01cdfe;
  background-image: linear-gradient(180deg, #1a0933 0%, #4b1066 50%, #ff71ce 100%);
}
.zine[data-preset="vapor"] .z-info h1 { font-style: italic; letter-spacing: .06em; }
.zine[data-preset="vapor"] .z-marquee { color: #05ffa1; letter-spacing: .3em; }

/* --- Tema: Terminal --- */
.zine[data-preset="terminal"] {
  --z-bg: #050805; --z-panel: #0b120b; --z-panel-2: #102010; --z-text: #39ff14; --z-muted: #20a010; --z-accent: #39ff14; --z-accent-ink: #050805;
  --z-border: #1f5f1f; --z-radius: 0; --z-font: ui-monospace, "Courier New", monospace; --z-title-font: ui-monospace, "Courier New", monospace;
  --z-shadow: 0 0 12px rgba(57, 255, 20, .15); --z-link: #9dff8a; --z-btn-radius: 0; --z-title-shadow: 0 0 8px rgba(57, 255, 20, .6);
}
.zine[data-preset="terminal"] .z-info h1::before { content: "> "; }

/* --- Tema: Scene 2006 (perfil emo/scene) --- */
.zine[data-preset="scene"] {
  --z-bg: #0a0a0a; --z-panel: #141414; --z-panel-2: #1f1f1f; --z-text: #f4f4f4; --z-muted: #b0b0b0; --z-accent: #ff2ea6; --z-accent-ink: #000;
  --z-border: #ff2ea6; --z-radius: 6px; --z-font: Verdana, Geneva, sans-serif; --z-title-font: Impact, "Arial Black", sans-serif;
  --z-shadow: 0 0 0 1px #000; --z-link: #b6ff00; --z-title-shadow: 2px 2px 0 #ff2ea6;
  background-image: repeating-linear-gradient(45deg, rgba(255, 46, 166, .06) 0 12px, transparent 12px 24px);
}
.zine[data-preset="scene"] .z-info h1 { text-transform: lowercase; letter-spacing: .02em; }

/* --- Tema: Synthwave (neon dos anos 80) --- */
.zine[data-preset="synthwave"] {
  --z-bg: #0d0221; --z-panel: rgba(20, 6, 45, .86); --z-panel-2: rgba(5, 217, 232, .1); --z-text: #f9f1ff; --z-muted: #b9a5d8; --z-accent: #ff2a6d; --z-accent-ink: #fff;
  --z-border: #05d9e8; --z-radius: 8px; --z-font: "Trebuchet MS", system-ui, sans-serif; --z-title-font: "Arial Black", Impact, sans-serif;
  --z-shadow: 0 0 14px rgba(5, 217, 232, .35); --z-link: #05d9e8; --z-title-shadow: 0 0 10px #ff2a6d, 0 0 22px #ff2a6d;
  background-image: linear-gradient(180deg, transparent 60%, rgba(255, 42, 109, .25) 100%), linear-gradient(rgba(5, 217, 232, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 217, 232, .12) 1px, transparent 1px), linear-gradient(180deg, #0d0221, #2d0b59);
  background-size: auto, 40px 40px, 40px 40px, auto;
}
.zine[data-preset="synthwave"] .z-info h1 { font-style: italic; text-transform: uppercase; }

/* --- Tema: Aero 2007 (vidro e céu) --- */
.zine[data-preset="aero"] {
  --z-bg: #bfe9ff; --z-panel: rgba(255, 255, 255, .62); --z-panel-2: rgba(255, 255, 255, .5); --z-text: #0b3550; --z-muted: #3f6b86; --z-accent: #2fb24a; --z-accent-ink: #fff;
  --z-border: rgba(255, 255, 255, .9); --z-radius: 16px; --z-font: "Segoe UI", Tahoma, sans-serif; --z-title-font: "Segoe UI", Tahoma, sans-serif;
  --z-shadow: 0 8px 24px rgba(10, 80, 130, .2), inset 0 1px 0 #fff; --z-link: #0a74c4; --z-title-shadow: 0 1px 0 #fff;
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .9), transparent 30%), linear-gradient(180deg, #7fd3ff 0%, #c9f0ff 55%, #9be27a 100%);
}
.zine[data-preset="aero"] .z-panel, .zine[data-preset="aero"] .z-head { backdrop-filter: blur(10px); }
.zine[data-preset="aero"] .btn-primary { background: linear-gradient(180deg, #8ee08f, #2fb24a 55%, #208a36); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }

/* --- Tema: Platinum 91 (computador clássico preto e branco) --- */
.zine[data-preset="platinum"] {
  --z-bg: #a8a8a8; --z-panel: #e8e8e8; --z-panel-2: #ffffff; --z-text: #000; --z-muted: #444; --z-accent: #000; --z-accent-ink: #fff;
  --z-border: #000; --z-radius: 0; --z-font: Geneva, Tahoma, "Lucida Grande", sans-serif; --z-title-font: Charcoal, "Arial Black", sans-serif;
  --z-shadow: 2px 2px 0 #000; --z-link: #0000cc; --z-btn-radius: 6px;
  background-image: repeating-conic-gradient(#9a9a9a 0 25%, #b4b4b4 0 50%); background-size: 4px 4px;
}
.zine[data-preset="platinum"] .z-section > h2 { border-bottom: 2px solid #000; padding-bottom: 6px; }

/* --- Tema: Kawaii (pastel) --- */
.zine[data-preset="kawaii"] {
  --z-bg: #ffe3f1; --z-panel: #fffafd; --z-panel-2: #ffeef7; --z-text: #6b2f57; --z-muted: #a26a8d; --z-accent: #ff7eb6; --z-accent-ink: #fff;
  --z-border: #ffb8da; --z-radius: 22px; --z-font: "Trebuchet MS", "Comic Sans MS", sans-serif; --z-title-font: "Comic Sans MS", "Trebuchet MS", cursive;
  --z-shadow: 0 6px 0 #ffc9e2; --z-link: #9b5de5; --z-title-shadow: 2px 2px 0 #b9fbc0;
  background-image: radial-gradient(#ffb8da 2px, transparent 2.5px), radial-gradient(#cdb4ff 2px, transparent 2.5px); background-size: 34px 34px; background-position: 0 0, 17px 17px;
}

/* --- Tema: Portátil 89 (tela verde de videogame portátil) --- */
.zine[data-preset="handheld"] {
  --z-bg: #8bac0f; --z-panel: #9bbc0f; --z-panel-2: #a9c722; --z-text: #0f380f; --z-muted: #306230; --z-accent: #0f380f; --z-accent-ink: #9bbc0f;
  --z-border: #306230; --z-radius: 4px; --z-font: ui-monospace, "Courier New", monospace; --z-title-font: ui-monospace, "Courier New", monospace;
  --z-shadow: 4px 4px 0 #306230; --z-link: #0f380f; --z-btn-radius: 4px;
}
.zine[data-preset="handheld"] .z-info h1 { text-transform: uppercase; letter-spacing: .08em; }

/* --- Tema: Xerox punk (zine de papel fotocopiado) --- */
.zine[data-preset="xerox"] {
  --z-bg: #ecebe6; --z-panel: #fbfaf6; --z-panel-2: #f1efe8; --z-text: #111; --z-muted: #555; --z-accent: #e10600; --z-accent-ink: #fff;
  --z-border: #111; --z-radius: 0; --z-font: "Courier New", Courier, monospace; --z-title-font: Impact, "Arial Black", sans-serif;
  --z-shadow: 5px 5px 0 #111; --z-link: #e10600; --z-btn-radius: 0; --z-title-shadow: 3px 3px 0 #e10600;
  background-image: radial-gradient(rgba(0, 0, 0, .08) 1px, transparent 1.2px); background-size: 5px 5px;
}
.zine[data-preset="xerox"] .z-info h1 { text-transform: uppercase; transform: rotate(-1deg); }
.zine[data-preset="xerox"] .z-head { transform: rotate(.3deg); }

/* --- Tema: Arcade (fliperama) --- */
.zine[data-preset="arcade"] {
  --z-bg: #000; --z-panel: #0b0b1e; --z-panel-2: #14143a; --z-text: #fff; --z-muted: #9ea3ff; --z-accent: #ffea00; --z-accent-ink: #000;
  --z-border: #3b3bff; --z-radius: 2px; --z-font: "Trebuchet MS", system-ui, sans-serif; --z-title-font: Impact, "Arial Black", sans-serif;
  --z-shadow: 0 0 0 2px #000, 0 0 0 4px #3b3bff; --z-link: #00f0ff; --z-btn-radius: 2px; --z-title-shadow: 3px 3px 0 #ff00aa, -2px -2px 0 #00f0ff;
  background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#ffea00 1px, transparent 1.5px); background-size: 60px 60px, 90px 90px; background-position: 0 0, 30px 45px;
}
.zine[data-preset="arcade"] .z-info h1 { text-transform: uppercase; letter-spacing: .06em; }

/* Aparência: cores, letras e pré-visualização */
.look-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 8px 0 18px; }
.look-h { font-size: 15px; margin: 14px 0 8px; }
.color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.color-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.color-row input[type=color] { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.color-row span { flex: 1; min-width: 0; }
.color-row .reset-c { width: 28px; height: 28px; visibility: hidden; font-size: 15px; }
.color-row.custom { border-color: var(--accent); }
.color-row.custom .reset-c { visibility: visible; }
/* Layout da Aparência: formulário + pré-visualização sempre à vista */
.look-layout { display: grid; grid-template-columns: minmax(0, 900px) minmax(320px, 440px); gap: 20px; align-items: start; }
.look-layout > form { min-width: 0; margin: 0; }
.look-aside { position: sticky; top: calc(var(--topbar-h) + 12px); min-width: 0; max-height: calc(100vh - var(--topbar-h) - 24px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; scrollbar-width: thin; }
.look-aside-head { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 700; padding: 2px 4px 8px; cursor: default; }
.look-aside-head .fa-chevron-down { display: none; transition: transform .2s; }
#lk-prev { min-width: 0; overflow: hidden; }
@media (max-width: 1180px) {
  .look-layout { grid-template-columns: minmax(0, 1fr); }
  .look-layout > form { padding-bottom: 46vh; }
  .look-aside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 44vh; border-radius: 16px 16px 0 0; border-bottom: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); padding: 6px 10px 10px; }
  .look-aside-head { cursor: pointer; padding: 8px 4px; }
  .look-aside-head .fa-chevron-down { display: inline-block; }
  .look-aside.closed #lk-prev { display: none; }
  .look-aside.closed .fa-chevron-down { transform: rotate(180deg); }
  .look-layout:has(.look-aside.closed) > form { padding-bottom: 70px; }
}
@media (min-width: 861px) and (max-width: 1180px) { .look-aside { left: var(--sidebar-w, 0); } }
.zine.zine-mini { max-width: 100%; min-height: 0; background-attachment: scroll; border-radius: 12px; overflow: hidden; padding: 0 12px 12px; border: 1px solid var(--line); position: relative; }
.zine.zine-mini.has-bg[data-fx]::before { position: absolute; inset: 0; height: auto; margin: 0; }
.zine-mini .z-banner { height: 70px; margin: 0 -12px; border-radius: 0; }
.zine-mini .z-head { margin: -26px 0 10px; padding: 10px; gap: 10px; }
.zine-mini .z-avatar { width: 52px; height: 52px; margin: 0; }
.zine-mini .z-info h1 { font-size: 20px; }
.zine-mini .z-info .meta { font-size: 11px; }
.zine-mini .mini-actions { display: flex; gap: 6px; margin-left: auto; }
.zine-mini .z-tabs { padding: 6px; margin-bottom: 10px; display: flex; gap: 4px; }
.zine-mini .z-section { padding: 12px; margin: 0; }
.zine-mini .z-section h2 { font-size: 15px; margin-bottom: 8px; }
.zine-mini .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zine-mini .thumb { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.zine-mini .z-marquee { margin-bottom: 10px; max-width: 100%; }
.zine-mini[data-preset="win98"] .z-section > h2 { margin: -12px -12px 10px; }
.fx-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 900px) { .look-split { grid-template-columns: minmax(0, 1fr); } .look-preview-wrap { position: static; order: -1; } }

/* Prévia nos campos de GIF/imagem e de link de vídeo */
.img-prev, .vid-prev { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.img-prev img { display: block; max-width: 100%; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); background: repeating-conic-gradient(#2a2a27 0 25%, #1f1f1d 0 50%) 0 0/16px 16px; }
.vid-prev img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* conteúdo da aba carregando (troca de aba sem recarregar a página) */
.z-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* Cor de fundo escolhida pelo dono (antes das regras de fundo em GIF, que vencem esta) */
.zine.c-bg[data-preset] { background-image: none; }

/* Previews dos temas no estúdio */
.theme-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-card { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; padding: 0; text-align: left; }
.theme-card:has(input:checked) { border-color: var(--accent); }
.theme-card input { display: none; }
.theme-card .sw { height: 64px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.theme-card b { display: block; padding: 8px 10px; font-size: 13px; }

/* ---------- Playlists e vídeo principal ---------- */
.featured-label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 800; margin-bottom: 10px; color: var(--z-accent, var(--accent)); }
.featured-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: center; color: inherit; }
.featured-card .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.featured-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-card h3 { margin: 0 0 8px; font-size: 20px; overflow-wrap: anywhere; }
.featured-info { display: grid; gap: 8px; justify-items: start; }
.play-big { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pl-card { color: inherit; display: grid; gap: 6px; justify-items: start; }
.pl-covers { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; border-radius: var(--z-radius, 12px); overflow: hidden; background: var(--z-panel-2, var(--bg-3)); }
.pl-covers img { width: 100%; height: 100%; object-fit: cover; }
.pl-covers img:only-of-type { grid-column: 1 / -1; grid-row: 1 / -1; }
/* 2 vídeos: lado a lado, altura toda; 3 vídeos: o primeiro ocupa a coluna da esquerda (só conta as imagens, não o selo) */
.pl-covers img:first-of-type:nth-last-of-type(2), .pl-covers img:first-of-type:nth-last-of-type(2) ~ img { grid-row: 1 / -1; }
.pl-covers img:first-of-type:nth-last-of-type(3) { grid-row: 1 / -1; }
.pl-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; font-size: 28px; opacity: .5; }
.pl-count { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .75); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pl-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.pl-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.pl-item { display: grid; grid-template-columns: 28px 160px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit; padding: 6px; border-radius: 10px; }
.pl-item:hover { background: var(--z-panel-2, var(--bg-3)); }
.pl-item .thumb, .pl-side .thumb, .pl-row .thumb, .pl-add .thumb { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.pl-item .thumb img, .pl-row .thumb img, .pl-add .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-n { font-weight: 800; color: var(--z-muted, var(--text-2)); text-align: center; }
.pl-side-list { max-height: 420px; overflow: auto; scrollbar-width: thin; }
.pl-side .side-card { align-items: center; padding: 4px; border-radius: 8px; }
.pl-side .side-card .pl-n { width: 20px; flex: none; }
.pl-side .side-card.current { background: var(--z-panel-2, var(--bg-3)); }
.pl-side .side-card .thumb { width: 110px; }
.pl-edit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-row.dragging { opacity: .4; }
.pl-row.drop { outline: 2px dashed var(--accent); }
.order-btns { display: grid; gap: 2px; }
.order-btns .icon-btn { width: 28px; height: 24px; }
.pl-avail { display: grid; gap: 6px; max-height: 520px; overflow: auto; }
.pl-add { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px; color: inherit; font: inherit; cursor: pointer; }
.pl-add:hover { border-color: var(--accent); }
@media (max-width: 900px) { .pl-edit, .featured-card { grid-template-columns: minmax(0, 1fr); } .pl-item { grid-template-columns: 24px 110px minmax(0, 1fr); } }

/* ---------- Avisos e moderação ---------- */
.bell { position: relative; }
.pend { margin-bottom: 16px; }
.pend h2 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.pend-row { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 8px; }
.pend-row:hover { background: var(--bg-3); }
.pend-row span { flex: 1; }
.pend-row i:first-child { width: 18px; text-align: center; color: var(--accent); }
.menu .count { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.badge-n { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.notice { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notice:last-child { border-bottom: 0; }
.notice > i { color: var(--text-2); margin-top: 3px; width: 18px; text-align: center; }
.notice.unread > i { color: var(--pink); }
.notice.unread { background: color-mix(in srgb, var(--pink) 6%, transparent); }
.mod-note { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .18); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-card { margin-bottom: 12px; }
.adm-card .nums { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-2); }
.adm-head { display: flex; gap: 12px; align-items: center; }
.adm-head h3 { margin: 0 0 4px; font-size: 17px; }
.adm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.adm-thumbs .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 8px; }
.adm-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-target { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; overflow-wrap: anywhere; }
.adm-target .thumb { width: 160px; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.adm-target .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Denúncias: o que está sendo denunciado e o motivo, para quem denuncia e para a moderação */
.modal:has(.rp-cats) { width: min(100%, 600px); }
.rp-what { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-3); margin-bottom: 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.rp-what > div { font-size: 15px; }
.rp-choice { display: grid; gap: 10px; margin: 10px 0 14px; }
.rp-choice.row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rp-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); color: inherit; cursor: pointer; }
.rp-opt:hover { border-color: var(--accent); }
.rp-opt > i { font-size: 20px; color: var(--accent); margin-top: 2px; }
.rp-opt span, .rp-cat span, .rp-choice .radio-card span { display: block; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.rp-cats { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-cat { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.rp-cat input { margin-top: 4px; }
.rp-cats.picked .rp-cat:not(.active) { display: none; }
#rp-change { margin: -4px 0 12px; }
.rp-cat.active, .rp-cat:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.rp-explain { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); margin-bottom: 12px; font-size: 14px; }
.rp-explain ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.rp-explain p { margin: 6px 0 0; }
.rp-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.claim-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.claim-code code { font-size: 20px; padding: 6px 12px; border-radius: 8px; background: var(--bg-3); color: var(--accent); letter-spacing: .04em; }
.claim-code.small code { font-size: 14px; padding: 2px 8px; }
.adm-card.urgent { border-color: var(--danger); }
.adm-what { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 14px 0 4px; }
.adm-quote { margin: 4px 0; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--bg-3); border-radius: 0 6px 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep-item { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; overflow-wrap: anywhere; }
.rep-item:first-of-type { border-top: 0; }
.rep-item .how { color: var(--text-2); }
.rep-item .how i { color: var(--warn); }
.claim-box { margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent); }
.claim-box p { margin: 6px 0; }
/* Convites: equipe do zine e (com destaque) moderação do site */
.modal:has(.site-invite) { width: min(100%, 560px); }
.site-invite { text-align: center; padding: 6px 4px 2px; }
.si-burst { font-size: 54px; line-height: 1; margin-bottom: 8px; animation: si-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes si-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .si-burst { animation: none; } }
.site-invite h2 { font-size: 24px !important; margin: 0 0 8px; background: linear-gradient(90deg, var(--accent), var(--pink, #ff4fa3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-invite .si-lead { font-size: 16px; color: var(--text) !important; }
.si-list { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 10px; text-align: left; }
.si-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-3); font-size: 14px; }
.si-list i { color: var(--accent); margin-top: 3px; width: 16px; text-align: center; }
.site-invite-card { border: 2px solid var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--bg-2)), var(--bg-2) 60%); }
.team-invite { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-color: var(--accent); }
.team-invite .grow { flex: 1; min-width: 200px; }
.danger-panel { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.danger-panel h2 { color: var(--danger); }
.keep-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14px; }
.keep-list i { color: var(--ok); margin-right: 6px; }
/* Curadoria do Zine */
.pill.curated { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.cur-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cur-head .grow, .cur-src .grow { flex: 1; }
.cur-sched { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.cur-sched label { display: inline-flex; gap: 8px; align-items: center; }
.cur-sched select.input { width: auto; height: 32px; padding-top: 0; padding-bottom: 0; }
.cur-src { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.cur-src.off { opacity: .55; }
.cur-src code { overflow-wrap: anywhere; }
.cur-add { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cur-add .input { flex: 1; min-width: 220px; }
.pill.danger { background: color-mix(in srgb, var(--danger, #ff5a5a) 20%, transparent); color: var(--danger, #ff5a5a); }
.log-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.team-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.team-who { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; margin: 10px 0; }
.perm-grid .check { margin: 4px 0; }
@media (max-width: 560px) { .log-row { grid-template-columns: 1fr; gap: 2px; } .adm-target { flex-direction: column; } .adm-target .thumb { width: 100%; } }

/* ---------- Termos e privacidade ---------- */
.legal { max-width: 820px; margin: 0 auto; line-height: 1.65; padding: 28px clamp(18px, 4vw, 40px); }
.legal h1 { margin: 0 0 4px; font-family: "Arial Black", Impact, system-ui, sans-serif; letter-spacing: -.02em; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a, .legal-note a, .side-legal a { color: var(--accent); text-decoration: underline; }
.side-legal { padding: 0 16px 16px; font-size: 12px; color: var(--muted, #8a877f); }
.side-legal a { color: inherit; }
.legal-note { margin: 4px 0 12px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .zine .watch { grid-template-columns: minmax(0, 1fr); } .zine .wide-toggle { display: none; } }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: var(--topbar-h); z-index: 50; background: var(--bg-2); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.side-open .sidebar { transform: none; }
  body.side-hidden .sidebar { display: block; }
  body.side-open .scrim { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0, 0, 0, .5); z-index: 45; }
  .page { padding: 16px; }
  .zine .z-wrap { padding: 0 12px 40px; }
  .zine .z-avatar { width: 72px; height: 72px; margin-top: -34px; }
  .row-item { grid-template-columns: 100px minmax(0, 1fr); }
  .row-item .row-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 8px; }
  .search button { width: 42px; }
  .search input { padding: 0 10px; }
  .topbar-right { gap: 2px; }
  .topbar-right .icon-btn { width: 34px; height: 34px; }
  .lang-sel { height: 30px; padding: 0 2px; font-size: 11px; }
  .topbar-right .btn .lbl { display: none; }
  .logo-mark { font-size: 17px; padding: 0 7px 2px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 24px 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .zine .side-card .thumb { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .zine .z-marquee span { animation: none; padding-left: 0; } }

/* Só o fundo do tema, fora da página do zine (estúdio, feed de clipes). As cores do site continuam as mesmas. */
.zine-bg { background-color: var(--bg); background-attachment: fixed; min-height: calc(100vh - var(--topbar-h)); }
.zine-bg[data-preset="geocities"] { background-color: #000080; background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#ff0 1px, transparent 1.5px); background-size: 40px 40px, 70px 70px; background-position: 0 0, 20px 30px; }
.zine-bg[data-preset="win98"] { background-color: #008080; }
.zine-bg[data-preset="y2k"] { background-color: #dfe7f2; background-image: linear-gradient(180deg, #f6f9ff 0%, #c9d6ea 55%, #e8eef8 100%); }
.zine-bg[data-preset="vapor"] { background-color: #1a0933; background-image: linear-gradient(180deg, #1a0933 0%, #4b1066 50%, #ff71ce 100%); }
.zine-bg[data-preset="terminal"] { background-color: #050805; }
.zine-bg[data-preset="scene"] { background-color: #0a0a0a; background-image: repeating-linear-gradient(45deg, rgba(255, 46, 166, .08) 0 12px, transparent 12px 24px); }
.zine-bg[data-preset="synthwave"] { background-color: #0d0221; background-image: linear-gradient(180deg, #0d0221, #2d0b59); }
.zine-bg[data-preset="aero"] { background-color: #bfe9ff; background-image: linear-gradient(180deg, #7fd3ff 0%, #c9f0ff 55%, #9be27a 100%); }
.zine-bg[data-preset="platinum"] { background-color: #a8a8a8; background-image: repeating-conic-gradient(#9a9a9a 0 25%, #b4b4b4 0 50%); background-size: 4px 4px; }
.zine-bg[data-preset="kawaii"] { background-color: #ffe3f1; background-image: radial-gradient(#ffb8da 2px, transparent 2.5px); background-size: 34px 34px; }
.zine-bg[data-preset="handheld"] { background-color: #8bac0f; }
.zine-bg[data-preset="xerox"] { background-color: #ecebe6; background-image: radial-gradient(rgba(0, 0, 0, .08) 1px, transparent 1.2px); background-size: 5px 5px; }
.zine-bg[data-preset="arcade"] { background-color: #000; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 60px 60px; }
/* cor de fundo escolhida pelo dono */
.zine-bg.c-bg[data-preset] { background-color: var(--z-bg); background-image: none; }
/* textos que ficam soltos sobre o fundo ganham uma faixa escura atrás (o fundo pode ser claro ou um GIF) */
.zine-bg .studio-head, .zine-bg .tabs-line { background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); }
.zine-bg .tabs-line { border-bottom: 0; }
.zine-bg .row-item, .zine-bg #st-body > .empty, .zine-bg #st-body > .section-title, .zine-bg #st-body > p, .zine-bg #st-body > h2 { background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 12px; padding-left: 12px; padding-right: 12px; backdrop-filter: blur(6px); }
.zine-bg .row-item { padding-top: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 0; }
.zine-bg > .page > .alert { backdrop-filter: blur(6px); }
.clipslide.zine-bg { min-height: 0; background-attachment: scroll; }
.clipslide.zine-bg .clipinfo { background: color-mix(in srgb, var(--bg) 86%, transparent); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(6px); }

/* Fundo escolhido pelo dono: precisa vencer o fundo padrão de cada tema (fica no fim do arquivo de propósito) */
.zine.has-bg[data-preset] { background-image: var(--z-bg-img); background-size: cover; background-position: center; background-repeat: no-repeat; }
.zine.has-bg.tile[data-preset] { background-size: auto; background-repeat: repeat; background-position: 0 0; }
.zine-bg.has-bg[data-preset] { background-image: var(--z-bg-img); background-size: cover; background-position: center; background-repeat: no-repeat; }
.zine-bg.has-bg.tile[data-preset] { background-size: auto; background-repeat: repeat; background-position: 0 0; }

/* Efeito de imagem também no fundo escolhido pelo dono.
   Um filtro não pode ser aplicado só no background, então o fundo vai para uma camada (::before) atrás do conteúdo.
   Na página e no Estúdio a camada fica "grudada" na tela (sticky), como o fundo fixo; no feed de clipes, cobre o clipe. */
:is(.zine, .zine-bg).has-bg[data-fx][data-preset] { background-image: none; isolation: isolate; }
:is(.zine, .zine-bg).has-bg[data-fx]::before {
  content: ""; display: block; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); margin-bottom: calc(var(--topbar-h) - 100vh);
  z-index: -1; pointer-events: none; filter: var(--fx);
  background-image: var(--fx-bglines), var(--z-bg-img); background-size: auto, cover; background-position: 0 0, center; background-repeat: repeat, no-repeat;
}
.clipslide.has-bg[data-fx] { position: relative; }
.clipslide.has-bg[data-fx]::before { position: absolute; inset: 0; height: auto; margin: 0; }
:is(.zine, .zine-bg).has-bg.tile[data-fx]::before { background-size: auto, auto; background-position: 0 0, 0 0; background-repeat: repeat, repeat; }

/* Elementos do site dentro das páginas temáticas usam as cores do tema */
.zine .empty { color: var(--z-muted); }
.zine .empty h2 { color: var(--z-text); }
.zine .empty i.big { color: var(--z-muted); opacity: .7; }
.zine .sticker-tile { background: var(--z-panel-2); border-color: var(--z-border); }
.zine .alert { color: var(--z-text); background: var(--z-panel); }
.zine .z-status { margin: 14px 0 0; position: relative; z-index: 1; }

/* ---------- Início com abas e busca ---------- */
.home-tabs { margin: 22px 0 14px; }
.home-tabs .tab { font-size: 16px; padding: 12px 18px; cursor: pointer; }
.home-bar { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.home-bar .chips { margin-bottom: 6px; }
.kind-chips .chip { height: 30px; font-size: 13px; }
.home-hint { margin: 2px 0 18px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.filters select.input { width: auto; min-width: 170px; padding: 8px 10px; }
.sticker-tile .st-credit { font-size: 11px; color: var(--z-muted, var(--text-2)); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Efeito nas imagens (escolhido pelo dono do zine) ----------
   Cada [data-fx] define --fx (filtro) e --fx-lines (linhas de TV). As imagens de dentro usam o --fx do
   [data-fx] MAIS PRÓXIMO, então um cartão de exemplo com data-fx próprio não herda o efeito da página.
   Vale na página do zine, no vídeo, nos cards do Início/busca, nas figurinhas e no fundo. */
[data-fx] { --fx: none; --fx-half: none; --fx-lines: none; --fx-bglines: var(--fx-lines); }
[data-fx="phosphor"]  { --fx: grayscale(1) sepia(1) hue-rotate(60deg) saturate(3); }
[data-fx="amber"]     { --fx: grayscale(1) sepia(1) hue-rotate(-12deg) saturate(3.2) brightness(.95); }
[data-fx="ice"]       { --fx: grayscale(1) sepia(1) hue-rotate(160deg) saturate(2.4) brightness(1.05); }
[data-fx="mono"]      { --fx: grayscale(1) contrast(1.15); }
[data-fx="noir"]      { --fx: grayscale(1) contrast(1.8) brightness(.9); }
[data-fx="sepia"]     { --fx: sepia(.9) contrast(1.05) brightness(.97); }
[data-fx="polaroid"]  { --fx: sepia(.35) saturate(.75) contrast(.88) brightness(1.1) hue-rotate(-8deg); }
[data-fx="xerox"]     { --fx: grayscale(1) contrast(3) brightness(1.15); }
/* VHS: fita gasta (cor quente e lavada, faixas grossas de rastreamento). CRT: tela de tubo (linhas finas, brilho e cantos escuros) */
[data-fx="vhs"]       { --fx: saturate(1.5) contrast(1.1) sepia(.25) hue-rotate(-12deg) brightness(1.05) blur(.6px);
  --fx-lines: linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, .10) 64%, rgba(0, 0, 0, .18) 66%, transparent 69%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 5px);
  --fx-bglines: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 5px); }
[data-fx="crt"]       { --fx: contrast(1.25) saturate(1.3) brightness(1.12);
  --fx-lines: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .42) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(255, 0, 0, .06) 0 1px, rgba(0, 255, 0, .06) 1px 2px, rgba(0, 0, 255, .06) 2px 3px);
  --fx-bglines: repeating-linear-gradient(0deg, rgba(0, 0, 0, .42) 0 1px, transparent 1px 2px); }
[data-fx="infrared"]  { --fx: hue-rotate(180deg) saturate(2.2) contrast(1.1); }
[data-fx="negative"]  { --fx: invert(1) hue-rotate(180deg); }
[data-fx="gameboy"]   { --fx: url(#fx-gameboy); }
[data-fx="pixel8"]    { --fx: url(#fx-pixel8); }
[data-fx="duotone"]   { --fx: url(#fx-duotone); }
[data-fx="cyanotype"] { --fx: url(#fx-cyanotype); }
[data-fx="thermal"]   { --fx: url(#fx-thermal); }
/* versão suave para o vídeo (os filtros SVG pesados viram aproximações leves em CSS) */
[data-fx="phosphor"]  { --fx-v: grayscale(.85) sepia(.7) hue-rotate(60deg) saturate(1.8); }
[data-fx="amber"]     { --fx-v: grayscale(.85) sepia(.75) hue-rotate(-12deg) saturate(1.8); }
[data-fx="ice"]       { --fx-v: grayscale(.8) sepia(.6) hue-rotate(160deg) saturate(1.6); }
[data-fx="mono"]      { --fx-v: grayscale(1) contrast(1.08); }
[data-fx="noir"]      { --fx-v: grayscale(1) contrast(1.35); }
[data-fx="sepia"]     { --fx-v: sepia(.65) contrast(1.03); }
[data-fx="polaroid"]  { --fx-v: sepia(.25) saturate(.85) contrast(.94) brightness(1.05) hue-rotate(-5deg); }
[data-fx="xerox"]     { --fx-v: grayscale(1) contrast(1.7) brightness(1.08); }
[data-fx="infrared"]  { --fx-v: hue-rotate(180deg) saturate(1.6); }
[data-fx="negative"]  { --fx-v: invert(.85) hue-rotate(180deg); }
[data-fx="gameboy"]   { --fx-v: grayscale(1) contrast(1.5) sepia(1) hue-rotate(38deg) saturate(1.9) brightness(.9); }
[data-fx="pixel8"]    { --fx-v: saturate(1.9) contrast(1.4) brightness(1.03); }
[data-fx="duotone"]   { --fx-v: grayscale(1) contrast(1.2) sepia(1) hue-rotate(255deg) saturate(2.6); }
[data-fx="cyanotype"] { --fx-v: grayscale(1) contrast(1.15) sepia(1) hue-rotate(175deg) saturate(3); }
[data-fx="thermal"]   { --fx-v: grayscale(1) contrast(1.4) sepia(1) hue-rotate(-40deg) saturate(5) brightness(1.05); }
/* figurinhas: o mesmo efeito na metade da força (os efeitos fortes deixavam as figurinhas difíceis de reconhecer) */
[data-fx="phosphor"] { --fx-half: grayscale(0.5) sepia(0.5) hue-rotate(30deg) saturate(2); }
[data-fx="amber"] { --fx-half: grayscale(0.5) sepia(0.5) hue-rotate(-6deg) saturate(2.1) brightness(0.975); }
[data-fx="ice"] { --fx-half: grayscale(0.5) sepia(0.5) hue-rotate(80deg) saturate(1.7) brightness(1.025); }
[data-fx="mono"] { --fx-half: grayscale(0.5) contrast(1.075); }
[data-fx="noir"] { --fx-half: grayscale(0.5) contrast(1.4) brightness(0.95); }
[data-fx="sepia"] { --fx-half: sepia(0.45) contrast(1.025) brightness(0.985); }
[data-fx="polaroid"] { --fx-half: sepia(0.175) saturate(0.875) contrast(0.94) brightness(1.05) hue-rotate(-4deg); }
[data-fx="xerox"] { --fx-half: grayscale(0.5) contrast(2) brightness(1.075); }
[data-fx="vhs"] { --fx-half: saturate(1.25) contrast(1.05) sepia(0.125) hue-rotate(-6deg) brightness(1.025) blur(0.3px); }
[data-fx="crt"] { --fx-half: contrast(1.125) saturate(1.15) brightness(1.06); }
[data-fx="infrared"] { --fx-half: hue-rotate(90deg) saturate(1.6) contrast(1.05); }
[data-fx="negative"] { --fx-half: invert(.85) hue-rotate(180deg) contrast(1.3); }   /* invert pela metade deixaria tudo cinza */
[data-fx="gameboy"] { --fx-half: url(#fx-gameboy-h); }
[data-fx="pixel8"] { --fx-half: url(#fx-pixel8-h); }
[data-fx="duotone"] { --fx-half: url(#fx-duotone-h); }
[data-fx="cyanotype"] { --fx-half: url(#fx-cyanotype-h); }
[data-fx="thermal"] { --fx-half: url(#fx-thermal-h); }
[data-fx] :is(.thumb img, .pl-covers img, .z-avatar, .z-banner img, .zc-av, .zc-banner img, .fx-sample) { filter: var(--fx); transition: filter .2s; }
[data-fx] :is(img.sticker, .sticker-tile img, .picker-grid img) { filter: var(--fx-half, var(--fx)); transition: filter .2s; }
[data-fx] :is(.thumb, .zc-banner, .pl-covers)::after, .sw[data-fx]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--fx-lines); }
[data-fx] .zc-banner, .theme-card .sw { position: relative; }
.thumb .badge { z-index: 1; }
.fx-sample { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 28% 42%, #fff 0 13%, transparent 14%), radial-gradient(circle at 72% 30%, #2b1d5c 0 10%, transparent 11%), linear-gradient(165deg, transparent 58%, #1b1b3a 59%), linear-gradient(135deg, #ff4fa3, #ffd60a 45%, #2fd3ff); }
.theme-card .sw:has(.fx-sample) { padding: 0; }

/* ---------- Caixas de seleção (select) com a cara do site ----------
   Tira a seta padrão do sistema (destoava no Windows) e desenha uma seta própria
   com gradientes na cor do tema; a lista aberta usa as cores do tema também. */
select.input, .zine select.input, .lang-sel {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select.input, .zine select.input { padding-right: 34px; background-color: var(--bg-2); }
.filters select.input { padding-right: 34px; }
select.input:hover { border-color: var(--text-3); }
select.input:focus, select.input:focus-visible { border-color: var(--accent); outline: none; }
.lang-sel { padding: 0 24px 0 9px; background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; background-size: 4px 4px, 4px 4px; }
select option { background-color: var(--bg-2); color: var(--text); }
@media (max-width: 560px) { .lang-sel { padding: 0 18px 0 6px; background-position: calc(100% - 10px) 52%, calc(100% - 6px) 52%; } }
/* Chrome/Edge 135+: lista aberta toda no estilo do site (fundo, hover e item escolhido).
   Nos outros navegadores fica a lista do sistema, já com as cores do tema. */
@supports (appearance: base-select) {
  select.input, .zine select.input, .lang-sel, select.input::picker(select), .lang-sel::picker(select) { appearance: base-select; }
  select.input::picker-icon, .lang-sel::picker-icon { display: none; }
  select.input::picker(select), .lang-sel::picker(select) {
    margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); min-width: anchor-size(width);
  }
  select.input option, .lang-sel option { padding: 9px 12px; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600; }
  .lang-sel option { padding: 7px 12px; font-size: 12px; }
  select.input option:hover, select.input option:focus-visible, .lang-sel option:hover, .lang-sel option:focus-visible { background: var(--bg-3); outline: none; }
  select.input option:checked, .lang-sel option:checked { background: var(--accent); color: #121211; }
  select.input option::checkmark, .lang-sel option::checkmark { display: none; }
}

/* ---------- Clipes: fileira no Início e feed vertical ---------- */
.clip-shelf { margin: 4px 0 26px; }
.clip-shelf .section-title { margin-top: 0; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.clip-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); scroll-snap-align: start; transition: transform .15s, border-color .15s; }
.clip-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.clip-card .cc-bg { position: relative; aspect-ratio: 9 / 11; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--bg-3); }
.clip-card .thumb { width: 100%; border-radius: 0; }
.clip-card .cc-loop { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--accent); color: #121211; }
.clip-card .cc-body { padding: 10px; min-width: 0; }
.clip-card h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.clip-card .cc-zine { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-card .cc-zine .avatar { width: 18px; height: 18px; border-radius: 5px; }
.clip-play-all { margin-bottom: 16px; }

.clipfeed { height: calc(100dvh - var(--topbar-h)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; outline: none; scrollbar-width: none; }
.clipfeed::-webkit-scrollbar { display: none; }
.clipslide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px 16px;
  background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%); }
.clipstage, .clipinfo { width: min(100%, 860px, calc((100dvh - var(--topbar-h) - 250px) * 16 / 9)); min-width: min(100%, 320px); }
.clip-player { box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.clip-player .clip-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-player .clip-wait { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(0, 0, 0, .55); color: #fff; }
.clip-player.live .clip-wait { display: none; }
.clip-zine { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.clip-zine .avatar { width: 28px; height: 28px; border-radius: 8px; }
.clip-title { margin: 8px 0 6px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.clip-title a:hover { text-decoration: underline; }
.clip-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-2); }
.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.clip-actions .btn.liked { background: var(--accent); color: #121211; }
.clip-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 5; }
.clip-nav .icon-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); }
.clip-nav .icon-btn:hover { background: var(--bg-hover); }
@media (max-width: 860px) {
  .clip-nav { display: none; }
  .clipslide { padding: 12px; gap: 12px; justify-content: center; }
  .clipstage, .clipinfo { width: 100%; }
  .clip-title { font-size: 17px; }
  .clip-actions .btn { height: 34px; padding: 0 12px; }
}
