/* LOKUL TV — Netflix-faithful browse theme */
:root {
  --bg: #141414;
  --panel: #181818;
  --red: #e50914;
  --text: #fff;
  --muted: #a3a3a3;
  --green: #46d369;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  height: 68px; padding: 0 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,.7) 10%, transparent);
  transition: background-color .4s;
}
.nav.scrolled { background-color: rgb(20,20,20); }
.nav-left { display: flex; align-items: center; gap: 40px; }
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px; letter-spacing: 3px; color: var(--red); line-height: 1;
}
.logo em { font-style: normal; color: #fff; font-size: 20px; letter-spacing: 6px; margin-left: 8px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 13.5px; color: #e5e5e5; transition: color .2s; }
.nav-links a:hover { color: #b3b3b3; }
.nav-links a.active { font-weight: 700; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.icon-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.icon-btn:hover { color: #b3b3b3; }
.avatar {
  width: 32px; height: 32px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(135deg, #e50914 0%, #7a0d12 60%, #1a1a1a 100%);
  border: 2px solid transparent;
}
.avatar:hover { border-color: #fff; }

/* ---------- Billboard ---------- */
.billboard {
  position: relative;
  width: 100%;
  height: 56.25vw;
  max-height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.billboard-empty { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.billboard-video { position: absolute; inset: 0; }
.billboard-video video,
.billboard-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; border: 0;
}
.billboard-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(77deg, rgba(0,0,0,.65) 25%, transparent 60%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
}
.billboard-content {
  position: absolute; z-index: 2;
  left: 4%; bottom: 28%;
  max-width: 560px;
}
.billboard-kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700; letter-spacing: 4px; color: #fff;
  margin-bottom: 14px; text-shadow: 2px 2px 6px rgba(0,0,0,.7);
}
.kicker-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 30px;
  background: var(--red); color: #fff;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0;
  border-radius: 2px;
}
.billboard-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6.5vw, 110px);
  line-height: .92; letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 2px 2px 10px rgba(0,0,0,.75);
}
.billboard-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; color: #e5e5e5;
  margin-bottom: 14px; text-shadow: 1px 1px 6px rgba(0,0,0,.7);
}
.match { color: var(--green); font-weight: 700; }
.hd {
  font-size: 11px; font-weight: 600; color: #d2d2d2;
  border: 1px solid #8c8c8c; border-radius: 3px; padding: 1px 6px;
}
.hd.sm { font-size: 10px; }
.billboard-desc {
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1.55; color: #fff;
  max-width: 480px; margin-bottom: 26px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.8);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.billboard-actions { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  border: 0; border-radius: 4px; padding: 11px 30px 11px 24px;
  cursor: pointer; transition: background-color .2s;
}
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.78); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.42); }

