:root {
  color-scheme: dark;
  --bg: #0e0f14;
  --shell: #14161d;
  --panel: #181b23;
  --panel-2: #20242e;
  --panel-3: #292e3a;
  --text: #f7f8fb;
  --muted: #adb4c2;
  --soft: #737b8c;
  --line: rgba(255, 255, 255, .10);
  --accent: #58d68d;
  --accent-2: #6bb6ff;
  --danger: #ff5b75;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --shell: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef2f6;
  --panel-3: #e4e9f0;
  --text: #121722;
  --muted: #5d6675;
  --soft: #8a93a1;
  --line: rgba(18, 23, 34, .12);
  --accent: #167245;
  --accent-2: #266f9d;
  --danger: #d93156;
  --shadow: 0 18px 54px rgba(18, 23, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

:target {
  scroll-margin-top: 82px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  gap: 14px;
  align-items: center;
  height: 62px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--shell) 92%, transparent);
  backdrop-filter: blur(18px);
}

.topbar > div:empty {
  display: none;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.top-right { justify-content: end; }

.icon-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-2);
}

.icon-button {
  width: 38px;
  height: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 1000;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--bg);
  background: var(--accent);
}

.top-nav {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: 0;
}

.top-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.top-nav .nav-guarantee {
  position: relative;
  isolation: isolate;
  color: #05060a;
  background: linear-gradient(90deg, #ffea00, #38ff8b, #35b7ff, #ff4df3, #ffea00);
  background-size: 320% 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .22) inset,
    0 0 14px rgba(255, 224, 55, .65),
    0 0 30px rgba(56, 255, 139, .32);
  font-weight: 1000;
  animation: guaranteeColorFlow 2.2s linear infinite, guaranteePulse 1.15s ease-in-out infinite;
}

.top-nav .nav-guarantee::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(10px);
  opacity: .72;
  animation: guaranteeColorFlow 2.2s linear infinite;
}

.top-nav .nav-guarantee:hover {
  color: #05060a;
  transform: translateY(-1px);
}

@keyframes guaranteeColorFlow {
  from { background-position: 0% 50%; }
  to { background-position: 320% 50%; }
}

@keyframes guaranteePulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .22) inset,
      0 0 14px rgba(255, 224, 55, .60),
      0 0 30px rgba(56, 255, 139, .30);
  }
  50% {
    filter: brightness(1.24);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .36) inset,
      0 0 24px rgba(255, 224, 55, .95),
      0 0 48px rgba(255, 77, 243, .45);
  }
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 38vw);
  margin-left: auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}

.search-box span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.theme-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}

.theme-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.theme-switch button.is-active {
  color: var(--bg);
  background: var(--accent);
}

.drawer-nav {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 62px;
}

.channel-rail {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--shell);
}

body.rail-collapsed .app-shell {
  grid-template-columns: 70px minmax(0, 1fr);
}

body.rail-collapsed .rail-title strong,
body.rail-collapsed .rail-title span,
body.rail-collapsed .rail-channel span:not(.avatar),
body.rail-collapsed .rail-channel em {
  display: none;
}

.rail-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.rail-title span {
  color: var(--accent);
  font-weight: 1000;
}

.rail-channel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.rail-channel:hover {
  background: var(--panel-2);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 1000;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.rail-channel strong,
.rail-channel small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rail-channel small {
  color: var(--muted);
  margin-top: 3px;
}

.rail-channel em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.content {
  min-width: 0;
  padding: 18px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.watch-main,
.browse-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 62% 26%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 30%),
    linear-gradient(120deg, rgba(0,0,0,.78), rgba(0,0,0,.12) 52%, rgba(0,0,0,.70)),
    #080a0f;
}

html[data-theme="light"] .video-player {
  background:
    radial-gradient(circle at 62% 26%, color-mix(in srgb, var(--accent-2) 36%, transparent), transparent 30%),
    linear-gradient(120deg, rgba(0,0,0,.78), rgba(0,0,0,.20) 52%, rgba(0,0,0,.72)),
    #131722;
}

.video-pattern {
  position: absolute;
  inset: 10%;
  opacity: .62;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 55% 45%, #000, transparent 68%);
}

.video-center {
  position: absolute;
  left: clamp(26px, 5vw, 70px);
  bottom: clamp(86px, 7vw, 128px);
  width: min(640px, calc(100% - 52px));
}

.live-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #0e0f14;
  background: var(--accent);
  font-size: 12px;
  font-weight: 1000;
}

.video-center h1 {
  margin: 16px 0 8px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.075em;
}

.video-center p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
}

.primary-button,
.follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 1000;
  text-decoration: none;
}

.video-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.bar i {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.stream-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.stream-info > div {
  min-width: 0;
}

.stream-info h2 {
  margin: 0 0 5px;
  font-size: 24px;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.stream-info p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 800;
}

.browse-block {
  margin-top: 18px;
  padding: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
}

.section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -.065em;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-weight: 900;
}

.filter-tabs button.is-active {
  color: var(--bg);
  background: var(--accent);
}

.stream-grid,
.vod-grid,
.category-grid {
  display: grid;
  gap: 14px;
}

.stream-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vod-grid,
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stream-card,
.vod-card,
.category-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.stream-card:hover,
.vod-card:hover,
.category-card:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 86%, var(--accent));
  transform: translateY(-2px);
}

.thumb,
.vod-thumb {
  position: relative;
  min-height: 165px;
  background:
    radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px),
    var(--panel-3);
}

.thumb span,
.vod-thumb span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent);
  font-size: 11px;
  font-weight: 1000;
}

.thumb.muted span,
.vod-thumb span {
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
}

.thumb .play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--bg);
  background: var(--accent);
  font-size: 22px;
  transform: translate(-50%, -50%);
  font-style: normal;
}

.stream-card h3,
.vod-card h3 {
  margin: 13px 13px 5px;
  letter-spacing: -.04em;
}

.stream-card p {
  margin: 0 13px 14px;
  color: var(--muted);
}

.category-card {
  min-height: 120px;
  padding: 18px;
}

.category-card strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.04em;
}

.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.streamer-directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.streamer-directory-toolbar {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 27, 45, .16), transparent 34%),
    color-mix(in srgb, var(--panel) 92%, #05070b);
}

.streamer-toolbar-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.streamer-toolbar-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.streamer-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-filter-group button,
.streamer-sort-box select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.streamer-filter-group button {
  padding: 0 14px;
  cursor: pointer;
}

.streamer-filter-group button.is-active {
  border-color: rgba(255, 27, 45, .70);
  background: linear-gradient(135deg, rgba(255,27,45,.95), rgba(255,69,82,.78));
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 27, 45, .20);
}

.streamer-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.streamer-sort-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.streamer-sort-box select {
  padding: 0 34px 0 14px;
  appearance: none;
  border-color: color-mix(in srgb, var(--line) 84%, var(--accent));
  background-color: #111722;
  color: #f7f9ff;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    #111722;
}

.streamer-sort-box select option {
  background: #111722;
  color: #f7f9ff;
}

html[data-theme="light"] .streamer-sort-box select {
  border-color: #d5dbe7;
  background-color: #ffffff;
  color: #111827;
}

html[data-theme="light"] .streamer-sort-box select option {
  background: #ffffff;
  color: #111827;
}

.streamer-directory-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.streamer-empty-state {
  margin: 18px 0 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.035);
}

.streamer-directory-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel-2) 94%, #000), color-mix(in srgb, var(--panel) 92%, #000));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.streamer-directory-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.streamer-directory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 100%;
  opacity: .72;
}

.streamer-directory-card .avatar,
.streamer-directory-card > span:not(.avatar),
.streamer-directory-card em {
  position: relative;
  z-index: 1;
}

.streamer-directory-card .avatar {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px rgba(255,27,45,.18);
}

.streamer-directory-card.is-live .avatar {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 18px rgba(255,27,45,.34);
}

.streamer-directory-card strong,
.streamer-directory-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-directory-card strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: -.035em;
}

.streamer-directory-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.streamer-directory-card em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.streamer-directory-card.is-live em {
  color: var(--accent);
  font-weight: 1000;
}

.streamer-directory-card.is-live em::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 27, 45, .72);
  vertical-align: 1px;
}

.streamer-directory-card.is-offline {
  opacity: .78;
}

.streamer-directory-card.is-offline .avatar {
  filter: saturate(.72) brightness(.76);
}

