@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #101010;
  --sidebar: #101010;
  --panel: #171717;
  --panel-soft: #1d1d1d;
  --panel-hover: #232323;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.48);
  --green: #20c997;
  --cyan: #5e86ff;
  --yellow: #f4c430;
  --purple: #a78bfa;
  --danger: #ff4d4d;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --icon-home: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11L12 3l9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-trophy: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4h8v4a4 4 0 0 1-8 0V4zM8 6H4v2a4 4 0 0 0 4 4M16 6h4v2a4 4 0 0 1-4 4M12 12v5M9 20h6M10 17h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm6 1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zM4 18.5c0-2.5 2.7-4.5 6-4.5s6 2 6 4.5V20H4v-1.5zm11 1.5v-1c0-1.1-.3-2.1-.9-3 2.3.3 4.9 1.7 4.9 4z'/%3E%3C/svg%3E");
  --icon-broadcast: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16a6 6 0 0 1 0-8M5 19a10 10 0 0 1 0-14M16 8a6 6 0 0 1 0 8M19 5a10 10 0 0 1 0 14M12 12h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M19.14 12.94c.04-.31.06-.62.06-.94s-.02-.63-.06-.94l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.03 7.03 0 0 0-1.63-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.58.23-1.13.54-1.63.94l-2.39-.96a.5.5 0 0 0-.6.22L2.71 8.84a.5.5 0 0 0 .12.64l2.03 1.58c-.04.31-.06.62-.06.94s.02.63.06.94l-2.03 1.58a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .6.22l2.39-.96c.5.4 1.05.71 1.63.94l.36 2.54a.5.5 0 0 0 .5.42h3.84a.5.5 0 0 0 .5-.42l.36-2.54c.58-.23 1.13-.54 1.63-.94l2.39.96a.5.5 0 0 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.64l-2.03-1.58zM12 15.5A3.5 3.5 0 1 1 12 8.5a3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E");
  --icon-play: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 6.5v11l9-5.5-9-5.5z' fill='black'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-target: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 8l3-3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-twitch: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 3h16v10.5L15.5 18H12l-2.5 2.5V18H6l-2-2V3zm2.5 2.5v9h4.5v2.4l2.4-2.4h2.9l1.2-1.2V5.5H6.5zm3 2h2v4h-2v-4zm5 0h2v4h-2v-4z'/%3E%3C/svg%3E");
  --icon-youtube: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M21.8 8.2a3.1 3.1 0 0 0-2.2-2.2C17.6 5.5 12 5.5 12 5.5s-5.6 0-7.6.5A3.1 3.1 0 0 0 2.2 8.2C1.7 10.2 1.7 12 1.7 12s0 1.8.5 3.8a3.1 3.1 0 0 0 2.2 2.2c2 .5 7.6.5 7.6.5s5.6 0 7.6-.5a3.1 3.1 0 0 0 2.2-2.2c.5-2 .5-3.8.5-3.8s0-1.8-.5-3.8zM10 15.4V8.6l5.4 3.4L10 15.4z'/%3E%3C/svg%3E");
  --icon-tiktok: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M14.8 3c.6 1.7 1.8 3 3.7 3.8.6.2 1.2.4 1.8.4v3.1c-1.1 0-2.2-.2-3.2-.6-.7-.3-1.4-.7-2-1.2v5.7a6.4 6.4 0 1 1-6.4-6.4c.3 0 .6 0 .9.1v3.2a3.2 3.2 0 1 0 2.3 3.1V3h2.9z'/%3E%3C/svg%3E");
  --icon-broadcast-solid: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm-5.7-2a1 1 0 0 1 1.4 0A6.8 6.8 0 0 1 9.7 12c0 1.7-.7 3.3-2 4.5a1 1 0 1 1-1.4-1.4 4.8 4.8 0 0 0 1.4-3.1c0-1.2-.5-2.3-1.4-3.1a1 1 0 0 1 0-1.4zm11.4 0a1 1 0 0 1 0 1.4 4.8 4.8 0 0 0-1.4 3.1c0 1.2.5 2.3 1.4 3.1a1 1 0 1 1-1.4 1.4 6.8 6.8 0 0 1-2-4.5c0-1.7.7-3.3 2-4.5a1 1 0 0 1 1.4 0zM3.5 4.7a1 1 0 0 1 1.4 0A10.7 10.7 0 0 1 8 12c0 2.8-1.1 5.5-3.1 7.3a1 1 0 1 1-1.4-1.4A8.7 8.7 0 0 0 6 12c0-2.2-.9-4.3-2.5-5.9a1 1 0 0 1 0-1.4zm17 0a1 1 0 0 1 0 1.4A8.7 8.7 0 0 0 18 12c0 2.2.9 4.3 2.5 5.9a1 1 0 1 1-1.4 1.4A10.7 10.7 0 0 1 16 12c0-2.8 1.1-5.5 3.1-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  font-size: 80%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(94, 134, 255, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #101010 0%, #121212 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
.sidebar-logo-word {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

.hidden {
  display: none !important;
}

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

.login-mode .app-shell {
  display: block;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 12px 12px 16px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(16, 16, 16, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.sidebar-logo-wrap {
  display: block;
  min-height: 0;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  box-shadow: none;
}

.sidebar-brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.2)),
    url("/branding/Banner.png") center/cover no-repeat,
    #141414;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.sidebar-brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.54) 44%, rgba(10, 10, 10, 0.78) 100%);
  pointer-events: none;
}

.sidebar-brand-thumb,
.sidebar-brand-copy {
  position: relative;
  z-index: 1;
}

.sidebar-brand-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 13, 18, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.sidebar-brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sidebar-brand-copy strong {
  font-family: Poppins, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.sidebar-brand-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  filter:
    drop-shadow(0 0 18px rgba(66, 223, 242, 0.16))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-mark-sidebar {
  width: 100%;
  height: 100%;
}

.sidebar-label,
.section-label {
  margin: 0 0 10px 6px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px 0 50px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.nav-tab::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  background: currentColor;
  opacity: 0.9;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.nav-tab[data-icon="home"]::before {
  mask-image: var(--icon-home);
  -webkit-mask-image: var(--icon-home);
}

.nav-tab[data-icon="trophy"]::before {
  mask-image: var(--icon-trophy);
  -webkit-mask-image: var(--icon-trophy);
}

.nav-tab[data-icon="users"]::before {
  mask-image: var(--icon-users);
  -webkit-mask-image: var(--icon-users);
}

.nav-tab[data-icon="broadcast"]::before {
  mask-image: var(--icon-broadcast);
  -webkit-mask-image: var(--icon-broadcast);
}

.nav-tab[data-icon="play"]::before {
  mask-image: var(--icon-play);
  -webkit-mask-image: var(--icon-play);
}

.nav-tab[data-icon="settings"]::before {
  mask-image: var(--icon-settings);
  -webkit-mask-image: var(--icon-settings);
}

.nav-tab:hover,
.nav-tab.active {
  border-color: rgba(255, 255, 255, 0.06);
  color: white;
  transform: none;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.nav-tab.active {
  border-left-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(94, 134, 255, 0.08);
}

.sidebar-footer {
  display: grid;
  margin-top: auto;
  padding: 0 8px;
  min-width: 0;
}

.sidebar-user-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(23, 23, 23, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.user-chip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-avatar,
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: #555;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.user-avatar {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-copy {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
}

.user-chip strong,
.user-chip span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  word-break: break-word;
  color: #f2f5fb;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
}

.user-chip span {
  white-space: nowrap;
  margin-top: 2px;
  color: #aeb5c4;
  font-size: 12px;
  font-weight: 700;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.logout-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.main {
  min-width: 0;
  background:
    radial-gradient(circle at top left, rgba(94, 134, 255, 0.06), transparent 22%),
    var(--bg);
}

.app-view {
  min-height: 100vh;
  padding: 0 32px 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  min-height: 56px;
  margin: 0 auto 12px;
  padding: 0 4px;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(16, 16, 16, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb b {
  color: white;
}

.online-badge,
.pill-group span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.online-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tab-panel {
  display: none;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 0;
}

.tab-panel.active {
  display: block;
}

.app-view.detail-mode .topbar,
.app-view.detail-mode .tab-panel,
.app-view.detail-mode .app-footer {
  display: none;
}

.streamer-detail-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 0 0;
}

.app-view.detail-mode .streamer-detail-page {
  display: block;
}

.page-heading {
  margin: 4px 0 16px;
}

.page-heading h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.page-heading p,
.panel-title p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.info-strip,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.info-strip {
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.info-strip article {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.summary-grid article {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-strip article,
.summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 56px;
  padding: 13px 16px;
}

.info-strip span,
.summary-grid span,
.filter-box label,
.creator-row small,
.ranking-hours small,
.ranking-main small,
.live-main small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-strip strong,
.summary-grid strong {
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.metric-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.metric-icon.green { color: var(--green); }
.metric-icon.cyan { color: var(--cyan); }
.metric-icon.amber { color: var(--yellow); }
.metric-icon.purple { color: var(--purple); }

.metric-icon[data-icon="broadcast"]::before { mask-image: var(--icon-broadcast); -webkit-mask-image: var(--icon-broadcast); }
.metric-icon[data-icon="clock"]::before { mask-image: var(--icon-clock); -webkit-mask-image: var(--icon-clock); }
.metric-icon[data-icon="trophy"]::before { mask-image: var(--icon-trophy); -webkit-mask-image: var(--icon-trophy); }
.metric-icon[data-icon="target"]::before { mask-image: var(--icon-target); -webkit-mask-image: var(--icon-target); }

.metric span {
  color: rgba(255, 255, 255, 0.62);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: #c8c9d3;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(94, 134, 255, 0.08), transparent 24%),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
}

.panel-title h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pill-group span {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.ranking-list,
.creator-list,
.live-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.ranking-row,
.creator-row,
.live-row {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)),
    var(--panel-soft);
  color: white;
  text-align: left;
}

.ranking-row:hover,
.creator-row:hover,
.live-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel-hover);
}

.ranking-row {
  grid-template-columns: 32px 42px minmax(0, 1fr) 84px 96px;
  gap: 12px;
  padding: 12px 14px;
}

.rank-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(244, 196, 48, 0.35);
  border-radius: 9px;
  background: rgba(244, 196, 48, 0.16);
  color: var(--yellow);
  font-weight: 900;
}

.ranking-main,
.creator-name,
.live-main,
.ranking-hours,
.live-state {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-main strong,
.creator-name strong,
.live-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main small {
  color: var(--cyan);
  text-transform: none;
}

.ranking-status {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.ranking-status.live,
.live-state strong {
  color: var(--danger);
}

.ranking-hours {
  justify-items: end;
}

.filter-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 24px 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.filter-box .wide {
  grid-column: span 1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23E7EAF3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 14px 14px;
  cursor: pointer;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.055);
}

select option {
  color: #f6f7fb;
  background: #16181d;
}

textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(54, 214, 232, 0.65);
}

.segmented {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.secondary-button,
.primary-button,
.success-button,
.danger-button,
.close-button,
.details-button {
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-weight: 800;
}

.secondary-button {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.secondary-button.active {
  border-color: rgba(66, 223, 242, 0.5);
  color: var(--cyan);
}

.primary-button {
  background: linear-gradient(135deg, #5e86ff, #4777ff);
  border-color: rgba(120, 149, 255, 0.36);
  color: #ffffff;
}

.success-button {
  background: rgba(0, 208, 146, 0.8);
}

.danger-button {
  background: rgba(255, 77, 77, 0.84);
}

.creator-row {
  grid-template-columns: 48px minmax(150px, 1.35fr) repeat(5, minmax(54px, 72px)) minmax(128px, 144px);
  gap: 10px;
  min-height: 78px;
  padding: 12px 16px;
  overflow: hidden;
}

.creator-row span:not(.creator-name):not(.details-button) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.creator-row small {
  display: block;
}

.details-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  min-width: 128px;
  width: 100%;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.95fr);
  gap: 16px;
}

.config-subnav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.config-subtab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.config-subtab.active {
  border-color: rgba(94, 134, 255, 0.34);
  background: rgba(94, 134, 255, 0.14);
  color: #aebeff;
}

.config-panel {
  display: none;
}

.config-panel.active {
  display: block;
}

.config-side-stack {
  display: grid;
  gap: 16px;
}

.config-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(94, 134, 255, 0.26);
  border-radius: 999px;
  background: rgba(94, 134, 255, 0.14);
  color: #b6c3ff;
  font-size: 12px;
  font-weight: 800;
}

.config-form-grid,
.config-readonly-grid,
.config-channel-preview {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
}

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

.config-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #e6e8f1;
  font-weight: 700;
}

.config-field-wide {
  grid-column: 1 / -1;
}

.config-field input {
  margin-top: 0;
  min-height: 44px;
  border-radius: 12px;
}

.config-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px 12px;
}

.config-actions .primary-button,
.config-actions .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
}

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

.config-readonly-grid article,
.config-preview-item {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.config-readonly-grid span,
.config-preview-item span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.config-readonly-grid strong,
.config-preview-item strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.config-channel-preview {
  grid-template-columns: 1fr;
}

.config-streamer-toolbar {
  margin-top: 0;
  margin-bottom: 0;
}

.whitelist-panels {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.whitelist-panel-block {
  display: grid;
  gap: 12px;
}

.whitelist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.whitelist-head h3 {
  margin: 0;
  font-size: 17px;
}

.whitelist-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.whitelist-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.whitelist-role-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.whitelist-role-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.whitelist-role-card.is-selected {
  border-color: color-mix(in srgb, var(--role-accent, var(--cyan)) 45%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--role-accent, var(--cyan)) 12%, rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--role-accent, var(--cyan)) 16%, transparent);
}

.whitelist-role-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--role-accent, rgba(255, 255, 255, 0.35));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.whitelist-role-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.whitelist-role-copy strong,
.whitelist-role-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitelist-role-copy small {
  color: var(--muted);
}

