:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #0b141c;
  color: #f6f9fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(ellipse at 50% 24%, #14313c 0, transparent 55%),
    #0b141c;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.channel {
  width: min(100%, 420px);
  padding: 32px 32px 27px;
  text-align: center;
  border: 1px solid #2a3d47;
  border-radius: 28px;
  background: linear-gradient(160deg, #172a34, #121e28 65%);
  box-shadow: 0 28px 90px #00000035, inset 0 1px #ffffff05;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  color: #a1b8c5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.eyebrow svg { width: 15px; height: 15px; color: #65d0f3; }

.portrait-frame {
  width: 152px;
  height: 152px;
  padding: 5px;
  margin: 0 auto 24px;
  border: 1px solid #65d0f359;
  border-radius: 50%;
  background: #152c37;
  box-shadow: 0 0 0 7px #5dc7ea05;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: 50%;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 6.8vw, 32px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1px;
}

.channel-detail {
  margin: 8px 0 0;
  color: #a9b9c3;
  font-size: 14px;
  line-height: 1.5;
}

.subscribers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 21px 0 29px;
  color: #a9b9c3;
  font-size: 13px;
  line-height: 1.5;
}

.subscribers strong { color: #edf5f8; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-dot { width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #69d8b1; }

.join-button {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #a6e9ff50;
  border-radius: 14px;
  background: #67d0f4;
  color: #072433;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 6px 24px #34b4dd14;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.join-button svg { width: 21px; height: 21px; flex: 0 0 auto; }
.join-button .arrow { width: 17px; height: 17px; margin-left: auto; }
.join-button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.join-button:active { transform: translateY(1px); }
.button-note { margin: 13px 0 0; color: #8ea2b0; font-size: 11px; line-height: 1.5; }

@media (hover: hover) {
  .join-button:hover { background: #8cddfa; transform: translateY(-2px); box-shadow: 0 8px 28px #34b4dd26; }
}

@media (max-width: 380px) {
  main { padding-left: 16px; padding-right: 16px; }
  .channel { padding-left: 23px; padding-right: 23px; border-radius: 24px; }
  .join-button { gap: 8px; padding-left: 14px; padding-right: 14px; font-size: 14px; }
}

@media (max-height: 650px) {
  main { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .channel { padding-top: 25px; padding-bottom: 23px; }
  .eyebrow { margin-bottom: 21px; }
  .portrait-frame { width: 128px; height: 128px; margin-bottom: 20px; }
  .subscribers { margin-top: 17px; margin-bottom: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .join-button { transition: none; }
}
