:root {
  --bg: #f4f5f7;
  --bg-2: #efeff2;
  --card: rgba(255, 255, 255, 0.72);
  --card-2: #ececef;
  --text: #1f1f23;
  --muted: #7d7f87;
  --line: rgba(0, 0, 0, 0.05);
  --accent: #2fd2f6;
  --accent-2: #14bfe9;
  --accent-3: #7be9ff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background-image: url('https://static.tildacdn.net/tild3533-6336-4863-b834-386632353533/ChatGPT_Image_8__202.png');
  background-color: rgba(0, 0, 0, 0.03);
  background-blend-mode: overlay;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  overflow-x: hidden;
}

.page {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 26px 0 40px;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  animation: floatOrb 11s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 40px;
  background: rgba(47, 210, 246, 0.45);
}

.orb-2 {
  width: 260px;
  height: 260px;
  right: -40px;
  top: 120px;
  background: rgba(20, 191, 233, 0.34);
  animation-delay: -3s;
}

.orb-3 {
  width: 360px;
  height: 360px;
  right: 14%;
  bottom: -120px;
  background: rgba(123, 233, 255, 0.22);
  animation-delay: -6s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-14px) translateX(8px) scale(1.04);
  }
}

.hero-card,
.section-card,
.panel,
.player-shell,
.status-card,
.modal-card {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-main h1,
.section-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.section-title {
  font-size: 30px;
  letter-spacing: -0.4px;
}

.hero-main p,
.section-subtitle,
.muted,
.helper-text,
.meta-list,
.waiting-text,
.live-tip {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0f1f4;
  color: #6f727a;
  font-size: 14px;
  width: fit-content;
  margin-bottom: 18px;
}

.hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(47, 210, 246, 0.45);
}

.hero-side {
  background: #ededf0;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-label {
  color: #8b8d95;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.side-big {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
}

.pulse {
  height: 88px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.14)),
    radial-gradient(circle at 20% 50%, rgba(47, 210, 246, 0.14), transparent 24%),
    radial-gradient(circle at 70% 50%, rgba(20, 191, 233, 0.10), transparent 24%);
  position: relative;
  overflow: hidden;
  margin: 18px 0;
}

.pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -8%;
  width: 116%;
  height: 2px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(47, 210, 246, 0.18) 10%,
      rgba(47, 210, 246, 0.85) 22%,
      rgba(20, 191, 233, 0.95) 30%,
      rgba(47, 210, 246, 0.2) 42%,
      transparent 56%);
  animation: pulseMove 4s linear infinite;
}

@keyframes pulseMove {
  0% {
    transform: translateY(-50%) translateX(-6%);
  }
  100% {
    transform: translateY(-50%) translateX(6%);
  }
}

.btn,
.ghost-btn,
.icon-btn,
.file-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(47, 210, 246, 0.24);
}

.btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.file-btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.ghost-btn:disabled,
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost-btn,
.file-btn {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ececef;
  color: var(--text);
  font-weight: 600;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.04);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.section-card {
  padding: 30px;
  margin-bottom: 22px;
}

.feature-card {
  background: #ededf0;
  border-radius: 30px;
  padding: 24px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 210, 246, 0.14), transparent 70%);
  pointer-events: none;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff, #e8fbff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(47, 210, 246, 0.10);
  color: #14bfe9;
  font-size: 26px;
}

.player-shell {
  padding: 22px;
  overflow: hidden;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f1013;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0a0b0e;
}

.overlay-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11,12,16,0.2), rgba(11,12,16,0.55));
  color: #fff;
}

.waiting-box {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
}

.waiting-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
}

.waiting-text,
.live-tip {
  color: rgba(255,255,255,0.78);
}

.player-topbar,
.player-bottombar {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  z-index: 5;
  pointer-events: none;
}

.player-topbar {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent);
}

.player-bottombar {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.60), transparent);
}

.player-topbar > *,
.player-bottombar > * {
  pointer-events: auto;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4f6f;
  box-shadow: 0 0 12px rgba(255, 79, 111, 0.7);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.volume-wrap input[type="range"] {
  width: 110px;
}

.seekbar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.seekbar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.player-meta h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.meta-list {
  font-size: 14px;
}

.panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field,
.password-box {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.78);
  font: inherit;
}

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

.notice,
.toast {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
}

.notice {
  background: rgba(47,210,246,0.10);
  color: #116f86;
  border: 1px solid rgba(47,210,246,0.18);
}

.notice.error,
.toast.error {
  background: rgba(255, 79, 111, 0.10);
  color: #9f2942;
  border: 1px solid rgba(255, 79, 111, 0.18);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 420px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.footer {
  text-align: center;
  color: #92949d;
  font-size: 13px;
  padding: 8px 0 6px;
}

@media (max-width: 980px) {
  .page {
    width: min(100%, calc(100% - 18px));
  }

  .hero-card,
  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .section-card,
  .panel,
  .player-shell,
  .hero-side,
  .feature-card,
  .video-wrap,
  .modal-card {
    border-radius: 26px;
  }

  .hero-main h1,
  .section-title {
    font-size: 34px;
  }

  .player-topbar,
  .player-bottombar {
    padding: 10px;
  }

  .volume-wrap input[type="range"] {
    width: 70px;
  }
}
