:root {
  color-scheme: dark;
  --bg: #06090e;
  --panel: rgba(11, 15, 21, 0.94);
  --panel-2: rgba(17, 22, 30, 0.92);
  --line: rgba(180, 197, 218, 0.13);
  --line-strong: rgba(180, 197, 218, 0.24);
  --text: #f4f7fa;
  --muted: #a5b1be;
  --cyan: #35daf7;
  --amber: #ffc84a;
  --purple: #a15cff;
  --green: #75d45d;
  --orange: #ff8b35;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 80% 0%, rgba(53, 218, 247, 0.06), transparent 58%),
    radial-gradient(760px 500px at 10% 10%, rgba(255, 200, 74, 0.05), transparent 60%),
    linear-gradient(180deg, #0a1016 0%, var(--bg) 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1500px, calc(100% - 64px));
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 17, 0.9), rgba(7, 10, 15, 0.98)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.035), transparent 44%);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.5);
}

.global-topnav-wrap {
  width: min(1500px, calc(100% - 64px));
  margin: 22px auto 18px;
}

.global-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 24, 33, 0.92), rgba(9, 13, 19, 0.96)),
    radial-gradient(circle at top left, rgba(53, 218, 247, 0.08), transparent 42%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.global-topnav-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.global-topnav-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d7ee6, #66a9ff);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.global-topnav-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.global-topnav-copy strong {
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.global-topnav-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.global-topnav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.global-topnav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.global-topnav-links a:hover,
.global-topnav-links a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.global-topnav-wrap + .page-shell {
  margin-top: 0;
}

.site-hero {
  position: relative;
  min-height: 390px;
  padding-bottom: 22px;
  overflow: hidden;
}

.hero-art {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.82);
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 9, 13, 0) 0%, rgba(6, 9, 13, 0.46) 34%, rgba(6, 9, 13, 0.98) 74%),
    linear-gradient(90deg, rgba(6, 9, 13, 0.62), rgba(6, 9, 13, 0.16) 50%, rgba(6, 9, 13, 0.66));
}

.hero-inner,
.hero-actions,
.dashboard,
.site-footer {
  position: relative;
  width: min(1260px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-top: -104px;
}

.avatar {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 247, 250, 0.75);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  background: #101722;
}

.avatar-home-link {
  display: block;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.avatar-home-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.avatar-home-link .avatar {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.35rem, 3.8vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.tagline {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b8c3cf;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(180, 197, 218, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.48);
  color: #c8d3df;
  font-size: 0.9rem;
}

.hero-stats strong {
  color: var(--text);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.action-card,
.video-card,
.content-card,
.side-card,
.now-card,
.stream-card,
.stream-panel,
.channel-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.86), rgba(9, 13, 19, 0.94));
}

.action-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 16px 22px;
  box-shadow: inset 0 0 0 1px rgba(228, 238, 252, 0.12);
  text-decoration: none;
}

.action-card span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.action-card small {
  color: var(--muted);
  font-size: 0.86rem;
}

.action-placeholder {
  cursor: default;
}

.action-primary {
  border-color: rgba(53, 218, 247, 0.48);
  background: linear-gradient(135deg, rgba(53, 218, 247, 0.12), rgba(9, 13, 19, 0.94));
}

.action-warm {
  border-color: rgba(255, 200, 74, 0.45);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 22px;
  margin-top: 22px;
}

.dashboard-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.content-card,
.side-card {
  padding: 18px;
}

.latest-upload-card {
  display: grid;
  gap: 0;
}

.latest-upload-panel {
  display: grid;
  gap: 18px;
}

.video-latest-sync {
  margin-bottom: 22px;
}

.video-latest-sync + .video-grid {
  margin-top: 22px;
}

.latest-upload-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.latest-upload-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.82), rgba(13, 18, 25, 0.9));
  aspect-ratio: 16 / 9;
}

.latest-upload-thumb img,
.latest-upload-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.latest-upload-thumb img {
  object-fit: cover;
}

.latest-upload-thumb-fallback {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.16), rgba(7, 10, 14, 0.78)),
    linear-gradient(135deg, #25152e, #214559 58%, #101721);
  font-weight: 800;
  text-align: center;
}

