@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
* {
  outline: none;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

:root {
  --body-font: "Inter", sans-serif;
  --theme-bg: #1f1d2b;
  --body-color: #808191;
  --button-bg: #353340;
  --border-color: rgb(128 129 145 / 24%);
  --video-bg: #252936;
  --accent: #ed572c;
  --accent-glow: #ff7551;
  --delay: 0s;
}

body {
  font-family: var(--body-font);
  color: var(--body-color);
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: color-dodge;
  background-color: rgba(18, 21, 39, 0.86);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1em 2em;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}
body::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(163deg, rgb(31, 29, 43) 21%, rgba(31, 29, 43, 0.31) 64%);
  opacity: 0.4;
  content: "";
  pointer-events: none;
}

.container {
  background-color: var(--theme-bg);
  max-width: 1240px;
  max-height: 900px;
  height: 95vh;
  display: flex;
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 56px;
  width: auto;
}

@keyframes bottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.mobile-hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffd60a;
  color: #1a1500;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(255, 214, 10, 0.25);
}
.mobile-hint svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: #1a1500;
}
.mobile-hint strong {
  font-weight: 700;
}
@media screen and (max-width: 600px) {
  .mobile-hint {
    display: flex;
  }
}

.header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 30px;
}

.user-settings {
  display: flex;
  align-items: center;
  padding-left: 20px;
  flex-shrink: 0;
  margin-left: auto;
}
.user-settings .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(237, 87, 44, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-right: 16px;
  letter-spacing: 0.04em;
}
.user-settings .live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}
.user-name {
  color: #fff;
  font-size: 14px;
  margin: 0 6px 0 12px;
}

.main-container {
  display: flex;
  flex-direction: column;
  padding: 0 30px 30px;
  flex-grow: 1;
  overflow: auto;
  min-height: 0;
}

.anim {
  animation: bottom 0.8s var(--delay) both;
}

.author-img {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 4px;
  border-radius: 50%;
  object-fit: cover;
}

.author-img__wrapper {
  position: relative;
  flex-shrink: 0;
}
.author-img__wrapper svg {
  width: 16px;
  padding: 2px;
  background-color: #fff;
  color: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: absolute;
  bottom: 5px;
  right: 0;
}

.seperate {
  width: 3px;
  height: 3px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  background-color: #fff;
  margin: 0 6px;
}

.tv-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  min-height: 280px;
  padding: 48px 24px;
  color: var(--body-color);
}
.tv-state p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.tv-state span {
  font-size: 14px;
}
.tv-state--empty {
  background: var(--video-bg);
  border-radius: 20px;
  border: 1px dashed var(--border-color);
}

.stream-area {
  display: flex;
  flex-grow: 1;
  min-height: 0;
}
.stream-area.is-hidden {
  display: none;
}

.video-stream {
  width: 65%;
  transition: 0.3s;
}

.live-player {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0;
}
.live-player.is-playing .live-player__score-overlay {
  pointer-events: none;
}
.live-player.is-playing .live-player__brand-logo {
  display: block;
}
.live-player.is-playing.is-youtube .live-player__iframe-wrap {
  overflow: hidden;
}
.live-player.is-playing.is-youtube .live-player__iframe-wrap iframe {
  height: calc(100% + 58px);
  margin-bottom: -58px;
}
.live-player.is-playing.is-youtube .live-player__yt-progress {
  display: block;
}
.live-player__brand-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: none;
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.live-player__yt-progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 4px;
  z-index: 55;
  background: rgba(237, 87, 44, 0.25);
  pointer-events: none;
}
.live-player__yt-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #ed572c;
}
.live-player.is-immersive-fs {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  z-index: 10000;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.live-player.is-immersive-fs .live-player__stage {
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.live-player__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 320px;
  background: #0a0b10;
}
.live-player__media {
  position: absolute;
  inset: 0;
}
.live-player__poster {
  position: absolute;
  inset: 0;
}
.live-player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-player__poster.is-hidden {
  display: none;
}
.live-player__iframe-wrap {
  position: absolute;
  inset: 0;
}
.live-player__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.live-player__iframe-wrap.is-hidden {
  display: none;
}
.live-player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 55;
}
.live-player__overlay.is-hidden {
  display: none;
}
.live-player__overlay--offline {
  background: rgba(10, 11, 16, 0.55);
}
.live-player__offline-msg {
  margin: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}