.site-footer {
  margin-top: 20px;
  padding: 18px 4px 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  transition: color .16s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.simple-page {
  min-height: calc(100vh - 62px - 96px);
  padding: 0;
  background: transparent;
}

.simple-card {
  width: min(980px, 100%);
  margin: 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.simple-card > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .14em;
}

.simple-card h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.075em;
}

.simple-card p {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streamer-watch-content {
  padding: 18px;
}

.streamer-watch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.streamer-main-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.live-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 30%),
    linear-gradient(135deg, rgba(0,0,0,.88), rgba(0,0,0,.22) 52%, rgba(0,0,0,.82)),
    #05070b;
}

.live-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 58% 42%, #000, transparent 70%);
}

.live-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.72));
}

.live-screen-inner {
  position: absolute;
  inset: auto 28px 28px;
  z-index: 1;
}

.live-screen h1 {
  margin: 12px 0 7px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -.075em;
}

.live-screen p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 16px;
}

.streamer-meta-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
}

.streamer-meta-card > div {
  min-width: 0;
}

.streamer-meta-card h2 {
  margin: 0 0 5px;
  font-size: 26px;
  letter-spacing: -.045em;
}

.streamer-meta-card p {
  margin: 0;
  color: var(--muted);
}

.streamer-tabs {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.streamer-tabs a {
  padding: 16px 0 13px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-weight: 900;
}

.streamer-tabs a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.streamer-replay-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, #000);
}

.mini-vod-card {
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 76% 24%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 34%),
    var(--panel-2);
}

.mini-vod-card strong,
.mini-vod-card span {
  display: block;
}

.mini-vod-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.vod-list-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
}

.streamer-replay-strip.has-error .vod-list-message {
  color: #ffd6dc;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.mini-vod-card.vod-replay-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: color-mix(in srgb, var(--panel-2) 86%, #000);
}

.mini-vod-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 34%),
    linear-gradient(135deg, #2a1720, #12151c 56%, #0b0d11);
  background-position: center;
  background-size: cover;
}

.mini-vod-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.46));
}

.mini-vod-thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  margin: 0;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 900;
}

.mini-vod-card.vod-replay-card strong {
  display: -webkit-box;
  margin: 11px 12px 0;
  min-height: 42px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-vod-card.vod-replay-card > span {
  margin: 7px 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.right-banner-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: color-mix(in srgb, var(--panel-2) 88%, #000);
}

.banner-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.banner-panel-head strong {
  font-size: 16px;
}

.banner-panel-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
}

.banner-stack {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.side-banner-slot {
  display: grid;
  place-items: center;
  min-height: 124px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 48%),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent-2) 36%, transparent), transparent 34%),
    var(--panel);
}

.side-banner-slot strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.04em;
}

.side-banner-slot span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.side-banner-note {
  margin: auto 14px 14px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  max-width: min(92vw, 520px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1240px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .streamer-watch-page {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-player {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .topbar {
    gap: 10px;
  }

  .search-box {
    width: min(360px, 34vw);
  }

  .app-shell,
  body.rail-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .channel-rail {
    position: static;
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.rail-collapsed .rail-channel span:not(.avatar),
  body.rail-collapsed .rail-channel em {
    display: block;
  }

  .rail-title {
    display: none;
  }

  .rail-channel {
    min-width: 180px;
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--line);
  }

  .content {
    padding: 14px;
  }

  .watch-main,
  .browse-block {
    border-radius: 16px;
  }

  .vod-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-watch-page {
    grid-template-columns: 1fr;
  }

  .streamer-main-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .right-banner-panel {
    min-height: auto;
  }

  .banner-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-banner-slot {
    min-height: 118px;
  }
}

@media (max-width: 700px) {
  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open::before {
    content: "";
    position: fixed;
    inset: 60px 0 0;
    z-index: 120;
    background: rgba(0, 0, 0, .56);
  }

  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "left . right";
    height: 60px;
    min-height: 0;
    gap: 10px;
    padding: 0 10px;
  }

  .top-left {
    grid-area: left;
    min-width: 0;
    justify-content: start;
  }

  .top-nav {
    display: none;
  }

  .top-right {
    grid-area: right;
    min-width: max-content;
    justify-content: end;
  }

  .search-box {
    display: none;
  }

  .brand strong {
    font-size: 20px;
    letter-spacing: -.04em;
  }

  .brand-mark,
  .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .theme-switch {
    padding: 3px;
  }

  .theme-switch button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .app-shell {
    padding-top: 0;
  }

  .content {
    padding: 10px;
  }

  .channel-rail {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 140;
    display: block;
    width: min(78vw, 286px);
    height: calc(100dvh - 60px);
    overflow-y: auto;
    align-items: flex-start;
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: var(--shell);
    box-shadow: 24px 0 80px rgba(0, 0, 0, .45);
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  body.drawer-open .channel-rail {
    transform: translateX(0);
  }

  .drawer-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
  }

  .drawer-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--panel-2);
    font-weight: 900;
  }

  .drawer-nav .nav-guarantee {
    justify-content: center;
    color: #05060a;
    background: linear-gradient(90deg, #ffea00, #38ff8b, #35b7ff, #ff4df3, #ffea00);
    background-size: 320% 100%;
    box-shadow: 0 0 18px rgba(255, 224, 55, .55);
    animation: guaranteeColorFlow 2.2s linear infinite, guaranteePulse 1.15s ease-in-out infinite;
  }

  .rail-title {
    display: flex;
    padding: 8px 4px 10px;
  }

  .rail-channel {
    min-width: 0;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 54px;
    margin-bottom: 4px;
  }

  .rail-channel em {
    display: block;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .avatar.large {
    width: 50px;
    height: 50px;
    font-size: 19px;
  }

  .video-player {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 0;
  }

  .video-pattern {
    inset: 0;
    opacity: .42;
    background-size: 54px 54px;
  }

  .video-center {
    left: 16px;
    right: 16px;
    bottom: 74px;
    width: auto;
  }

  .live-pill {
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .video-center h1 {
    margin: 12px 0 7px;
    font-size: clamp(30px, 10vw, 40px);
    line-height: 1.02;
  }

  .video-center p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.45;
  }

  .primary-button,
  .follow-button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 14px;
  }

  .video-controls {
    grid-template-columns: auto 1fr auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }

  .video-controls span:nth-last-child(-n+2) {
    display: none;
  }

  .stream-info {
    grid-template-columns: auto 1fr;
    gap: 11px;
    padding: 13px;
  }

  .stream-info h2 {
    font-size: 20px;
  }

  .stream-info p {
    font-size: 13px;
    line-height: 1.55;
  }

  .tag-row {
    gap: 5px;
  }

  .tag-row span {
    padding: 5px 8px;
    font-size: 11px;
  }

  .follow-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .streamer-watch-content {
    padding: 10px;
  }

  .streamer-watch-page {
    border-radius: 16px;
  }

  .live-screen {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .live-screen-inner {
    inset: auto 16px 18px;
  }

  .live-screen h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .live-screen p {
    font-size: 13px;
  }

  .streamer-meta-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }

  .streamer-meta-card h2 {
    font-size: 20px;
  }

  .streamer-meta-card p {
    font-size: 13px;
    line-height: 1.55;
  }

  .streamer-tabs {
    gap: 15px;
    overflow-x: auto;
    padding-inline: 14px;
  }

  .streamer-tabs a {
    flex: 0 0 auto;
  }

  .streamer-replay-strip,
  .banner-stack {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .browse-block {
    margin-top: 12px;
    padding: 13px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .filter-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .stream-grid,
  .vod-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .thumb,
  .vod-thumb {
    min-height: 156px;
  }

  .stream-card h3,
  .vod-card h3 {
    margin: 11px 12px 4px;
    font-size: 16px;
  }

  .stream-card p {
    margin: 0 12px 12px;
    font-size: 13px;
  }

  .category-card {
    min-height: 96px;
    padding: 15px;
  }

  .category-card strong {
    font-size: 18px;
  }

  .site-footer {
    margin-top: 14px;
    padding: 15px 2px 28px;
  }

  .footer-links {
    justify-content: center;
    gap: 10px 14px;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
  }

  .simple-page {
    min-height: auto;
    padding: 0;
  }

  .simple-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .simple-card h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .simple-card p {
    font-size: 15px;
  }

  .simple-actions {
    width: 100%;
  }

  .simple-actions .primary-button,
  .simple-actions .follow-button {
    width: 100%;
  }
}

body:not(.rail-ready) .channel-rail .rail-channel {
  display: none !important;
}

.streamer-watch-page .live-screen.is-offline {
  display: block !important;
}

.streamer-watch-page .live-screen.is-offline.has-source-preview {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, .12), rgba(3, 5, 8, .58)),
    var(--source-poster, none) center / cover no-repeat,
    #05070b;
}

a[href="/#vod"],
a[href="#vod"],
#vod,
.streamer-vod-head,
.streamer-replay-strip,
[data-vod-list],
.vod-grid,
.vod-card {
  display: none !important;
}

@media (max-width: 420px) {
  .theme-switch {
    transform: scale(.94);
    transform-origin: right center;
  }

  .video-player {
    min-height: 0;
  }

  .video-center {
    bottom: 70px;
  }

  .video-center h1 {
    font-size: 29px;
  }

  .rail-channel {
    min-width: 0;
  }

  .thumb,
  .vod-thumb {
    min-height: 145px;
  }
}

/* Kick-inspired platform shell refresh.
   Layout density and interaction patterns follow a live streaming platform,
   while 슬롯.TV keeps its own brand, labels, and original visual treatment. */
:root,
html[data-theme="dark"],
html[data-theme="light"] {
  color-scheme: dark;
  --bg: #07090c;
  --shell: #07090c;
  --panel: #10141a;
  --panel-2: #171b22;
  --panel-3: #252a33;
  --text: #f6f7fb;
  --muted: #b4bbc6;
  --soft: #7d8592;
  --line: rgba(255, 255, 255, .12);
  --accent: #53fc18;
  --accent-2: #8dff55;
  --danger: #ee2447;
  --shadow: none;
}

body {
  background: var(--bg);
}

:target {
  scroll-margin-top: 76px;
}

.topbar {
  height: 60px;
  padding: 0 14px;
  gap: 16px;
  background: #07090c;
  border-bottom: 1px solid #1d222b;
  backdrop-filter: none;
}

.top-left {
  min-width: 260px;
}

.top-right,
.top-nav {
  display: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-color: #2b303a;
  border-radius: 7px;
  color: #fff;
  background: #151920;
  font-size: 22px;
  line-height: 1;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #061007;
  background: var(--accent);
  font-weight: 1000;
}

.brand strong {
  color: var(--accent);
  font-size: 27px;
  letter-spacing: -.075em;
}

.search-box {
  width: min(560px, 44vw);
  min-height: 34px;
  margin: 0 auto;
  padding: 0 12px;
  border-color: #414751;
  border-radius: 5px;
  background: #07090c;
}

.search-box span {
  color: #dde1e7;
  font-size: 13px;
  font-weight: 800;
}

.search-box span::before {
  content: "⌕";
  margin-right: 8px;
  color: #fff;
  font-size: 18px;
  vertical-align: -1px;
}

.search-box input::placeholder {
  color: #9098a4;
}

.app-shell {
  grid-template-columns: 256px minmax(0, 1fr);
  padding-top: 60px;
}

.channel-rail {
  top: 60px;
  height: calc(100vh - 60px);
  padding: 0 8px 14px;
  border-right-color: #1d222b;
  background: #07090c;
}

.drawer-nav {
  display: grid;
  gap: 2px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #252a33;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 4px;
  color: #f6f7fb;
  font-weight: 1000;
}

.drawer-nav a::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  margin-right: 10px;
  color: #fff;
  font-size: 18px;
}