.latest-upload-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.latest-upload-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.latest-upload-panel strong {
  display: block;
  max-width: 100%;
  font-size: 1.28rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-upload-panel p {
  margin: 0;
  color: var(--muted);
}

.latest-upload-meta {
  color: #d7e2ed;
  font-size: 0.92rem;
}

.latest-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.latest-upload-button,
.latest-upload-link {
  text-decoration: none;
}

.latest-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(53, 218, 247, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(53, 218, 247, 0.2), rgba(13, 18, 25, 0.9));
  color: var(--text);
  font-weight: 800;
}

.latest-upload-link {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 750;
}

.channel-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.channel-status-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.82), rgba(13, 18, 25, 0.9));
}

.channel-status-card span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-status-card strong {
  display: block;
  max-width: 100%;
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.channel-status-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.channel-status-error span {
  color: var(--orange);
}

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

.text-link,
.video-copy a,
.now-card a {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

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

.video-card {
  overflow: hidden;
}

.video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: flex;
  align-items: end;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.05), rgba(7, 10, 14, 0.72)),
    var(--poster);
  background-size: cover;
  background-position: center;
}

.poster-plays { --poster: linear-gradient(135deg, #25152e, #214559 58%, #101721); }
.poster-lists { --poster: linear-gradient(135deg, #332b16, #5b431b 55%, #121820); }
.poster-mc { --poster: linear-gradient(135deg, #112e22, #35663f 54%, #101721); }
.poster-live { --poster: linear-gradient(135deg, #281b3f, #205260 58%, #101721); }

.play-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 247, 250, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.video-poster iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy {
  padding: 14px;
}

.video-copy p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.subhead {
  margin: 28px 0 16px;
}

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

.channel-grid a {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.channel-grid span {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 850;
}

.channel-grid strong {
  color: var(--text);
  font-size: 0.9rem;
}

.side-card {
  display: grid;
  align-content: start;
  gap: 22px;
}

.now-card,
.stream-card {
  padding: 18px;
}

.now-label {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
}

.now-card p {
  margin-bottom: 12px;
  color: #dce6ee;
  font-size: 0.9rem;
}

.stream-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.stream-card span,
.stream-panel-head span {
  color: var(--purple);
  font-weight: 850;
}

.stream-card small,
.stream-panel-head small {
  color: var(--muted);
}

.stream-panel {
  overflow: hidden;
}

.stream-panel-head {
  display: grid;
  gap: 8px;
  padding: 18px 18px 14px;
  text-decoration: none;
}

.stream-panel-head:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: -3px;
}

.twitch-player {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.twitch-embed-label {
  display: block;
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 850;
}

.twitch-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 176px;
  border: 0;
  border-radius: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px 0 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.site-footer a {
  color: #c8d2dc;
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .global-topnav {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-topnav-links {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 28px, 1500px);
  }

  .hero-inner,
  .hero-actions,
  .dashboard,
  .site-footer {
    width: min(100% - 36px, 1260px);
  }

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

  .hero-actions,
  .video-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-upload-layout,
  .channel-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .global-topnav-wrap {
    width: min(100% - 20px, 1500px);
    margin-top: 10px;
  }

  .global-topnav {
    padding: 16px 18px;
    border-radius: 22px;
  }

  .global-topnav-brand {
    align-items: flex-start;
  }

  .global-topnav-links {
    width: 100%;
  }

  .page-shell {
    width: 100%;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .site-hero {
    min-height: 0;
  }

  .hero-art {
    height: 170px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: -50px;
  }

  .avatar {
    width: 82px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-actions,
  .video-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .latest-upload-actions {
    align-items: stretch;
  }

  .latest-upload-button,
  .latest-upload-link {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    display: grid;
  }
}


.house-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.house-note-card {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.82), rgba(13, 18, 25, 0.9));
}

.house-note-card span {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 850;
}

.house-note-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.house-note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.house-note-card a {
  align-self: end;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .house-note-grid {
    grid-template-columns: 1fr;
  }
}
