/* ============================================
   BCAA Video Player — Brand Tokens & Layout
   ============================================ */

/* Font loaded via <link> in HTML head for non-blocking render */

:root {
  --primary: #1ABC9C;
  --primary-hover: #16a085;
  --primary-glow: rgba(26, 188, 156, 0.25);
  --bg: #0a0a0a;
  --bg-deep: #060606;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --surface-border: #2a2a2a;
  --accent: #F1C40F;
  --text: #f2f2f2;
  --text-muted: #999999;
  --text-dim: #666666;
  --error: #E74C3C;
  --error-bg: rgba(231, 76, 60, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.fade-out {
  animation: fadeOut var(--transition) ease forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--text);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Shared buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--ghost:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Branding footer */
.brand-footer {
  text-align: center;
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.brand-footer a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}