.whitelist-role-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.streamer-config-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.streamer-config-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.4fr) 120px 140px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.streamer-config-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.streamer-config-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.streamer-config-copy strong,
.streamer-config-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-config-copy small {
  color: var(--muted);
  text-transform: none;
}

.streamer-config-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.streamer-config-field span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.streamer-config-field input {
    margin-top: 0;
    min-height: 42px;
    border-radius: 12px;
}

.streamer-config-field textarea {
    margin-top: 0;
    min-height: 72px;
    max-height: 112px;
    padding: 10px 12px;
    border-radius: 12px;
    resize: vertical;
}

.streamer-config-field-link {
    align-self: stretch;
}

.streamer-config-link {
    overflow-y: auto;
}

.streamer-config-side {
  display: grid;
  gap: 8px;
}

.streamer-config-platform {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.streamer-config-save {
  min-height: 42px;
  border-radius: 14px;
}

.config-inline-feedback {
  padding: 0 24px 24px;
}

.live-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 152px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.live-card-main,
.live-card-side {
  display: flex;
  align-items: center;
}

.live-card-main {
  gap: 18px;
  min-width: 0;
}

.live-card-side {
  gap: 16px;
  margin-left: auto;
}

.live-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.live-main {
  gap: 8px;
}

.live-main strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.live-main .live-handle {
  color: #8eb6ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.live-platform-pill,
.live-meta-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-platform-pill {
  border: 1px solid rgba(94, 134, 255, 0.24);
  background: rgba(94, 134, 255, 0.14);
  color: #b7c5ff;
}

.live-meta-text {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #c7cad4;
}

.live-state {
  justify-items: end;
  min-width: 138px;
  gap: 10px;
}

.live-state strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5d5d;
  font-size: 16px;
  font-weight: 900;
}

.live-state strong::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff4040;
  box-shadow: 0 0 0 4px rgba(255, 64, 64, 0.12);
}