.drawer-nav a:nth-child(1)::before { content: ""; }
.drawer-nav a:nth-child(2)::before { content: ""; }
.drawer-nav a:nth-child(3)::before { content: ""; }
.drawer-nav a:nth-child(4)::before { content: ""; }
.drawer-nav a:nth-child(5)::before { content: ""; }

.drawer-nav a:hover,
.drawer-nav a:first-child {
  background: #3a3f48;
}

.drawer-nav .nav-guarantee {
  color: #071006;
  background: linear-gradient(90deg, var(--accent), #f6ff22, var(--accent));
  background-size: 240% 100%;
  animation: guaranteeColorFlow 1.8s linear infinite, guaranteePulse 1.1s ease-in-out infinite;
}

.rail-title {
  padding: 17px 10px 13px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
}

.rail-title span {
  color: var(--accent);
  font-size: 12px;
}

.rail-channel {
  min-height: 54px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
}

.rail-channel:hover {
  background: #171b22;
}

.avatar {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  color: #061007;
  background: linear-gradient(135deg, #ecffe8, var(--accent));
  font-size: 14px;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.rail-channel strong {
  color: #fff;
  font-size: 14px;
}

.rail-channel small {
  color: #aeb5c1;
  font-size: 13px;
}

.rail-channel em {
  color: #f4f6fb;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
}

.rail-channel em::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
}

body.rail-collapsed .app-shell {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.rail-collapsed .drawer-nav a {
  justify-content: center;
  padding: 0;
  font-size: 0;
}

body.rail-collapsed .drawer-nav a::before {
  margin: 0;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
  padding: 0 18px 18px;
  background: #07090c;
}

.watch-layout {
  order: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 12px;
}

.watch-main,
.browse-block,
.simple-card,
.streamer-watch-page {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-player {
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 44% 45%, rgba(133, 124, 95, .58), transparent 54%),
    linear-gradient(135deg, rgba(100, 91, 72, .82), rgba(76, 82, 80, .94)),
    #22262d;
}

.video-pattern {
  inset: 0;
  opacity: .22;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 52px);
  filter: blur(1px);
  mask-image: none;
}

.adult-gate {
  position: absolute;
  inset: 16% 12% auto;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #f6f7fb;
  text-align: center;
  pointer-events: none;
}

.adult-gate span {
  font-size: 42px;
  line-height: 1;
}

.adult-gate p {
  max-width: 440px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.55;
}

.video-center {
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 7px;
  background: rgba(20, 19, 17, .90);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 -1px 0 var(--accent) inset;
}

.video-center h1 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.video-center p {
  margin: 0;
  color: #f2f5f9;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.primary-button,
.follow-button,
.side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  color: #061007;
  background: var(--accent);
  font-weight: 1000;
  text-decoration: none;
}

.primary-button:hover,
.follow-button:hover,
.side-cta:hover {
  filter: brightness(1.08);
}

.video-controls {
  display: none;
}

.stream-info {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px 0 0;
  border-top: 0;
}

.stream-info h2 {
  font-size: 22px;
}

.stream-info p {
  color: #aeb5c1;
}

.tag-row span {
  border-radius: 999px;
  color: #e7ebf1;
  background: #333842;
  font-weight: 900;
}

.kick-side-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #252a33;
  border-radius: 6px;
  background: #0d1015;
}

.kick-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #252a33;
}

.kick-side-head strong {
  font-size: 20px;
  letter-spacing: -.04em;
}

.kick-side-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 1000;
}

.side-message-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.side-message {
  padding: 14px;
  border: 1px solid #252a33;
  border-radius: 7px;
  background: #151920;
}

.side-message b,
.side-message span {
  display: block;
}

.side-message b {
  color: var(--accent);
  margin-bottom: 6px;
}

.side-message span {
  color: #c2c8d1;
  font-size: 13px;
  line-height: 1.55;
}

.side-cta {
  margin: auto 16px 16px;
}

.sponsor-panel {
  min-height: 100%;
}

.sponsor-banner-list {
  display: grid;
  flex: 1;
  gap: 10px;
  grid-template-rows: repeat(5, minmax(74px, 1fr));
  min-height: 0;
  padding: 14px 16px;
}

.sponsor-slot {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 48, 70, .32);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 48, 70, .18), rgba(255, 48, 70, .03) 45%, rgba(0, 0, 0, .42)),
    #141820;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.sponsor-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 48, 70, .45), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12px);
}

.sponsor-slot span {
  position: relative;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .03em;
}

.sponsor-slot .sponsor-slot-copy {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1.1;
}

.sponsor-slot .sponsor-slot-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .03em;
}