.live-player__play {
  pointer-events: auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 51, 63, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, opacity 0.25s;
  backdrop-filter: blur(4px);
}
.live-player__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}
.live-player__play:hover {
  transform: scale(1.06);
  background: rgba(43, 51, 63, 0.9);
}
.live-player__play.is-hidden {
  display: none;
}
.live-player__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px 6px 26px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  pointer-events: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='4' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 8px;
  background-position: 10px center;
  box-shadow: 0 4px 16px rgba(237, 87, 44, 0.45);
}
.live-player__score-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 6;
  pointer-events: none;
  background: transparent;
}
.live-player__tap-layer {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: transparent;
  pointer-events: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.live-player__tap-layer.is-active {
  pointer-events: auto;
  cursor: pointer;
}
.live-player__tap-layer.is-hidden {
  display: none;
}
.live-player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  border-radius: 0;
  background: #0a0b10;
}
.live-player__bar.is-hidden {
  display: none;
}
.live-player__bar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.live-player__bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-live 1.4s ease-in-out infinite;
}
.live-player__bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-player__btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.live-player__btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  opacity: 1;
}
.live-player__btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.live-player.is-fullscreen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}
.live-player.is-fullscreen .live-player__stage {
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.live-player:fullscreen, .live-player:-webkit-full-screen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  background: #000;
}
.live-player:fullscreen .live-player__stage, .live-player:-webkit-full-screen .live-player__stage {
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.live-player__stage:fullscreen, .live-player__stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}
html.landscape-immersive {
  scroll-behavior: auto;
}
#immersiveSpacer {
  height: 160px;
  width: 100%;
  pointer-events: none;
}
html:fullscreen, html:-webkit-full-screen {
  background: #000;
}
html:fullscreen body.player-native-fs, html:-webkit-full-screen body.player-native-fs {
  overflow: hidden;
  background: #000;
}
html:fullscreen body.player-native-fs .container, html:-webkit-full-screen body.player-native-fs .container {
  max-height: none;
  height: 100%;
  width: 100%;
  border-radius: 0;
  overflow: visible;
}
html:fullscreen body.player-native-fs .wrapper,
html:fullscreen body.player-native-fs .main-container,
html:fullscreen body.player-native-fs .stream-area,
html:fullscreen body.player-native-fs .video-stream,
html:-webkit-full-screen body.player-native-fs .wrapper,
html:-webkit-full-screen body.player-native-fs .main-container,
html:-webkit-full-screen body.player-native-fs .stream-area,
html:-webkit-full-screen body.player-native-fs .video-stream {
  height: 100%;
  max-height: none;
}
html:fullscreen body.player-native-fs #livePlayer, html:-webkit-full-screen body.player-native-fs #livePlayer {
  height: 100%;
  max-height: none;
  border-radius: 0;
}
html:fullscreen body.player-native-fs .live-player__stage, html:-webkit-full-screen body.player-native-fs .live-player__stage {
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}

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

.tv-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(20, 21, 30, 0.95);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.video-p {
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
}
.video-p .author-img {
  border: 0;
}
.video-p-wrapper {
  display: flex;
  align-items: center;
}
.video-p-wrapper .author-img {
  border: 0;
}
.video-p-wrapper svg {
  width: 20px;
  padding: 4px;
}
.video-p-sub {
  font-size: 12px;
}
.video-p-title {
  font-size: 24px;
  color: #fff;
  line-height: 1.4em;
  margin: 16px 0 20px;
}
.video-p-subtitle {
  font-size: 14px;
  line-height: 1.5em;
  max-width: 60ch;
}
.video-p-subtitle + .video-p-subtitle {
  margin-top: 16px;
}
.video-p-name {
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
}
.video-p-name::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #22b07d;
  border-radius: 50%;
  margin-left: 8px;
  display: inline-block;
}
.video-p-name.offline::after {
  background-color: var(--accent-glow);
}