.live-state small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe2ea;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.live-state .live-viewers {
  min-width: 148px;
  border-color: rgba(107, 230, 255, 0.18);
  background: rgba(107, 230, 255, 0.08);
  color: #9deeff;
}

.live-state .live-open-hint {
  min-width: 148px;
  border-color: rgba(255, 93, 93, 0.22);
  background: rgba(255, 93, 93, 0.09);
  color: #ffd1d1;
}

.live-platform-rail {
  display: grid;
  gap: 12px;
  width: 56px;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  justify-items: center;
}

.live-platform-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.34);
  background: currentColor;
  opacity: 1;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.live-platform-icon.active {
  color: #6be6ff;
  filter: drop-shadow(0 0 8px rgba(107, 230, 255, 0.28));
}

.live-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.live-platform-icon[data-platform="twitch"] {
  mask-image: var(--icon-twitch);
  -webkit-mask-image: var(--icon-twitch);
}

.live-platform-icon[data-platform="youtube"] {
  mask-image: var(--icon-youtube);
  -webkit-mask-image: var(--icon-youtube);
}

.live-platform-icon[data-platform="tiktok"] {
  mask-image: var(--icon-tiktok);
  -webkit-mask-image: var(--icon-tiktok);
}

.live-platform-icon[data-platform="broadcast"] {
  mask-image: var(--icon-broadcast-solid);
  -webkit-mask-image: var(--icon-broadcast-solid);
}

.empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.panel-helper {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 600;
}

.videos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 0 24px 24px;
}

.videos-player-panel,
.videos-list-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.videos-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.videos-player-head h3 {
  margin: 0;
  font-size: 20px;
}

.videos-player-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.videos-open-link {
  text-decoration: none;
}

.videos-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(94, 134, 255, 0.14), transparent 42%),
    #050608;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.videos-player-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.videos-player-stats article {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.videos-player-stats span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.videos-player-stats strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.videos-list {
  display: grid;
  gap: 10px;
}

.video-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.video-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.video-card.is-active {
  border-color: rgba(94, 134, 255, 0.34);
  background: rgba(94, 134, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(94, 134, 255, 0.12);
}

.video-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.video-card-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.video-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.video-card-copy strong,
.video-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card-copy small {
  color: var(--muted);
}

.video-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-card-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.app-footer {
  max-width: 760px;
  margin: 28px auto 0;
  color: #6f97a6;
  text-align: right;
  font-size: 12px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, #101010 0%, #121212 100%);
  overflow: hidden;
  position: relative;
}

.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

.login-orb-a {
  top: 10%;
  left: 12%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(94, 134, 255, 0.28), transparent 70%);
  animation: login-orb-drift-a 24s ease-in-out infinite;
}

.login-orb-b {
  right: 10%;
  bottom: 12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 72%);
  animation: login-orb-drift-b 28s ease-in-out infinite;
}

.login-orb-c {
  top: 48%;
  right: 24%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(94, 134, 255, 0.16), transparent 72%);
  animation: login-orb-drift-c 20s ease-in-out infinite;
}

.login-box {
  display: grid;
  gap: 22px;
  width: min(460px, 100%);
  padding: 18px 18px 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(24, 24, 24, 0.92);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: login-card-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-hero-band {
  position: relative;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.36)),
    url("/branding/Banner.png") center/cover no-repeat;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.login-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.1), rgba(8, 10, 14, 0.52)),
    radial-gradient(circle at 50% 100%, rgba(94, 134, 255, 0.18), transparent 42%);
}

.login-hero-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 18, 0.78);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-hero-badge-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.login-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 0 16px;
}

.login-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 74px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-logo-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 62px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.login-logo {
  display: block;
  width: 176px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter:
    saturate(1.05)
    drop-shadow(0 0 14px rgba(66, 223, 242, 0.1));
}