.sponsor-slot .sponsor-slot-copy small {
  color: rgba(255,255,255,.64);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.sponsor-slot:hover {
  border-color: rgba(255, 48, 70, .72);
  transform: translateY(-1px);
}

.sponsor-cta {
  margin: 0 16px 16px;
}

.streamer-sponsor-panel .banner-panel-head strong {
  color: #fff;
}

.streamer-sponsor-panel .banner-stack {
  gap: 10px;
}

.streamer-sponsor-panel .sponsor-slot {
  min-height: 0;
}

.streamer-watch-page .streamer-sponsor-panel {
  position: static;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  border-left-color: rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, #0d1015 0%, #0d1015 72%, rgba(255, 27, 45, .08) 100%);
}

.streamer-watch-page .streamer-sponsor-panel .banner-stack {
  padding-bottom: 10px;
}

.streamer-watch-page .streamer-sponsor-panel .sponsor-cta {
  width: calc(100% - 32px);
  min-height: 44px;
  margin: 0 16px;
  border-radius: 9px;
  box-shadow:
    0 14px 34px rgba(255, 27, 45, .18),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.streamer-watch-page .streamer-sponsor-panel::after {
  content: "";
  flex: 0 0 12px;
  background: linear-gradient(180deg, rgba(255, 27, 45, .12), transparent);
}

.browse-block {
  margin-top: 0;
  padding: 0;
}

#categories {
  order: 1;
}

#live {
  order: 2;
}

#vod {
  order: 3;
}

.section-head {
  margin-bottom: 16px;
  align-items: center;
}

.section-head span {
  display: none;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.055em;
}

.section-more {
  color: #f2f5f9;
  font-size: 14px;
  font-weight: 900;
}

.live-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.live-more-button {
  min-width: 128px;
  min-height: 40px;
  border: 1px solid rgba(255, 47, 73, .45);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, rgba(255, 47, 73, .96), rgba(180, 18, 42, .92));
  box-shadow: 0 12px 30px rgba(255, 47, 73, .18);
  cursor: pointer;
}

.live-more-button:hover {
  filter: brightness(1.08);
}

.filter-tabs {
  gap: 4px;
}

.filter-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #c8ced8;
  background: #171b22;
}

.filter-tabs button.is-active {
  color: #061007;
  background: var(--accent);
}

.category-grid {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 186px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background:
    radial-gradient(circle at 35% 24%, rgba(83,252,24,.42), transparent 34%),
    linear-gradient(160deg, #1b261c 0%, #11151c 46%, #252a33 100%);
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at 44% 22%, rgba(255,255,255,.32), transparent 32%),
    linear-gradient(160deg, #203b24 0%, #151920 50%, #11151c 100%);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at 62% 24%, rgba(83,252,24,.30), transparent 36%),
    linear-gradient(160deg, #25323c 0%, #11151c 54%, #171b22 100%);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px);
  opacity: .82;
}

.category-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 40px;
  z-index: 1;
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.category-card span {
  position: absolute;
  left: 10px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,17,23,.75);
  font-size: 13px;
  font-weight: 900;
}

.stream-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.vod-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.stream-card,
.vod-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stream-card:hover,
.vod-card:hover,
.category-card:hover {
  transform: none;
  background-color: transparent;
}

.thumb,
.vod-thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 26%, rgba(83,252,24,.32), transparent 32%),
    linear-gradient(135deg, #2a2f38, #11151c 56%, #0b0d11);
}

.thumb span,
.vod-thumb span {
  top: 8px;
  left: 8px;
  border-radius: 4px;
  color: #fff;
  background: #e11838;
  font-size: 11px;
}

.thumb .play-button {
  width: 46px;
  height: 46px;
  color: #061007;
  background: var(--accent);
}

.stream-card h3,
.vod-card h3 {
  margin: 9px 0 4px;
  color: #fff;
  font-size: 16px;
}

.stream-card p {
  margin: 0;
  color: #aeb5c1;
  font-size: 13px;
}

.site-footer {
  order: 10;
  margin-top: 18px;
  padding: 20px 0 32px;
  border-top: 1px solid #1d222b;
}

.footer-links {
  gap: 22px;
  color: #7f8794;
  font-size: 13px;
}

.simple-page {
  min-height: calc(100vh - 60px - 120px);
  padding-top: 18px;
}

.simple-card {
  width: 100%;
  max-width: 1120px;
  padding: 30px;
  border: 1px solid #252a33;
  border-radius: 7px;
  background: #10141a;
}

.simple-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.guarantee-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 22px 0 4px;
}

.guarantee-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 48, 70, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 48, 70, .30), transparent 36%),
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 48, 70, .13), rgba(15, 18, 25, .98) 48%, #0b0d12 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 24px 80px rgba(0,0,0,.24);
}

.guarantee-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, transparent, rgba(255, 48, 70, .10), transparent);
  pointer-events: none;
}

.guarantee-hero > * {
  position: relative;
}

.guarantee-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 48, 70, .18);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.guarantee-hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.07em;
}

.guarantee-hero p {
  max-width: 720px;
  margin: 0;
  color: #c7ceda;
  font-size: 16px;
  line-height: 1.7;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.guarantee-card {
  display: flex;
  min-height: 472px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
    #10141a;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 16px 42px rgba(0,0,0,.18);
}

.guarantee-banner {
  position: relative;
  display: grid;
  height: 164px;
  min-height: 164px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 48, 70, .42), transparent 36%),
    radial-gradient(circle at 20% 26%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(135deg, #251018, #11151d 52%, #090b10);
}

.guarantee-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px),
    linear-gradient(90deg, transparent, rgba(255,48,70,.20), transparent);
}

.guarantee-banner-label {
  position: relative;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 1000;
  letter-spacing: -.04em;
  text-shadow: 0 10px 30px rgba(0,0,0,.44);
}

.guarantee-banner small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}

.guarantee-card-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.guarantee-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.guarantee-info {
  display: grid;
  gap: 8px;
  margin: 0;
}

.guarantee-info div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.guarantee-info dt {
  color: #ff4659;
  font-size: 13px;
  font-weight: 1000;
}

.guarantee-info dd {
  margin: 0;
  color: #d9dee7;
  font-size: 13px;
  line-height: 1.45;
}

.guarantee-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, var(--accent));
  font-size: 14px;
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 27, 45, .20);
}

.guarantee-button:hover,
.guarantee-banner:hover {
  filter: brightness(1.08);
}

@media (max-width: 1240px) {
  .guarantee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {
  .guarantee-page {
    padding: 12px 0 0;
  }

  .guarantee-hero {
    padding: 22px;
    border-radius: 14px;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guarantee-card {
    min-height: 0;
  }

  .guarantee-banner {
    height: 148px;
    min-height: 148px;
  }

  .guarantee-card-body {
    min-height: 0;
    padding: 14px;
  }

  .guarantee-info div {
    grid-template-columns: 66px minmax(0, 1fr);
  }
}

.streamer-watch-content {
  padding: 0 18px 18px;
}

.streamer-watch-page {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  overflow: visible;
}

.streamer-main-panel {
  min-width: 0;
  padding-right: 18px;
  border-right: 0;
}

.live-screen {
  border-radius: 0;
  background:
    radial-gradient(circle at 52% 40%, rgba(83,252,24,.20), transparent 34%),
    linear-gradient(135deg, rgba(118,125,128,.82), rgba(58,66,72,.94)),
    #22262d;
}

.live-screen::before {
  inset: 0;
  opacity: .24;
  mask-image: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 36px);
}

.live-screen::after {
  background:
    radial-gradient(circle at center, transparent 0 26%, rgba(0,0,0,.08) 27% 100%),
    linear-gradient(180deg, transparent 48%, rgba(0,0,0,.76));
}

.live-screen-inner {
  inset: auto 28px 28px;
  display: grid;
  gap: 9px;
}

.live-pill {
  width: max-content;
  min-height: 24px;
  border-radius: 3px;
  color: #061007;
  background: var(--accent);
}

.streamer-meta-card {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 0;
  background: transparent;
}

.streamer-meta-card h2 {
  font-size: 22px;
}

.streamer-tabs {
  gap: 22px;
  padding: 0;
  border-top: 1px solid #252a33;
  background: transparent;
}

.streamer-tabs a {
  padding: 15px 0 11px;
}

.streamer-replay-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 0 0;
  border-top: 1px solid #252a33;
  background: transparent;
}

.mini-vod-card,
.side-banner-slot {
  border-color: #252a33;
  border-radius: 7px;
  background:
    radial-gradient(circle at 76% 24%, rgba(83,252,24,.18), transparent 34%),
    #151920;
}

.right-banner-panel {
  position: sticky;
  top: 60px;
  display: flex;
  height: calc(100vh - 60px);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-width: 0 0 0 1px;
  border-style: solid;
  border-color: #252a33;
  border-radius: 0;
  background: #0d1015;
}