.video-content {
  width: 100%;
}

.button-wrapper {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.like {
  display: flex;
  align-items: center;
  background-color: var(--button-bg);
  color: #fff;
  border: 0;
  font-family: var(--body-font);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}
.like.red {
  background-color: #ea5f5f;
}
.like svg {
  width: 18px;
  flex-shrink: 0;
  margin-right: 10px;
  padding: 0;
}
.like + .like {
  margin-left: 16px;
}

.video-detail {
  display: flex;
  margin-top: 30px;
  width: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: sticky;
  top: 0;
  background-color: #252836;
  left: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border-color);
}
.chat-header svg {
  width: 15px;
  margin-right: 6px;
  flex-shrink: 0;
}
.chat-header span {
  margin-left: auto;
  color: var(--body-color);
  font-size: 12px;
  display: flex;
  align-items: center;
}

.chat-stream {
  flex-grow: 1;
  margin-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.other-lives__title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.other-lives__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.other-lives__empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--body-color);
  background-color: #252836;
  border-radius: 16px;
  border: 1px dashed var(--border-color);
}
.other-lives__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background-color: #252836;
  cursor: pointer;
  text-align: left;
  font-family: var(--body-font);
  transition: background-color 0.2s, transform 0.2s;
  position: relative;
}
.other-lives__item:hover {
  background-color: #2d303e;
  transform: translateX(2px);
}
.other-lives__item--offline {
  opacity: 0.85;
}
.other-lives__item--offline .other-lives__thumb {
  filter: grayscale(0.35);
}
.other-lives__item--offline .other-lives__meta {
  color: #9a9bab;
}
.other-lives__thumb {
  width: 88px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.other-lives__live {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.other-lives__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.other-lives__name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.other-lives__club {
  color: var(--body-color);
  font-size: 12px;
}
.other-lives__meta {
  color: var(--body-color);
  font-size: 12px;
}

.chat {
  background-color: #252836;
  border-radius: 20px;
  padding: 0 20px;
  max-height: min(70vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 12px;
  background-color: #252836;
}
.chat-footer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background-color: #2d303e;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  padding: 12px 16px 12px 40px;
  font-weight: 500;
  font-family: var(--body-font);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 12C2 6.48 6.47 2 12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10C6.47 22 2 17.52 2 12zm5.52 1.2c-.66 0-1.2-.54-1.2-1.2 0-.66.54-1.2 1.2-1.2.66 0 1.19.54 1.19 1.2 0 .66-.53 1.2-1.19 1.2zM10.8 12c0 .66.54 1.2 1.2 1.2.66 0 1.19-.54 1.19-1.2a1.194 1.194 0 10-2.39 0zm4.48 0a1.195 1.195 0 102.39 0 1.194 1.194 0 10-2.39 0z' fill='%236c6e78'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: 8px;
}
.chat-footer input::placeholder {
  color: #6c6e78;
}

.chat-send-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background-color: #6c5ecf;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 4px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.chat-send-btn svg {
  width: 16px;
  height: 16px;
}
.chat-send-btn:hover {
  background-color: #7d70e0;
}
.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-empty {
  text-align: center;
  color: #6c6e78;
  font-size: 13px;
  padding: 24px 12px 18px;
  margin: 0;
}

.message-container {
  min-width: 0;
  overflow-x: hidden;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-top: 18px;
  min-width: 0;
}
.message:last-child {
  margin-bottom: 18px;
}

.msg-wrapper {
  min-width: 0;
  flex: 1;
}

.msg__name {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.msg__content {
  line-height: 1.4em;
  max-width: 100%;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 940px) {
  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    display: block;
  }
  .container {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  .main-container {
    overflow: visible;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .stream-area {
    flex-direction: column;
  }
  .video-stream {
    width: 100%;
  }
  .chat-stream {
    margin-left: 0;
    margin-top: 30px;
  }
  .live-player__stage {
    min-height: 220px;
  }
  .msg__content {
    max-width: 100%;
  }
}
.auth-header-btn {
  border: 0;
  background-color: var(--button-bg);
  color: #fff;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.auth-header-btn:hover {
  background-color: #3f3d4d;
}
.auth-header-btn--connected {
  background-color: rgba(237, 87, 44, 0.2);
  color: #ff9a7a;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(4px);
}
.auth-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  background: #252936;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.auth-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.auth-modal__close {
  border: 0;
  background: var(--button-bg);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.auth-modal__body {
  padding: 16px 20px 24px;
}

.auth-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(237, 87, 44, 0.12);
  border: 1px solid rgba(237, 87, 44, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #d4d5dc;
}
.auth-banner p {
  margin: 0;
}
.auth-banner strong {
  color: #fff;
}

.auth-signup-panel__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  text-align: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.store-row--center {
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.store-btn small {
  font-size: 0.65rem;
  color: #a0a1ad;
  font-weight: 400;
}
.store-btn strong {
  font-size: 1rem;
  font-weight: 600;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(237, 87, 44, 0.5);
  box-shadow: 0 12px 32px rgba(237, 87, 44, 0.18);
}

.auth-info-step {
  text-align: center;
}
.auth-info-step__icon {
  font-size: 28px;
  margin: 0 0 12px;
}
.auth-info-step__text {
  font-size: 14px;
  line-height: 1.5;
  color: #d4d5dc;
  margin: 0 0 20px;
}
.auth-info-step__text strong {
  color: #fff;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-field__label {
  font-size: 12px;
  font-weight: 500;
  color: #a0a1ad;
}
.auth-field input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: #2d303e;
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--body-font);
  font-size: 14px;
}
.auth-field input::placeholder {
  color: #6c6e78;
}
.auth-field input:focus {
  border-color: var(--accent);
  outline: none;
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.auth-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: #fff;
  margin-top: 4px;
}
.auth-btn--primary:hover:not(:disabled) {
  opacity: 0.92;
}
.auth-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-btn--link {
  background: transparent;
  color: #a0a1ad;
  margin-top: 10px;
  font-weight: 500;
}
.auth-btn--link:hover {
  color: #fff;
}

.auth-forgot-link {
  width: auto;
  padding: 0;
  margin: -4px 0 8px;
  text-align: left;
  font-size: 12px;
}

.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.auth-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-picker__btn {
  border: 1px solid var(--border-color);
  background: #2d303e;
  color: #a0a1ad;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.auth-picker__btn.is-active {
  border-color: var(--accent);
  background: rgba(237, 87, 44, 0.15);
  color: #fff;
}

.auth-level-step__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.auth-level-step__info {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8b8c98;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
}

.auth-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 4px;
}

.auth-level-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-color);
  background: #2d303e;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  color: #a0a1ad;
  font-family: var(--body-font);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-level-option.is-active {
  border-color: var(--accent);
  background: rgba(237, 87, 44, 0.12);
  color: #fff;
}
.auth-level-option__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.auth-level-option__number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--button-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.auth-level-option__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-level-option__desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: inherit;
  opacity: 0.9;
}
.auth-level-option.is-active .auth-level-option__number {
  background: var(--accent);
}

@media screen and (max-width: 650px) {
  .video-p-wrapper {
    flex-direction: column;
  }
  .video-p-wrapper .button-wrapper {
    margin: 20px auto 0;
  }
  .video-p-wrapper .video-p-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media screen and (max-width: 575px) {
  .user-name {
    display: none;
  }
  .user-settings .live-pill {
    display: none;
  }
}
@media screen and (max-width: 475px) {
  .main-container {
    padding: 0 20px 20px;
  }
  .header {
    padding: 20px;
  }
  body {
    padding: 0;
  }
  .container {
    height: 100vh;
    border-radius: 0;
    max-height: 100%;
  }
}
::-webkit-scrollbar {
  width: 6px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(21, 20, 26, 0.63);
  border-radius: 10px;
}
