/* Arc web "watch" surface.
   Top nav + portfolio rails: each row has its own avatar, headline, bio, and
   3x3 work grid. Arc brand: orange-red accent, near-black canvas. */

:root {
  --bg: #0a0a0d;
  --bg-elev: #15151c;
  --bg-elev-2: #1c1c25;
  --text: #f6f6f8;
  --text-dim: #b6b6c2;
  --text-faint: #80808d;
  --accent: #ff5724;
  --accent-2: #ff3b30;
  --accent-grad: linear-gradient(120deg, #ff8a3d 0%, #ff5724 46%, #ec1d36 100%);
  --card-radius: 10px;
  --side-pad: clamp(1.1rem, 4.2vw, 3.75rem);
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.browse { overflow-x: hidden; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--side-pad); z-index: 60;
  background: linear-gradient(180deg, rgba(8,8,12,0.95) 0%, rgba(8,8,12,0) 100%);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled { background: rgba(9,9,13,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.05); }

.nav-left { display: flex; align-items: center; gap: 2.2rem; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-brand img { border-radius: 7px; }
.nav-brand span {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a, .nav-sort {
  color: var(--text-dim); font-size: 0.92rem; font-weight: 500;
  background: none; border: 0; padding: 0; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-links a:hover, .nav-sort:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); font-weight: 600; }
.nav-sort svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.nav-right { display: flex; align-items: center; gap: 1rem; position: relative; }
.search {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, background 0.2s;
}
.search:focus-within { border-color: rgba(255,87,36,0.6); background: rgba(255,255,255,0.12); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; }
.search input {
  background: none; border: 0; outline: none; color: var(--text);
  font-size: 0.88rem; width: 9rem;
}
.search input::placeholder { color: var(--text-faint); }

.nav-signin {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; background: var(--accent-grad);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px rgba(255,87,36,0.4);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.nav-signin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-signin:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.4); box-shadow: 0 8px 24px rgba(255,87,36,0.55); }

@media (max-width: 860px) { .nav-links a[href="/watch#list"], .nav-sort { display: none; } }
@media (max-width: 680px) { .nav-links { display: none; } .search input { width: 6rem; } }

/* ---------- Hero (Arc Originals) ---------- */
.hero {
  position: relative; min-height: min(86vh, 780px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 800px at 78% 30%, rgba(255,87,36,0.22), transparent 62%),
    radial-gradient(900px 700px at 92% 78%, rgba(255,45,63,0.18), transparent 60%),
    linear-gradient(120deg, #0c0a16 0%, #140b1f 48%, #0a0a0d 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-blob-1 { width: 40vw; height: 40vw; top: -8%; right: 4%; background: radial-gradient(circle at 35% 35%, rgba(255,138,61,0.9), transparent 70%); opacity: 0.5; }
.hero-blob-2 { width: 32vw; height: 32vw; bottom: -12%; right: 16%; background: radial-gradient(circle at 40% 40%, rgba(236,29,54,0.85), transparent 70%); opacity: 0.4; }
.hero-blob-3 { width: 26vw; height: 26vw; top: 26%; right: 34%; background: radial-gradient(circle at 50% 50%, rgba(255,170,80,0.8), transparent 70%); opacity: 0.28; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(65% 70% at 80% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(65% 70% at 80% 40%, #000 0%, transparent 78%);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,11,0.95) 0%, rgba(8,8,11,0.7) 32%, rgba(8,8,11,0.12) 64%, transparent 82%);
}
.hero-fade-bottom {
  position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(0deg, var(--bg), rgba(10,10,13,0));
}
.hero-inner {
  position: relative; z-index: 3;
  padding: var(--nav-h) var(--side-pad) 0;
  max-width: 42rem;
}
.hero-kicker {
  margin: 0 0 0.7rem; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
}
.hero-title {
  margin: 0 0 1.2rem; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.95;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #ffd9c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 40px rgba(255,87,36,0.25);
}
.hero-desc {
  margin: 0 0 1.7rem; max-width: 32rem;
  font-size: clamp(0.96rem, 1.3vw, 1.12rem); line-height: 1.55; color: var(--text-dim);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Creators highlight ---------- */
/* A highlight of a few creators dropped into the feed (after the 5th/6th row).
   Lives inside .feed, so the feed's column gap + side padding already place it;
   the track stretches its handful of cards end to end. */
.creator-bar {
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
.creator-bar-head { display: flex; align-items: baseline; gap: 0.6rem; }
.creator-bar-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 800; letter-spacing: -0.01em;
}
.creator-bar-track {
  display: grid;
  /* grid-template-columns set inline to the number of picks */
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(0.55rem, 1vw, 0.85rem);
}
.creator-chip {
  min-width: 0;
  min-height: clamp(168px, 17vw, 224px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.3rem 1rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(28,28,36,0.96) 0%, rgba(14,14,19,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 30px rgba(0,0,0,0.42);
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), border-color 0.2s, background 0.2s;
}
.creator-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(160deg, rgba(34,34,43,0.97) 0%, rgba(17,17,23,0.97) 100%);
}
.creator-chip-avatar {
  width: clamp(3rem, 4vw, 3.8rem); height: clamp(3rem, 4vw, 3.8rem);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 800; color: #fff;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.creator-chip-name {
  margin: 0;
  max-width: 100%;
  font-size: clamp(0.88rem, 1.1vw, 1rem); font-weight: 700; letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.creator-chip-join {
  margin-top: 0.2rem;
  padding: 0.36rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-size: 0.68rem; font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.creator-chip-join:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  color: var(--text);
}
.creator-chip-join:active { transform: scale(0.98); }

@media (max-width: 560px) {
  .creator-bar-track { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Portfolio feed ---------- */
.feed {
  display: flex; flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--side-pad) 4rem;
}
/* One rail = a square creator card + a row of three 16:9 work tiles.
   The card is sized (in browse.js) to match the work-row height and square,
   then absolutely pinned to the left so the work row can slide over its right
   edge — the card peeks out and tucks "just a border" behind the first tile. */
.portfolio-rail {
  position: relative;
  min-width: 0;
}
.portfolio-profile {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  /* width + height set inline by layoutRail() so the card is a square whose
     side equals the work-row height. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: clamp(1.2rem, 2vw, 1.9rem);
  border-radius: 14px;
  /* No border: the card fades into the page so it reads as part of the canvas,
     not a boxed tile. */
  background: linear-gradient(145deg, rgba(28,28,36,0.9) 0%, rgba(10,10,13,0) 78%);
  overflow: hidden;
  pointer-events: auto;
}
.portfolio-profile > * {
  position: relative;
  z-index: 1;
}
.portfolio-avatar {
  flex: 0 0 auto;
  width: clamp(3.6rem, 32%, 5.4rem);
  height: clamp(3.6rem, 32%, 5.4rem);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  /* accent ring + soft colored glow, pulled from the creator's color */
  border: 2px solid color-mix(in srgb, var(--profile-accent, #ff5724) 60%, #ffffff 12%);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--profile-accent, #ff5724) 18%, transparent),
    0 10px 26px color-mix(in srgb, var(--profile-accent, #ff5724) 32%, transparent);
}
.portfolio-meta {
  min-width: 0;
  width: 100%;
  text-align: center;
}
.portfolio-name {
  margin: 0 0 0.85rem;
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  /* allow long creator names to wrap rather than truncate */
  overflow-wrap: anywhere;
}
.portfolio-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--profile-accent, #ff5724) 45%, rgba(255,255,255,0.2));
  border-radius: 6px;
  background: color-mix(in srgb, var(--profile-accent, #ff5724) 16%, rgba(255,255,255,0.04));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}
.portfolio-join:hover {
  background: color-mix(in srgb, var(--profile-accent, #ff5724) 30%, rgba(255,255,255,0.06));
  border-color: color-mix(in srgb, var(--profile-accent, #ff5724) 70%, rgba(255,255,255,0.2));
  color: #fff;
}
.portfolio-join:active { transform: scale(0.98); }
.portfolio-works {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.85rem);
  /* margin-left set inline by layoutRail() = card side minus the tuck overlap. */
}
.work-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.work-thumb {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev-2);
  box-shadow: 0 10px 28px rgba(0,0,0,0.42);
  transition: transform 0.22s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.22s;
}
/* Top-light sheen + bottom readability scrim, baked into the tile. */
.work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 26%),
    linear-gradient(0deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.12) 40%, transparent 62%);
}
.work-thumb:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 24px 52px rgba(0,0,0,0.62);
  z-index: 5;
}
.tile-art { position: absolute; inset: 0; z-index: 0; }

/* Access badge (Free / Ep 1 free / Trailer / Members). */
.tile-badge {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.24rem 0.55rem; border-radius: 6px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.tile-badge svg { width: 11px; height: 11px; }
.tile-badge .ic-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.tile-badge-free { background: rgba(16,185,129,0.94); color: #04140d; }
.tile-badge-trailer { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.26); }
.tile-badge-lock { background: rgba(0,0,0,0.55); color: #eaeaf0; border: 1px solid rgba(255,255,255,0.16); }

/* Title (always) + meta (revealed on hover), bottom-left. */
.tile-body {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.8rem; z-index: 3;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.tile-title {
  font-size: clamp(0.85rem, 1vw, 1.08rem); font-weight: 800; color: #fff; line-height: 1.12;
  letter-spacing: 0.005em; text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.tile-meta {
  font-size: 0.66rem; font-weight: 600; color: rgba(255,255,255,0.66);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.work-thumb:hover .tile-meta { opacity: 1; transform: none; }

/* Centered play (or lock) ring, revealed on hover. */
.tile-cta {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  background: radial-gradient(58% 58% at 50% 42%, rgba(0,0,0,0.34), transparent 76%);
}
.work-thumb:hover .tile-cta { opacity: 1; }
.tile-play {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(4px); box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transform: scale(0.88); transition: transform 0.2s;
}
.work-thumb:hover .tile-play { transform: scale(1); }
.tile-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.tile-play.is-locked svg { fill: none; stroke: #fff; stroke-width: 2; margin-left: 0; }

/* Empty placeholder tile (shell) */
.work-thumb.is-shell {
  cursor: default;
  border: 1px dashed rgba(255,255,255,0.12);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.work-thumb.is-shell::before { display: none; }
.work-thumb.is-shell:hover { transform: none; box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.tile-art-shell { background: linear-gradient(160deg, #16161d 0%, #0f0f14 100%); }
.tile-shell-note {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  color: var(--text-faint); font-size: 0.8rem; font-weight: 600;
}

/* ---------- Creator page ---------- */
.creator-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(60vh, 540px);
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) var(--side-pad) clamp(2rem, 4vw, 3.2rem);
}
.creator-hero-wash {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 760px at 76% 18%, color-mix(in srgb, var(--c, #ff5724) 42%, transparent), transparent 62%),
    radial-gradient(900px 700px at 96% 88%, color-mix(in srgb, var(--c, #ff5724) 30%, transparent), transparent 60%),
    linear-gradient(120deg, #0c0a16 0%, #130b1d 48%, #0a0a0d 100%);
}
.creator-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--bg) 3%, rgba(10,10,13,0.35) 42%, transparent 72%),
    linear-gradient(90deg, rgba(8,8,11,0.78) 0%, rgba(8,8,11,0.25) 46%, transparent 72%);
}
.creator-hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(1rem, 2.2vw, 2rem);
  width: 100%; max-width: 62rem;
}
.creator-hero-avatar {
  flex: 0 0 auto;
  width: clamp(5rem, 9vw, 8rem); height: clamp(5rem, 9vw, 8rem);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff;
  border: 2px solid color-mix(in srgb, var(--c, #ff5724) 60%, #ffffff 14%);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--c, #ff5724) 18%, transparent),
    0 14px 34px color-mix(in srgb, var(--c, #ff5724) 34%, transparent);
}
.creator-hero-text { min-width: 0; }
.creator-hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c, #ff5724) 70%, #ffffff 30%);
}
.creator-hero-name {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.creator-hero-role {
  margin: 0 0 0.9rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dim);
}
.creator-hero-bio {
  margin: 0 0 1.3rem; max-width: 42rem;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem); line-height: 1.55; color: var(--text-dim);
}
.creator-hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.creator-rails {
  display: flex; flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--side-pad) 4rem;
}
.creator-rail { display: flex; flex-direction: column; gap: clamp(0.7rem, 1.4vw, 1.05rem); }
.creator-rail-head { display: flex; align-items: baseline; gap: 0.7rem; }
.creator-rail-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 800; letter-spacing: -0.01em;
}
.creator-rail-track {
  display: flex;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.creator-rail-track::-webkit-scrollbar { display: none; }
.creator-tile {
  flex: 0 0 auto;
  width: clamp(260px, 27vw, 380px);
  scroll-snap-align: start;
}
.creator-empty {
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.creator-empty-title { margin: 0 0 0.5rem; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; }
.creator-empty-sub { margin: 0; color: var(--text-dim); }

/* Creator cards on the home feed are links; hint the affordance. */
.portfolio-profile { text-decoration: none; }
.portfolio-profile:hover .portfolio-name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Arc Originals rail (free) ---------- */
.originals-rail {
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.4vw, 1.05rem);
}
.originals-head { display: flex; align-items: baseline; gap: 0.7rem; }
.originals-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 800; letter-spacing: -0.01em;
}
.originals-sub {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #10d488;
}
.originals-track {
  display: flex;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.originals-track::-webkit-scrollbar { display: none; }
.original-card {
  flex: 0 0 auto;
  width: clamp(290px, 31vw, 440px);
  scroll-snap-align: start;
}
.original-thumb .tile-title { font-size: clamp(1rem, 1.3vw, 1.25rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.72rem 1.5rem; border: 0; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  transition: transform 0.12s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-watch { color: #fff; background: var(--accent-grad); box-shadow: 0 8px 24px rgba(255,87,36,0.42); }
.btn-watch:hover { box-shadow: 0 10px 30px rgba(255,87,36,0.6); }
.btn-play-ring {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
}
.btn-play-ring svg { width: 16px; height: 16px; fill: #fff; }
.btn-info { color: var(--text); background: rgba(30,30,40,0.7); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.btn-info:hover { background: rgba(40,40,52,0.85); }
.btn-info svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.26rem 0.72rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; color: var(--text-dim);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
}
.pill-star { color: #ffd76b; }
.pill-free { background: rgba(16,185,129,0.94); border-color: transparent; color: #04140d; font-weight: 800; }
.pill-lock {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.16); color: #eaeaf0; font-weight: 700;
}
.pill-lock svg { width: 12px; height: 12px; }
.pill-lock .ic-stroke { fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- 3 x 3 grid ---------- */
.grid9 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.65rem, 1.2vw, 1rem) clamp(0.55rem, 1vw, 0.85rem);
}
.gcard { display: flex; flex-direction: column; min-width: 0; }
.gcard-art {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-elev-2); border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.42);
  transition: transform 0.22s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.22s;
}
.gcard-art img { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(135deg, #1c1c26, #26222f); }
.gcard-art:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,0.6); }

/* Neutral placeholder thumbnail used until real long-form art exists. */
.fauxthumb {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 1rem; text-align: center;
  background: linear-gradient(160deg, #1e1e28 0%, #15151c 100%);
}
/* Bottom fade dissolves each tile into the page background so they read as
   integrated, plus a soft vignette for depth. */
.fauxthumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,13,0.6) 14%, rgba(10,10,13,0) 38%),
    radial-gradient(80% 80% at 50% 32%, transparent, rgba(0,0,0,0.22));
}
.fauxthumb-tag { position: relative; z-index: 1; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.88); }
.fauxthumb-title { position: relative; z-index: 1; font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: 0.01em; color: #fff; line-height: 1.08; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.card-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0.7rem;
  font-size: 0.9rem; font-weight: 700; color: var(--text-dim);
  background: linear-gradient(135deg, #221f2e, #2c2436);
}

/* Narrow screens turn the whole rail into one horizontal, snap-scrolling strip
   with the creator card as its first item, then the video tiles. layoutRail()
   clears its inline width/height/margin here so these rules take over. */
@media (max-width: 560px) {
  .portfolio-rail {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 2.5vw, 0.85rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .portfolio-rail::-webkit-scrollbar { display: none; }
  .portfolio-profile {
    position: static;
    flex: 0 0 auto;
    width: min(52vw, 210px);
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    scroll-snap-align: start;
  }
  /* Lift the tiles out of their grid box so they sit in the rail flow,
     immediately after the creator card. */
  .portfolio-works { display: contents; }
  .work-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
}

/* ---------- Skeleton ---------- */
.is-loading .gcard-art { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.85; } }

/* ---------- State ---------- */
.state { padding: 4rem var(--side-pad); text-align: center; color: var(--text-dim); font-size: 1.05rem; }
.state button {
  margin-top: 1rem; padding: 0.6rem 1.3rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: transparent; color: var(--text); font-weight: 600;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(92vw, 720px); max-height: 88vh; overflow: auto;
  background: var(--bg-elev); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: pop 0.2s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center;
}
.modal-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.modal-art {
  position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center 25%;
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.modal-art-fade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-elev), rgba(21,21,28,0) 72%); }
.modal-play { position: relative; z-index: 2; }
.modal-body { padding: 1.3rem 1.6rem 1.8rem; }
.modal-title { margin: 0 0 0.7rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.modal-desc { margin: 0 0 0.9rem; color: var(--text); line-height: 1.55; }
.modal-by { margin: 0; color: var(--text-faint); font-size: 0.88rem; }
.modal-note { margin: 0.9rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-dim); }
.modal-note.is-paywall {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); font-weight: 500;
}
.btn-play-ring .ic-stroke { fill: none; stroke: #fff; stroke-width: 2; }

/* ---------- Inline player ---------- */
/* When the controller mounts the shared <video>, the art region becomes the
   stage: black backdrop, poster CTA + fade hidden, video filling 16:9. */
.modal-art.is-playing { background: #000; }
.modal-art.is-playing .modal-play,
.modal-art.is-playing .modal-art-fade { display: none; }
.arc-player-video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  background: #000; object-fit: contain;
}

/* ---------- Tile preview (hover / in-view) ---------- */
/* Muted looping preview layered above the poster art, beneath badges + title. */
.arc-tile-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; background: #000;
  opacity: 0; transition: opacity 0.28s ease;
  pointer-events: none;
}
.work-thumb.is-previewing .arc-tile-video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .arc-tile-video { display: none; }
}

/* ---------- Create button + upload modal ---------- */
.nav-create {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.46rem 0.95rem; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  background: var(--accent-grad); border: 0;
  box-shadow: 0 8px 22px rgba(255,87,36,0.34);
  transition: filter 0.15s, transform 0.15s;
}
.nav-create svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.nav-create:hover { filter: brightness(1.07); transform: translateY(-1px); }
@media (max-width: 560px) { .nav-create span { display: none; } .nav-create { padding: 0.46rem; } }

.upload-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.upload-modal[hidden] { display: none; }
.upload-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.74); backdrop-filter: blur(4px); }
.upload-card {
  position: relative; width: min(94vw, 900px); height: min(88vh, 720px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-elev); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7); animation: pop 0.2s ease;
}
.upload-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.upload-title { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.upload-close {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center;
}
.upload-close:hover { background: rgba(255,255,255,0.16); }
.upload-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.upload-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; text-align: center; padding: 2rem; transition: background 0.15s;
}
.upload-body.is-dragover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.upload-icon {
  width: 140px; height: 140px; border-radius: 50%; margin-bottom: 1.1rem;
  background: var(--bg-elev-2); display: grid; place-items: center; transition: background 0.15s, transform 0.15s;
}
.upload-body.is-dragover .upload-icon { background: color-mix(in srgb, var(--accent) 22%, var(--bg-elev-2)); transform: translateY(-3px); }
.upload-icon svg { width: 54px; height: 54px; fill: none; stroke: var(--text-dim); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-lead { margin: 0; font-size: 1.05rem; font-weight: 600; color: #fff; }
.upload-sub { margin: 0 0 1.2rem; font-size: 0.86rem; line-height: 1.5; color: var(--text-dim); max-width: 380px; }
.upload-select {
  padding: 0.64rem 1.5rem; border-radius: 999px; cursor: pointer;
  font-weight: 700; color: #fff; background: var(--accent-grad); border: 0;
  box-shadow: 0 8px 22px rgba(255,87,36,0.34);
}
.upload-select:hover { filter: brightness(1.07); }
.upload-foot {
  padding: 1rem 1.4rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; line-height: 1.5; color: var(--text-dim); text-align: center;
}

/* ---------- Account dropdown + settings popup ---------- */
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 130;
  min-width: 224px; padding: 0.4rem; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); animation: pop 0.16s ease;
}
.nav-menu[hidden] { display: none; }
.nav-menu-head { padding: 0.55rem 0.7rem 0.7rem; margin-bottom: 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-menu-head b { display: block; font-size: 0.92rem; color: #fff; }
.nav-menu-head span { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.1rem; }
.nav-menu-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.6rem 0.7rem; border-radius: 8px; border: 0; background: transparent;
  color: var(--text); font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none;
}
.nav-menu-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-menu-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.nav-menu-sep { height: 1px; margin: 0.3rem 0.2rem; background: rgba(255,255,255,0.08); }

.settings-modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; }
.settings-modal[hidden] { display: none; }
.settings-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.settings-card {
  position: relative; width: min(94vw, 560px); max-height: 88vh; overflow: auto;
  background: var(--bg-elev); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); animation: pop 0.2s ease;
}
.settings-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; background: var(--bg-elev); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.settings-title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.settings-close { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; }
.settings-close:hover { background: rgba(255,255,255,0.16); }
.settings-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.settings-body { padding: 0.4rem 1.4rem 1.4rem; }
.settings-group { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.settings-group:last-child { border-bottom: 0; }
.settings-group h3 { margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.settings-row > div { display: flex; flex-direction: column; gap: 0.15rem; }
.settings-row b { font-size: 0.94rem; font-weight: 600; color: #fff; }
.settings-row span { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }
.settings-btn { padding: 0.46rem 1rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 0.85rem; color: #fff; background: var(--accent-grad); text-decoration: none; white-space: nowrap; }
.settings-btn.ghost { background: rgba(255,255,255,0.1); }
.settings-btn:hover { filter: brightness(1.07); }

/* Toggle switch */
.switch { position: relative; flex: none; width: 46px; height: 27px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,0.18); transition: background 0.18s; }
.switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(19px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2.2rem; transform: translateX(-50%) translateY(1rem);
  z-index: 200; padding: 0.8rem 1.4rem; border-radius: 999px;
  background: rgba(21,21,28,0.97); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 0.92rem; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Creator Studio ---------- */
.studio {
  display: flex; flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: calc(var(--nav-h) + clamp(1.2rem, 3vw, 2rem)) var(--side-pad) 4rem;
  max-width: 1180px; margin: 0 auto; width: 100%;
}
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.studio-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.studio-sub { margin: 0.25rem 0 0; color: var(--text-dim); font-size: 0.92rem; }
.studio-banner {
  margin: 0; padding: 0.85rem 1.05rem; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, rgba(255,255,255,0.04));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,0.1));
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.5;
}
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 820px) { .studio-grid { grid-template-columns: 1fr; } }

.studio-card {
  background: var(--bg-elev);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}
.studio-card h2 { margin: 0 0 1.1rem; font-size: 1.08rem; font-weight: 800; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.76rem; font-weight: 600; color: var(--text-dim); }
.field-row { display: flex; gap: 1rem; }
.input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: var(--text);
  padding: 0.6rem 0.75rem; font: inherit; font-size: 0.92rem;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, rgba(255,255,255,0.2)); background: rgba(255,255,255,0.07); }
textarea.input { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.input-color { padding: 0.2rem; height: 2.4rem; width: 4rem; cursor: pointer; }

.file-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.9rem; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.file-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }
.file-btn.is-ghost { color: var(--text-faint); }

.avatar-edit { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.avatar-edit .av {
  flex: 0 0 auto;
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 800; color: #fff;
  background-size: cover; background-position: center;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,0.16));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Live preview banner */
.studio-preview .preview-banner {
  position: relative; overflow: hidden;
  border-radius: 12px; min-height: 230px;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.preview-wash { position: absolute; inset: 0; z-index: 0; }
.preview-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 0.9rem; min-width: 0; }
.preview-av {
  flex: 0 0 auto;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: #fff;
  background-size: cover; background-position: center;
  border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.preview-text { min-width: 0; }
.preview-cat { margin: 0 0 0.15rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, #fff 25%); }
.preview-name { margin: 0 0 0.3rem; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em; }
.preview-bio { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-dim); }

.studio-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.studio-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(0.8rem, 1.4vw, 1.1rem); }
.studio-empty { margin: 0; color: var(--text-faint); }
.studio-work { display: flex; flex-direction: column; gap: 0.55rem; }
.studio-thumb { box-shadow: 0 8px 22px rgba(0,0,0,0.4); cursor: default; }
.studio-thumb:hover { transform: none; box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
.studio-work-actions { display: flex; gap: 0.5rem; }
.studio-work-actions button {
  flex: 1; padding: 0.42rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: var(--text-dim); font: inherit; font-size: 0.78rem; font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.studio-work-actions button:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.studio-work-actions .danger:hover { color: #ff6b6b; border-color: rgba(255,80,80,0.4); }

/* Series add/edit modal */
.studio-modal { width: min(92vw, 560px); }
.studio-modal-body { padding: 1.5rem 1.6rem 1.7rem; }
.studio-modal-title { margin: 0 0 1.2rem; font-size: 1.35rem; font-weight: 800; }
.series-poster { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.series-poster-prev {
  flex: 0 0 auto; width: 9rem; aspect-ratio: 16 / 9; border-radius: 9px;
  background: var(--bg-elev-2); border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center; color: var(--text-faint); font-size: 0.72rem; font-weight: 600;
}
.series-poster-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.studio-modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.5rem; }

.series-videos { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.6rem; }
.series-video-none { margin: 0; color: var(--text-faint); font-size: 0.82rem; }
.series-video-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.45rem 0.7rem; border-radius: 7px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.series-video-name { min-width: 0; font-size: 0.82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-video-rm { flex: 0 0 auto; background: none; border: 0; color: var(--text-faint); font: inherit; font-size: 0.76rem; font-weight: 600; cursor: pointer; }
.series-video-rm:hover { color: #ff6b6b; }
.series-video-add { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.series-video-add .input { flex: 1; min-width: 9rem; }
.series-video-hint { margin: 0.55rem 0 0; font-size: 0.74rem; color: var(--text-faint); }
@media (max-width: 480px) {
  .series-poster { flex-direction: column; align-items: stretch; }
  .series-poster-prev { width: 100%; }
}

/* ---------- Footer ---------- */
.browse-footer { padding: 3rem var(--side-pad) 4rem; color: var(--text-faint); font-size: 0.88rem; border-top: 1px solid rgba(255,255,255,0.06); }
.browse-footer nav { display: flex; gap: 1.2rem; margin: 0.8rem 0; }
.browse-footer a:hover { color: var(--text); }
.browse-copy { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .gcard-art, .btn, .toast, .modal-card { transition: none; animation: none; }
}