.banner-panel-head {
  min-height: 50px;
  border-bottom-color: #252a33;
}

.banner-panel-head strong {
  font-size: 18px;
}

.banner-panel-head span {
  color: var(--accent);
}

.banner-stack {
  gap: 12px;
  padding: 14px;
}

.side-banner-slot {
  min-height: 150px;
}

.side-banner-note {
  border-color: #252a33;
  border-radius: 7px;
}

@media (max-width: 1240px) {
  .watch-layout,
  .streamer-watch-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .streamer-main-panel {
    padding-right: 0;
  }

  .kick-side-panel,
  .right-banner-panel {
    position: static;
    height: auto;
    min-height: auto;
    border: 1px solid #252a33;
    border-radius: 7px;
  }

  .stream-grid,
  .vod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-left {
    min-width: auto;
  }

  .brand strong {
    font-size: 22px;
  }

  .search-box {
    width: min(420px, 42vw);
  }

  .stream-grid,
  .vod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar {
    gap: 10px;
    height: 58px;
    padding: 0 10px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 20px;
  }

  .search-box {
    display: none;
  }

  .app-shell {
    display: block;
    padding-top: 58px;
  }

  .channel-rail {
    position: fixed;
    top: 58px;
    left: 0;
    z-index: 90;
    width: min(84vw, 278px);
    height: calc(100vh - 58px);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 38px rgba(0,0,0,.42);
  }

  body.drawer-open .channel-rail {
    transform: translateX(0);
  }

  .content,
  .streamer-watch-content {
    padding: 0 12px 14px;
  }

  .watch-layout,
  .streamer-watch-page {
    gap: 14px;
  }

  .video-player,
  .live-screen {
    width: calc(100% + 24px);
    margin: 0 -12px;
    border-radius: 0;
  }

  .adult-gate {
    inset: 14% 18px auto;
  }

  .adult-gate span {
    font-size: 32px;
  }

  .adult-gate p {
    font-size: 14px;
  }

  .video-center {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 11px;
  }

  .video-center .primary-button {
    grid-column: 1 / -1;
  }

  .video-center h1 {
    font-size: 20px;
  }

  .stream-info {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stream-info .follow-button {
    grid-column: 1 / -1;
  }

  .streamer-meta-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .category-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .category-card {
    flex: 0 0 132px;
    min-height: 176px;
    scroll-snap-align: start;
  }

  .stream-grid,
  .vod-grid,
  .streamer-replay-strip {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 14px;
    justify-content: flex-start;
    text-align: left;
  }
}

.stream-adult-gate {
  position: absolute;
  inset: 18% 20px auto;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #f6f7fb;
  text-align: center;
  pointer-events: none;
}

.stream-adult-gate span {
  font-size: 42px;
  line-height: 1;
}

.stream-adult-gate p {
  max-width: 470px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.55;
}

.stream-adult-gate i {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 4px;
  color: #061007;
  background: var(--accent);
  font-style: normal;
  font-weight: 1000;
}

@media (max-width: 700px) {
  .stream-adult-gate {
    inset: 14% 18px auto;
    gap: 8px;
  }

  .stream-adult-gate span {
    font-size: 30px;
  }

  .stream-adult-gate p {
    font-size: 14px;
  }

  .stream-adult-gate i {
    min-height: 32px;
    font-size: 13px;
  }
}

/* Quick fixes after Kick-style pass: search icon only, no follow CTA without login. */
.search-box {
  overflow: hidden;
}

.search-box span {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
  line-height: 1;
}

.search-box span::before {
  margin-right: 0;
  font-size: 18px;
}

.search-box input {
  min-width: 0;
}

.stream-info,
.streamer-meta-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.streamer-meta-card::after {
  content: none;
  display: none;
}

@media (max-width: 700px) {
  .stream-info .follow-button,
  .streamer-meta-card::after {
    display: none;
  }

  body.drawer-open::before {
    z-index: 120;
  }

  .channel-rail {
    z-index: 160;
    display: block;
    width: min(84vw, 286px);
    padding: 12px 8px 16px;
    background: #07090c;
  }

  body.drawer-open .channel-rail {
    transform: translateX(0);
  }

  body.rail-collapsed .drawer-nav a,
  .drawer-nav a {
    justify-content: flex-start;
    padding: 0 13px;
    font-size: 16px;
  }

  body.rail-collapsed .drawer-nav a::before,
  .drawer-nav a::before {
    margin-right: 10px;
  }

  body.rail-collapsed .rail-title strong,
  body.rail-collapsed .rail-title span,
  body.rail-collapsed .rail-channel span:not(.avatar),
  body.rail-collapsed .rail-channel em {
    display: block;
  }

  .rail-title {
    display: flex;
  }

  .rail-channel,
  body.rail-collapsed .rail-channel {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-width: 0;
  }
}

/* Red brand pass: Kick green removed, 슬롯.TV red identity applied. */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090c;
  --shell: #07090c;
  --panel: #10141a;
  --panel-2: #171b22;
  --panel-3: #252a33;
  --text: #f7f8fb;
  --muted: #b6bdc8;
  --soft: #7f8794;
  --line: rgba(255, 255, 255, .12);
  --accent: #ff1b2d;
  --accent-2: #ff6a4f;
  --accent-soft: rgba(255, 27, 45, .24);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --shell: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef1f5;
  --panel-3: #e2e6ed;
  --text: #101319;
  --muted: #596270;
  --soft: #838d9b;
  --line: rgba(18, 23, 34, .14);
  --accent: #e50914;
  --accent-2: #ff5d45;
  --accent-soft: rgba(229, 9, 20, .16);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(320px, 560px) minmax(120px, 1fr);
  grid-template-areas: "left search right";
  align-items: center;
  background: var(--shell);
}

.top-left {
  grid-area: left;
  min-width: 0;
}

.brand {
  width: 178px;
  height: 44px;
  flex: 0 0 auto;
  background: url("./slot-tv-logo-red.png") left center / contain no-repeat;
}

.brand-mark,
.brand strong {
  display: none !important;
}

.search-box {
  grid-area: search;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  margin: 0;
  border-color: color-mix(in srgb, var(--line) 78%, var(--accent));
  background: color-mix(in srgb, var(--panel) 82%, #000);
}

.search-box span::before {
  color: var(--accent);
}

.top-right {
  grid-area: right;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.theme-switch {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.theme-switch button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 42%, #6d7cff);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset;
  font-size: 0;
}

.theme-switch button::before {
  font-size: 19px;
  line-height: 1;
}

.theme-switch button[data-theme-choice="dark"] {
  color: #1b2a5b;
  background: #ffffff;
}

.theme-switch button[data-theme-choice="dark"]::before {
  content: "☾";
}

.theme-switch button[data-theme-choice="light"] {
  color: #ffffff;
  background: #10264b;
}

.theme-switch button[data-theme-choice="light"]::before {
  content: "☼";
}

.theme-switch button.is-active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 42%, transparent);
}

