/*
Theme Name: Twitch OnePage
Theme URI: https://example.com/
Author: Codex
Description: Theme WordPress minimal en une seule page avec logo et lecteur Twitch.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: twitch-onepage
*/

:root {
  --bg: #0b0b14;
  --panel: #151524;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #a7b0c0;
  --accent: #9147ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(145, 71, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #090910 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 40px;
}

.site-header {
  width: min(100%, 1100px);
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.branding {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-logo-link,
.site-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-logo {
  max-width: min(280px, 70vw);
  width: auto;
  height: auto;
}

.site-title-link {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
}

.video-section {
  width: min(100%, 1100px);
}

.video-frame {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.video-embed iframe,
.video-embed .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  border: 0;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.video-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .site-shell {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .site-header {
    padding-bottom: 18px;
  }

  .video-caption {
    font-size: 0.9rem;
  }
}
