:root {
  --bg: #07111c;
  --bg-2: #0a1624;
  --surface: #0d1b2b;
  --surface-2: #11243b;
  --border: rgba(140, 180, 255, 0.16);
  --border-strong: rgba(140, 180, 255, 0.24);
  --text: #f3f7ff;
  --muted: #c0cce0;
  --muted-soft: #93a6c4;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.16);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --content: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Satoshi", "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.08), transparent 22%),
    radial-gradient(circle at right top, rgba(77, 163, 255, 0.05), transparent 24%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.page {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.intro {
  margin-bottom: 24px;
}

.intro-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  line-height: 1.8;
  max-width: 72ch;
}

.player-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.video-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: #000;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-sm);
}

#player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.meta {
  padding-top: 18px;
}

.brand {
  margin: 0 0 18px;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 12px;
}

.label {
  margin: 0 0 8px;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

#video-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 1.15rem + 2.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.file-name {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  word-break: break-word;
}

.file-name:empty {
  display: none;
}

.loop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.loop-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.player-panel.is-error {
  border-color: rgba(255, 120, 120, 0.4);
}

.player-panel.is-error .file-name {
  color: #ffd0d0;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, var(--content));
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .intro {
    margin-bottom: 18px;
  }

  .intro-text {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .player-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .video-wrap {
    border-radius: 12px;
  }

  .brand {
    margin-bottom: 14px;
  }

  .brand-logo {
    max-width: 140px;
  }

  #video-title {
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .file-name {
    font-size: 0.95rem;
  }
}
