/*
 * Guide 64 — Premium Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-family: 'Inter', 'Outfit', system-ui, sans-serif;
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-elevated: #1a2236;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4338ca;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --error-border: rgba(248, 113, 113, 0.25);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.25);
  --warning: #fbbf24;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-actions a,
.navbar-actions .btn-nav {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-family);
  cursor: pointer;
}

.navbar-actions a:hover,
.navbar-actions .btn-nav:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-actions .btn-nav-danger {
  color: var(--error);
}

.navbar-actions .btn-nav-danger:hover {
  background: var(--error-bg);
}

.navbar-actions .btn-nav-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.navbar-actions .btn-nav-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ========== LAYOUT ========== */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.app-container--narrow {
  max-width: 520px;
}

.app-container--medium {
  max-width: 720px;
}

/* ========== FLASH MESSAGES ========== */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: flash-in 0.3s ease-out;
}

.flash::before {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.flash--error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.flash--error::before { content: "✕"; }

.flash--success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.flash--success::before { content: "✓"; }

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== TYPOGRAPHY ========== */
.page-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

h2 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text-primary); }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

a:hover {
  color: #c4b5fd;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

.card--auth {
  padding: 40px;
  max-width: 440px;
  margin: 60px auto 0;
  text-align: center;
}

.card--auth h2 {
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.card--auth form {
  text-align: left;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn--danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.btn--danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn--full {
  width: 100%;
}

.btn--icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

/* Override default button/submit styling */
input[type="submit"],
button:not(.btn):not(.btn-nav):not(.btn-nav-danger):not(.btn-nav-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: #fff;
  width: auto;
}

input[type="submit"]:hover,
button:not(.btn):not(.btn-nav):not(.btn-nav-danger):not(.btn-nav-primary):hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ========== FORMS ========== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label,
form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.form-input,
form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="date"],
form input[type="url"],
form select {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="text"]:focus,
form input[type="date"]:focus,
form input[type="url"]:focus,
form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}

form input[type="date"] {
  color-scheme: dark;
}

form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  transition: all var(--transition);
  resize: vertical;
  min-height: 100px;
  outline: none;
}

form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.form-row input[type="text"] { flex: 1; min-width: 100px; }
.form-row input[type="submit"] { flex-shrink: 0; }

.form-errors {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--error);
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 6px 0 0 18px;
}

.form-errors li {
  margin-bottom: 4px;
}

.form-footer {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-footer a {
  font-weight: 500;
}

/* ========== CHECKBOX GROUP ========== */
fieldset.checkbox-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(10, 14, 26, 0.5);
}

fieldset.checkbox-group legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0;
  padding: 4px 0;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ========== VIDEO CARDS LIST ========== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.video-card__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__body {
  padding: 18px;
}

.video-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-card__title a {
  color: var(--text-primary);
}

.video-card__title a:hover {
  color: var(--accent-light);
}

.video-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.video-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ========== TAGS ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== VIDEO DETAIL PAGE ========== */
.video-show {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.video-player-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-fine-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -18px;
}

.video-fine-controls__time {
  margin-left: auto;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9rem;
}

.active-move-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
}

.active-move-badge__label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.active-move-badge__value {
  color: var(--warning);
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.15s;
}

/* ========== GAME CARDS ========== */
.games-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.game-card:hover {
  border-color: var(--border-hover);
}

.games-section--current-only .game-card:not(.game-card--current) .move-timeline-wrap,
.games-section--current-only .game-card:not(.game-card--current) .sync-controls {
  display: none;
}

.game-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.game-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.game-card__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.game-card__controls form {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.game-card__controls input[type="text"] {
  width: 100px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.game-card__controls input[type="submit"],
.game-card__controls button {
  padding: 5px 12px;
  font-size: 0.78rem;
}

.move-timeline-wrap {
  max-height: 440px;
  overflow: auto;
}

.move-timeline {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.move-timeline th,
.move-timeline td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.move-timeline th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.move-timeline__row {
  cursor: pointer;
  transition: background var(--transition);
}

.move-timeline__row:hover,
.move-timeline__row--selected {
  background: rgba(99, 102, 241, 0.12);
}

.move-timeline__row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.move-time-button {
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--accent-light);
  font: inherit;
  cursor: pointer;
}

.move-time-button:hover,
.move-time-button:focus-visible {
  background: rgba(99, 102, 241, 0.16);
  outline: none;
}

.move-ply {
  padding: 2px 7px;
  border-radius: 4px;
  transition: all 0.15s;
  cursor: default;
}

.move-ply:hover {
  background: rgba(255, 255, 255, 0.06);
}

.move-ply--active {
  background: var(--warning) !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4) !important;
}

.move-timeline__sync-point {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-point-dot {
  color: var(--success);
}

.sync-point-remove {
  padding: 1px 6px;
  border: 0;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  cursor: pointer;
}

.sync-controls {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.sync-controls h4 {
  margin: 0 0 6px;
}

.sync-controls p {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.sync-controls form {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.sync-controls__status {
  min-height: 1.25em;
  margin-top: 10px !important;
  color: var(--success);
}

.sync-controls__status--error {
  color: var(--danger);
}

.sync-controls__recommendation {
  margin-top: 10px !important;
  color: var(--text-muted);
}

/* ========== ADD GAME SECTION ========== */
.add-game-toggle {
  width: 100%;
  padding: 12px;
}

.add-game-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.add-game-panel h3 {
  margin-bottom: 20px;
}

/* ========== SECTION DIVIDER ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h3 {
  margin-bottom: 0;
}

/* ========== STREAMER LIST ========== */
.streamers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.streamer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  flex-wrap: wrap;
  gap: 10px;
}

.streamer-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.streamer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.streamer-info strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.text-secondary {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.streamer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========== ADMIN PAGE ========== */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ========== BACK LINK ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 8px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== SETTINGS PANEL ========== */
.settings-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-panel__header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.settings-panel__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 8px 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.toggle-setting__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.toggle-setting__text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.toggle-setting__text .text-secondary {
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch__slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.toggle-switch__slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.25s ease;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(22px);
  background: #fff;
}

.toggle-switch input:focus-visible + .toggle-switch__slider {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== UTILITY ========== */
.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .app-container { padding: 20px 16px 48px; }
  h2 { font-size: 1.5rem; }
  .videos-grid { grid-template-columns: 1fr; }
  .game-card__header { flex-direction: column; align-items: flex-start; }
  .video-fine-controls__time { width: 100%; margin-left: 0; }
  .navbar-inner { padding: 0; }
  .card--auth { padding: 28px 20px; margin-top: 32px; }
  .toggle-setting { flex-direction: column; align-items: flex-start; }
}

.select-setting {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.select-setting:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