.drawer-nav .nav-guarantee,
.top-nav .nav-guarantee {
  color: #fff;
  background: linear-gradient(90deg, #ff1b2d, #ff5d45, #b60013, #ff1b2d);
  background-size: 280% 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 0 18px rgba(255,27,45,.70),
    0 0 38px rgba(255,27,45,.34);
}

.avatar,
.primary-button,
.side-cta,
.live-pill,
.filter-tabs button.is-active,
.thumb .play-button,
.theme-switch button.is-active {
  color: #fff;
}

.avatar {
  border-color: var(--accent);
  background: linear-gradient(135deg, #ff796b, var(--accent));
}

.primary-button,
.follow-button,
.side-cta,
.live-pill,
.filter-tabs button.is-active,
.thumb .play-button,
.stream-adult-gate i {
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, var(--accent));
}

.category-card,
.category-card:nth-child(2n),
.category-card:nth-child(3n),
.thumb,
.vod-thumb,
.mini-vod-card,
.side-banner-slot {
  background:
    radial-gradient(circle at 70% 26%, var(--accent-soft), transparent 34%),
    linear-gradient(135deg, #2a1720, #12151c 56%, #0b0d11);
}

.rail-channel em::before {
  background: var(--accent);
}

.video-center {
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 -1px 0 var(--accent) inset;
}

html[data-theme="light"] body,
html[data-theme="light"] .content {
  background: var(--bg);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .channel-rail {
  background: var(--shell);
}

html[data-theme="light"] .drawer-nav a,
html[data-theme="light"] .rail-channel,
html[data-theme="light"] .side-message,
html[data-theme="light"] .simple-card,
html[data-theme="light"] .right-banner-panel,
html[data-theme="light"] .kick-side-panel {
  background: var(--panel);
}

html[data-theme="light"] .rail-channel strong,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .stream-card h3,
html[data-theme="light"] .vod-card h3,
html[data-theme="light"] .streamer-meta-card h2 {
  color: var(--text);
}

html[data-theme="light"] .search-box {
  background: #fff;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand {
    width: 142px;
    height: 40px;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "left . right";
  }

  .search-box {
    display: none;
  }

  .brand {
    width: 126px;
    height: 36px;
  }

  .top-right {
    display: flex !important;
  }

  .theme-switch {
    gap: 5px;
  }

  .theme-switch button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .theme-switch button::before {
    font-size: 16px;
  }
}

/* Single theme toggle + light-mode sidebar readability fix. */
.theme-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, #7d86ff);
  border-radius: 50%;
  color: #ffffff;
  background: #10264b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 14px color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 0;
}

.theme-toggle::before {
  content: "☼";
  font-size: 19px;
  line-height: 1;
}

html[data-theme="light"] .theme-toggle {
  color: #1b2a5b;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.04) inset,
    0 0 12px rgba(229,9,20,.16);
}

html[data-theme="light"] .theme-toggle::before {
  content: "☾";
}

html[data-theme="light"] .channel-rail {
  background: #ffffff;
  border-color: rgba(18, 23, 34, .14);
}

html[data-theme="light"] .drawer-nav a {
  color: #161b24;
  background: #f2f4f8;
  border-color: rgba(18, 23, 34, .14);
}

html[data-theme="light"] .drawer-nav a::before {
  color: #161b24;
}

html[data-theme="light"] .drawer-nav a:hover,
html[data-theme="light"] .drawer-nav a:first-child {
  color: #101319;
  background: #e5e9f0;
}

html[data-theme="light"] .drawer-nav .nav-guarantee,
html[data-theme="light"] .drawer-nav .nav-guarantee::before {
  color: #ffffff;
}

html[data-theme="light"] .drawer-nav a.nav-guarantee {
  color: #ffffff;
  background: linear-gradient(90deg, #ff1b2d, #ff5d45, #b60013, #ff1b2d);
  background-size: 280% 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 18px rgba(255,27,45,.48);
}

html[data-theme="light"] .rail-title,
html[data-theme="light"] .rail-title strong {
  color: #101319;
}

html[data-theme="light"] .rail-title span {
  color: var(--accent);
}

html[data-theme="light"] .rail-channel {
  color: #101319;
  background: #ffffff;
  border-color: rgba(18, 23, 34, .14);
}

html[data-theme="light"] .rail-channel:hover {
  background: #f2f4f8;
}

html[data-theme="light"] .rail-channel strong,
html[data-theme="light"] .rail-channel small,
html[data-theme="light"] .rail-channel em {
  color: #101319;
}

html[data-theme="light"] .rail-channel small {
  color: #586170;
}

@media (max-width: 700px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .theme-toggle::before {
    font-size: 17px;
  }
}

/* Main live hero carousel + transparent wordmark logo. */
.brand {
  width: 188px !important;
  height: 44px !important;
  background: none !important;
}

.brand-logo {
  display: block;
  width: 176px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(255, 27, 45, .28));
}

.live-hero {
  isolation: isolate;
  min-height: 0;
  background: #07090c;
}

.hero-video-scene,
.hero-video-vignette {
  position: absolute;
  inset: 0;
}

.hero-video-scene {
  z-index: 0;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .32s ease, transform .7s ease;
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 27, 45, .30), transparent 25%),
    linear-gradient(135deg, rgba(24, 28, 36, .92), rgba(71, 70, 58, .62)),
    #171b22;
}

.hero-video-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-scene-bighandbro {
  background:
    linear-gradient(90deg, rgba(2, 4, 8, .58), rgba(2, 4, 8, .08) 46%, rgba(2, 4, 8, .64)),
    radial-gradient(circle at 74% 24%, rgba(255, 27, 45, .34), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #4b4a3d, #646458 48%, #2f3634);
}

.hero-scene-minseo {
  background:
    linear-gradient(90deg, rgba(2, 4, 8, .54), rgba(2, 4, 8, .04) 48%, rgba(2, 4, 8, .62)),
    radial-gradient(circle at 68% 32%, rgba(250, 68, 161, .46), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 54px),
    linear-gradient(135deg, #3f2039, #755272 48%, #232934);
}

.hero-scene-taeo {
  background:
    linear-gradient(90deg, rgba(2, 4, 8, .56), rgba(2, 4, 8, .05) 46%, rgba(2, 4, 8, .65)),
    radial-gradient(circle at 72% 28%, rgba(255, 143, 46, .44), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 62px),
    linear-gradient(135deg, #2b2d48, #6d5534 50%, #141820);
}

.hero-video-vignette {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,9,12,.10), rgba(7,9,12,.18) 46%, rgba(7,9,12,.72)),
    linear-gradient(90deg, rgba(7,9,12,.68), transparent 36%, rgba(7,9,12,.42));
}

.hero-profile-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(10, 12, 17, .72);
  box-shadow:
    0 18px 48px rgba(0,0,0,.35),
    0 0 0 1px rgba(255, 27, 45, .14) inset;
  backdrop-filter: blur(18px) saturate(125%);
}

.hero-profile-avatar {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
}

.hero-profile-avatar .avatar,
.hero-profile-avatar img {
  grid-area: 1 / 1;
  width: 58px;
  height: 58px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.hero-profile-avatar img {
  display: block;
  object-fit: cover;
  background: #151920;
}

.hero-profile-avatar img[hidden] {
  display: none;
}

.hero-profile-avatar img:not([hidden]) + .avatar {
  display: none;
}

.hero-profile-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(10,12,17,.95);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255,27,45,.8);
}

.hero-profile-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255,27,45,.95);
}

.hero-profile-card h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}

.hero-profile-card p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.hero-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #f4f6fb;
  background: rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 900;
}

.hero-profile-card .primary-button {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #ff1b2d, #ff4a55);
  box-shadow: 0 0 22px rgba(255,27,45,.28);
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(10,12,17,.54);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  font-size: 26px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255,27,45,.88);
}

.hero-arrow-left {
  left: 14px;
}

.hero-arrow-right {
  right: 14px;
}

.hero-stream-info {
  display: none !important;
}

html[data-theme="light"] .hero-profile-card {
  background: rgba(255,255,255,.74);
  border-color: rgba(18,23,34,.16);
  box-shadow:
    0 18px 48px rgba(31,36,46,.16),
    0 0 0 1px rgba(255,27,45,.10) inset;
}

html[data-theme="light"] .hero-kicker,
html[data-theme="light"] .hero-profile-card h1 {
  color: #101319;
}

html[data-theme="light"] .hero-profile-card p {
  color: rgba(16,19,25,.78);
}

html[data-theme="light"] .hero-tags span {
  color: #101319;
  background: rgba(16,19,25,.10);
}

@media (max-width: 900px) {
  .brand {
    width: 154px !important;
    height: 40px !important;
  }

  .brand-logo {
    width: 150px;
  }

  .hero-profile-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 13px;
  }

  .hero-profile-card .primary-button {
    grid-column: 1 / -1;
  }

  .hero-dots {
    right: 16px;
    bottom: 16px;
    left: auto;
    transform: none;
  }
}

@media (max-width: 700px) {
  .brand {
    width: 118px !important;
    height: 34px !important;
  }

  .brand-logo {
    width: 118px;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .hero-profile-avatar,
  .hero-profile-avatar .avatar,
  .hero-profile-avatar img {
    width: 46px;
    height: 46px;
  }

  .hero-profile-card h1 {
    font-size: 21px;
  }

  .hero-profile-card p {
    font-size: 12px;
  }

  .hero-tags {
    display: none;
  }
}

/* User-supplied menu and carousel icons. */
.top-nav a,
.drawer-nav a {
  display: inline-flex;
  align-items: center;
}

.top-nav a::before,
.drawer-nav a::before {
  content: "" !important;
  display: inline-block !important;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, .62))
    drop-shadow(0 0 5px rgba(255, 27, 45, .35));
}