.login-org,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-box h1 {
  margin: 0;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.login-box h1 span + span {
  color: #96adff;
}

.login-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  padding: 0 22px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.login-divider span {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #5865f2, #3b82f6);
  color: #ffffff;
  font-weight: 900;
  box-shadow:
    0 18px 34px rgba(59, 130, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.discord-icon {
  width: 22px;
  height: 22px;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
}

.form-success {
  min-height: 18px;
  margin: 0;
  color: var(--green);
}

.dialog {
  width: min(1140px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: white;
}

.dialog::backdrop {
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-card {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    #1a1b1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 22px 44px rgba(0, 0, 0, 0.2);
}

.streamer-detail-page .dialog-card {
  max-height: none;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 22px;
}

.dialog-hero {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 18px 20px 18px;
  background:
    linear-gradient(180deg, rgba(53, 57, 66, 0.98), rgba(49, 53, 61, 0.96)),
    #333842;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.dialog-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #7b7fff 0%, #5e86ff 100%);
  opacity: 0.9;
}

.dialog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 52%);
  opacity: 0.22;
  pointer-events: none;
}

.dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(44, 48, 57, 0.9);
  color: #f1f4fa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.detail-back-button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.detail-back-button:hover {
  transform: translateX(-1px);
  background: rgba(54, 59, 69, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
}

.detail-page-tag {
  display: none;
}

.dialog-kicker {
  margin: 0;
  color: rgba(233, 237, 244, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.close-button {
  justify-self: end;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.close-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.dialog-icon-close::before,
.dialog-icon-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.dialog-icon-close {
  position: relative;
}

.dialog-icon-close::before {
  transform: rotate(45deg);
}

.dialog-icon-close::after {
  transform: rotate(-45deg);
}

.dialog-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dialog-header img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dialog-header-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dialog h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.dialog-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: rgba(235, 239, 245, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.dialog-subline span {
  position: relative;
}

.dialog-subline span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 6px;
  height: 1px;
  margin-top: -0.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.dialog-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.dialog-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(43, 47, 55, 0.88);
  color: rgba(249, 251, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
}

.dialog-hero-pill.is-live::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dialog-hero-pill:not(.is-live) {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(53, 57, 65, 0.74);
  color: rgba(255, 255, 255, 0.9);
}

.dialog-hero-pill-soft {
  color: rgba(236, 241, 249, 0.82);
}

#dialogHeroStatus {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(39, 43, 51, 0.9);
}

#dialogHeroStatus.is-live {
  border-color: rgba(0, 208, 146, 0.26);
  background: rgba(0, 208, 146, 0.12);
  color: #96f0ca;
}

.dialog-body {
  display: grid;
  gap: 16px;
  padding: 14px 16px 18px;
}

.dialog-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dialog-stat {
  display: grid;
  gap: 10px;
  min-height: 90px;
  padding: 12px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.dialog-stat::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dialog-stat-cyan::before {
  background: #5adfff;
}

.dialog-stat-purple::before {
  background: #a78bfa;
}

.dialog-stat-green::before {
  background: #20c997;
}

.dialog-stat-gold::before {
  background: #f4c430;
}

.dialog-stat::after {
  display: none;
}

.dialog-stat span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-stat strong {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dialog-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.88fr);
  gap: 14px;
}

.dialog-side-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dialog-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dialog-activity-panel {
  min-height: 0;
}

.dialog-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-panel-head-tight {
  margin-bottom: -2px;
}

.dialog-panel-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dialog-panel-head p {
  margin: 4px 0 0;
  color: #a8adb8;
  font-size: 11px;
  line-height: 1.35;
}

.dialog-goal-wrap {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 140px;
}

.dialog-goal-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-goal-wrap strong {
  color: var(--cyan);
  font-size: 16px;
  line-height: 1;
}

.dialog-goal-text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.dialog-goal-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.dialog-goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3cccf4, #67e1ef);
  box-shadow: 0 0 18px rgba(88, 228, 255, 0.35);
}

.dialog-chart-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dialog-chart-highlight {
  display: grid;
  gap: 6px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
}

.dialog-chart-highlight span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-chart-highlight strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dialog-chart-shell {
  min-height: 308px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(88, 228, 255, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(71, 79, 84, 0.16), rgba(38, 43, 45, 0.06)),
    rgba(255, 255, 255, 0.01);
  padding: 14px 14px 8px;
}

.dialog-chart {
  width: 100%;
  height: 300px;
  overflow: visible;
}

.dialog-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.dialog-chart-grid.is-base {
  stroke: rgba(255, 255, 255, 0.16);
}

.dialog-chart-axis-label {
  fill: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 700;
}

.dialog-chart-peak-band {
  fill: rgba(88, 228, 255, 0.05);
}

.dialog-chart-average-line {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}

.dialog-chart-area {
  fill: url(#dialogChartAreaGradient);
}

.dialog-chart-line-shadow {
  fill: none;
  stroke: rgba(88, 228, 255, 0.18);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-chart-line {
  fill: none;
  stroke: #58e4ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-chart-dot {
  fill: #58e4ff;
  stroke: rgba(24, 49, 54, 0.85);
  stroke-width: 2;
}

.dialog-chart-dot.is-idle {
  fill: rgba(88, 228, 255, 0.35);
  stroke: rgba(24, 49, 54, 0.55);
}

.dialog-chart-dot.is-peak {
  fill: #94f1ff;
  stroke: rgba(20, 39, 44, 0.94);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(88, 228, 255, 0.38));
}

.dialog-chart-label {
  fill: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
}

.dialog-chart-peak-label {
  fill: #c9f8ff;
  font-size: 11px;
  font-weight: 800;
}

.dialog-chart-empty {
  fill: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 700;
}

.dialog-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dialog-mini-stat {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
}

.dialog-mini-stat span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-mini-stat strong {
  font-size: 14px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.dialog-session-strip {
  display: grid;
  gap: 14px;
}

.dialog-session-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-session-strip-head h4 {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.dialog-session-strip-head span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-session-list {
  display: grid;
  gap: 12px;
}

.dialog-session-item {
  display: grid;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
}

.dialog-session-top,
.dialog-session-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-session-top strong {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.dialog-session-top span,
.dialog-session-metrics span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.dialog-session-metrics {
  flex-wrap: wrap;
}

.dialog-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.session-watch-button,
.session-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.session-watch-button:hover,
.session-download-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.session-watch-button.is-active {
  border-color: rgba(255, 176, 74, 0.42);
  background: rgba(255, 176, 74, 0.12);
  color: #ffd99a;
}

.session-recording-missing {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dialog-session-empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.015);
}

.dialog-recording-shell {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dialog-watch-shell {
  display: grid;
  gap: 12px;
}

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

.dialog-watch-link {
  text-decoration: none;
}

.dialog-watch-embed {
  width: 100%;
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.dialog-watch-placeholder {
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-watch-note {
  padding: 10px 12px;
  border: 1px solid rgba(94, 134, 255, 0.14);
  border-radius: 14px;
  background: rgba(94, 134, 255, 0.08);
  color: rgba(222, 231, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.dialog-recording-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-recording-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.dialog-recording-head span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  text-align: right;
}

.dialog-recording-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 176, 74, 0.08), transparent 40%),
    #040507;
  object-fit: contain;
}

.dialog-field {
  display: grid;
  gap: 10px;
  color: #e7e8ee;
  font-weight: 700;
}

.dialog-field input,
.dialog-field textarea {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dialog-field textarea {
  min-height: 132px;
  resize: vertical;
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dialog-actions .primary-button,
.dialog-actions .secondary-button {
  min-height: 40px;
  border-radius: 12px;
  font-size: 12px;
}

.dialog-actions .primary-button {
  background: linear-gradient(135deg, #5e86ff, #4777ff);
  border-color: rgba(120, 149, 255, 0.36);
  box-shadow: 0 10px 18px rgba(76, 111, 255, 0.14);
}

.dialog-actions .secondary-button {
  background: rgba(255, 255, 255, 0.07);
}

.dialog-feedback {
  min-height: 22px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #97efc8;
}

/* Detail page override: make the creator page read like a dashboard page,
   not a modal blown up to full-screen. */
.streamer-detail-page .streamer-detail-shell {
  border-radius: 16px !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.004)),
    #1f2126 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    0 14px 28px rgba(0, 0, 0, 0.14) !important;
}

.streamer-detail-page .streamer-detail-hero {
  gap: 14px !important;
  padding: 12px 16px 14px !important;
  background:
    linear-gradient(180deg, rgba(58, 62, 71, 0.98), rgba(53, 57, 66, 0.96)),
    #363b44 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.streamer-detail-page .streamer-detail-header {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.streamer-detail-page .streamer-detail-copy {
  gap: 5px !important;
}

.streamer-detail-page .streamer-detail-title,
.streamer-detail-page #dialogName {
  margin: 0 !important;
  font-size: clamp(15px, 1.25vw, 20px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  font-weight: 800 !important;
}

.streamer-detail-page .streamer-detail-subline {
  gap: 5px 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(235, 239, 245, 0.68) !important;
}

.streamer-detail-page .streamer-detail-pills {
  gap: 6px !important;
}

.streamer-detail-page .streamer-detail-pills .dialog-hero-pill {
  min-height: 20px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 9px !important;
  background: rgba(49, 53, 62, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.streamer-detail-page .streamer-detail-body {
  gap: 12px !important;
  padding: 10px 12px 14px !important;
}

.streamer-detail-page .streamer-detail-stats {
  gap: 8px !important;
}

.streamer-detail-page .streamer-detail-stats .dialog-stat {
  min-height: 72px !important;
  padding: 9px 11px !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.012) !important;
}

.streamer-detail-page .streamer-detail-stats .dialog-stat strong {
  font-size: clamp(14px, 1.35vw, 18px) !important;
}

.streamer-detail-page .streamer-detail-stats .dialog-stat span {
  font-size: 9px !important;
}

.streamer-detail-page .streamer-detail-layout {
  grid-template-columns: minmax(0, 1.95fr) minmax(275px, 0.75fr) !important;
  gap: 10px !important;
}

.streamer-detail-page .streamer-detail-side {
  gap: 10px !important;
}

.streamer-detail-page .streamer-detail-panel {
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  border-color: rgba(255, 255, 255, 0.055) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(255, 255, 255, 0.01) !important;
}

.streamer-detail-page .streamer-detail-panel .dialog-panel-head h3 {
  font-size: 12px !important;
  font-weight: 800 !important;
}

.streamer-detail-page .streamer-detail-panel .dialog-panel-head p {
  font-size: 10px !important;
  line-height: 1.32 !important;
}

.streamer-detail-page .dialog-chart-shell {
  min-height: 240px !important;
  border-radius: 10px !important;
  padding: 12px 12px 6px !important;
}

.streamer-detail-page .dialog-chart {
  height: 220px !important;
}

.streamer-detail-page .dialog-chart-highlights {
  gap: 8px !important;
}

.streamer-detail-page .dialog-chart-highlight,
.streamer-detail-page .dialog-mini-stat,
.streamer-detail-page .dialog-session-item {
  border-radius: 10px !important;
}

.streamer-detail-page .dialog-mini-stat {
  min-height: 68px !important;
  padding: 10px !important;
}

.streamer-detail-page .dialog-mini-stat strong {
  font-size: 12px !important;
}

.streamer-detail-page .dialog-mini-stat span {
  font-size: 9px !important;
}

.streamer-detail-page .dialog-field input,
.streamer-detail-page .dialog-field textarea {
  border-radius: 9px !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
}

.streamer-detail-page .dialog-actions .primary-button,
.streamer-detail-page .dialog-actions .secondary-button {
  min-height: 34px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  padding: 0 10px !important;
}

.streamer-detail-page .dialog-session-strip-head h4 {
  font-size: 12px !important;
}

.streamer-detail-page .dialog-session-strip-head span,
.streamer-detail-page .dialog-session-top span,
.streamer-detail-page .dialog-session-metrics span {
  font-size: 10px !important;
}

.streamer-detail-page .dialog-session-top strong {
  font-size: 12px !important;
}

.streamer-detail-page .detail-back-button {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
}

.streamer-detail-page .dialog-kicker {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

@keyframes login-orb-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(6%, -5%) scale(1.12);
  }
  70% {
    transform: translate(-4%, 8%) scale(0.92);
  }
}

@keyframes login-orb-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(-8%, 5%) scale(1.08);
  }
}

@keyframes login-orb-drift-c {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8%) scale(1.12);
  }
}

@keyframes login-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-orb-a,
  .login-orb-b,
  .login-orb-c,
  .login-box {
    animation: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    height: auto;
    gap: 12px;
    padding-bottom: 12px;
    overflow: visible;
  }

  .sidebar-logo-wrap,
  .sidebar-footer {
    padding: 0;
  }

  .sidebar-brand-card,
  .sidebar-user-card {
    border-radius: 16px;
  }

  .sidebar-label {
    margin-bottom: 6px;
  }

  .nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-tab {
    min-height: 44px;
    padding: 0 12px 0 40px;
    border-left-width: 1px;
    font-size: 13px;
  }

  .nav-tab::before {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .app-view {
    padding: 0 18px 28px;
  }

  .tab-panel {
    padding-top: 18px;
  }

  .topbar {
    position: static;
    padding: 6px 2px 10px;
  }

  .pill-group {
    flex-wrap: wrap;
    white-space: normal;
  }

  .pill-group span {
    min-width: 0;
    white-space: normal;
  }

  .metric-grid,
  .info-strip,
  .summary-grid,
  .dialog-stat-grid,
  .dialog-chart-highlights,
  .filter-box,
  .config-form-grid,
  .config-readonly-grid {
    grid-template-columns: 1fr;
  }

  .dialog-insight-grid {
    grid-template-columns: 1fr;
  }

  .config-layout {
    grid-template-columns: 1fr;
  }

  .config-subnav,
  .detail-nav {
    flex-wrap: wrap;
  }

  .config-subtab {
    flex: 1 1 180px;
  }

  .videos-layout,
  .videos-player-stats {
    grid-template-columns: 1fr;
  }

  .videos-layout {
    padding: 0 18px 18px;
  }

  .streamer-config-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .streamer-config-main,
  .streamer-config-side,
  .videos-list-panel,
  .videos-player-panel {
    min-width: 0;
  }

  .streamer-config-save,
  .config-actions .primary-button,
  .config-actions .secondary-button {
    width: 100%;
  }

  .whitelist-role-grid {
    grid-template-columns: 1fr;
  }

  .whitelist-role-card {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .whitelist-role-tag {
    grid-column: 2;
    justify-self: start;
  }

  .dialog-goal-wrap {
    justify-items: start;
  }

  .detail-page-tag {
    display: none;
  }

  .creator-row,
  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .creator-row > span:not(.creator-name):not(.details-button),
  .ranking-status {
    display: none;
  }

  .details-button,
  .live-watch-link,
  .videos-open-link,
  .dialog-watch-link {
    min-width: 0;
    width: 100%;
  }

  .dialog-watch-actions,
  .dialog-recording-head,
  .dialog-session-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-recording-head span {
    text-align: left;
  }

  .streamer-detail-page .dialog-card {
    min-height: auto;
    overflow: auto;
  }

  .streamer-detail-page .streamer-detail-layout,
  .streamer-detail-page .dialog-insight-grid {
    grid-template-columns: 1fr !important;
  }

  .streamer-detail-page .streamer-detail-side {
    order: 2;
  }
}

@media (max-width: 560px) {
  .sidebar {
    padding: 10px 10px 12px;
  }

  .sidebar-brand-card {
    gap: 12px;
    padding: 12px;
  }

  .sidebar-brand-thumb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .sidebar-brand-copy strong {
    font-size: 14px;
  }

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

  .nav-tab {
    min-height: 42px;
    padding: 0 10px 0 36px;
    border-radius: 12px;
    font-size: 12px;
  }

  .nav-tab::before {
    left: 12px;
    width: 15px;
    height: 15px;
  }

  .app-view {
    padding: 0 12px 22px;
  }

  .main {
    min-width: 0;
  }

  .tab-panel {
    padding-top: 14px;
  }

  .page-heading h1 {
    font-size: 20px;
  }

  .page-heading p,
  .panel-title p {
    font-size: 13px;
  }

  .login-box {
    width: min(100%, 420px);
    padding: 14px 14px 18px;
  }

  .login-hero-band {
    min-height: 112px;
  }

  .login-brand {
    padding: 0 8px;
  }

  .login-box h1 {
    font-size: 34px;
  }

  .login-copy {
    padding: 0 8px;
    font-size: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 2px;
  }

  .breadcrumb {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .online-badge,
  .pill-group span {
    width: 100%;
    justify-content: center;
  }

  .metric {
    grid-template-columns: 1fr;
  }

  .panel-title {
    flex-direction: column;
  }

  .panel-title,
  .videos-player-head,
  .dialog-panel-head,
  .whitelist-head {
    align-items: stretch;
  }

  .videos-player-head {
    flex-direction: column;
  }

  .videos-layout {
    padding: 0 14px 14px;
  }

  .videos-player,
  .dialog-watch-embed,
  .dialog-recording-video {
    border-radius: 14px;
  }

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

  .ranking-hours,
  .live-state {
    justify-items: start;
  }

  .live-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .live-card-main,
  .live-card-side {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-card-side {
    width: 100%;
    margin-left: 0;
  }

  .live-state {
    justify-items: start;
  }

  .live-platform-rail {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 12px;
  }

  .filter-box {
    margin: 10px 0;
    padding: 14px;
  }

  .filter-box label,
  .streamer-config-field span {
    font-size: 10px;
  }

  input,
  select,
  textarea {
    border-radius: 11px;
  }

  .panel {
    border-radius: 16px;
  }

  .summary-grid,
  .info-strip {
    margin-bottom: 18px;
  }

  .creator-row,
  .ranking-row,
  .live-row {
    padding: 12px;
    border-radius: 16px;
  }

  .dialog-body,
  .dialog-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dialog {
    width: min(100vw - 16px, 1140px);
    max-height: calc(100vh - 16px);
  }

  .dialog-card {
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .dialog-header {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .dialog-header img {
    width: 42px;
    height: 42px;
  }

  .dialog-subline,
  .dialog-hero-pills {
    gap: 8px;
  }

  .dialog-subline span + span::before {
    display: none;
  }

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

  .dialog-chart-highlights {
    grid-template-columns: 1fr;
  }

  .dialog-panel-head {
    flex-direction: column;
  }

  .detail-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .detail-nav > * {
    width: 100%;
  }

  .dialog-session-top,
  .dialog-session-metrics,
  .dialog-session-strip-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .config-actions {
    flex-direction: column;
  }

  .config-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .whitelist-head {
    flex-direction: column;
  }

  .whitelist-role-card {
    gap: 10px;
    padding: 12px;
  }

  .dialog-mini-stats {
    grid-template-columns: 1fr;
  }

  .dialog-actions,
  .dialog-actions + .dialog-actions {
    grid-template-columns: 1fr;
  }

  .streamer-detail-page {
    padding-top: 16px;
  }

  .streamer-detail-page .dialog-card {
    border-radius: 16px !important;
  }

  .streamer-detail-page .streamer-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .streamer-config-list,
  .config-inline-feedback,
  .videos-layout,
  .filter-box,
  .config-actions,
  .whitelist-panels {
    padding-left: 14px;
    padding-right: 14px;
  }

  .streamer-config-row {
    padding: 12px;
    border-radius: 16px;
  }
}
