/* ==========================================================================
   ShortDramas Design System - Base Styles & Theme Tokens
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #090a0f;
  --bg-surface: #141721;
  --bg-surface-elevated: #1d212f;
  --bg-surface-glass: rgba(20, 23, 33, 0.85);
  
  --line-subtle: rgba(255, 255, 255, 0.08);
  --line-light: rgba(255, 255, 255, 0.16);
  --line-highlight: rgba(255, 45, 85, 0.5);

  --text-main: #f5f6fa;
  --text-muted: #959aa8;
  --text-subtle: #6c7283;
  --text-inverse: #090a0f;

  /* Brand Accents */
  --accent-pink: #ff2d55;
  --accent-red: #e50914;
  --brand-gradient: linear-gradient(135deg, #ff2d55 0%, #ff4b4b 100%);
  --brand-gradient-hover: linear-gradient(135deg, #ff4366 0%, #ff6060 100%);
  --vip-gold: #ffb800;
  --vip-gradient: linear-gradient(135deg, #ffaa00 0%, #ffd066 100%);
  --success-green: #34c759;
  --overlay-dark: rgba(0, 0, 0, 0.75);

  /* Typography */
  --font-family: "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevations */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(255, 45, 85, 0.35);

  /* Heights & Header / Bottom Bar */
  --header-height: 68px;
  --mobile-tab-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 45, 85, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(45, 70, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: var(--text-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.text-gold { color: var(--vip-gold); }
.text-pink { color: var(--accent-pink); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