.drawer-nav a::before {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

.top-nav a:nth-child(1)::before,
.drawer-nav a:nth-child(1)::before {
  background-image: url("./icons/icon-home.png");
}

.top-nav a:nth-child(2)::before,
.drawer-nav a:nth-child(2)::before {
  background-image: url("./icons/icon-live.png");
}

.top-nav a:nth-child(3)::before,
.drawer-nav a:nth-child(3)::before {
  background-image: url("./icons/icon-category.png");
}

.top-nav a:nth-child(4)::before,
.drawer-nav a:nth-child(4)::before {
  background-image: url("./icons/icon-vod.png");
}

.top-nav a:nth-child(5)::before,
.drawer-nav a:nth-child(5)::before {
  background-image: url("./icons/icon-guarantee.png");
}

body.rail-collapsed .drawer-nav a::before {
  width: 30px;
  height: 30px;
  margin: 0;
}

html[data-theme="light"] .top-nav a::before,
html[data-theme="light"] .drawer-nav a::before {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, .74))
    drop-shadow(0 0 7px rgba(229, 9, 20, .42));
}

.hero-arrow {
  overflow: visible;
  border: 0;
  background: rgba(10, 12, 17, .28);
  box-shadow: none;
  font-size: 0 !important;
}

.hero-arrow::before {
  content: "";
  display: block;
  width: 48px;
  height: 56px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(255, 27, 45, .35));
}

.hero-arrow-left::before {
  background-image: url("./icons/icon-arrow-left.png");
}

.hero-arrow-right::before {
  background-image: url("./icons/icon-arrow-right.png");
}

.hero-arrow:hover {
  background: rgba(10, 12, 17, .44);
}

.hero-arrow-left {
  left: 8px;
}

.hero-arrow-right {
  right: 8px;
}

/* Keep the desktop arrow button and its image canvas the same size so both
   arrows share the same visual center and edge spacing. */
@media (min-width: 701px) {
  .hero-arrow {
    width: 48px;
    height: 56px;
  }

  /* The supplied left-arrow PNG has more transparent space on its outer
     side than the right-arrow PNG; offset only the button to align visible
     icon edges, not the image scale. */
  .hero-arrow-left {
    left: -6px;
  }
}

@media (max-width: 900px) {
  .top-nav a::before {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
}

@media (max-width: 700px) {
  .drawer-nav a::before {
    width: 27px;
    height: 27px;
  }

  .hero-arrow::before {
    width: 38px;
    height: 44px;
  }
}

/* Kick channel profile thumbnails for the live rail and cards. */
.profile-avatar {
  overflow: hidden;
  color: transparent;
  background: #11151c;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.rail-avatar-stack {
  position: relative;
  display: grid;
  width: 42px;
  min-height: 50px;
  place-items: center;
}

.rail-avatar-stack .avatar {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 27, 45, .18), 0 0 18px rgba(255, 27, 45, .30);
}

.rail-avatar-stack b {
  position: absolute;
  right: -4px;
  bottom: -2px;
  padding: 2px 5px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 0 12px rgba(255, 27, 45, .7);
}

.rail-channel.is-live em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 900;
}

.live-only-note {
  align-self: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 27, 45, .28);
  border-radius: 999px;
  color: #ff4655;
  background: rgba(255, 27, 45, .10);
  font-size: 12px;
  font-weight: 900;
}

.thumb.live-thumb {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,9,12,.02), rgba(7,9,12,.66)),
    radial-gradient(circle at 72% 24%, rgba(255, 27, 45, .35), transparent 30%),
    #141820;
}

.thumb.live-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--thumb-image, none);
  background-position: center;
  background-size: cover;
  opacity: .72;
  transform: scale(1.04);
}

.thumb.live-thumb span,
.thumb.live-thumb .play-button {
  position: relative;
  z-index: 1;
}

.thumb .play-button,
.thumb.live-thumb .play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(64px, 7.2vw, 96px);
  height: clamp(48px, 5.4vw, 72px);
  border: 0;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: visible;
  background: url("/assets/icons/play-button-glossy.png") center / contain no-repeat;
  box-shadow: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 22px rgba(255, 27, 45, .42));
  z-index: 2;
}

html[data-theme="light"] .rail-avatar-stack b {
  border-color: #f7f8fb;
}

/* Final Kick-style recommendation row: avatar, live badge below, status text, viewer dot. */
.rail-channel {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
}

.rail-avatar-stack {
  width: 42px;
  min-height: 48px;
  align-self: center;
}

.rail-avatar-stack .avatar,
.rail-channel .profile-avatar {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 27, 45, .18), 0 0 14px rgba(255, 27, 45, .34);
}

.rail-avatar-stack b {
  right: auto;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 5px;
  border: 2px solid #080a0e;
  border-radius: 6px;
  color: #fff;
  background: #ff1b2d;
  font-size: 8px;
  line-height: 1;
}

.rail-channel strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
}

.rail-channel small {
  color: #cbd2df;
  font-size: 12px;
  line-height: 1.15;
}

.rail-channel.is-live em {
  min-width: 7px;
  justify-content: flex-end;
  color: #f5f7fb;
  font-size: 12px;
}

.rail-channel.is-live em::before {
  width: 7px;
  height: 7px;
  margin-right: 0;
  background: #ff1b2d;
  box-shadow: 0 0 8px rgba(255, 27, 45, .70);
}

.rail-channel.is-offline .rail-avatar-stack .avatar {
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
  filter: saturate(.72) brightness(.76);
}

.rail-channel.is-offline small {
  color: #a7adba;
}

.rail-channel.is-offline em {
  min-width: 12px;
  color: transparent;
}

.rail-channel.is-offline em::before {
  width: 6px;
  height: 6px;
  margin-right: 0;
  background: #7b828f;
  box-shadow: none;
}

.rail-channel[hidden],
.rail-channel.is-rail-hidden {
  display: none !important;
}

@keyframes mobile-live-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(var(--live-marquee-distance, 0px) * -1), 0, 0);
  }
}

@media (max-width: 700px) {
  #live {
    overflow: hidden;
  }

  #live .section-head {
    padding-inline: 8px;
  }

  #live .stream-grid {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 2px 12px 4px;
    will-change: transform;
  }

  #live .stream-grid.is-mobile-marquee {
    animation: mobile-live-marquee var(--live-marquee-duration, 42s) linear infinite;
  }

  #live .stream-grid.is-mobile-marquee:hover,
  #live .stream-grid.is-mobile-marquee:active,
  #live .stream-grid.is-mobile-marquee:focus-within {
    animation-play-state: paused;
  }

  #live .stream-card {
    flex: 0 0 min(72vw, 232px);
    min-width: min(72vw, 232px);
    border-radius: 13px;
  }

  #live .stream-card h3 {
    margin-top: 12px;
  }

  #live .stream-card p {
    margin-bottom: 14px;
  }

  #live .stream-card.is-marquee-clone {
    pointer-events: none;
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  #live .stream-grid.is-mobile-marquee {
    animation: none;
  }
}

/* Mobile live cards stay in the normal grid; the more button reveals the
   remaining cards below instead of moving the row horizontally. */
@media (max-width: 700px) {
  #live .stream-grid {
    display: grid;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 8px 4px;
    transform: none !important;
    will-change: auto;
  }

  #live .stream-card {
    flex: initial;
    min-width: 0;
    width: auto;
  }

  #live .stream-card.is-marquee-clone {
    display: none !important;
  }

  .live-hero .hero-dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .live-hero .hero-arrow {
    width: 28px;
    height: 34px;
    overflow: visible;
  }

  .live-hero .hero-arrow::before {
    width: 24px;
    height: 32px;
  }

  .live-hero .hero-arrow-left {
    left: 6px;
  }

  .live-hero .hero-arrow-right {
    right: 18px;
  }
}

html[data-theme="light"] .rail-avatar-stack b {
  border-color: #fff;
}

/* Real Kick player embeds: always fill the 16:9 player area. */
.kick-hero-frame,
.kick-live-frame,
.source-live-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.kick-hero-frame,
.kick-live-frame,
.source-live-video {
  z-index: 2;
}

.source-live-video {
  object-fit: cover;
}

.live-screen.has-source-video.is-audio-only {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, .12), rgba(3, 5, 8, .62)),
    var(--source-poster, none) center / cover no-repeat,
    #05070b;
}