/* Right-edge controls: maturity + mute */
.billboard-side {
  position: absolute; z-index: 2;
  right: 0; bottom: 30%;
  display: flex; align-items: center; gap: 14px;
}
.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(20,20,20,.4); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, transform .15s;
}
.round-btn:hover { border-color: #fff; transform: scale(1.06); }
.maturity {
  font-size: 14px; color: #d2d2d2;
  border-left: 3px solid #d2d2d2;
  background: rgba(20,20,20,.35);
  padding: 8px 44px 8px 12px;
}
.maturity.sm { font-size: 11px; padding: 4px 10px 4px 8px; border-left-width: 2px; }

/* Live billboard */
.billboard-live { background: radial-gradient(ellipse at 30% 20%, #3a0d10 0%, #141414 60%); }
.billboard-live .billboard-video { position: absolute; inset: auto 4% 12% auto; width: 52%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(229,9,20,.25); }
.billboard-live .billboard-content { bottom: auto; top: 50%; transform: translateY(-50%); max-width: 40%; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 800; letter-spacing: 2px;
  padding: 8px 18px; border-radius: 6px; margin-bottom: 16px; font-size: 14px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .45; transform: scale(.8);} }
/* Live: nav pill, Live Now card, go-live toast, off-air watch page */
.nav-live { display: inline-flex; align-items: center; gap: 7px; margin-left: 22px; background: var(--red); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: 1.5px; padding: 5px 11px; border-radius: 4px; text-decoration: none; }
.nav-live .live-dot { width: 7px; height: 7px; }
.card-live .card-img { position: relative; }
.live-tile { display: grid; place-items: center; aspect-ratio: 16/9; background: radial-gradient(ellipse at 30% 20%, #5a0f14 0%, #1a1a1a 70%); border-radius: 4px; }
.live-tile-l { background: var(--red); font-family: 'Bebas Neue', sans-serif; font-size: 44px; width: 34px; height: 52px; display: grid; place-items: center; }
.live-flag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 3px; }
.live-flag .live-dot { width: 6px; height: 6px; }
/* "We just went live" toast for visitors already on the page */
.live-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); z-index: 100; display: flex; align-items: center; gap: 14px; background: #181818; border: 1px solid #333; border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 16px 14px 18px; box-shadow: 0 16px 48px rgba(0,0,0,.6); transition: transform .35s ease; max-width: calc(100% - 32px); }
.live-toast.show { transform: translate(-50%, 0); }
.live-toast strong { display: block; font-size: 15px; }
.live-toast span.sub { color: #a3a3a3; font-size: 13px; }
.live-toast .btn { padding: 9px 16px; font-size: 15px; white-space: nowrap; }
.live-toast .x { background: none; border: 0; color: #a3a3a3; font-size: 22px; cursor: pointer; padding: 0 4px; }
.watch-offline { margin: 120px auto 0; text-align: center; max-width: 560px; }
.watch-offline .spin { width: 42px; height: 42px; border: 3px solid #333; border-top-color: var(--red); border-radius: 50%; margin: 24px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 3; margin-top: -6vw; padding-bottom: 50px; }
.row { margin-bottom: 3vw; }
.row-title {
  font-size: 1.4vw; font-weight: 600; color: #e5e5e5;
  padding: 0 4%; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.row-title:hover { color: #fff; }
.explore {
  font-size: 12px; color: #54b9c5; font-weight: 500;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.row-title:hover .explore { opacity: 1; transform: none; }
.row-body { position: relative; }
.row-scroller {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 12px 4%;
  scrollbar-width: none; scroll-behavior: smooth;
}
.row-scroller::-webkit-scrollbar { display: none; }
.pager {
  position: absolute; top: 0; bottom: 0; z-index: 10;
  width: 4%; min-width: 44px;
  background: rgba(20,20,20,.55); border: 0; color: #fff;
  font-size: 40px; cursor: pointer;
  opacity: 0; transition: opacity .25s, background .2s;
  display: flex; align-items: center; justify-content: center;
}
.row-body:hover .pager { opacity: 1; }
.pager:hover { background: rgba(20,20,20,.8); font-size: 48px; }
.pager-left { left: 0; border-radius: 0 4px 4px 0; }
.pager-right { right: 0; border-radius: 4px 0 0 4px; }

/* Cards */
.card {
  position: relative; flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  border-radius: 4px; cursor: pointer;
  transition: transform .3s ease .1s;
}
.card-img img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 4px; background: #000;
}
.card-hover {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--panel); border-radius: 0 0 4px 4px;
  padding: 14px; z-index: 20;
  box-shadow: 0 18px 40px rgba(0,0,0,.65);
}
.card:hover { transform: scale(1.35); z-index: 15; transition-delay: 0s; }
.card:hover .card-hover { display: block; }
.card:hover .card-img img { border-radius: 4px 4px 0 0; }
.card-btns { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-play {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #000;
  display: inline-flex; align-items: center; justify-content: center;
}
.card-play:hover { background: rgba(255,255,255,.8); }
.card-plus, .card-more {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #6d6d6e; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.card-plus:hover, .card-more:hover { border-color: #fff; }
.card-more { margin-left: auto; font-size: 22px; }
.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #d2d2d2; margin-bottom: 8px;
}
.card-title { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-show { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 40px 4% 50px; color: #808080; font-size: 13px; max-width: 1000px; }
.footer-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 20px;
  margin-bottom: 26px;
}
.footer-links a:hover { text-decoration: underline; }
.service-code {
  background: transparent; color: #808080;
  border: 1px solid #808080; padding: 7px 12px; font-size: 13px;
  cursor: pointer; margin-bottom: 22px;
}
.service-code:hover { color: #fff; border-color: #fff; }
.copy { font-size: 12px; }
.admin-link { color: #6b6b6b; text-decoration: none; margin-left: 8px; }
.admin-link:hover { color: #b3b3b3; text-decoration: underline; }

/* ---------- Watch page ---------- */
.watch-page .nav { background-color: rgb(20,20,20); }
.watch-wrap { padding: 100px 4% 60px; max-width: 1120px; margin: 0 auto; }
.player {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Video fills the 16:9 frame without cropping (letterboxes non-16:9 sources). */
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.watch-meta { margin-top: 28px; max-width: 760px; }
.watch-kicker { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--red); margin-bottom: 8px; }
.watch-meta h1 { font-size: 30px; margin-bottom: 12px; }
.watch-meta p { color: var(--muted); line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px; font-weight: 600; color: #d2d2d2;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Admin ---------- */
.admin-wrap { max-width: 560px; margin: 0 auto; padding: 120px 4% 80px; }
.admin-card { background: var(--panel); border-radius: 8px; padding: 36px; }
.admin-card h1 { font-size: 24px; margin-bottom: 8px; }
.admin-card p.lead { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #d2d2d2; }
.field input {
  width: 100%; background: #333; border: 1px solid #555; border-radius: 4px;
  color: #fff; font-size: 15px; padding: 12px 14px;
}
.field input:focus { outline: none; border-color: #fff; background: #454545; }
.field input[readonly] { opacity: .6; }
.btn-red { background: var(--red); color: #fff; width: 100%; justify-content: center; margin-top: 8px; }
.btn-red:hover { background: #f6121d; }
.alert { border-radius: 4px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: rgba(229,9,20,.15); border: 1px solid var(--red); color: #ffb3b8; }
.alert-ok { background: rgba(70,211,105,.12); border: 1px solid var(--green); color: #b9f5cc; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid #333; }
.toggle-row .t-label { font-weight: 600; }
.toggle-row .t-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.switch { position: relative; width: 56px; height: 30px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #555; border-radius: 30px; cursor: pointer; transition: .25s; }
.slider:before { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider:before { transform: translateX(26px); }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { height: 56px; }
  .logo { font-size: 26px; }
  /* Stacked billboard: video on top, content below in normal flow — no overlap possible */
  .billboard { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .billboard-video { position: relative; inset: auto; aspect-ratio: 16/9; flex: 0 0 auto; }
  .billboard-video video,
  .billboard-video iframe { position: absolute; inset: 0; transform: none; top: 0; left: 0; }
  .billboard-vignette { background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 30%); }
  .billboard-content { position: static; padding: 18px 4% 6px; max-width: 100%; }
  .billboard-kicker { font-size: 12px; letter-spacing: 3px; }
  .billboard-title { font-size: clamp(38px, 11vw, 64px); }
  .billboard-desc { -webkit-line-clamp: 3; font-size: 14px; margin-bottom: 18px; }
  .billboard-actions { flex-wrap: wrap; }
  .btn { font-size: 15px; padding: 10px 22px 10px 18px; }
  .billboard-side { position: absolute; right: 10px; bottom: 10px; z-index: 3; }
  .round-btn { width: 38px; height: 38px; }
  .maturity { padding: 6px 18px 6px 10px; font-size: 12px; }
  .rows { margin-top: 0; }
  .row-title { font-size: 16px; }
  .card { width: 200px; }
  .card:hover { transform: scale(1.12); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .nav-live { margin-left: 12px; }
  .billboard-live { padding-top: 56px; }
  .watch-offline { margin-top: 90px; padding: 0 4%; }
  /* Live billboard stacks too */
  .billboard-live .billboard-video { position: relative; inset: auto; width: 100%; aspect-ratio: 16/9; border-radius: 0; }
  .billboard-live .billboard-content { position: static; transform: none; max-width: 100%; padding: 18px 4%; }
}

/* ---------- Accounts in the nav ---------- */
.nav-signin { background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 4px; }
.nav-signin:hover { background: #f6121d; }
.acct-menu { position: relative; }
.acct-menu summary { list-style: none; }
.acct-menu summary::-webkit-details-marker { display: none; }
.avatar-on { display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.acct-pop { position: absolute; right: 0; top: 44px; background: rgba(0,0,0,.92); border: 1px solid #333; border-radius: 6px; min-width: 220px; padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.acct-pop a { display: block; padding: 9px 16px; font-size: 14px; color: #e5e5e5; }
.acct-pop a:hover { background: #1f1f1f; color: #fff; }
.acct-who { padding: 6px 16px 10px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid #2a2a2a; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Pre-roll player ---------- */
.play-gate { position: absolute; inset: 0; z-index: 3; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1) 60%); }
.play-gate[hidden] { display: none; }
.play-gate-btn { width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; transition: transform .2s; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.play-gate-btn svg { margin-left: 5px; }
.play-gate:hover .play-gate-btn { transform: scale(1.07); }
.play-gate.busy .play-gate-btn { opacity: .6; }
.ad-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; }
.ad-ui[hidden] { display: none; }
.ad-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; gap: 10px; background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); }
.ad-pill { background: #f5c518; color: #000; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 3px; letter-spacing: .3px; }
.ad-count { background: rgba(0,0,0,.65); padding: 7px 13px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.ad-count b { font-variant-numeric: tabular-nums; font-size: 15px; margin-left: 4px; }
.ad-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 16px 18px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); }
.ad-next { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 8px 14px 8px 8px; max-width: 60%; min-width: 0; }
.ad-next img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; flex: 0 0 96px; }
.ad-next div { min-width: 0; }
.ad-next small { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ad-next strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cta { pointer-events: auto; background: #fff; color: #000; font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 4px; white-space: nowrap; }
.ad-cta[hidden] { display: none; }
.ad-bar { height: 4px; background: rgba(255,255,255,.2); }
.ad-bar i { display: block; height: 100%; width: 0; background: #f5c518; transition: width .25s linear; }

/* Members-only */
.members-flag { display: inline-block; background: #f5c518; color: #000; font-weight: 800; font-size: 11px; letter-spacing: 1.2px; padding: 3px 8px; border-radius: 3px; }
.members-flag.sm { font-size: 10px; padding: 2px 6px; vertical-align: 2px; }
.card-img { position: relative; }
.card-flag { position: absolute; top: 8px; right: 8px; font-size: 9.5px; padding: 2px 6px; }
.player-locked { background: #000 center/cover no-repeat; display: grid; place-items: center; }
.player-locked::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.lock-panel { position: relative; text-align: center; max-width: 520px; padding: 24px; }
.lock-panel h2 { font-size: 28px; margin: 14px 0 10px; }
.lock-panel p { color: #d2d2d2; line-height: 1.55; margin-bottom: 18px; }
.lock-sub { font-size: 13.5px; margin-top: 14px; }
.lock-sub a { text-decoration: underline; }

/* Creator byline / follow / join */
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.byline-who { display: flex; align-items: center; gap: 12px; margin-right: 6px; }
.byline-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #333; flex: 0 0 44px; }
.byline-av-txt { display: grid; place-items: center; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, #e50914, #5b0a0e); }
.byline-who strong { display: block; font-size: 16px; }
.byline-who small { display: block; color: var(--muted); font-size: 13px; }
.btn-follow, .btn-join, .btn-joined { font: inherit; font-weight: 700; font-size: 14px; border-radius: 4px; padding: 8px 16px; cursor: pointer; border: 0; }
.btn-follow { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-follow:hover { background: rgba(255,255,255,.2); }
.btn-follow.on { background: transparent; color: var(--muted); }
.btn-join { background: #f5c518; color: #000; }
.btn-join:hover { background: #ffd84a; }
.btn-joined { color: #f5c518; background: rgba(245,197,24,.12); cursor: default; }
.inline-form { display: inline; }

/* Public forms / account pages */
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 110px 4% 80px; }
.page-wrap h1 { font-size: 34px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
.panel { background: var(--panel); border: 1px solid #262626; border-radius: 8px; padding: 26px; margin-bottom: 20px; }
.panel h2 { font-size: 19px; margin-bottom: 6px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.field textarea, .field select { width: 100%; background: #333; border: 1px solid #555; border-radius: 4px; color: #fff; font: inherit; font-size: 15px; padding: 12px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { color: #8c8c8c; font-size: 12.5px; margin-top: 6px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.btn-red.auto { width: auto; }
.link-red { color: #ff5b63; text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d2d2d2; margin: 6px 0 18px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: 0 0 18px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pkg { position: relative; display: block; cursor: pointer; background: #1f1f1f; border: 2px solid #333; border-radius: 8px; padding: 18px; }
.pkg input { position: absolute; opacity: 0; }
.pkg:has(input:checked) { border-color: var(--red); background: #241315; }
.pkg strong { display: block; font-size: 18px; }
.pkg .price { font-size: 28px; font-weight: 800; margin: 6px 0 2px; }
.pkg small { color: var(--muted); }
.up-box { border: 2px dashed #555; border-radius: 8px; padding: 26px; text-align: center; cursor: pointer; color: var(--muted); }
.up-box:hover, .up-box.over { border-color: var(--red); color: #fff; }
.up-box.ok { border-style: solid; border-color: var(--green); color: #b9f5cc; }
.up-prog { height: 6px; background: #333; border-radius: 3px; overflow: hidden; margin-top: 12px; display: none; }
.up-prog i { display: block; height: 100%; width: 0; background: var(--red); }
.status-big { display: inline-block; font-weight: 800; letter-spacing: 1px; padding: 6px 14px; border-radius: 4px; background: #333; margin-bottom: 14px; }
.status-big.ok { background: rgba(70,211,105,.18); color: var(--green); }
.status-big.warn { background: rgba(245,197,24,.18); color: #f5c518; }
.status-big.err { background: rgba(229,9,20,.2); color: #ff8a90; }
.tbl-plain { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl-plain th { text-align: left; color: #8c8c8c; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 8px 10px; border-bottom: 1px solid #333; }
.tbl-plain td { padding: 12px 10px; border-bottom: 1px solid #262626; }

/* Channel page */
.chan-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.chan-av { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #333; flex: 0 0 104px; }
.chan-av-txt { display: grid; place-items: center; font-size: 44px; font-weight: 800; background: linear-gradient(135deg, #e50914, #5b0a0e); }
.chan-head h1 { font-size: 36px; margin-bottom: 4px; }
.chan-stats { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.chan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid-cards .card { width: auto; }

@media (max-width: 800px) {
  .ad-next { max-width: 100%; }
  .ad-next img { width: 64px; flex-basis: 64px; }
  .ad-cta { font-size: 13px; padding: 7px 11px; }
  .ad-bottom { flex-direction: column; align-items: stretch; }
  .ad-top { padding: 10px; }
  .ad-count { font-size: 12.5px; }
  .play-gate-btn { width: 64px; height: 64px; }
  .ad-next { display: none; }
  .ad-bottom { align-items: flex-end; }
  .form-2 { grid-template-columns: 1fr; }
  .page-wrap { padding-top: 80px; }
  .page-wrap h1 { font-size: 28px; }
  .lock-panel h2 { font-size: 20px; }
  .lock-panel p { font-size: 14px; margin-bottom: 12px; }
  .chan-head h1 { font-size: 28px; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Creator landing */
.creator-hero { padding: 30px 0 34px; max-width: 760px; }
.creator-hero h1 { font-size: 48px; margin-bottom: 12px; }
.creator-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 4px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); font-weight: 800; margin-bottom: 12px; }
.rules { margin: 0; padding-left: 20px; color: #d4d4d4; line-height: 1.55; }
.rules li { margin-bottom: 10px; }
.pkg-pop { position: absolute; top: -11px; right: 14px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 9px; border-radius: 3px; }
.pkg p { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.45; }
@media (max-width: 800px) {
  .creator-steps { grid-template-columns: 1fr; }
  .creator-hero h1 { font-size: 34px; }
}
