/* Fonts served by this website (Outfit and Cinzel, SIL Open Font License) */
@font-face{font-family:"Outfit";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/outfit-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Outfit";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/outfit-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Outfit";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/outfit-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Outfit";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/outfit-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Outfit";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/outfit-latin-ext-800-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/outfit-latin-800-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/cinzel-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/cinzel-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/cinzel-latin-ext-800-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/cinzel-latin-800-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --bg: #120e08;
  --bg-2: #18130b;
  --panel: #1d170e;
  --panel-2: #241c11;
  --border: #33291a;
  --border-gold: #6b5223;
  --text: #e8e0d4;
  --muted: #9a8e7e;
  --gold: #d4a030;
  --gold-2: #f0c35a;
  --gold-dark: #a87a1c;
  --red: #e0534a;
  --green: #6cbf6c;
  --blue: #6fa8dc;
  --purple: #b48ad6;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --sidebar-w: 320px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 500px at 15% -10%, rgba(212, 160, 48, .08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(224, 83, 74, .05), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.topline { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 8, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header .container { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-dark));
  color: #1a1206; box-shadow: 0 0 18px rgba(212, 160, 48, .35);
}
.logo-mark svg { width: 18px; height: 18px; margin-left: 2px; }
.logo-text { font-family: "Cinzel", serif; font-weight: 800; font-size: 20px; letter-spacing: .5px; line-height: 1; }
.logo-text span { color: var(--gold); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  transition: .2s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--gold-2); background: rgba(212, 160, 48, .16); border-color: var(--border-gold); }
.nav .badge-new {
  font-size: 10px; font-weight: 700; padding: 1px 6px; margin-left: 4px;
  border-radius: 20px; background: var(--red); color: #fff; vertical-align: 1px;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 10px; height: 38px; width: 260px;
  transition: .2s;
}
.search:focus-within { border-color: var(--border-gold); }
.search svg { width: 16px; color: var(--muted); flex-shrink: 0; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 8px; cursor: pointer; }
.lang svg { width: 16px; }
.divider-v { width: 1px; height: 24px; background: var(--border); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  color: #1a1206; box-shadow: 0 4px 16px rgba(212, 160, 48, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-outline { border-color: var(--border-gold); color: var(--gold); background: rgba(212, 160, 48, .06); }
.btn-outline:hover { background: rgba(212, 160, 48, .14); }
.btn-dark { background: var(--panel-2); border-color: var(--border); }
.btn-dark:hover { border-color: var(--border-gold); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel);
  color: var(--muted); cursor: pointer; transition: .2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--border-gold); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: .25s; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: .25s; padding: 20px; overflow-y: auto;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.drawer-panel a:hover, .drawer-panel a.active { color: var(--gold); background: rgba(212, 160, 48, .1); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ---------- Layout ---------- */
.page { padding: 20px 0 60px; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.main { min-width: 0; display: grid; gap: 28px; }
.sidebar { display: grid; gap: 16px; align-content: start; }

.crumbs {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.crumbs a { color: var(--gold); }
.crumbs svg { width: 14px; height: 14px; color: var(--gold); }

/* Stat tiles (2x2) */
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-tile {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.stat-tile .ic {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(212, 160, 48, .12); color: var(--gold);
}
.stat-tile .ic.green { background: rgba(108, 191, 108, .12); color: var(--green); }
.stat-tile .ic.red { background: rgba(224, 83, 74, .12); color: var(--red); }
.stat-tile .ic.blue { background: rgba(84, 156, 232, .13); color: #5ea4ee; }
.stat-tile .ic svg { width: 16px; height: 16px; }
.stat-tile strong { display: block; font-size: 16px; line-height: 1; position: relative; top: 7px; margin-bottom: 10px; }
.stat-tile small { font-size: 11px; color: var(--muted); }

/* Live list (left sidebar) */
.live-list { display: grid; gap: 4px; max-height: 420px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.live-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--radius-sm); transition: .2s; }
.live-row:hover { background: rgba(212, 160, 48, .07); }
.live-row .thumb { aspect-ratio: 16 / 10; border-radius: 6px; }
.live-row .thumb .tag { position: absolute; left: 3px; top: 3px; z-index: 2; font-size: 8px; padding: 1px 4px; border-radius: 3px; }
.live-row strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row small { display: block; font-size: 11px; color: var(--muted); }
.live-row .count { font-size: 11px; font-weight: 700; color: var(--green); background: rgba(108, 191, 108, .12); padding: 2px 6px; border-radius: 5px; }
.panel-title .right { margin-left: auto; color: var(--red); font-size: 12px; }

/* Banner column (right sidebar) */
.banner {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 300 / 130; transition: .25s;
}
.banner:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.banner .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.banner .thumb-label { font-size: 22px; }
.banner small {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 6px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: var(--gold-2); text-align: center;
}

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 48, .5), transparent);
}
.panel-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.panel-title svg { width: 16px; height: 16px; }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-family: "Cinzel", serif; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-head .link { color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; }
.section-head .link:hover { text-decoration: underline; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(224, 83, 74, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224, 83, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 83, 74, 0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 340px;
  display: grid; grid-template-columns: 1.4fr 1fr; background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.hero-media { position: relative; min-height: 340px; }
.hero-media .thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--panel)), linear-gradient(0deg, rgba(18, 14, 8, .7), transparent 50%);
}
.hero-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212, 160, 48, .92); color: #1a1206; box-shadow: 0 0 0 10px rgba(212, 160, 48, .18), var(--shadow);
  transition: .2s;
}
.hero-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.hero-play svg { width: 28px; height: 28px; margin-left: 4px; }
.hero-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 2; }
.hero-body h1 { font-family: "Cinzel", serif; font-size: 34px; line-height: 1.15; }
.hero-body p { color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.streamer { display: flex; align-items: center; gap: 12px; }
.streamer strong { display: block; font-size: 15px; }
.streamer small { color: var(--muted); font-size: 13px; }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.tag-live { background: var(--red); border-color: var(--red); color: #fff; }
.tag-gold { background: rgba(212, 160, 48, .13); border-color: var(--border-gold); color: var(--gold); }
.tag-sponsored { background: rgba(180, 138, 214, .12); border-color: rgba(180, 138, 214, .35); color: var(--purple); }
.viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.viewers svg { width: 14px; }

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #1a1206;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-dark));
  border: 2px solid var(--bg);
}
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.live { box-shadow: 0 0 0 2px var(--red); }
.av-2 { background: linear-gradient(145deg, #e88a7a, #a13c30); color: #fff; }
.av-3 { background: linear-gradient(145deg, #8fc3ec, #2f6a9c); color: #fff; }
.av-4 { background: linear-gradient(145deg, #c9a6e6, #6c3f94); color: #fff; }
.av-5 { background: linear-gradient(145deg, #9bd69b, #3b7d3b); color: #fff; }
.av-6 { background: linear-gradient(145deg, #f0b77a, #a8601c); color: #fff; }

/* ---------- Thumbnails (placeholder art) ---------- */
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  background: #2a2014;
}
.thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .12), transparent 30%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px);
}
.thumb .thumb-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Cinzel", serif; font-weight: 800; font-size: clamp(16px, 2.2vw, 28px);
  color: rgba(255, 255, 255, .85); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); letter-spacing: 1px; text-align: center; padding: 0 12px;
}
.t1 { background: linear-gradient(135deg, #5a2a10, #c0702a 55%, #f0c35a); }
.t2 { background: linear-gradient(135deg, #10202e, #2f6a9c 60%, #8fc3ec); }
.t3 { background: linear-gradient(135deg, #2a0f0f, #8f2a22 55%, #e0534a); }
.t4 { background: linear-gradient(135deg, #1c1030, #6c3f94 55%, #c9a6e6); }
.t5 { background: linear-gradient(135deg, #0f2410, #3b7d3b 55%, #9bd69b); }
.t6 { background: linear-gradient(135deg, #1a1408, #6b5223 50%, #d4a030); }
.t7 { background: linear-gradient(135deg, #0d1a1c, #24686e 55%, #7fd0c8); }
.t8 { background: linear-gradient(135deg, #2b1508, #a8601c 55%, #f0b77a); }

.thumb .corner-tl, .thumb .corner-br, .thumb .corner-bl, .thumb .corner-tr { position: absolute; z-index: 2; }
.thumb .corner-tl { left: 10px; top: 10px; display: flex; gap: 6px; }
.thumb .corner-tr { right: 10px; top: 10px; }
.thumb .corner-br { right: 10px; bottom: 10px; }
.thumb .corner-bl { left: 10px; bottom: 10px; }
.duration { font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .75); padding: 2px 7px; border-radius: 5px; }
.overlay-viewers { font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .7); padding: 2px 8px; border-radius: 5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); transition: .25s;
}
.card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { border-radius: 0; }
.card-body { display: flex; gap: 12px; padding: 14px; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
}
.card-foot .more { font-weight: 600; transition: .2s; }
.card:hover .card-foot .more { color: var(--gold); }
.card-info { min-width: 0; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--gold-2); }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card-meta a:hover { color: var(--gold); }

/* ---------- Categories ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-gold); }
.chip.active { background: rgba(212, 160, 48, .13); border-color: var(--border-gold); color: var(--gold); }

.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 3 / 4; display: flex; align-items: end; padding: 14px; transition: .25s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--border-gold); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 4, .9), transparent 60%); }
.cat-card > div { position: relative; z-index: 2; }
.cat-card strong { display: block; font-size: 15px; }
.cat-card small { color: var(--muted); font-size: 12px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------- Sidebar widgets ---------- */
.stats { display: grid; gap: 10px; }
.stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.stat strong { color: var(--text); font-size: 16px; }
.stat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 8px; }

.list { display: grid; gap: 4px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); transition: .2s; }
.list-item:hover { background: rgba(212, 160, 48, .07); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { width: 22px; font-weight: 800; color: var(--muted); text-align: center; font-size: 14px; }
.rank.r1 { color: var(--gold-2); }
.rank.r2 { color: #cfd6de; }
.rank.r3 { color: #d49a6a; }

.promo {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 22px; border: 1px solid #3b3a6e;
  background: radial-gradient(circle at 80% 0%, rgba(114, 137, 218, .55), transparent 60%), linear-gradient(160deg, #20204a, #121226);
}
.promo h3 { font-family: "Cinzel", serif; font-size: 20px; margin-bottom: 6px; }
.promo p { color: #b9bde0; font-size: 14px; margin-bottom: 16px; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { filter: brightness(1.1); }

.promo-gold { border-color: var(--border-gold); background: radial-gradient(circle at 90% 10%, rgba(212, 160, 48, .35), transparent 60%), linear-gradient(160deg, #2a1f0e, #161008); }
.promo-gold p { color: var(--muted); }
.promo ul { list-style: none; display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.promo li::before { content: "◆"; color: var(--gold); margin-right: 8px; font-size: 10px; vertical-align: 2px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--border-gold); color: var(--text); }
.pagination a.active { background: linear-gradient(180deg, var(--gold-2), var(--gold-dark)); color: #1a1206; border-color: transparent; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 12px; flex-wrap: wrap; }

/* ---------- Watch page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.player .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
  display: flex; align-items: center; gap: 14px;
}
.player-controls button { background: none; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; opacity: .9; }
.player-controls button:hover { color: var(--gold-2); }
.player-controls svg { width: 20px; height: 20px; }
.progress { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 4px; position: relative; }
.progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--red); border-radius: 4px; }
.player-top { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 8px; }

.watch-info { margin-top: 18px; display: grid; gap: 16px; }
.watch-info h1 { font-size: 22px; line-height: 1.3; }
.watch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.watch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.description { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--muted); }
.description strong { color: var(--text); }

.chat { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 56px); position: sticky; top: calc(var(--header-h) + 20px); padding: 0; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-head .panel-title { margin: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; gap: 10px; align-content: start; font-size: 14px; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.msg b { font-weight: 700; margin-right: 6px; }
.msg .mod { font-size: 10px; background: var(--green); color: #0d1a0d; border-radius: 4px; padding: 0 5px; margin-right: 5px; font-weight: 800; vertical-align: 1px; }
.msg .sub { font-size: 10px; background: var(--gold); color: #1a1206; border-radius: 4px; padding: 0 5px; margin-right: 5px; font-weight: 800; vertical-align: 1px; }
.msg.system { color: var(--gold); font-style: italic; font-size: 13px; }
.chat-form { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--border); outline: 0; transition: .2s; font-size: 14px;
}
.input:focus { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(212, 160, 48, .12); }
.input::placeholder { color: var(--muted); }

.up-next { display: grid; gap: 12px; }
.mini { display: grid; grid-template-columns: 160px 1fr; gap: 12px; cursor: pointer; }
.mini .thumb { border: 1px solid var(--border); }
.mini:hover .card-title { color: var(--gold-2); }
.mini .card-title { font-size: 14px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 2px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--border); }
.auth-art .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 14, 8, .95), rgba(18, 14, 8, .2)); }
.auth-art-text { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 2; }
.auth-art-text h2 { font-family: "Cinzel", serif; font-size: 38px; line-height: 1.15; margin-bottom: 12px; }
.auth-art-text p { color: var(--muted); max-width: 440px; }
.auth-form-side { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: "Cinzel", serif; font-size: 30px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.tabs a { text-align: center; padding: 8px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs a.active { background: rgba(212, 160, 48, .15); color: var(--gold); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; color: var(--muted); }
.field-row a { color: var(--gold); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--gold); font-weight: 600; }
.form-error { display: none; color: var(--red); font-size: 13px; margin-top: -8px; margin-bottom: 12px; }
.form-error.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1600px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1440px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr) 250px; }
  .search { width: 200px; }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 1280px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); }
  .sidebar-right { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { display: none; }
}
@media (max-width: 1100px) {
  .layout, .watch { grid-template-columns: minmax(0, 1fr); }
  .sidebar-left { order: 2; }
  .sidebar-right { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { position: static; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { height: 520px; }
  .nav, .search, .lang, .divider-v { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-media { min-height: 240px; }
  .hero-media::after { background: linear-gradient(0deg, var(--panel), transparent 60%); }
  .hero-body { padding: 8px 22px 26px; }
  .hero-body h1 { font-size: 26px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 { font-size: 20px; }
  .mini { grid-template-columns: 130px 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Header actions ---------- */
.hdr-action.is-active { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 1700px) {
  .hdr-action { width: 38px; padding: 0; }
  .hdr-action span { display: none; }
}
@media (max-width: 1100px) { .hdr-action { display: none; } }

/* ---------- Creator pages (upload / studio) ---------- */
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title h1 { font-family: "Cinzel", serif; font-size: 28px; }
.page-title p { color: var(--muted); font-size: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

.dropzone {
  border: 2px dashed var(--border-gold); border-radius: var(--radius); padding: 48px 20px;
  text-align: center; background: rgba(212, 160, 48, .04); cursor: pointer; transition: .2s;
  display: grid; justify-items: center; gap: 10px;
}
.dropzone:hover, .dropzone.drag { background: rgba(212, 160, 48, .1); border-color: var(--gold); }
.dropzone .big-ic {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212, 160, 48, .14); color: var(--gold); box-shadow: 0 0 0 10px rgba(212, 160, 48, .06);
}
.dropzone .big-ic svg { width: 30px; height: 30px; }
.dropzone h3 { font-size: 20px; }
.dropzone p { color: var(--muted); font-size: 14px; }
.dropzone input { display: none; }

.file-row { display: none; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); }
.file-row.show { display: flex; }
.file-row .grow { flex: 1; min-width: 0; }
.file-row strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row small { color: var(--muted); font-size: 12px; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2)); transition: width .3s; }

textarea.input { height: 120px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hint { font-size: 12px; color: var(--muted); }

.thumb-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb-pick .thumb { cursor: pointer; border: 2px solid transparent; }
.thumb-pick .thumb.sel { border-color: var(--gold); }
.thumb-pick .add { display: grid; place-items: center; border: 2px dashed var(--border); color: var(--muted); background: transparent; }
.thumb-pick .add svg { width: 22px; height: 22px; }

.radio-list { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; }
.radio-card:has(input:checked) { border-color: var(--border-gold); background: rgba(212, 160, 48, .07); }
.radio-card input { accent-color: var(--gold); margin-top: 4px; }
.radio-card strong { display: block; font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12px; }

.preview-card .thumb { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 12px; }

/* Studio */
.studio-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.studio-preview .offline {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #15110a 0 14px, #18130b 14px 28px);
}
.studio-preview .offline div { display: grid; gap: 8px; justify-items: center; }
.studio-preview .offline > div > span svg { width: 44px; height: 44px; color: var(--muted); }
.studio-preview .offline .btn { margin-top: 6px; }
.studio-preview .offline p { color: var(--muted); font-size: 14px; }
.studio-preview .badge { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 8px; }
.studio-preview.is-live .offline { display: none; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 30px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.on { color: #fff; background: var(--red); border-color: var(--red); }
.status.on i { background: #fff; animation: pulse 1.6s infinite; }

.key-field { display: flex; gap: 8px; }
.key-field .input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .5px; }

.health { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.health div { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); }
.health small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.health strong { font-size: 18px; }
.health .good { color: var(--green); }

.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { list-style: none; display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(212, 160, 48, .14); color: var(--gold); }
.steps b { color: var(--text); }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--border-gold); box-shadow: var(--shadow); font-size: 14px;
  transform: translateY(20px); opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }

@media (max-width: 1280px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.avatar svg { width: 18px; height: 18px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Game categories ---------- */
.cat-card { aspect-ratio: 3 / 4; flex-direction: column; justify-content: space-between; align-items: stretch; cursor: pointer; }
.cat-short {
  position: relative; z-index: 2; align-self: center; margin-top: 26%;
  font-family: "Cinzel", serif; font-weight: 800; font-size: clamp(18px, 1.6vw, 26px);
  color: rgba(255, 255, 255, .92); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); text-align: center; line-height: 1.1;
}
.cat-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-live { color: var(--red); font-weight: 700; }
.search.cat-search { display: flex !important; width: 240px; }
.chips a.chip { color: var(--gold); border-style: dashed; }
@media (max-width: 560px) { .search.cat-search { width: 100%; } .section-head { flex-wrap: wrap; } }

/* ---------- Account menu ---------- */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 30px; padding: 3px 12px 3px 3px; cursor: pointer; }
.user-btn:hover { border-color: var(--border-gold); }
.user-name { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 60;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px;
  box-shadow: var(--shadow); display: none;
}
.user-menu.open .user-drop { display: grid; }
.user-drop a, .user-drop button {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left;
}
.user-drop a:hover, .user-drop button:hover { color: var(--text); background: rgba(212, 160, 48, .1); }
.user-drop svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .user-name { display: none; } .user-btn { padding: 3px; } }

/* ---------- Empty states ---------- */
.empty {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: rgba(0, 0, 0, .15);
}
.empty > svg { width: 34px; height: 34px; color: var(--gold); opacity: .8; }
.empty .btn svg { width: 16px; height: 16px; opacity: 1; }
.empty strong { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.muted-sm { color: var(--muted); font-size: 13px; padding: 6px 2px; }

/* ---------- Game images ---------- */
.cat-card { position: relative; }
.cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-card .cat-img + .cat-short { opacity: 0; }
.cat-card::after { z-index: 1; }
.cat-card > div, .cat-card .cat-short { z-index: 2; }
.hero-collage { display: grid !important; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; padding: 0; }
.hero-collage::before { display: none; }
.hero-collage > span { position: relative; overflow: hidden; display: block; }
.hero-collage .cat-img { transform: scale(1.02); }

/* ---------- Player ---------- */
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-msg {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px;
  color: var(--muted); font-size: 15px; background: rgba(0, 0, 0, .55); z-index: 2; pointer-events: none;
}
.player-msg:not(:empty) { display: grid; }
.player-top { pointer-events: none; }
.description .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.description .tags .tag { text-transform: none; letter-spacing: 0; }

/* ---------- Upload ---------- */
.thumb-editor { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: center; }
.thumb-editor canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.thumb-editor input[type=range] { width: 100%; accent-color: var(--gold); margin-top: 10px; }
.size-compare { font-size: 12px; color: var(--muted); margin-top: 6px; }
.size-compare b { color: var(--text); }
.size-compare em { font-style: normal; color: var(--green); font-weight: 700; margin-left: 6px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
@media (max-width: 560px) { .thumb-editor { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Studio ---------- */
.studio-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.source-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.source-bar select.input { width: auto; flex: 1 1 180px; min-width: 0; }
.source-bar #goLive { margin-left: auto; }
@media (max-width: 760px) { .source-bar #goLive { width: 100%; margin-left: 0; } }

/* ---------- Static pages ---------- */
.doc { max-width: 820px; }
.doc h1 { font-family: "Cinzel", serif; font-size: 30px; margin-bottom: 8px; }
.doc h2 { font-size: 18px; margin: 22px 0 8px; color: var(--gold); }
.doc p, .doc li { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.doc ul { padding-left: 20px; }
.obs-audio { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: rgba(0, 0, 0, .15); }
.obs-audio summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gold); }
.obs-audio .steps { margin-top: 12px; }

/* ---------- Watch page (video info) ---------- */
.watch-info h1 { font-size: 21px; font-weight: 700; line-height: 1.35; }
.yt-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.yt-channel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yt-channel .avatar.lg { width: 44px; height: 44px; font-size: 17px; }
.yt-channel-text { display: grid; min-width: 0; margin-right: 8px; }
.yt-channel-text a { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-channel-text a:hover { color: var(--gold-2); }
.yt-channel-text small { color: var(--muted); font-size: 12px; }
.btn-sub {
  height: 38px; padding: 0 18px; border-radius: 30px; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border-gold); color: var(--gold-2);
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.btn-sub:hover { background: #2e2416; border-color: var(--gold); color: var(--gold-2); }
.btn-sub.is-on { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn-sub.is-on:hover { background: #2e2416; border-color: var(--border-gold); }
.yt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 30px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.pill:hover { background: #2e2416; border-color: var(--border-gold); }
.pill svg { width: 18px; height: 18px; }
.pill.is-on { color: var(--gold-2); }
.pill.is-on svg { fill: currentColor; fill-opacity: .25; }
.pill-icon { width: 38px; padding: 0; justify-content: center; }
.pill-group { display: inline-flex; align-items: center; background: var(--panel-2); border: 1px solid var(--border); border-radius: 30px; }
.pill-group .pill { border: 0; background: transparent; }
.pill-group .pill:first-child { padding-right: 12px; border-radius: 30px 0 0 30px; }
.pill-group .pill:last-child { padding-left: 12px; border-radius: 0 30px 30px 0; }
.pill-group .pill:hover { background: #2e2416; }
.pill-sep { width: 1px; height: 22px; background: var(--border-gold); opacity: .6; }
.pill-menu { position: relative; }
.pill-menu.open .user-drop { display: grid; }

.yt-desc {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  font-size: 14px; transition: background .15s;
}
.yt-desc.collapsed { cursor: pointer; }
.yt-desc.collapsed:hover { background: #2a2014; }
.yt-desc-top { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; }
.yt-desc-top b { font-weight: 700; }
.yt-desc-top a, .yt-desc-text a { color: var(--blue); }
.yt-desc-top a.desc-cat { color: var(--gold); font-weight: 600; }
.yt-desc-text { color: var(--text); white-space: normal; word-break: break-word; }
.yt-desc.collapsed .yt-desc-text { max-height: 3em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.yt-desc-more { background: none; border: 0; padding: 4px 0 0; font-weight: 700; cursor: pointer; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- Comments ---------- */
.comments { margin-top: 26px; display: grid; gap: 18px; }
.comments-head { display: flex; align-items: center; gap: 28px; }
.comments-head h3 { font-size: 19px; font-weight: 700; }
.sort-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); }
.sort-btn svg { width: 20px; height: 20px; }
#sortDrop { left: 0; right: auto; }
.comment-form { display: flex; gap: 14px; align-items: flex-start; }
.comment-input { flex: 1; }
.comment-input textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border); outline: 0; resize: none;
  padding: 6px 0; font-size: 14px; line-height: 1.5; min-height: 34px;
}
.comment-input textarea:focus { border-bottom-color: var(--gold); }
.comment-actions { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.comment-form.active .comment-actions { display: flex; }
.comment-actions .btn { height: 34px; border-radius: 30px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.comment-list { display: grid; gap: 18px; }
.comment { display: flex; gap: 14px; align-items: flex-start; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.comment-meta a { color: var(--text); font-weight: 600; }
.comment-meta a.is-author { background: var(--panel-2); padding: 0 8px; border-radius: 20px; color: var(--gold-2); }
.comment-text { font-size: 14px; word-break: break-word; }
.comment-text a { color: var(--blue); }
.comment-del { width: 32px; height: 32px; opacity: 0; }
.comment:hover > .comment-del { opacity: 1; }
@media (hover: none) { .comment-del { opacity: 1; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: grid; justify-items: start;
}
.modal-panel h2 { font-family: "Cinzel", serif; font-size: 24px; margin-bottom: 4px; }
.modal-panel > p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.modal-panel form { width: 100%; }
.modal-panel .auth-foot { justify-self: center; }
.modal-x { position: absolute; right: 12px; top: 12px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 10px; }
.seg button { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.seg button.active { background: rgba(212, 160, 48, .16); color: var(--gold); }
.user-drop .drop-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.user-drop .drop-item:hover { color: var(--text); background: rgba(212, 160, 48, .1); }
.user-drop .drop-item svg { width: 16px; height: 16px; }
#moreDrop { min-width: 200px; }

/* ---------- Admin ---------- */
.pin-screen { min-height: 60vh; display: grid; place-items: center; }
.pin-card { width: 100%; max-width: 380px; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 32px; }
.pin-card h1 { font-family: "Cinzel", serif; font-size: 26px; }
.pin-card p { color: var(--muted); font-size: 14px; }
.pin-input { text-align: center; font-size: 26px; letter-spacing: 12px; height: 56px; margin-top: 8px; }
.pin-card .form-error { margin: 0; }
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 20px); }
.admin-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.admin-tab svg { width: 17px; height: 17px; }
.admin-tab:hover { color: var(--text); background: rgba(212, 160, 48, .07); }
.admin-tab.active { color: var(--gold-2); background: rgba(212, 160, 48, .15); }
.admin-tab.lock { margin-top: 10px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 14px; }
.admin-main { display: grid; gap: 20px; min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-stats .stat-tile strong { font-size: 20px; }
.admin-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar .panel-title { margin: 0 auto 0 0; }
.admin-toolbar .input { width: auto; min-width: 220px; height: 38px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(212, 160, 48, .04); }
.admin-table small { font-size: 12px; }
.admin-table .actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.admin-table a { color: var(--gold-2); }
.input-sm { height: 34px; padding: 0 10px; font-size: 13px; }
select.input-sm { background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; padding-right: 26px; }
.vid-cell { display: flex; gap: 10px; align-items: center; min-width: 260px; }
.vid-cell img, .vid-ph { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--panel-2); display: block; }
.vid-cell span { display: grid; }
.game-cover { position: relative; display: block; width: 48px; height: 64px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-cover:hover { border-color: var(--gold); }
.usage { margin-bottom: 14px; }
.usage-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.usage-top b { color: var(--text); }
.usage-bar { height: 10px; background: rgba(255, 255, 255, .06); border-radius: 10px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2)); border-radius: 10px; }
.usage-bar.warn span { background: linear-gradient(90deg, #a8601c, #dd944d); }
.usage-bar.danger span { background: linear-gradient(90deg, #8f2a22, var(--red)); }
.usage-split { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.usage-split b { color: var(--text); }
@media (max-width: 1100px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .admin-nav .panel-title { grid-column: 1 / -1; }
  .admin-tab.lock { margin-top: 0; border-top: 0; padding-top: 10px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Avatars with pictures ---------- */
.avatar.has-img { background-size: cover; background-position: center; background-color: var(--panel-2); color: transparent; }
.avatar.xl { width: 128px; height: 128px; font-size: 48px; border-width: 4px; }
.user-drop .drop-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.user-drop .drop-head span { display: grid; min-width: 0; }
.user-drop .drop-head strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-drop .drop-head small { color: var(--muted); font-size: 12px; }
.user-drop .drop-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- Channel page ---------- */
.channel-page { padding-top: 0; }
.channel { max-width: 1500px; }
.ch-banner {
  height: clamp(130px, 17vw, 260px); border-radius: 0 0 var(--radius) var(--radius); border: 1px solid var(--border); border-top: 0;
  background-size: cover; background-position: center; background-color: var(--panel);
}
.ch-banner.no-img {
  background-image:
    radial-gradient(600px 220px at 15% 0%, rgba(240, 195, 90, .35), transparent 60%),
    radial-gradient(500px 220px at 85% 100%, rgba(224, 83, 74, .25), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 16px),
    linear-gradient(120deg, #2a1f0e, #161008);
}
.ch-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 0 24px; margin-top: -44px; }
.ch-head .avatar.xl { box-shadow: 0 0 0 4px var(--bg), var(--shadow); }
.ch-info { padding-top: 44px; min-width: 0; }
.ch-info h1 { font-family: "Cinzel", serif; font-size: 32px; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-info h1 .tag { font-family: "Outfit", sans-serif; vertical-align: middle; }
.ch-info h1 .tag svg { width: 12px; height: 12px; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: 14px; margin-top: 6px; }
.ch-meta > *:not(:last-child)::after { content: "·"; margin: 0 8px; display: inline-block; text-decoration: none; }
.ch-bio { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 760px; }
.ch-more { color: var(--text); font-weight: 600; }
.ch-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 30px;
  background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
}
.social-chip:hover { border-color: var(--border-gold); color: var(--gold-2); }
.social-chip svg { width: 15px; height: 15px; color: var(--gold); }
.social-chip.big { height: 38px; padding: 0 14px; font-size: 14px; }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 44px; }
.ch-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 26px 0 24px; padding: 0 12px; overflow-x: auto; }
.ch-tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px; font-weight: 700; font-size: 15px;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.ch-tabs button:hover { color: var(--text); }
.ch-tabs button.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.ch-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.ch-section .section-head h2 { font-size: 21px; }
.ch-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); transition: .25s;
}
.feature:hover { border-color: var(--border-gold); box-shadow: var(--shadow); }
.feature .thumb { border-radius: 0; }
.feature .corner-tl { gap: 6px; }
.feature .corner-tl .tag svg { width: 12px; height: 12px; }
.feature-body { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.feature-body h3 { font-size: 22px; line-height: 1.3; }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.feature-desc { color: var(--muted); font-size: 14px; }
.feature-body .btn { margin-top: 6px; }
.pin-empty { justify-items: center; }
.pin-picker { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 6px; }
.pin-picker select { width: auto; min-width: 220px; max-width: 320px; }
.pin-tools .pin-picker { justify-content: flex-end; margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.about-bio { font-size: 15px; line-height: 1.7; word-break: break-word; }
.ch-bio a.link, .about-bio a.link { color: var(--gold-2); text-decoration: none; word-break: break-all; }
.ch-bio a.link:hover, .about-bio a.link:hover { text-decoration: underline; }
.about-stats { display: grid; gap: 14px; }
.about-stats div { display: flex; align-items: center; gap: 12px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.about-stats div:last-child { border: 0; padding: 0; }
.about-stats svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 900px) {
  .ch-head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; margin-top: -56px; padding: 0; }
  .ch-info, .ch-actions { padding-top: 0; }
  .ch-info h1 { justify-content: center; font-size: 26px; }
  .ch-meta, .ch-socials { justify-content: center; }
  .ch-actions { justify-content: center; }
  .feature, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .avatar.xl { width: 104px; height: 104px; font-size: 38px; }
}

/* ---------- Settings ---------- */
.settings { max-width: 1200px; }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 20px); padding: 12px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 14px; }
.settings-nav a svg { width: 17px; height: 17px; }
.settings-nav a:hover { color: var(--text); background: rgba(212, 160, 48, .07); }
.settings-nav a.active { color: var(--gold-2); background: rgba(212, 160, 48, .15); }
.settings section { scroll-margin-top: calc(var(--header-h) + 20px); }
.banner-edit {
  position: relative; height: 170px; border-radius: var(--radius); border: 1px solid var(--border);
  background-size: cover; background-position: center; background-color: var(--panel-2); overflow: hidden;
}
.banner-edit.no-img { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 16px), linear-gradient(120deg, #2a1f0e, #161008); }
.banner-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.banner-actions .btn-ghost { background: rgba(0, 0, 0, .55); color: var(--text); }
.avatar-edit { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.avatar-edit strong { display: block; font-size: 15px; margin-bottom: 2px; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); overflow: hidden; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; border-right: 1px solid var(--border); white-space: nowrap; }
.input-prefix .input { border: 0; border-radius: 0; background: transparent; }
.input-prefix:focus-within { border-color: var(--border-gold); }
.divider-h { height: 1px; background: var(--border); margin: 22px 0; }
.pw-meter { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; margin: 0 0 16px; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s; }
.pw-meter span.weak { background: var(--red); }
.pw-meter span.ok { background: var(--gold); }
.pw-meter span.strong { background: var(--green); }
.danger-zone { border-color: rgba(224, 83, 74, .45); }
.danger-zone .panel-title { color: var(--red); }
.danger-zone::before { background: linear-gradient(90deg, transparent, rgba(224, 83, 74, .6), transparent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.unmute-btn {
  position: absolute; left: 16px; bottom: 64px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 30px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  background: rgba(240, 195, 90, .95); color: #1a1206; box-shadow: var(--shadow); animation: pop .3s ease-out;
}
.unmute-btn svg { width: 18px; height: 18px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.yt-desc-top .live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; vertical-align: 1px; }

/* ---------- Dark native controls ---------- */
:root { color-scheme: dark; }
select.input option, select.input optgroup { background: #1d170e; color: var(--text); }
select.input optgroup { color: var(--gold); font-weight: 700; }

/* ---------- Game picker ---------- */
.gp-native { display: none !important; }
.gp { position: relative; }
.gp-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; padding: 0 36px 0 8px; position: relative; }
.gp-btn:disabled { opacity: .6; cursor: not-allowed; }
.gp-btn .gp-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-btn small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.gp-caret { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: .2s; }
.gp.open .gp-caret { transform: translateY(-30%) rotate(-135deg); border-color: var(--gold); }
.gp.open .gp-btn { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(212, 160, 48, .12); }
.gp-img { position: relative; width: 24px; height: 32px; border-radius: 4px; overflow: hidden; flex-shrink: 0; display: block; }
.gp-img .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; display: none;
  background: var(--panel-2); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden;
  min-width: 260px;
}
.gp.open .gp-pop { display: block; animation: pop .15s ease-out; }
.gp-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.gp-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.gp-search input { flex: 1; height: 42px; background: none; border: 0; outline: 0; font-size: 14px; }
.gp-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.gp-list::-webkit-scrollbar { width: 8px; }
.gp-list::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 8px; }
.gp-group { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); padding: 10px 8px 4px; }
.gp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 6px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 14px; color: var(--text); }
.gp-item:hover { background: rgba(212, 160, 48, .1); }
.gp-item.active { background: rgba(212, 160, 48, .18); color: var(--gold-2); font-weight: 600; }

/* ---------- Game page ---------- */
.game-page { display: grid; gap: 0; }
.game-head { display: flex; gap: 28px; align-items: flex-end; margin-top: 22px; }
.game-cover { position: relative; width: 170px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-gold); box-shadow: var(--shadow); flex-shrink: 0; display: grid; place-items: center; }
.game-cover .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-cover .cat-img + .cat-short { opacity: 0; }
.game-cover .cat-short { position: relative; margin: 0; }
.game-info { display: grid; gap: 12px; justify-items: start; }
.game-info h1 { font-family: "Cinzel", serif; font-size: 38px; line-height: 1.1; }
.game-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.game-stats span { display: inline-flex; align-items: center; gap: 7px; }
.game-stats svg { width: 17px; height: 17px; color: var(--gold); }
.game-stats .live-dot { width: 9px; height: 9px; }
@media (max-width: 700px) {
  .game-head { flex-direction: column; align-items: center; text-align: center; }
  .game-info { justify-items: center; }
  .game-info h1 { font-size: 28px; }
  .game-cover { width: 140px; }
}

/* ---------- Login / register art ---------- */
.auth-art { background: #0d0a06; }
.auth-art::after { display: none; }
.auth-collage {
  position: absolute; inset: -20% -10%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  transform: rotate(-8deg); opacity: .55; filter: saturate(1.1);
}
.auth-col { display: grid; gap: 14px; align-content: start; animation: authScroll linear infinite; }
@keyframes authScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.auth-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.auth-tile .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-tile b { position: relative; font-family: "Cinzel", serif; font-size: 20px; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.auth-tile .cat-img + b { opacity: 0; }
.auth-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(700px 400px at 20% 100%, rgba(212, 160, 48, .28), transparent 60%),
    linear-gradient(0deg, rgba(13, 10, 6, .97) 15%, rgba(13, 10, 6, .55) 55%, rgba(13, 10, 6, .75) 100%),
    linear-gradient(90deg, transparent 70%, rgba(18, 14, 8, 1));
}
.auth-art-text { z-index: 2; display: grid; gap: 14px; justify-items: start; }
.auth-art-text h2 { margin: 0; }
.auth-art-text p { margin: 0; }
.auth-points { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.auth-points svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; padding: 7px; box-sizing: content-box; border-radius: 50%; background: rgba(212, 160, 48, .14); }
.auth-stats { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.auth-stats div { padding: 10px 16px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .45); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.auth-stats strong { display: block; font-size: 20px; color: var(--gold-2); }
.auth-stats small { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .auth-col { animation: none; } }
.auth-logo { margin-bottom: 6px; }
.panel:has(.gp.open) { overflow: visible; z-index: 20; }
.gp-list { position: relative; }
.game-cover { height: 227px; aspect-ratio: auto; }
#gRelated { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 700px) { .game-cover { height: 187px; } }

/* ---------- Home feed ---------- */
.feed-bar {
  position: relative; z-index: 30; margin: -20px 0 0; padding: 14px 0 12px;
}
.feed-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.feed-chips::-webkit-scrollbar { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.fchip:hover { border-color: var(--border-gold); background: #2e2416; }
.fchip.active { background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-dark)); color: #1a1206; border-color: transparent; }
.fchip em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--red); color: #fff; border-radius: 10px; padding: 0 6px; line-height: 17px; }
.fchip .live-dot { width: 8px; height: 8px; }
.fchip.active .live-dot { background: #8f2a22; }
.fchip.more { color: var(--gold); border-style: dashed; background: transparent; }
.fchip-sep { width: 1px; flex-shrink: 0; background: var(--border-gold); margin: 6px 2px; }
.feed-title { font-size: 20px; font-weight: 700; margin: 4px 0 16px; display: flex; gap: 14px; align-items: baseline; }
.feed-title .link { font-size: 13px; font-weight: 600; }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 18px; }
.feed > .empty { grid-column: 1 / -1; }
.feed-more { text-align: center; margin-top: 26px; }
.fcard { display: grid; gap: 12px; align-content: start; }
.fcard .thumb { border-radius: 12px; transition: border-radius .2s, transform .25s, box-shadow .25s; }
.fcard:hover .thumb { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--border-gold), var(--shadow); }
.fcard-body { display: flex; gap: 12px; }
.fcard-av { position: relative; flex-shrink: 0; height: fit-content; }
.fcard-av .avatar { width: 38px; height: 38px; font-size: 14px; }
.fcard-av i {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-style: normal; font-size: 8px; font-weight: 800;
  letter-spacing: .5px; background: var(--red); color: #fff; padding: 0 4px; border-radius: 3px; border: 1px solid var(--bg);
}
.fcard-info { min-width: 0; }
.fcard-title { font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.fcard:hover .fcard-title { color: var(--gold-2); }
.fcard-meta { color: var(--muted); font-size: 13.5px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.live-badge svg { width: 13px; height: 13px; }
.fcard.skeleton .thumb, .fcard.skeleton .avatar, .fcard.skeleton i {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
.fcard.skeleton .thumb::before { display: none; }
.fcard.skeleton i { display: block; height: 12px; border-radius: 6px; margin: 6px 0; width: 200px; max-width: 100%; }
.fcard.skeleton .avatar { border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty .row-actions { justify-content: center; }
@media (max-width: 560px) { .feed { grid-template-columns: minmax(0, 1fr); } .feed-bar { margin-top: -12px; } }
.main { grid-template-columns: minmax(0, 1fr); }

/* ---------- Categories page ---------- */
.cats-page .page-title { margin-bottom: 18px; }
.cats-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; }
.cats-bar .feed-chips { flex: 1; min-width: 0; }
.cats-bar .seg { margin: 0; flex-shrink: 0; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cats-grid > .empty { grid-column: 1 / -1; }
.cat-card strong, .cat-card small { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.cat-card::after { background: linear-gradient(0deg, rgba(10, 8, 4, .95) 0%, rgba(10, 8, 4, .55) 28%, transparent 55%); }

/* ---------- Login / register art v2: 3D wall of games, centered glass card ---------- */
.auth-art { display: grid; place-items: center; perspective: 1400px; padding: 40px; }
.auth-collage {
  inset: -35% -25%; gap: 18px; opacity: .95; filter: saturate(1.15) brightness(.95);
  transform: rotateX(22deg) rotateZ(-14deg) scale(1.1); transform-origin: center;
}
.auth-col { gap: 18px; }
.auth-tile { border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.auth-shade {
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(13, 10, 6, .86) 0%, rgba(13, 10, 6, .62) 55%, rgba(13, 10, 6, .2) 100%),
    linear-gradient(90deg, transparent 75%, rgba(18, 14, 8, .95)),
    linear-gradient(0deg, rgba(13, 10, 6, .6), transparent 30%, transparent 70%, rgba(13, 10, 6, .6));
}
.auth-shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.auth-shine::before {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 30%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(240, 195, 90, .16), transparent);
  transform: rotate(18deg); animation: authShine 9s ease-in-out infinite;
}
.auth-shine::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 160, 48, .22), transparent 65%); animation: authGlow 6s ease-in-out infinite;
}
@keyframes authShine { 0%, 15% { left: -40%; } 60%, 100% { left: 130%; } }
@keyframes authGlow { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

.auth-art-text.glass {
  position: relative; left: auto; right: auto; bottom: auto; z-index: 2;
  width: 100%; max-width: 540px; padding: 36px 36px 30px; text-align: center; justify-items: center;
  background: rgba(18, 14, 8, .58); border: 1px solid rgba(212, 160, 48, .35); border-radius: 20px;
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: authIn .6s ease-out both;
}
.auth-art-text.glass h2 { font-size: clamp(26px, 2.6vw, 36px); }
.auth-art-text.glass p { max-width: 420px; }
.auth-art-text.glass .auth-points { justify-items: start; text-align: left; margin: 6px auto 0; }
.auth-art-text.glass .auth-stats { justify-content: center; }
.auth-art-text.glass .auth-logo { margin: 0 0 4px; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-shine::before, .auth-shine::after, .auth-art-text.glass { animation: none; } }
.auth-collage { grid-template-columns: repeat(7, 1fr); gap: 14px; }
.auth-col { gap: 14px; }
.auth-tile b { font-size: 15px; }

/* ---------- Discord banner ---------- */
.discord-promo { padding-top: 26px; overflow: hidden; }
.discord-promo h3, .discord-promo p, .discord-promo .btn, .discord-promo .dp-badge { position: relative; z-index: 1; }
.dp-art { position: absolute; right: -14px; top: -10px; width: 150px; height: 120px; opacity: .9; pointer-events: none; }
.dp-art span { position: absolute; border-radius: 14px; background: rgba(88, 101, 242, .55); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); animation: dpFloat 5s ease-in-out infinite; }
.dp-art span::after { content: ""; position: absolute; left: 14px; bottom: -7px; border: 7px solid transparent; border-top-color: inherit; border-top-color: rgba(88, 101, 242, .55); border-bottom: 0; }
.dp-art span:nth-child(1) { width: 74px; height: 30px; right: 30px; top: 22px; }
.dp-art span:nth-child(2) { width: 56px; height: 26px; right: 10px; top: 60px; background: rgba(240, 195, 90, .55); animation-delay: -1.6s; }
.dp-art span:nth-child(2)::after { border-top-color: rgba(240, 195, 90, .55); }
.dp-art span:nth-child(3) { width: 40px; height: 22px; right: 92px; top: 70px; background: rgba(255, 255, 255, .25); animation-delay: -3.2s; }
.dp-art span:nth-child(3)::after { border-top-color: rgba(255, 255, 255, .25); }
@keyframes dpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #cfd3ff; background: rgba(0, 0, 0, .3); border: 1px solid rgba(88, 101, 242, .5); border-radius: 20px; padding: 3px 10px; margin-bottom: 12px; }
.dp-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(108, 191, 108, .25); }

/* ---------- Creators page ---------- */
.creators-page .page-title { margin-bottom: 22px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; margin-bottom: 30px; }
.podium-card {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius);
  transition: .25s; overflow: hidden;
}
.podium-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.podium-card.rank-1 { padding-top: 40px; border-color: var(--border-gold); background: radial-gradient(400px 200px at 50% 0%, rgba(240, 195, 90, .22), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.podium-card strong { font-size: 18px; margin-top: 6px; }
.podium-card small { color: var(--muted); }
.podium-card .avatar.xl { width: 96px; height: 96px; font-size: 36px; }
.podium-card.rank-1 .avatar.xl { width: 120px; height: 120px; box-shadow: 0 0 0 4px var(--gold), 0 0 30px rgba(240, 195, 90, .4); }
.podium-rank { position: absolute; left: 14px; top: 12px; font-family: "Cinzel", serif; font-size: 28px; font-weight: 800; color: var(--muted); }
.rank-1 .podium-rank { color: var(--gold-2); }
.rank-2 .podium-rank { color: #cfd6de; }
.rank-3 .podium-rank { color: #d49a6a; }
.podium-crown { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: var(--gold-2); }
.podium-crown svg { width: 26px; height: 26px; }
.podium-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.podium-stats b { color: var(--text); }
.cr-btn { height: 34px; border-radius: 30px; font-size: 13px; padding: 0 16px; margin-top: 6px; }

.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.creator-grid > .empty { grid-column: 1 / -1; }
.creator-card { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); transition: .25s; }
.creator-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.cr-banner { position: relative; height: 84px; background-size: cover; background-position: center; }
.cr-banner.no-img { background: radial-gradient(240px 90px at 20% 0%, rgba(240, 195, 90, .3), transparent 70%), linear-gradient(120deg, #2a1f0e, #161008); }
.cr-banner .tag { position: absolute; left: 10px; top: 10px; }
.cr-banner .cr-staff { left: auto; right: 10px; }
.cr-banner .tag svg { width: 11px; height: 11px; }
.cr-body { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 0 16px 18px; margin-top: -32px; flex: 1; }
.cr-body .avatar.lg { width: 64px; height: 64px; font-size: 24px; border: 3px solid var(--bg); }
.cr-body strong { font-size: 16px; margin-top: 6px; }
.cr-body > small { color: var(--muted); font-size: 13px; }
.cr-body p { color: var(--muted); font-size: 13px; margin: 6px 0 4px; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-stats { display: flex; justify-content: center; gap: 18px; margin: 4px 0 6px; }
.cr-stats span { display: grid; }
.cr-stats b { font-size: 15px; }
.cr-stats small { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .podium { grid-template-columns: minmax(0, 1fr); } .podium-card.rank-1 { order: -1; } }
.cr-body { position: relative; z-index: 1; }

/* Header auth buttons */
.btn-login {
  color: var(--text); background: rgba(212, 160, 48, .07); border-color: var(--border-gold);
}
.btn-login:hover { color: var(--gold-2); background: rgba(212, 160, 48, .15); border-color: var(--gold); }
.btn-flash { position: relative; overflow: hidden; }
.btn-flash::after {
  content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); animation: btnFlash 3.2s ease-in-out infinite; pointer-events: none;
}
.btn-flash:hover::after { animation-duration: 1.2s; }
@keyframes btnFlash { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .btn-flash::after { animation: none; display: none; } }

/* ZaqStream Studio app panel */
.app-promo { background: radial-gradient(120% 90% at 0% 0%, rgba(212, 160, 48, .14), transparent 60%), var(--panel); border-color: var(--border-gold); }
.app-promo-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-promo-head .panel-title { margin-bottom: 4px; }
.app-promo-head .hint { margin: 0; }
.app-promo-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 6px 20px rgba(212, 160, 48, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.app-promo-icon svg { width: 26px; height: 26px; }
.app-promo .steps { margin-top: 14px; }
.key-row { display: flex; gap: 8px; margin-top: 8px; }
.key-row .input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* Image cropper */
.crop-panel { max-width: 680px; justify-items: stretch; }
.crop-panel h2 { margin-bottom: 4px; }
.crop-stage {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: #0d0a06;
  cursor: grab; touch-action: none; user-select: none; border: 1px solid var(--border-gold);
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-stage.round { max-width: 380px; width: 100%; justify-self: center; }
.crop-stage.round .crop-frame { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .6); border: 2px solid var(--gold); pointer-events: none; }
.crop-stage:not(.round) .crop-frame { position: absolute; inset: 0; border: 2px solid var(--gold); border-radius: var(--radius-sm); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.crop-zoom input { flex: 1; accent-color: var(--gold); background: none; border: 0; outline: none; height: 20px; }
.crop-z { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-gold); background: var(--panel-2); color: var(--gold-2); font-size: 18px; font-weight: 700; line-height: 1; }
.crop-z:hover { background: #2e2416; }
.crop-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* Notifications */
.notif { position: relative; }
.notif-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: .15s;
}
.notif-btn:hover, .notif.open .notif-btn { color: var(--gold-2); border-color: var(--border-gold); }
.notif-btn svg { width: 18px; height: 18px; }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.notif-badge[hidden] { display: none; }
.notif-drop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); z-index: 60; display: none;
  background: var(--panel-2); border: 1px solid var(--border-gold); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.notif.open .notif-drop { display: block; }
.notif-head { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.notif-enable {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 8px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: rgba(212, 160, 48, .1); border: 1px solid var(--border-gold); color: var(--gold-2); font-weight: 600; font-size: 13px; cursor: pointer;
}
.notif-enable svg { width: 16px; height: 16px; }
.notif-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--radius-sm); color: var(--text); }
.notif-item:hover { background: rgba(212, 160, 48, .08); }
.notif-item.unseen { background: rgba(212, 160, 48, .06); }
.notif-item.unseen::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: -4px; }
.notif-item .avatar { flex: none; }
.notif-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.notif-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-text small { color: var(--dim, #6d604d); font-size: 11px; }
.notif-live { color: var(--red); font-weight: 700; }
.notif-thumb { flex: none; width: 86px; aspect-ratio: 16 / 9; border-radius: 6px; background: #000 center / cover no-repeat; }
.notif-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .notif-drop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* Player tools: resolution label and theater mode */
.player-tools {
  position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.player:hover .player-tools, .player:focus-within .player-tools { opacity: 1; pointer-events: auto; }
.player-q {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.player-q b { background: var(--gold); color: #1a1206; font-size: 9px; padding: 1px 4px; border-radius: 3px; letter-spacing: .5px; }
.player-q[hidden] { display: none; }
.player-tool {
  width: 34px; height: 30px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .65); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px);
}
.player-tool:hover { color: var(--gold-2); }
.player-tool svg { width: 18px; height: 18px; }
.watch.theater { grid-template-columns: minmax(0, 1fr); }
.watch.theater .player { width: min(100%, calc((100vh - 120px) * 16 / 9)); margin: 0 auto; border-radius: 0; border-left: 0; border-right: 0; }
.watch.theater > div:first-child { min-width: 0; }
@media (max-width: 1100px) { .player-tool { display: none; } }

/* Notification permission banner */
.notif-ask {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; width: min(620px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border-gold); box-shadow: var(--shadow);
  transform: translate(-50%, 30px); opacity: 0; transition: .3s;
}
.notif-ask.show { transform: translate(-50%, 0); opacity: 1; }
.notif-ask-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark)); }
.notif-ask-ic svg { width: 20px; height: 20px; }
.notif-ask-text { flex: 1; display: grid; gap: 2px; font-size: 14px; }
.notif-ask-text small { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .notif-ask { flex-wrap: wrap; } .notif-ask-text { flex-basis: calc(100% - 60px); } }
.comment.highlight { background: rgba(212, 160, 48, .1); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--border-gold); transition: background 1s; }

/* Stream summary after a live */
.stream-summary { border-color: var(--border-gold); background: radial-gradient(120% 100% at 0% 0%, rgba(212, 160, 48, .12), transparent 60%), var(--panel); }
.summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.summary-head .panel-title { margin-bottom: 4px; }
.summary-head .hint { margin: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .22); border: 1px solid var(--border); }
.summary-tile .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(212, 160, 48, .12); color: var(--gold-2); }
.summary-tile .ic svg { width: 18px; height: 18px; }
.summary-tile strong { font-size: 20px; line-height: 1.1; }
.summary-tile small { color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.msg.pending { opacity: .55; }

/* Chat roles and moderation */
.msg .role-admin { display: inline; font-size: 10px; background: var(--red); color: #fff; border-radius: 4px; padding: 0 5px; margin-right: 5px; font-weight: 800; vertical-align: 1px; }
.msg-user { cursor: pointer; }
.msg-user:hover { text-decoration: underline; }
.chat-mod-menu {
  position: fixed; z-index: 500; min-width: 200px; padding: 6px; display: grid;
  background: var(--panel-2); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.chat-mod-menu .cmm-head { padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--gold-2); }
.chat-mod-menu button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; font-size: 13px; text-align: left; }
.chat-mod-menu button:hover { color: var(--text); background: rgba(212, 160, 48, .1); }
.chat-mod-menu svg { width: 15px; height: 15px; }
.chat-mod-menu .cmm-sep { height: 1px; background: var(--border); margin: 4px 6px; }
.mod-list, .mod-results { display: grid; gap: 6px; }
.mod-add { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.mod-add .input { margin-bottom: 8px; }
.mod-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .18); }
.mod-row .grow { display: grid; line-height: 1.25; min-width: 0; }
.mod-row small { color: var(--muted); font-size: 12px; }

/* Mini profile from the chat */
.user-card {
  position: fixed; z-index: 500; width: 320px; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border-gold); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: ucIn .15s ease-out;
}
@keyframes ucIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.uc-loading { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.uc-banner {
  position: relative; height: 104px; background: linear-gradient(135deg, #5a2a10, #c0702a 55%, #f0c35a) center / cover no-repeat;
  border-bottom: 1px solid var(--border-gold);
}
.uc-x {
  position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center;
}
.uc-x:hover { background: rgba(0, 0, 0, .8); }
.uc-x svg { width: 16px; height: 16px; }
.uc-live { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .8px; padding: 3px 7px; border-radius: 5px; }
.uc-avatar { display: flex; justify-content: center; margin-top: -38px; position: relative; }
.uc-avatar .avatar { width: 76px; height: 76px; font-size: 28px; box-shadow: 0 0 0 4px var(--panel-2), 0 0 0 6px var(--gold); }
.uc-body { padding: 10px 16px 16px; text-align: center; }
.uc-name { font-size: 19px; font-weight: 800; }
.uc-user { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.uc-user span { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.uc-user .sub { background: var(--gold); color: #1a1206; }
.uc-user .mod { background: var(--green); color: #0d1a0d; }
.uc-user .role-admin { background: var(--red); color: #fff; }
.uc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.uc-facts div { padding: 8px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); display: grid; gap: 2px; }
.uc-facts small { color: var(--muted); font-size: 11px; }
.uc-facts b { font-size: 13px; }
.uc-actions { display: flex; gap: 8px; }
/* Both buttons share the width equally, whatever the text (Follow / Following) */
.uc-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; gap: 6px; letter-spacing: .3px; font-size: 12px; }
.uc-actions .btn svg { flex: none; width: 16px; height: 16px; }
.uc-actions .btn span, .uc-view { overflow: hidden; text-overflow: ellipsis; }
.uc-follow.is-on { color: var(--gold-2); border-color: var(--border-gold); }
.uc-follow.is-on svg { fill: currentColor; fill-opacity: .3; }
.uc-mod { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); text-align: left; }
.uc-mod-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.uc-mod-title svg { width: 14px; height: 14px; }
.uc-mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.uc-mod-grid button {
  display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--border); color: var(--text);
}
.uc-mod-grid button:hover { border-color: var(--border-gold); color: var(--gold-2); }
.uc-mod-grid .uc-ban { grid-column: 1 / -1; color: #ff8a80; }
.uc-mod-grid .uc-ban:hover { border-color: rgba(255, 90, 80, .5); color: #ffb0a8; }
.uc-mod-grid svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .user-card { left: 12px !important; right: 12px; width: auto; } }

/* Chat: message menu (dots on the left) and replies */
.chat-messages { padding-left: 22px; }
.msg { position: relative; border-radius: 6px; }
.msg-more {
  position: absolute; left: -20px; top: 0; width: 18px; height: 20px; padding: 0; border: 0; border-radius: 4px;
  display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, background .15s;
}
.msg-more svg { width: 15px; height: 15px; }
.msg:hover .msg-more, .msg.menu-open .msg-more, .msg-more:focus-visible { opacity: 1; }
.msg-more:hover, .msg.menu-open .msg-more { color: var(--gold-2); background: rgba(212, 160, 48, .12); }
.msg:hover { background: rgba(212, 160, 48, .05); }
@media (hover: none) { .msg-more { opacity: .45; } }
.msg-menu { min-width: 170px; }
.msg-reply {
  display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 3px; padding-left: 8px;
  border-left: 2px solid var(--border-gold); font-size: 12px; color: var(--muted); cursor: pointer;
}
.msg-reply svg { width: 12px; height: 12px; flex: none; color: var(--gold); }
.msg-reply b { font-weight: 700; margin: 0; color: var(--gold-2); flex: none; }
.msg-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg-reply:hover span { color: var(--text); }
.msg.flash { animation: msgFlash 1.4s ease-out; }
@keyframes msgFlash { 0%, 30% { background: rgba(212, 160, 48, .22); } 100% { background: transparent; } }
.chat-reply {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border);
  background: rgba(212, 160, 48, .06); font-size: 13px;
}
.chat-reply > svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.chat-reply > div { display: grid; min-width: 0; flex: 1; }
.chat-reply small { color: var(--muted); font-size: 11px; }
.chat-reply small b { color: var(--gold-2); }
.chat-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.chat-reply button { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.chat-reply button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.chat-reply button svg { width: 14px; height: 14px; }

/* Chat: emoji picker inside the message box */
.chat-form { position: relative; }
.chat-input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.chat-input-wrap .input { padding-right: 42px; }
.emoji-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border: 0;
  border-radius: 7px; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background .15s;
}
.emoji-btn svg { width: 19px; height: 19px; }
.emoji-btn:hover, .emoji-btn.on { color: var(--gold-2); background: rgba(212, 160, 48, .12); }
.emoji-picker {
  position: absolute; right: 12px; bottom: calc(100% + 6px); z-index: 60; width: min(320px, calc(100% - 24px));
  background: var(--panel-2); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  overflow: hidden; animation: pop .14s ease-out;
}
.ep-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ep-tabs button { flex: none; width: 34px; height: 32px; border: 0; border-radius: 7px; background: none; font-size: 18px; cursor: pointer; filter: grayscale(.7); opacity: .7; transition: .15s; }
.ep-tabs button:hover { filter: none; opacity: 1; background: rgba(255, 255, 255, .05); }
.ep-tabs button.on { filter: none; opacity: 1; background: rgba(212, 160, 48, .16); box-shadow: inset 0 -2px 0 var(--gold); }
.ep-title { padding: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); }
.ep-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow-x: hidden; gap: 2px; padding: 4px 6px 8px; max-height: 220px; overflow-y: auto; }
.ep-grid::-webkit-scrollbar { width: 6px; }
.ep-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.ep-grid button { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 7px; background: none; font-size: 21px; line-height: 1; cursor: pointer; transition: transform .1s, background .1s; }
.ep-grid button:hover { background: rgba(212, 160, 48, .16); transform: scale(1.15); }

/* Live player controls (no timeline) */
.live-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 6px;
  padding: 28px 12px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.player.show-bar .live-bar, .player.paused .live-bar, .player:focus-within .live-bar { opacity: 1; pointer-events: auto; }
.player.is-live:not(.show-bar) { cursor: none; }
.player.is-live:not(.show-bar) .live-bar { cursor: default; }
.lb-btn {
  width: 38px; height: 34px; border: 0; border-radius: 8px; background: none; color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: color .15s, background .15s;
}
.lb-btn:hover { color: var(--gold-2); background: rgba(255, 255, 255, .08); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-vol { display: flex; align-items: center; }
.lb-vol input {
  width: 0; opacity: 0; transition: width .2s, opacity .2s; height: 4px; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  border-radius: 4px; background: linear-gradient(to right, var(--gold) var(--p, 100%), rgba(255, 255, 255, .3) var(--p, 100%));
}
.lb-vol:hover input, .lb-vol input:focus-visible { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.lb-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.lb-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.lb-live {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-left: 4px; padding: 0 10px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .8px; cursor: pointer;
}
.lb-live span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(224, 83, 74, .8); }
.lb-live.behind span { background: #888; box-shadow: none; }
.lb-live.behind:hover { background: rgba(224, 83, 74, .3); }
.lb-space { flex: 1; }
.player.is-full { border-radius: 0; border: 0; }
.player.is-full video { width: 100%; height: 100%; }

/* Live player in fullscreen (desktop and phones) */
.player:fullscreen, .player:-webkit-full-screen, .player.is-full {
  width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; max-height: none !important;
  aspect-ratio: auto !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #000;
}
.player:fullscreen video, .player:-webkit-full-screen video, .player.is-full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player.is-full .live-bar { padding: 40px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.player.is-full .lb-btn { width: 44px; height: 40px; }
.player.is-full .lb-btn svg { width: 24px; height: 24px; }
@media (hover: none) {
  .lb-vol input { display: none; } /* phones use the hardware volume buttons */
  .lb-btn { width: 44px; height: 40px; }
}

/* Chat: "Name joined the stream" */
.msg.msg-join { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.msg.msg-join svg { width: 13px; height: 13px; flex: none; color: var(--gold); opacity: .8; }
.msg.msg-join b { margin-right: 0; font-weight: 700; }

/* Mobile app: banner and install window */
.app-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 390; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold); box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; transition: .3s;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.app-bar.show { transform: none; opacity: 1; }
.app-bar .logo-mark { width: 42px; height: 42px; flex: none; }
.app-bar-text { flex: 1; min-width: 0; display: grid; }
.app-bar-text b { font-size: 15px; }
.app-bar-text small { color: var(--muted); font-size: 12px; }
.app-bar .btn { height: 36px; padding: 0 18px; }
.app-bar-x { flex: none; }
.app-panel { max-width: 420px; }
.app-opt { width: 100%; display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.app-opt > b { color: var(--gold); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.app-opt small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.app-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.app-steps li p { margin: 0; line-height: 1.5; }
.app-steps li > span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 160, 48, .16); color: var(--gold-2); font-weight: 800; font-size: 12px; }
.app-steps svg { width: 18px; height: 18px; color: var(--gold-2); vertical-align: -4px; }
.in-app [data-get-app] { display: none !important; }

/* Live chat under the player on phones */
.chat.chat-under { margin-top: 12px; border-radius: var(--radius); }
@media (max-width: 1100px) { .chat.chat-under .chat-messages { font-size: 14px; } }

/* Download on Mobile badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.app-panel .store-badges { justify-content: center; margin: 6px 0 14px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; height: 50px; padding: 0 16px 0 12px; border-radius: 12px; background: #000; border: 1px solid rgba(240, 195, 90, .35); color: #fff; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.store-badge:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212, 160, 48, .18); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge[data-dl="android"] svg { color: #8bd16a; }
.store-badge[data-dl="ios"] svg { color: var(--gold-2); }
.store-badge span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 10px; color: #bdb2a0; letter-spacing: .3px; }
.store-badge b { font-size: 17px; font-weight: 700; }
.footer-app .store-badges { flex-direction: column; align-items: flex-start; }
.app-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.in-app .footer-app { display: none; }
@media (max-width: 900px) { .footer-app .store-badges { flex-direction: row; } }

/* Phones: the menu button replaces Register in the header (Register is inside the menu) */
@media (max-width: 760px) {
  .menu-toggle { width: 46px; height: 46px; border-radius: 12px; color: #1a1206; border-color: transparent;
    background: linear-gradient(180deg, #f0c35a, #c8952c); box-shadow: 0 0 18px rgba(212, 160, 48, .3); }
  .menu-toggle svg { width: 24px; height: 24px; }
}
@media (max-width: 400px) {
  .header .logo { min-width: 0; flex-shrink: 1; }
  .header .logo-text { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-right { gap: 6px; flex-shrink: 0; }
  .menu-toggle { width: 42px; height: 42px; }
}
@media (max-width: 760px) {
  .header-right .btn-login { display: none; }
  .header-right .hdr-register { height: 42px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .header .logo-text span { display: none; }
}
@media (max-width: 400px) {
  .header-right .hdr-register { height: 40px; padding: 0 11px; font-size: 12px; }
}

/* Sign in with Google / Discord */
.social-btns { display: grid; gap: 10px; margin: 18px 0 4px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--border); font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s;
}
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.social-google:hover { background: #f1f1f1; }
.social-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.social-discord:hover { background: #4752c4; }
.social-btn:disabled { opacity: .6; cursor: default; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.captcha-box { display: flex; justify-content: center; margin: 4px 0 12px; min-height: 78px; overflow: hidden; }
@media (max-width: 360px) { .captcha-box > div { transform: scale(.88); transform-origin: center; } }
.welcome-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(145deg, #f0c35a, #a87a1c); border: 3px solid rgba(240, 195, 90, .5); font-size: 34px; font-weight: 800; color: #1a1206; }
.welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
#namePreview { display: block; margin-top: 6px; color: var(--muted); }
#lmSocial, #lmCaptcha, .modal .social-btns, .modal .or-line { width: 100%; align-self: stretch; }
.modal .social-btns { margin-top: 6px; }
.social-admin h4 { margin: 20px 0 6px; font-size: 15px; color: var(--gold-2); }
.social-admin h4:first-child { margin-top: 4px; }
.social-admin .hint { margin-bottom: 10px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row .input { flex: 1; min-width: 0; font-size: 13px; }

/* Channel subscribers window */
.ch-subs-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.ch-subs-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-subs-link:hover { color: var(--gold-2); }
.subs-panel { max-width: 480px; max-height: min(680px, calc(100vh - 32px)); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.subs-panel .subs-count { margin-bottom: 14px; }
.subs-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); margin-bottom: 12px; }
.subs-search:focus-within { border-color: var(--gold); }
.subs-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.subs-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; }
.subs-list { width: 100%; overflow-y: auto; display: grid; align-content: start; gap: 2px; margin: 0 -8px 10px; padding: 0 8px; width: calc(100% + 16px); }
.subs-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; min-width: 0; }
.subs-row:hover { background: rgba(212, 160, 48, .08); }
.subs-row .avatar { width: 40px; height: 40px; flex: none; }
.subs-name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.subs-name b, .subs-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subs-name small { color: var(--muted); }
.subs-since { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.subs-since svg { width: 13px; height: 13px; color: #6cbf6c; }
.subs-empty { padding: 26px 8px; text-align: center; color: var(--muted); }
.subs-empty b { color: var(--text); }
@media (max-width: 420px) { .subs-since { display: none; } }
.subs-panel [hidden] { display: none !important; }

/* Arrows beside the home filter chips (the chips never go under them) */
.feed-bar { display: flex; align-items: center; gap: 8px; }
.feed-bar .feed-chips { flex: 1; min-width: 0; }
.fscroll { flex: none; width: 30px; height: 30px; display: none; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; color: var(--text); background: none; }
.fscroll.left { order: -1; }
.fscroll svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border-gold); transition: .15s; }
.fscroll:hover svg { color: var(--gold-2); border-color: var(--gold); }
.feed-bar.can-left .fscroll.left, .feed-bar.can-right .fscroll.right { display: flex; }
@media (hover: none) { .fscroll, .fscroll svg { width: 28px; height: 28px; } }

/* Giveaway pinned at the top of the chat */
.chat-pin {
  display: flex; align-items: center; gap: 10px; margin: 10px 12px 2px; padding: 9px 12px; border-radius: 12px; cursor: pointer; flex: none;
  background: linear-gradient(135deg, rgba(212, 160, 48, .22), rgba(212, 160, 48, .08)); border: 1px solid rgba(240, 195, 90, .45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: pinIn .3s ease-out;
}
.chat-pin[hidden] { display: none; }
.chat-pin.done { cursor: default; background: linear-gradient(135deg, rgba(108, 191, 108, .22), rgba(212, 160, 48, .1)); border-color: rgba(108, 191, 108, .5); }
.cp-ic { font-size: 22px; line-height: 1; flex: none; }
.cp-body { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.cp-body small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.cp-body b { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-body b span { color: var(--muted); font-weight: 500; font-size: 13px; }
.cp-key { color: var(--gold-2) !important; font-weight: 800 !important; font-size: 15px !important; background: rgba(0, 0, 0, .3); padding: 1px 8px; border-radius: 6px; }
.cp-body em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; color: #6cbf6c; font-weight: 700; }
.cp-body em svg { width: 12px; height: 12px; }
.cp-meta { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text); background: rgba(0, 0, 0, .3); padding: 3px 8px; border-radius: 8px; }
.cp-meta svg { width: 13px; height: 13px; color: var(--gold); }
.cp-time { font-variant-numeric: tabular-nums; color: var(--gold-2); min-width: 46px; justify-content: center; }
@keyframes pinIn { from { opacity: 0; transform: translateY(-6px); } }
.msg.msg-giveaway { margin: 4px 0; padding: 7px 10px; border-radius: 10px; background: rgba(212, 160, 48, .1); border: 1px solid rgba(212, 160, 48, .25); color: var(--gold-2); font-weight: 600; }
.cp-winner { color: inherit; }
.cp-winner:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
a.msg.msg-giveaway.link { display: block; cursor: pointer; }
a.msg.msg-giveaway.link:hover { border-color: rgba(240, 195, 90, .6); }

/* Long chat messages wrap onto the next line instead of widening the chat */
.chat-messages { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.chat-messages .msg, .chat-messages .msg-text, .chat-messages .msg-reply span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

/* Sign-in buttons and robot check always fit narrow phones (also with a bigger phone font) */
.auth-card { min-width: 0; max-width: min(420px, 100%); }
.auth-card form, .social-btns { min-width: 0; max-width: 100%; }
.social-btn { min-width: 0; max-width: 100%; height: auto; min-height: 48px; padding: 10px 14px; white-space: normal; text-align: center; line-height: 1.25; }
.social-btn span { min-width: 0; overflow-wrap: anywhere; }
.captcha-box { justify-content: flex-start; width: 100%; max-width: 100%; }
.captcha-box > div { max-width: none; }
@media (max-width: 400px) { .social-btn { font-size: 14px; gap: 10px; } }

.modal { grid-template-columns: minmax(0, 1fr); }
.modal-panel { grid-template-columns: minmax(0, 1fr); min-width: 0; max-height: calc(100vh - 20px); overflow-y: auto; }
.modal-panel > * { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .modal { padding: 10px; }
  .modal-panel { padding: 24px 16px 20px; }
  .modal-panel h2 { font-size: 21px; padding-right: 36px; }
}
.drawer-actions .btn { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 14px; line-height: 1; }
.drawer-actions .btn-dark { color: var(--text); }
.drawer-actions .btn-gold, .drawer-actions .btn-gold:hover { color: #1a1206; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark)); }

/* Comment likes, replies (YouTube style) */
.c-actions { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 -8px; }
.c-act { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
.c-act:hover { background: rgba(255, 255, 255, .08); }
.c-act svg { width: 18px; height: 18px; }
.c-act.on { color: var(--gold); }
.c-act.on svg { fill: rgba(212, 160, 48, .25); }
.c-likes { font-size: 12px; color: var(--muted); min-width: 4px; margin: 0 6px 0 -2px; }
.c-likes:empty { margin: 0; }
.c-reply-btn { border: 0; background: none; color: var(--text); font-weight: 600; font-size: 12.5px; padding: 8px 14px; border-radius: 20px; cursor: pointer; margin-left: 6px; }
.c-reply-btn:hover { background: rgba(255, 255, 255, .08); }
.c-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--gold); font-weight: 600; font-size: 14px; padding: 8px 14px; margin: 2px 0 0 -14px; border-radius: 20px; cursor: pointer; }
.c-toggle:hover { background: rgba(212, 160, 48, .12); }
.c-toggle[hidden] { display: none; }
.c-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.comment.replies-open > .comment-body > .c-toggle svg { transform: rotate(180deg); }
.c-replies { display: grid; gap: 14px; margin-top: 8px; position: relative; }
.c-replies[hidden] { display: none; }
.comment.replies-open > .comment-body > .c-replies::before { content: ""; position: absolute; left: -35px; top: -12px; bottom: -34px; width: 1px; background: var(--border); }
.comment.replies-open > .comment-body > .c-toggle { margin-top: 10px; }
.comment.is-reply .avatar { width: 26px; height: 26px; font-size: 12px; flex: none; }
.comment.is-reply { gap: 12px; }
.reply-form { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 4px; }
.reply-form .avatar { width: 26px; height: 26px; font-size: 12px; flex: none; }
.reply-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); font: inherit; font-size: 14px; padding: 4px 0 6px; resize: none; outline: none; }
.reply-form textarea:focus { border-bottom-color: var(--gold); }
.comment-del { flex: none; }

/* Player settings menu (quality, speed) */
.qmenu {
  position: absolute; right: 12px; z-index: 6; min-width: 250px; max-width: calc(100% - 24px); max-height: calc(100% - 70px); overflow-y: auto;
  padding: 8px 0; border-radius: 12px; background: rgba(28, 22, 16, .92); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); color: #fff; font-size: 14px;
}
.qmenu[hidden] { display: none; }
.qmenu.bottom { bottom: 58px; }
.qmenu.top { top: 50px; }
.qmenu button { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.qm-row { padding: 11px 16px; }
.qm-row:hover, .qm-opt:hover, .qm-head:hover { background: rgba(255, 255, 255, .08); }
.qm-row > svg:first-child { width: 22px; height: 22px; flex: none; }
.qm-row span { flex: 1; font-weight: 500; }
.qm-row em { font-style: normal; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.qm-row > svg:last-child { width: 16px; height: 16px; flex: none; opacity: .8; }
.qm-head { padding: 8px 14px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .12) !important; font-weight: 700; }
.qm-head svg { width: 18px; height: 18px; }
.qm-opt { padding: 10px 16px; font-weight: 600; }
.qm-opt i { width: 20px; display: grid; place-items: center; flex: none; }
.qm-opt i svg { width: 18px; height: 18px; color: var(--gold-2); }
.qm-opt sup, .qm-row sup { font-size: 9px; margin-left: 2px; color: var(--gold-2); font-weight: 800; vertical-align: super; }
.player.menu-open .live-bar, .player.menu-open .player-tools { opacity: 1; pointer-events: auto; }
.lb-gear.on svg, .player-gear.on svg { transform: rotate(30deg); }
.lb-gear svg, .player-gear svg { transition: transform .2s; }
.lb-gear[hidden] { display: none; }
@media (max-width: 1100px) { .player-tool.player-gear { display: grid; } }
@media (hover: none) { .player-tools { opacity: 1; pointer-events: auto; } .player-tools .player-q { display: none; } }
.player.audio-only::before {
  content: "Audio only"; position: absolute; inset: 0 0 64px 0; z-index: 1; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(212, 160, 48, .2), rgba(0, 0, 0, 0) 60%), rgba(12, 9, 6, .94); color: var(--gold-2);
  font-family: "Cinzel", serif; font-size: 22px; letter-spacing: 1px;
}

/* Player bar for videos and live (own controls, YouTube-like) */
.player.own-bar #theaterBtn { display: none; }
.live-bar { padding: 34px 12px 8px; gap: 4px; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, 0)); }
.vod-bar { flex-wrap: wrap; padding-top: 40px; }
.player.is-vod:not(.show-bar):not(.paused) { cursor: none; }
.lb-btn { border-radius: 50%; width: 40px; height: 40px; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lb-btn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.lb-gear:hover svg, .lb-gear.on svg { color: var(--gold-2); }
.lb-time { color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lb-seek { position: relative; flex: 0 0 100%; height: 18px; margin: 0 4px 2px; cursor: pointer; touch-action: none; outline: none; }
.lb-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .12s, top .12s; }
.lb-track i { position: absolute; left: 0; top: 0; bottom: 0; }
.lb-buf { width: var(--b, 0%); background: rgba(255, 255, 255, .35); }
.lb-played { width: var(--p, 0%); background: linear-gradient(90deg, var(--gold-dark), var(--gold) 60%, var(--gold-2)); }
.lb-knob { position: absolute; top: 9px; left: var(--p, 0%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(212, 160, 48, .25), 0 2px 6px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .12s; }
.lb-seek:hover .lb-track, .lb-seek.drag .lb-track, .lb-seek:focus-visible .lb-track { top: 6px; height: 6px; }
.lb-seek:hover .lb-knob, .lb-seek.drag .lb-knob, .lb-seek:focus-visible .lb-knob { transform: scale(1); }
.lb-tip { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(20, 15, 10, .92); border: 1px solid rgba(212, 160, 48, .35); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: nowrap; }
.lb-seek:hover .lb-tip, .lb-seek.drag .lb-tip { opacity: 1; }
.lb-live { height: 28px; border-radius: 14px; padding: 0 12px; }
.qmenu.bottom { bottom: 62px; right: 14px; }
.vod-bar ~ .qmenu.bottom, .player.is-vod .qmenu.bottom { bottom: 84px; }
@media (hover: none) { .lb-tip { display: none; } .lb-seek .lb-knob { transform: scale(1); } }
@media (max-width: 560px) {
  .live-bar { padding-left: 6px; padding-right: 6px; gap: 0; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-btn svg { width: 20px; height: 20px; }

  .lb-time { font-size: 12px; margin-left: 2px; }
}
@media (max-width: 1100px) { .lb-theater { display: none; } }
#moreDrop .drop-danger { color: var(--red); border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }
#moreDrop .drop-danger:hover { background: rgba(224, 83, 74, .12); color: #ff7b72; }
#moreDrop .drop-danger svg { width: 16px; height: 16px; }
.feed-chips > * { transition: opacity .15s; }
.feed-chips > .fchip-cut { opacity: 0; pointer-events: none; }
.feed-bar .fscroll.right { margin-left: 6px; }
.stat-head { display: flex; align-items: center; gap: 8px; margin: -2px 2px 10px; }
.stat-head span { font-family: "Cinzel", serif; font-weight: 700; font-size: 14px; color: var(--gold-2); letter-spacing: .5px; }
.stat-head span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 8px rgba(212, 160, 48, .7); }
.stat-head small { margin-left: auto; color: var(--muted); font-size: 11px; }
.stat-head-2 { margin-top: 14px; }
.stat-tile.wide { grid-column: 1 / -1; }

/* ---------- External upload (YouTube, TikTok, Twitch, Kick) ---------- */
.src-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; border-radius: 999px;
  background: rgba(10, 8, 6, .82); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; backdrop-filter: blur(4px); white-space: nowrap;
}
.src-tag i, .src-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--src, var(--gold)); box-shadow: 0 0 8px var(--src, var(--gold)); flex: 0 0 auto; }
.src-youtube { --src: #ff3341; }
.src-tiktok { --src: #25f4ee; }
.src-twitch { --src: #a970ff; }
.src-kick { --src: #53fc18; }
.mini .thumb .src-tag { font-size: 10px; padding: 2px 6px; }
.mini .thumb .corner-tr { right: 6px; top: 6px; }

.hdr-ext svg { width: 17px; height: 17px; }

.ext-panel { max-width: 560px; }
.ext-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--muted); transition: .15s;
}
.src-chip.on { color: var(--text); border-color: var(--src); background: color-mix(in srgb, var(--src) 14%, transparent); }
.ext-url-field { width: 100%; }
.ext-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ext-hint.bad { color: var(--red); }
.ext-preview {
  width: 100%; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px; margin: 4px 0 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, .25);
}
.ext-preview[hidden] { display: none; }
.ext-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2a2118, #120e0a); }
.ext-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ext-thumb .src-tag { position: absolute; left: 6px; top: 6px; font-size: 10px; }
.ext-thumb .tag-live { position: absolute; right: 6px; bottom: 6px; }
.ext-info { display: grid; gap: 4px; min-width: 0; }
.ext-info strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ext-info small { font-size: 12px; color: var(--muted); }
.ext-loading { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 8px 4px; }
.ext-loading .spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(212, 160, 48, .25); border-top-color: var(--gold);
  animation: ext-spin .8s linear infinite;
}
@keyframes ext-spin { to { transform: rotate(360deg); } }
#extForm { display: grid; gap: 0; }
#extForm[hidden] { display: none; }
#extForm textarea { resize: vertical; min-height: 70px; }

.player.ext-player .player-tools, .player.ext-player .player-msg { display: none; }
.ext-frame, .ext-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 2; }
.player.ext-vertical .ext-frame, .player.ext-vertical .ext-video { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); max-width: 100%; }
.ext-fallback {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px;
  background: #000 center / cover no-repeat;
}
.ext-fallback::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(2px); }
.ext-fallback > div { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 420px; }
.ext-fallback p { color: #eee; font-size: 15px; }
.ext-fallback .btn svg { width: 16px; height: 16px; }
.ext-source {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: -6px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.ext-source:hover { color: var(--gold-2); }
.ext-source svg { width: 14px; height: 14px; }
.in-app .hdr-ext { display: none !important; }
@media (max-width: 560px) {
  .ext-preview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1700px) and (min-width: 1101px) {
  .hdr-action.hdr-ext { width: auto; padding: 0 12px; }
  .hdr-action.hdr-ext span { display: inline; }
}
.ext-live-check { margin: 2px 0 16px; font-size: 14px; }
.ext-live-check[hidden] { display: none; }
.stat-tile .ic.purple { background: rgba(180, 138, 214, .14); color: #b48ad6; }
@media (max-width: 1100px) { .drop-ext { display: none !important; } }
.in-app .drop-ext { display: none !important; }

/* Channel: past streams */
.past-streams { display: grid; gap: 14px; }
.past-stream { padding: 16px; }
.past-stream-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.past-stream-head strong { font-size: 16px; overflow-wrap: anywhere; }
.past-stream-head small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.past-stream .summary-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 700px) { .past-stream .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Live on a phone turned sideways: stream on the left, chat on the right (can be hidden) */
.lb-chat { display: none !important; }
html:has(body.live-land), body.live-land { overflow: hidden; width: 100%; height: 100%; }
body.live-land #player {
  position: fixed; left: 0; top: 0; bottom: 0; right: clamp(220px, 36vw, 340px); z-index: 400;
  width: auto; height: auto; aspect-ratio: auto; border-radius: 0; border: 0; margin: 0;
}
body.live-land #chatPanel {
  position: fixed !important; top: 0; right: 0; bottom: 0; z-index: 400;
  width: clamp(220px, 36vw, 340px); max-width: 45vw; height: auto !important; margin: 0; border-radius: 0; border-width: 0 0 0 1px;
  display: flex !important; flex-direction: column;
}
body.live-land #chatPanel .chat-head { padding-top: 8px; padding-bottom: 8px; }
body.live-land.land-chat-hidden #player { right: 0; }
body.live-land.land-chat-hidden #chatPanel { display: none !important; }
body.live-land .player-tools { right: 120px; }
/* Phones and tablets: nothing may make the page wider than the screen (no sideways scrolling) */
@media (max-width: 1100px) { html, body { overflow-x: clip; max-width: 100%; } }

/* ---------- Language picker ---------- */
.flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex-shrink: 0; }
.lang-menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 30px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-btn:hover { border-color: var(--border-gold); color: var(--text); }
.lang-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 2px;
  min-width: 300px; padding: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.lang-menu.open .lang-drop { display: grid; }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; }
.lang-item:hover { background: rgba(212, 160, 48, .1); color: var(--text); }
.lang-item.active { color: var(--gold-2); background: rgba(212, 160, 48, .08); }
.lang-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-flag { padding: 3px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: .75; }
.lang-flag:hover, .lang-flag.active { opacity: 1; border-color: var(--border-gold); }
.drawer-panel .lang-flags { margin-top: 16px; }
@media (max-width: 1100px) { .hdr-lang { display: none; } }

/* Translated chat messages and comments */
.is-translated { font-style: italic; }
.tr-note { display: block; border: 0; background: none; padding: 2px 0 0; color: var(--gold, #d4a24c); font-size: 11.5px; cursor: pointer; opacity: .85; }
.tr-note:hover { opacity: 1; text-decoration: underline; }
.msg .tr-note { display: inline; margin-left: 6px; }
.c-tr-btn { color: var(--muted, #a99); font-weight: 500; }

/* Header steps when the texts do not fit (set by fitHeader in core.js) */
.header .nav a { white-space: nowrap; }
.header-right .btn { white-space: nowrap; }
.header.fit-1 .hdr-action.hdr-ext { width: 38px; padding: 0; }
.header.fit-1 .hdr-action.hdr-ext span { display: none; }
.header.fit-2 .lang-code { display: none; }
.header.fit-2 .lang-btn { padding: 0 8px; }
.header.fit-2 .container { gap: 18px; }
.header.fit-2 .nav a { padding: 8px 8px; }
.header.fit-3 .search { width: 150px; }
.header.fit-3 .search .kbd { display: none; }
.header.fit-4 .search { display: none; }
.header.fit-4 .header-right .divider-v:first-of-type { display: none; }
.header.fit-5 .nav { gap: 0; }
.header.fit-5 .nav a { padding: 8px 6px; font-size: 11.5px; letter-spacing: .2px; }
.header.fit-5 .header-right { gap: 6px; }

.in-app .drop-app { display: none !important; }

.doc a { color: var(--gold-2); }
.doc-contact { margin: 14px 0 6px; padding: 14px 18px; border: 1px solid var(--border-gold); border-radius: var(--radius-sm); background: rgba(212, 160, 48, .06); }
.doc-contact h3 { font-size: 15px; margin-bottom: 8px; }
.doc-contact p { margin-bottom: 4px; }

/* Pinned chat message */
.chat-pinned { display: flex; align-items: flex-start; gap: 10px; margin: 8px 12px 2px; padding: 9px 10px 9px 12px; border-radius: 12px; flex: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: pinIn .3s ease-out; }
.chat-pinned[hidden] { display: none; }
.pm-ic { color: var(--gold-2); flex: none; margin-top: 2px; }
.pm-ic svg { width: 16px; height: 16px; }
.pm-body { flex: 1; min-width: 0; line-height: 1.3; }
.pm-body small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; margin-bottom: 2px; }
.pm-body small .pm-by { text-transform: none; letter-spacing: 0; color: var(--text); }
.pm-body p { margin: 0; font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pm-body .msg-user { margin-right: 6px; }
.pm-x { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
.pm-x:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.pm-x svg { width: 15px; height: 15px; }

/* Phones: the page never moves sideways */
@media (max-width: 860px) {
  html, body { overflow-x: clip; max-width: 100%; }
}

/* Fullscreen on iPhone for live streams: our own player over the whole window (no video time bar) */
body.fake-fs-on { overflow: hidden; }
.player.fake-fs { position: fixed !important; inset: 0; z-index: 9999; width: 100vw !important; height: 100dvh !important; max-width: none; border-radius: 0 !important; border: 0; margin: 0; background: #000; }
.player.fake-fs video { width: 100%; height: 100%; object-fit: contain; }
/* The browser's own video controls (with the time) never show on live streams */
.player.is-live video::-webkit-media-controls, .player.is-live video::-webkit-media-controls-enclosure { display: none !important; }

/* ---------- Live stream on a phone held upright, like Kick (body.live-phone, set by phoneLive in watch.js) ----------
   Player on top (no site header), channel row, then the chat filling the rest; writing keeps the player and the chat in view. */
html:has(body.live-phone), body.live-phone { overflow: hidden; height: 100%; overscroll-behavior: none; background: #000; }
body.live-phone #site-header, body.live-phone .header, body.live-phone .topline, body.live-phone #site-footer, body.live-phone footer,
body.live-phone .app-bar, body.live-phone #watchWrap > .stack, body.live-phone #descBox, body.live-phone #commentsSec,
body.live-phone #moreLiveWrap { display: none !important; }
body.live-phone main.page {
  position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100dvh);
  padding: env(safe-area-inset-top) 0 0; margin: 0; overflow: hidden; background: #000; z-index: 5;
}
body.live-phone #watchWrap { display: block; height: 100%; padding: 0; max-width: none; }
body.live-phone #watchWrap > div:first-child { display: flex; flex-direction: column; height: 100%; min-height: 0; }
body.live-phone #player { flex: none; order: 0; border-radius: 0; border: 0; margin: 0; }
body.live-phone .m-back { display: grid; }

/* Channel row: avatar, name, title and subscribers; the Subscribe button under it */
body.live-phone .watch-info {
  order: 1; flex: none; margin: 0; padding: 10px 12px 8px; gap: 0 10px; background: #0c0a07;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "av name name" "av title title" "av meta meta" "sub sub react";
}
body.live-phone .yt-bar, body.live-phone .yt-channel, body.live-phone .yt-channel-text { display: contents; }
body.live-phone #wAvatar { grid-area: av; width: 44px; height: 44px; align-self: start; font-size: 17px; }
body.live-phone #wName { grid-area: name; font-size: 15px; font-weight: 800; line-height: 1.2; }
body.live-phone .watch-info h1 { grid-area: title; font-size: 13.5px; font-weight: 500; line-height: 1.3; margin: 1px 0 0; color: var(--text);
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.live-phone #wMeta { grid-area: meta; font-size: 12px; margin-top: 2px; }
body.live-phone #followBtn { grid-area: sub; width: 100%; height: 38px; margin-top: 10px; justify-content: center; font-size: 14px; }
body.live-phone #wMsgBtn { display: none !important; }
body.live-phone .yt-actions { display: contents; }
body.live-phone .yt-actions > :not(#reactGroup) { display: none !important; }
body.live-phone #reactGroup { grid-area: react; margin: 10px 0 0 8px; height: 38px; }
body.live-phone #reactGroup .pill { height: 36px; }
body.live-phone.kb-open #reactGroup { display: none !important; }

/* Chat */
body.live-phone #chatPanel { order: 2; flex: 1 1 auto; height: auto !important; min-height: 0; margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: #000; box-shadow: none; }
body.live-phone #chatPanel .chat-head { display: none; }
body.live-phone #chatPanel .chat-messages { padding: 6px 12px 6px 20px; gap: 4px; font-size: 14px; line-height: 1.4; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
body.live-phone #chatPanel .chat-form { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #0c0a07; }
body.live-phone #chatPanel .chat-form .input, body.live-phone #chatPanel .chat-form input { font-size: 16px; height: 42px; }
body.live-phone #chatPanel .chat-form .btn { height: 42px; width: 46px !important; }
body.live-phone .chat-pin, body.live-phone .chat-pinned { margin: 8px 10px 2px; padding: 8px 10px; }
body.live-phone .chat-pinned .pm-body p { -webkit-line-clamp: 3; }

/* Writing: the channel row steps aside, the player stays on top and the newest messages stay above the keyboard */
body.live-phone.kb-open .watch-info, body.live-phone.kb-open .chat-pin, body.live-phone.kb-open .chat-pinned { display: none !important; }
body.live-phone.kb-open #chatPanel .chat-form { padding-bottom: 8px; }

/* Back arrow on the player (the site header is hidden on the phone live page) */
.m-back { display: none; position: absolute; left: 8px; top: 8px; z-index: 6; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.m-back svg { width: 20px; height: 20px; }
body.live-phone #playerBadges, body.live-land #playerBadges { left: 52px; }

/* Phone turned sideways (body.live-land): the visible area follows the keyboard too */
body.live-land #player { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100dvh); }
body.live-land #chatPanel { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100dvh) !important; background: #000; }
body.live-land #chatPanel .chat-form .input, body.live-land #chatPanel .chat-form input { font-size: 16px; }
body.live-land #chatPanel .chat-head { display: none; }
body.live-land.kb-open .chat-pin, body.live-land.kb-open .chat-pinned { display: none !important; }
body.live-land .m-back { display: grid; }

/* Writing on a phone: stream on top (smaller when the screen is short), a few chat messages, the chat box fully visible */
body.live-phone.kb-open #player { aspect-ratio: auto; height: var(--kb-player, 56.25vw); width: 100%; }
body.live-phone #chatPanel { display: flex !important; flex-direction: column; overflow: hidden; }
body.live-phone #chatPanel .chat-messages { flex: 1 1 auto; min-height: 0; }
body.live-phone #chatPanel .chat-form { flex: none; display: flex; align-items: center; gap: 8px; }
body.live-phone #chatPanel .chat-form .input { flex: 1; min-width: 0; }
body.live-phone.kb-open #chatPanel .chat-form { padding: 8px 10px; }
body.live-phone, body.live-land, body.live-phone #chatPanel, body.live-land #chatPanel { touch-action: manipulation; }
/* Sideways with the chat shown: stream on the left, chat on the right */
body.fake-fs-on.live-land:not(.land-chat-hidden) .player.fake-fs { right: clamp(220px, 36vw, 340px) !important; width: auto !important; }
body.fake-fs-on.live-land:not(.land-chat-hidden) #chatPanel { z-index: 10000; }
/* Phone turned sideways (also in fullscreen): the hide / show chat button stays on the stream, left of the fullscreen button */
body.live-land .lb-chat {
  display: grid !important; place-items: center; position: absolute; z-index: 8; padding: 0;
  right: 56px; bottom: 8px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: none; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85));
  -webkit-tap-highlight-color: transparent;
}
body.live-land .lb-chat svg { width: 22px; height: 22px; }
body.live-land .lb-chat.off { color: rgba(255, 255, 255, .8); }
body.live-land .lb-chat.off::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%) rotate(-45deg);
}
/* Share window (video page): copy link or embed code */
.share-panel h2 { margin: 0 0 16px; }
.share-opts { display: flex; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: var(--text, #e8dcc8); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.share-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #f3f0ea; color: #222; transition: transform .15s; }
.share-ic svg { width: 26px; height: 26px; }
.share-opt:hover .share-ic { transform: scale(1.06); }
.share-link { display: flex; gap: 8px; }
.share-link .input { flex: 1; min-width: 0; }
.share-code { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: none; }
.share-start { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.share-start .input { width: 90px; height: 36px; }
.share-actions { display: flex; justify-content: flex-end; gap: 8px; }
.share-panel #shMain, .share-panel #shEmbedView { width: 100%; }
.share-panel { width: min(560px, calc(100vw - 32px)); }
.share-code { display: block; width: 100% !important; max-width: none; min-height: 150px; }

/* ---------- Comment giveaway ---------- */
.gwc-row { display: flex; gap: 10px; }
.gwc-row .input { flex: 1; min-width: 0; }
.gwc-link .hint:empty { display: none; }
.gwc-link .hint { margin-top: 10px; }
.gwc-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.gwc-video { display: block; color: inherit; text-decoration: none; padding: 0; overflow: hidden; }
.gwc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 0; }
.gwc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gwc-vinfo { padding: 14px 16px 16px; }
.gwc-opt { margin-top: 10px; font-size: 14px; }
.gwc-stage { text-align: center; }
.gwc-count b { display: block; font-family: "Cinzel", serif; font-size: 46px; line-height: 1.1; color: var(--gold-2); }
.gwc-count span { color: var(--muted); font-size: 14px; }
.gwc-roll { min-height: 150px; margin: 18px 0; padding: 18px; border: 1px dashed var(--border-gold); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(212, 160, 48, .04); }
.gwc-roll.done { border-style: solid; background: linear-gradient(180deg, rgba(240, 195, 90, .14), rgba(240, 195, 90, .03)); box-shadow: 0 0 0 3px rgba(212, 160, 48, .12); animation: gwc-pop .5s ease; }
@keyframes gwc-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.gwc-roll-hint { color: var(--muted); font-size: 14px; }
.gwc-crown { color: var(--gold-2); }
.gwc-crown svg { width: 34px; height: 34px; }
.gwc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gwc-person { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; text-align: left; }
.gwc-person span { display: grid; min-width: 0; }
.gwc-person b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwc-person small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwc-person.rolling b, .gwc-person.winner b { font-size: 20px; }
.gwc-person.winner b { color: var(--gold-2); }
.gwc-said { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 520px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gwc-winners { list-style: none; display: grid; gap: 12px; counter-reset: gwc; }
.gwc-winners li { counter-increment: gwc; display: grid; grid-template-columns: 28px 1fr; gap: 4px 8px; align-items: center; }
.gwc-winners li::before { content: counter(gwc) "."; color: var(--gold-2); font-weight: 700; }
.gwc-winners .gwc-said { grid-column: 2; }
.panel-title .gwc-copy { margin-left: auto; }
.panel-title .gwc-search { margin-left: auto; max-width: 200px; height: 34px; font-size: 13px; }
.gwc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.gwc-entry { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); min-width: 0; }
.gwc-entry .gwc-person { flex: 1; }
.gwc-entry.won { border-color: var(--border-gold); background: rgba(240, 195, 90, .1); }
.gwc-n { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) {
  .gwc-main { grid-template-columns: 1fr; }
  .gwc-row { flex-direction: column; }
  .panel-title .gwc-search { max-width: 150px; }
}
.gwc-main[hidden], .gwc-actions [hidden], .gwc-main .panel[hidden] { display: none !important; }

/* ---------- Messages ---------- */
.dm-btn { text-decoration: none; }
.dm-page { padding-bottom: 20px; }
.dm-shell {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--header-h) - 56px); min-height: 460px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.dm-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.dm-side-head { padding: 18px 18px 10px; }
.dm-side-head h1 { font-family: "Cinzel", serif; font-size: 22px; }
.dm-find { padding: 0 14px 12px; }
.dm-find .input { height: 40px; font-size: 14px; }
.dm-people { padding: 0 8px 8px; border-bottom: 1px solid var(--border); }
.dm-people-title { padding: 4px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); }
.dm-person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.dm-person:hover { background: var(--panel-2); }
.dm-person span { display: grid; min-width: 0; }
.dm-person small { color: var(--muted); font-size: 12px; }
.dm-list { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.dm-note { color: var(--muted); font-size: 14px; padding: 14px 10px; line-height: 1.5; }
.dm-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; -webkit-touch-callout: none; user-select: none; }
.dm-item:hover { background: var(--panel-2); }
.dm-item.active { background: rgba(212, 160, 48, .12); box-shadow: inset 3px 0 0 var(--gold); }
.dm-av { position: relative; flex: none; }
.dm-av .avatar { width: 46px; height: 46px; font-size: 18px; }
.dm-live { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 4px; letter-spacing: .4px; }
.dm-item-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dm-item-top, .dm-item-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-item-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dm-item-top small { color: var(--muted); font-size: 12px; flex: none; }
.dm-prev { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item.unread .dm-item-top b { font-weight: 800; }
.dm-item.unread .dm-prev { color: var(--text); font-weight: 600; }
.dm-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1a1206; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.dm-tag { flex: none; font-size: 10px; font-weight: 700; color: var(--red); border: 1px solid rgba(224, 83, 74, .5); border-radius: 5px; padding: 1px 5px; }

.dm-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg-2); }
.dm-empty { margin: auto; text-align: center; padding: 30px; color: var(--muted); }
.dm-empty-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 160, 48, .1); color: var(--gold-2); }
.dm-empty-ic svg { width: 28px; height: 28px; }
.dm-empty h2 { font-family: "Cinzel", serif; color: var(--text); font-size: 22px; margin-bottom: 6px; }
.dm-empty[hidden], .dm-thread[hidden], .dm-blocked[hidden], .dm-compose[hidden], .dm-replying[hidden], .dm-people[hidden] { display: none !important; }
.dm-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.dm-back { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; place-items: center; }
.dm-back svg { width: 22px; height: 22px; }
.dm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.dm-who span { display: grid; min-width: 0; }
.dm-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-who small { color: var(--muted); font-size: 12px; }
.dm-live-text { color: var(--red); font-weight: 700; }
.dm-menu-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--panel-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dm-menu-btn:hover { color: var(--gold-2); border-color: var(--border-gold); }
.dm-menu-btn svg { width: 18px; height: 18px; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.dm-loading { margin: auto; color: var(--muted); font-size: 14px; }
.dm-start { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); }
.dm-start .avatar { width: 72px; height: 72px; font-size: 28px; }
.dm-start b { color: var(--text); font-size: 18px; }
.dm-older { align-self: center; margin: 4px 0 10px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 16px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.dm-older:hover { color: var(--gold-2); border-color: var(--border-gold); }
.dm-day { align-self: center; margin: 12px 0 8px; }
.dm-day span { font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); padding: 3px 10px; border-radius: 12px; }
.dm-msg { display: flex; align-items: center; gap: 4px; max-width: 78%; }
.dm-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.dm-msg.theirs { align-self: flex-start; }
.dm-bubble { position: relative; padding: 8px 12px 6px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--border); min-width: 0; }
.dm-msg.mine .dm-bubble { background: linear-gradient(180deg, rgba(240, 195, 90, .24), rgba(212, 160, 48, .16)); border-color: rgba(212, 160, 48, .45); }
.dm-msg.pending .dm-bubble { opacity: .6; }
.dm-msg.flash .dm-bubble { box-shadow: 0 0 0 2px var(--gold-2); transition: box-shadow .3s; }
.dm-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 14.5px; }
.dm-text a { color: var(--gold-2); text-decoration: underline; }
.dm-del { color: var(--muted); font-size: 13px; }
.dm-time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.dm-quote { display: grid; gap: 1px; margin: 0 0 6px; padding: 4px 8px; border-left: 3px solid var(--gold); background: rgba(0, 0, 0, .18); border-radius: 6px; cursor: pointer; font-size: 12.5px; max-width: 100%; }
.dm-quote b { color: var(--gold-2); font-size: 12px; }
.dm-quote span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-msg-more { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.dm-msg-more svg { width: 16px; height: 16px; }
.dm-msg:hover .dm-msg-more { opacity: 1; }
.dm-msg-more:hover { color: var(--gold-2); background: var(--panel); }
@media (hover: none) { .dm-msg-more { opacity: .7; } }
.dm-seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin: 2px 4px 0; }
.dm-blocked { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; text-align: center; background: var(--panel); }
.dm-link { border: 0; background: none; color: var(--gold-2); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.dm-compose { position: relative; padding: 10px 12px 12px; border-top: 1px solid var(--border); background: var(--panel); }
.dm-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.dm-compose textarea.input { height: 44px; resize: none; min-height: 44px; max-height: 140px; padding-top: 11px; padding-bottom: 11px; line-height: 1.4; font: inherit; font-size: 14.5px; }
.dm-compose .chat-input-wrap .emoji-btn { top: auto; bottom: 7px; transform: none; }
.dm-send { width: 44px; height: 44px; padding: 0; flex: none; border-radius: 50%; }
.dm-send svg { width: 18px; height: 18px; }
.dm-replying { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 10px; border-left: 3px solid var(--gold); background: var(--panel-2); border-radius: 6px; }
.dm-replying > span { flex: 1; min-width: 0; display: grid; font-size: 12.5px; }
.dm-replying > span svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: var(--gold-2); }
.dm-replying small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-replying button { border: 0; background: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; }
.dm-replying button svg { width: 16px; height: 16px; }
.dm-pop { position: fixed; z-index: 400; min-width: 200px; padding: 6px; background: var(--panel-2); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: pop .12s ease-out; }
.dm-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dm-pop button:hover { background: rgba(212, 160, 48, .12); }
.dm-pop button.danger { color: #ff8a80; }
.dm-pop button svg { width: 16px; height: 16px; flex: none; }
.dm-confirm { max-width: 420px; }
.dm-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .dm-page .container { padding: 0; }
  .dm-page { padding: 0; }
  .dm-shell { grid-template-columns: 1fr; height: calc(100dvh - var(--header-h)); border-radius: 0; border-left: 0; border-right: 0; min-height: 0; }
  .dm-shell .dm-main { display: none; }
  .dm-shell.show-thread .dm-side { display: none; }
  .dm-shell.show-thread .dm-main { display: flex; }
  .dm-back { display: grid; }
  .dm-msg { max-width: 88%; }
}
@media (max-width: 760px) { body[data-page="messages"] #site-footer { display: none; } }
@media (max-width: 760px) { .dm-compose textarea.input, .dm-find .input { font-size: 16px; } }
.yt-channel .btn-msg { height: 38px; padding: 0 16px; border-radius: 30px; gap: 7px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; }
.yt-channel .btn-msg:hover { background: #2e2416; border-color: var(--border-gold); color: var(--gold-2); }
.yt-channel .btn-msg svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .yt-channel .btn-msg span { display: none; } .yt-channel .btn-msg { width: 38px; padding: 0; justify-content: center; } }
.uc-actions { flex-wrap: wrap; }
.uc-actions .uc-view { flex-basis: 100%; }
/* Channel page (visitor): Message and Subscribers look like the Subscribe pill */
#chActions .btn-sub ~ .btn { height: 38px; padding: 0 16px; border-radius: 30px; gap: 7px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; }
#chActions .btn-sub ~ .btn:hover { background: #2e2416; border-color: var(--border-gold); color: var(--gold-2); }
#chActions .btn-sub ~ .btn svg { width: 16px; height: 16px; }
.dm-compose .chat-input-wrap textarea.input { padding-right: 52px; overflow-y: hidden; scrollbar-width: thin; }
.dm-compose .chat-input-wrap .emoji-btn { right: 12px; }
/* Phone, video page: avatar, name, Subscribe and Message fit on one row */
@media (max-width: 600px) {
  body:not(.live-phone) .yt-channel { gap: 8px; width: 100%; }
  body:not(.live-phone) .yt-channel-text { flex: 1; margin-right: 0; }
  body:not(.live-phone) .yt-channel-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.live-phone) .yt-channel .btn-sub { flex: none; padding: 0 14px; }
  body:not(.live-phone) .yt-channel .btn-msg { flex: none; }
}

/* Phones: big play / pause button in the middle of the player, shown with the controls */
.player .lb-center { display: none; }
.player.touch-ui .lb-center {
  display: grid; place-items: center; position: absolute; left: 50%; top: 50%; z-index: 6; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.player.touch-ui .lb-center svg { width: 30px; height: 30px; }
.player.touch-ui.show-bar .lb-center, .player.touch-ui.paused .lb-center { opacity: 1; pointer-events: auto; }

/* Video uploads turned off in the admin panel */
html.no-uploads a[href="/upload"], html.no-uploads [data-ext-upload], html.no-uploads [data-upload-ui] { display: none !important; }

/* Copyright warning shown to the streamer */
.strike-modal .modal-panel { max-width: 460px; }
.strike-count { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #b3261e; color: #fff; font-size: .75em; vertical-align: middle; }
.strike-list { margin: 10px 0 12px; padding-left: 18px; color: var(--text); }
.strike-list li { margin: 4px 0; }
.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 6px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--gold); }
/* With the videos tile shown there are 7 tiles: the last one takes the whole row */
html:not(.no-uploads) .stat-total .stat-tile:last-child { grid-column: 1 / -1; }