.live-screen.has-source-video.is-audio-only::before,
.live-screen.has-source-video.is-audio-only::after {
  opacity: 1;
}

.source-live-video.is-audio-only {
  top: auto;
  bottom: 0;
  height: 46px;
  background: rgba(0, 0, 0, .72);
  object-fit: contain;
}

.source-live-video[hidden],
.hero-source-video[hidden],
.kick-hero-frame[hidden],
.kick-live-frame[hidden],
.source-live-frame[hidden] {
  display: none !important;
}

.source-connect-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: clamp(96px, 9vw, 142px);
  height: clamp(72px, 6.75vw, 106px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: url("/assets/icons/play-button-glossy.png") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 16px 26px rgba(255, 27, 45, .42));
  font-size: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.source-connect-button::before {
  content: "";
  margin: 0;
}

.source-connect-button[hidden] {
  display: none !important;
}

.preroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  background: #000;
}

.preroll-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #000;
}

.preroll-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0,0,0,.68);
  font-size: 12px;
  font-weight: 800;
}

.preroll-skip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.78);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preroll-skip:hover {
  background: rgba(255,27,45,.92);
}

.preroll-skip:disabled {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.62);
  background: rgba(0,0,0,.62);
  cursor: default;
}

.live-screen.has-embed {
  background: #000;
}

.live-hero.has-source-frame,
.live-screen.has-source-frame {
  background: #000;
}

.live-screen.has-source-video {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, .04), rgba(3, 5, 8, .14)),
    var(--source-poster, none) center / cover no-repeat,
    #000;
}

.live-screen.has-source-preview {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, .05), rgba(3, 5, 8, .22)),
    var(--source-poster, none) center / cover no-repeat,
    #000;
}

.source-live-frame {
  width: 162%;
  height: 172%;
  max-width: none;
  max-height: none;
  transform: translate(-6%, -8.5%);
  transform-origin: top left;
}

.live-hero:not(.has-no-live) .kick-hero-frame {
  z-index: 2;
}

.live-hero:not(.has-no-live) .hero-video-vignette {
  z-index: 3;
}

.live-screen.has-embed::before,
.live-screen.has-source-frame::before,
.live-screen.has-source-video::before,
.live-screen.has-embed::after,
.live-screen.has-source-frame::after,
.live-screen.has-source-video::after {
  opacity: 0;
  pointer-events: none;
}

.hero-video-scene.has-thumbnail {
  background-image:
    linear-gradient(180deg, rgba(3,5,8,.18), rgba(3,5,8,.52)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.live-hero:not(.has-no-live) .hero-video-scene.has-thumbnail.is-active {
  opacity: 1 !important;
  pointer-events: auto;
}

.live-hero.has-source-preview:not(.has-no-live) .hero-video-scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.live-hero.has-source-video {
  background: #000;
}

.live-hero.has-source-video .hero-video-scene {
  opacity: 0 !important;
  pointer-events: none !important;
}

.live-screen.has-embed .live-screen-inner {
  z-index: 2;
  pointer-events: none;
}

.live-screen.has-embed .stream-adult-gate {
  display: none !important;
}

.stream-card .thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* Final requested polish: keep the home overlay, but make its title less dominant. */
.hero-profile-card h1 {
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.04;
}

/* Streamer pages should show the live video itself; title/description live below it. */
.live-screen.has-embed:not(.is-offline) .live-screen-inner {
  display: none !important;
}

.live-screen.has-source-frame:not(.is-offline) .live-screen-inner {
  display: none !important;
}

.live-screen.has-source-video:not(.is-offline) .live-screen-inner {
  display: none !important;
}

.live-screen.has-source-preview:not(.is-offline) .live-screen-inner {
  display: none !important;
}

/* Keep only the supplied arrow image on the home hero; remove the button circle. */
.hero-arrow,
.hero-arrow:hover,
.hero-arrow:focus-visible {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  outline: 0;
}

@media (max-width: 700px) {
  .live-hero {
    overflow: hidden;
  }

  .hero-arrow {
    left: auto;
    right: auto;
    width: 24px;
    height: 30px;
    overflow: hidden;
  }

  .hero-arrow-left {
    left: 5px;
  }

  .hero-arrow-right {
    right: 5px;
  }

  .hero-arrow::before {
    width: 20px;
    height: 28px;
  }

  .hero-profile-card {
    right: 6px;
    bottom: 8px;
    left: 6px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 9px;
    border-radius: 8px;
  }

  .hero-profile-avatar,
  .hero-profile-avatar .avatar,
  .hero-profile-avatar img {
    width: 38px;
    height: 38px;
  }

  .hero-kicker {
    gap: 4px;
    margin-bottom: 2px;
    font-size: 10px;
  }

  .hero-kicker .live-dot {
    width: 6px;
    height: 6px;
  }

  .hero-profile-card h1 {
    margin-bottom: 3px;
    font-size: 17px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero-profile-card p {
    font-size: 10px;
    line-height: 1.15;
  }

  .hero-profile-card .primary-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-arrow {
    width: 20px;
    height: 24px;
    font-size: 0;
  }

  .hero-arrow::before {
    width: 18px;
    height: 26px;
  }

  .hero-arrow-left {
    left: 5px;
  }

  .hero-arrow-right {
    right: 5px;
  }

  .hero-dots {
    right: 10px;
    bottom: 10px;
    gap: 5px;
  }

  .hero-dots button {
    width: 6px;
    height: 6px;
  }

  .hero-dots button.is-active {
    width: 18px;
  }
}

.section-head h1 {
  margin: 5px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -.065em;
}

.streamer-list-block .streamer-directory-grid,
.browse-block .streamer-directory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.streamer-region-block {
  margin-top: 24px;
}

.streamer-region-block + .streamer-region-block {
  margin-top: 34px;
}

.streamer-subhead {
  margin-bottom: 14px;
}

.streamer-subhead h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.2vw, 31px);
  letter-spacing: -.055em;
}

@media (max-width: 1240px) {
  .streamer-list-block .streamer-directory-grid,
  .browse-block .streamer-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .streamer-list-block .streamer-directory-grid,
  .browse-block .streamer-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .streamer-directory-toolbar {
    gap: 10px;
    padding: 12px;
  }

  .streamer-toolbar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .streamer-filter-group {
    width: 100%;
  }

  .streamer-filter-group button {
    flex: 1 1 auto;
    padding: 0 10px;
  }

  .streamer-sort-box {
    width: 100%;
    justify-content: space-between;
  }

  .streamer-sort-box select {
    flex: 1;
    max-width: 210px;
  }

  .streamer-list-block .streamer-directory-grid,
  .browse-block .streamer-directory-grid {
    grid-template-columns: 1fr;
  }

  .streamer-list-block .streamer-directory-card,
  .browse-block .streamer-directory-card {
    min-width: 0;
  }
}

/* Make the random live shortcut stand out from the regular navigation items. */
.top-nav a[data-random-live],
.drawer-nav a[data-random-live] {
  position: relative;
  padding-right: 72px !important;
  border-color: rgba(255, 207, 92, .46);
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 207, 92, .24), transparent 34%),
    linear-gradient(135deg, rgba(255, 27, 45, .24), rgba(255, 207, 92, .13));
  color: #fff7d1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 0 18px rgba(255, 207, 92, .16);
}

.top-nav a[data-random-live]::after,
.drawer-nav a[data-random-live]::after {
  content: "RANDOM";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd166;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
  opacity: .9;
}

.top-nav a[data-random-live]:hover,
.drawer-nav a[data-random-live]:hover {
  border-color: rgba(255, 207, 92, .8);
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 207, 92, .32), transparent 36%),
    linear-gradient(135deg, rgba(255, 27, 45, .32), rgba(255, 207, 92, .2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 0 24px rgba(255, 207, 92, .24);
}

html[data-theme="light"] .top-nav a[data-random-live],
html[data-theme="light"] .drawer-nav a[data-random-live] {
  border-color: rgba(225, 92, 0, .48);
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 179, 42, .36), transparent 36%),
    linear-gradient(135deg, rgba(255, 27, 45, .18), rgba(255, 184, 54, .34));
  color: #1f1300 !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .44),
    0 0 18px rgba(255, 148, 31, .18);
}

html[data-theme="light"] .top-nav a[data-random-live]::after,
html[data-theme="light"] .drawer-nav a[data-random-live]::after {
  color: #c9001b;
  opacity: 1;
  text-shadow: none;
}
