/* ===========================
   VARIABLES
=========================== */

:root {
  --bg: #f5f6fa;
  --text: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #2563eb;
}

body.dark {
  --bg: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #020617;
  --border: #1f2937;
  --accent: #60a5fa;
}

/* ===========================
   GLOBAL
=========================== */

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  height: 100%;
  overflow: hidden; /* IMPORTANT : empêche le scroll */
}

/* ===========================
   HEADER
=========================== */

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.header-text h1 {
  margin: 0;
  font-size: 1.1rem;
}

.header-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.theme-toggle {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

/* ===========================
   BACK BUTTON
=========================== */

.back {
  display: block;
  padding: 10px 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

/* ===========================
   SHORTS VIEWER
=========================== */

.shorts-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.shorts-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease-out;
}

.shorts-page {
  width: 100%;
  height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shorts-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}
