/* ============================================
   CULT OF THE ZU — STYLE SYSTEM
   Version: 1.0.0
   ============================================ */

/* === CSS VARIABLES === */
:root {
  --color-bg-primary: #0a0000;
  --color-bg-secondary: #120606;
  --color-bg-tertiary: #1a0a0a;
  --color-bg-card: rgba(20, 8, 8, 0.85);
  --color-bg-card-hover: rgba(30, 12, 12, 0.95);
  --color-bg-glass: rgba(15, 5, 5, 0.7);
  --color-bg-glass-heavy: rgba(10, 2, 2, 0.85);

  --color-red-primary: #cc0000;
  --color-red-light: #ff4444;
  --color-red-dark: #880000;
  --color-red-glow: rgba(204, 0, 0, 0.4);
  --color-red-subtle: rgba(204, 0, 0, 0.15);

  --color-text-primary: #f0e0e0;
  --color-text-secondary: #b8a0a0;
  --color-text-muted: #7a6060;
  --color-text-accent: #ff6666;

  --color-border: rgba(204, 0, 0, 0.2);
  --color-border-hover: rgba(204, 0, 0, 0.4);
  --color-border-active: rgba(204, 0, 0, 0.6);

  --color-success: #44cc44;
  --color-warning: #ccaa00;
  --color-live: #ff2222;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(204, 0, 0, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(204, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-primary: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', monospace;

  --header-height: 64px;
  --sidebar-width: 240px;
  --sidebar-collapsed: 72px;

  --z-sidebar: 100;
  --z-header: 200;
  --z-modal: 300;
  --z-overlay: 250;
  --z-particles: 1;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(100, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(80, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 0, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-red-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-red-dark) var(--color-bg-secondary);
}

/* === AMBIENT EFFECTS === */
.ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-particles);
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-red-light);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20vh) scale(1);
    opacity: 0.4;
  }
}

.fog-layer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
}

.fog-1 {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 0, 0, 0.08) 20%,
    rgba(80, 0, 0, 0.12) 40%,
    rgba(100, 0, 0, 0.06) 60%,
    transparent 80%
  );
  animation: fogDrift 25s linear infinite;
}

.fog-2 {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(60, 0, 0, 0.1) 30%,
    rgba(80, 0, 0, 0.08) 50%,
    rgba(60, 0, 0, 0.12) 70%,
    transparent 100%
  );
  animation: fogDrift 35s linear infinite reverse;
  top: 30%;
}

.fog-3 {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(80, 0, 0, 0.06) 25%,
    rgba(100, 0, 0, 0.1) 45%,
    rgba(60, 0, 0, 0.08) 65%,
    transparent 100%
  );
  animation: fogDrift 40s linear infinite;
  top: 60%;
}

@keyframes fogDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.33%); }
}

.ember-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: var(--color-red-light);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-red-light), 0 0 12px var(--color-red-glow);
  animation: emberRise linear infinite;
}

@keyframes emberRise {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(50px) scale(0);
  }
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: var(--z-header);
  transition: background var(--transition-normal);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red-primary), transparent);
  opacity: 0.3;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--color-red-subtle);
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-secondary);
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform var(--transition-spring);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.3));
}

.header-center {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 16px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-red-primary);
  background: var(--color-bg-secondary);
  box-shadow: var(--shadow-glow);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: var(--color-red-primary);
  transition: all var(--transition-fast);
}

.search-btn:hover {
  background: var(--color-red-light);
  transform: scale(1.05);
}

.search-btn .icon {
  width: 16px;
  height: 16px;
  color: white;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-xl);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--color-red-subtle);
}

.search-result-thumb {
  width: 80px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-tertiary);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: flex-end;
}

.header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--color-red-subtle);
}

.header-btn .icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.header-btn:hover .icon {
  color: var(--color-text-primary);
}

.notification-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-red-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.avatar-wrapper {
  position: relative;
  margin-left: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: var(--color-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.avatar:hover {
  border-color: var(--color-red-light);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  display: none;
  box-shadow: var(--shadow-xl);
  animation: fadeInDown 0.2s ease;
}

.avatar-menu.active {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar-menu-item {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.avatar-menu-item:hover {
  background: var(--color-red-subtle);
  color: var(--color-text-primary);
}

.avatar-menu-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--color-border);
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--transition-normal), transform var(--transition-normal);
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-red-primary), transparent);
  opacity: 0.2;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-red-primary);
  border-radius: 0 2px 2px 0;
  transition: height var(--transition-fast);
}

.sidebar-item:hover {
  background: var(--color-red-subtle);
  color: var(--color-text-primary);
}

.sidebar-item:hover::before {
  height: 50%;
}

.sidebar-item.active {
  color: var(--color-red-light);
  background: var(--color-red-subtle);
}

.sidebar-item.active::before {
  height: 60%;
}

.sidebar-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 20px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}

.sidebar-footer-text {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sidebar-footer-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-top: 2px;
}

/* === MAIN CONTENT === */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  z-index: 1;
  transition: margin-left var(--transition-normal);
}

/* === GAME SECTION === */
.game-section {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

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

.game-title-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.game-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-red-light);
  text-shadow: 0 0 20px var(--color-red-glow);
}

.game-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.game-controls-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-score-display,
.game-best-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.score-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-red-light);
  text-shadow: 0 0 10px var(--color-red-glow);
}

.game-sound-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.game-sound-btn:hover {
  background: var(--color-red-subtle);
}

.game-sound-btn .icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
}

.game-sound-btn.muted .icon {
  color: var(--color-text-muted);
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  background: #050000;
  overflow: hidden;
  cursor: pointer;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity var(--transition-normal);
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-overlay-content {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

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

.game-pentagram {
  margin-bottom: 16px;
  animation: slowSpin 20s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.game-overlay-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-red-light);
  text-shadow: 0 0 30px var(--color-red-glow);
  margin-bottom: 8px;
}

.game-overlay-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.game-overlay-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.key-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.key-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.game-best-score-inline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.game-best-score-inline span {
  color: var(--color-red-light);
  font-weight: 700;
}

.game-death-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.game-death-screen.active {
  opacity: 1;
  pointer-events: all;
}

.death-content {
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.death-icon {
  margin-bottom: 16px;
  animation: shake 0.5s ease;
}

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

.death-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--color-red-light);
  margin-bottom: 20px;
}

.death-score, .death-best {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.death-score-label, .death-best-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.death-score-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-red-light);
  text-shadow: 0 0 20px var(--color-red-glow);
}

.death-best-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-text-secondary);
}

.death-restart-btn {
  margin-top: 20px;
  padding: 14px 40px;
  background: var(--color-red-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
}

.death-restart-btn:hover {
  background: var(--color-red-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-lg);
}

.game-info-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.game-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.game-categories {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.game-cat-tag {
  padding: 4px 10px;
  background: var(--color-red-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === CONTENT SECTIONS === */
.content-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-section {
  width: 24px;
  height: 24px;
  color: var(--color-red-primary);
}

.section-more {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.section-more:hover {
  color: var(--color-red-light);
}

/* === LIVE TITLE === */
.live-title {
  color: var(--color-live);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--color-live);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 8px var(--color-live);
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

/* === VIDEO GRID === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-grid-live {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* === VIDEO CARD === */
.video-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--color-bg-card-hover);
}

.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.video-card-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.video-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.video-card-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: var(--color-live);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  animation: livePulse 1.5s infinite;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.video-card:hover .video-card-play {
  opacity: 1;
}

.video-card-play-circle {
  width: 52px;
  height: 52px;
  background: var(--color-red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-spring);
}

.video-card:hover .video-card-play-circle {
  transform: scale(1.1);
}

.video-card-play-circle .icon {
  width: 24px;
  height: 24px;
  color: white;
  margin-left: 3px;
}

.video-card-info {
  padding: 12px;
  display: flex;
  gap: 10px;
}

.video-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.video-card-details {
  flex: 1;
  min-width: 0;
}

.video-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.video-card:hover .video-card-title {
  color: var(--color-red-light);
}

.video-card-author {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.video-card-meta .icon {
  width: 12px;
  height: 12px;
}

.video-card-likes {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.video-card-likes .icon {
  width: 12px;
  height: 12px;
  color: var(--color-red-light);
}

/* === CREATORS GRID === */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.creator-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.creator-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.creator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.creator-card:hover .creator-avatar {
  border-color: var(--color-red-primary);
  box-shadow: var(--shadow-glow);
}

.creator-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.creator-subs {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.creator-follow-btn {
  padding: 8px 20px;
  background: var(--color-red-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.creator-follow-btn:hover {
  background: var(--color-red-light);
  transform: scale(1.05);
}

/* === COMMENTS === */
.comments-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.comment-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.comment:hover {
  background: var(--color-red-subtle);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.comment-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.comment-action:hover {
  color: var(--color-red-light);
}

.comment-action .icon {
  width: 14px;
  height: 14px;
}

/* === FOOTER === */
.footer {
  margin-left: var(--sidebar-width);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px 24px;
  position: relative;
  z-index: 1;
  transition: margin-left var(--transition-normal);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red-primary), transparent);
  opacity: 0.3;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
  opacity: 0.8;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  font-family: var(--font-primary);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-red-light);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-cult {
  margin-top: 8px;
  font-family: var(--font-primary);
  color: var(--color-red-dark);
  font-size: 0.85rem !important;
}

/* === MODALS === */
.settings-modal,
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.settings-modal.active,
.upload-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-red-subtle);
}

.modal-close .icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 60px);
}

/* === SETTINGS === */
.settings-group {
  margin-bottom: 20px;
}

.settings-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn {
  padding: 8px 16px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

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

.theme-btn.active {
  background: var(--color-red-subtle);
  border-color: var(--color-red-primary);
  color: var(--color-red-light);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--color-text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-red-subtle);
  border-color: var(--color-red-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--color-red-light);
}

.settings-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.settings-range {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-bg-tertiary);
  border-radius: 2px;
  outline: none;
}

.settings-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-red-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.settings-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.settings-range-value {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  min-width: 32px;
  text-align: center;
}

.avatar-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
}

.avatar-option:hover {
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* === UPLOAD === */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-zone:hover {
  border-color: var(--color-red-primary);
  background: var(--color-red-subtle);
}

.upload-zone.dragover {
  border-color: var(--color-red-light);
  background: var(--color-red-subtle);
}

.upload-icon {
  margin-bottom: 12px;
  opacity: 0.6;
}

.upload-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-input,
.upload-textarea,
.upload-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  resize: vertical;
}

.upload-input:focus,
.upload-textarea:focus,
.upload-select:focus {
  border-color: var(--color-red-primary);
}

.upload-select {
  cursor: pointer;
}

.upload-select option {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.upload-submit {
  padding: 12px 24px;
  background: var(--color-red-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.upload-submit:hover {
  background: var(--color-red-light);
  transform: translateY(-1px);
}

/* === NOTIFICATIONS === */
.notifications-panel {
  position: fixed;
  top: var(--header-height);
  right: 16px;
  width: 320px;
  max-height: 400px;
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-overlay);
  display: none;
  overflow: hidden;
}

.notifications-panel.active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.notif-header h4 {
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.notif-clear {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.notif-clear:hover {
  color: var(--color-red-light);
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-red-subtle);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon .icon {
  width: 16px;
  height: 16px;
  color: var(--color-red-light);
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 0.8rem;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .header-center {
    display: none;
  }

  .header-btn:not(#soundToggle):not(#menuToggle) {
    display: none;
  }

  .main-content {
    padding: 16px;
  }

  .game-canvas-wrapper {
    aspect-ratio: 16/9;
  }

  .game-overlay-title {
    font-size: 1.5rem;
  }

  .game-controls-top {
    gap: 12px;
  }

  .score-value {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .notifications-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .game-header {
    padding: 12px 16px;
  }

  .game-title {
    font-size: 1.2rem;
  }

  .game-controls-top {
    gap: 8px;
  }

  .game-info-bar {
    padding: 8px 16px;
    gap: 12px;
  }

  .game-categories {
    display: none;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .creators-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .comment {
    padding: 8px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* === CONTAINER QUERIES === */
@container (max-width: 600px) {
  .video-card-info {
    padding: 8px;
  }

  .video-card-title {
    font-size: 0.85rem;
  }

  .video-card-meta {
    font-size: 0.7rem;
  }
}

/* === ANIMATIONS === */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--color-border); }
  50% { border-color: var(--color-border-active); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px var(--color-red-glow); }
  50% { text-shadow: 0 0 20px var(--color-red-glow), 0 0 40px var(--color-red-glow); }
}

/* === PARALLAX SUPPORT === */
.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer {
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

/* === MOBILE SIDEBAR OVERLAY === */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sidebar) - 1);
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* === LOADING STATE === */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-bg-tertiary);
  border-top-color: var(--color-red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === SELECTION === */
::selection {
  background: var(--color-red-primary);
  color: white;
}

/* === FOCUS STYLES === */
:focus-visible {
  outline: 2px solid var(--color-red-primary);
  outline-offset: 2px;
}

/* === NOISE OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* === UTILITY CLASSES === */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-red { color: var(--color-red-light); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-text-accent); }

/* === VIDEO PLAYER MODAL === */
.video-player-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.video-player-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-player-content {
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
}

.settings-content,
.upload-content {
  max-width: 500px;
  width: 90%;
}

.upload-categories {
  width: 100%;
}

.video-player-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.video-player-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-player-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.video-player-overlay:hover {
  background: rgba(0, 0, 0, 0.3);
}

.video-player-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.video-player-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.video-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.video-action-btn:hover {
  background: var(--color-red-subtle);
  border-color: var(--color-red-primary);
  color: var(--color-text-primary);
}

.video-action-btn .icon {
  width: 16px;
  height: 16px;
}

.video-player-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.video-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.video-player-author-info {
  flex: 1;
}

.video-player-author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.video-player-author-subs {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.video-player-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 12px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.video-player-comments h4 {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.comment-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.comment-input:focus {
  border-color: var(--color-red-primary);
}

.comment-input::placeholder {
  color: var(--color-text-muted);
}

/* === TOAST NOTIFICATIONS === */
.toast-notification {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === CLEAR HISTORY BUTTON === */
.clear-history-btn {
  padding: 4px 10px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-history-btn:hover {
  background: var(--color-red-subtle);
  border-color: var(--color-red-primary);
  color: var(--color-red-light);
}

/* === KEYBOARD NAVIGATION === */
body.keyboard-nav *:focus {
  outline: 2px solid var(--color-red-primary);
  outline-offset: 2px;
}

/* === DRAG ACTIVE STATE === */
body.drag-active {
  position: relative;
}

body.drag-active::before {
  content: 'Перетащите файл';
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-red-light);
  z-index: 10000;
  font-family: var(--font-primary);
}

/* === SCROLL PROGRESS === */
.scroll-progress-bar {
  will-change: width;
}

/* === BACK TO TOP === */
.back-to-top:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow-lg);
}

.back-to-top:active {
  transform: scale(0.95) !important;
}

/* === ADDITIONAL ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--color-red-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--color-red-glow), 0 0 40px var(--color-red-glow);
  }
}

@keyframes borderPulse {
  0%, 100% {
    border-color: var(--color-border);
  }
  50% {
    border-color: var(--color-red-primary);
  }
}

@keyframes textShadowPulse {
  0%, 100% {
    text-shadow: 0 0 10px var(--color-red-glow);
  }
  50% {
    text-shadow: 0 0 30px var(--color-red-glow), 0 0 60px var(--color-red-glow);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

/* === COMPONENT ANIMATIONS === */
.video-card {
  animation: fadeIn 0.4s ease;
}

.video-card:nth-child(2) { animation-delay: 0.05s; }
.video-card:nth-child(3) { animation-delay: 0.1s; }
.video-card:nth-child(4) { animation-delay: 0.15s; }
.video-card:nth-child(5) { animation-delay: 0.2s; }
.video-card:nth-child(6) { animation-delay: 0.25s; }

.creator-card {
  animation: scaleIn 0.4s ease;
}

.creator-card:nth-child(2) { animation-delay: 0.05s; }
.creator-card:nth-child(3) { animation-delay: 0.1s; }
.creator-card:nth-child(4) { animation-delay: 0.15s; }

.comment {
  animation: slideUp 0.3s ease;
}

/* === HOVER EFFECTS === */
.video-card:hover .video-card-thumb img {
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}

.video-card-thumb img {
  transition: transform var(--transition-normal);
}

.creator-card:hover {
  animation: wiggle 0.5s ease;
}

.logo-link:hover {
  animation: heartbeat 1s ease;
}

/* === GLASS MORPHISM VARIANTS === */
.glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-red {
  background: rgba(204, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(204, 0, 0, 0.2);
}

/* === DEPTH EFFECTS === */
.depth-1 {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.depth-2 {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.depth-3 {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.1);
}

.depth-4 {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 16px 32px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.15);
}

/* === BORDER EFFECTS === */
.border-glow {
  border: 1px solid var(--color-red-primary);
  box-shadow: 0 0 10px var(--color-red-glow);
}

.border-glow-strong {
  border: 1px solid var(--color-red-light);
  box-shadow: 0 0 20px var(--color-red-glow), 0 0 40px var(--color-red-glow);
}

/* === TEXT EFFECTS === */
.text-glow {
  text-shadow: 0 0 10px var(--color-red-glow);
}

.text-glow-strong {
  text-shadow: 0 0 20px var(--color-red-glow), 0 0 40px var(--color-red-glow);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === GRADIENT BACKGROUNDS === */
.gradient-red {
  background: linear-gradient(135deg, var(--color-red-dark), var(--color-red-light));
}

.gradient-dark {
  background: linear-gradient(180deg, var(--color-bg-primary), var(--color-bg-secondary));
}

.gradient-radial {
  background: radial-gradient(circle at center, var(--color-red-dark), var(--color-bg-primary));
}

/* === ANIMATED BORDERS === */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-red-primary), transparent, var(--color-red-light), transparent);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  z-index: -1;
  border-radius: inherit;
}

/* === PULSE EFFECTS === */
.pulse {
  animation: pulse 2s infinite;
}

.pulse-slow {
  animation: pulse 3s infinite;
}

.pulse-fast {
  animation: pulse 1s infinite;
}

/* === TRANSITION UTILITIES === */
.transition-all {
  transition: all var(--transition-normal);
}

.transition-fast {
  transition: all var(--transition-fast);
}

.transition-slow {
  transition: all var(--transition-slow);
}

.transition-spring {
  transition: all var(--transition-spring);
}

/* === FLEX UTILITIES === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* === SPACING UTILITIES === */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.p-4 { padding: 4px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }

/* === TEXT UTILITIES === */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === SIZING UTILITIES === */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === POSITION UTILITIES === */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

/* === OVERFLOW UTILITIES === */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* === OPACITY UTILITIES === */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* === BORDER RADIUS UTILITIES === */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-round); }

/* === DARK SCROLLBAR FOR ALL ELEMENTS === */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

*::-webkit-scrollbar-thumb {
  background: rgba(204, 0, 0, 0.3);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 0, 0, 0.5);
}

/* === STATS SECTION === */
.stats-section {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-icon {
  margin-bottom: 12px;
  color: var(--color-red-primary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-red-light);
  text-shadow: 0 0 10px var(--color-red-glow);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === CATEGORIES SECTION === */
.categories-section {
  margin-bottom: 40px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--color-red-primary));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-color, var(--color-border-hover));
  box-shadow: var(--shadow-lg), 0 0 20px rgba(204, 0, 0, 0.2);
}

.category-icon {
  margin-bottom: 12px;
  color: var(--cat-color, var(--color-red-primary));
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* === COMMUNITY SECTION === */
.community-section {
  margin-bottom: 40px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.community-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.community-card-icon {
  margin-bottom: 16px;
  color: var(--color-red-primary);
}

.community-card-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.community-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.community-card-btn {
  padding: 10px 24px;
  background: var(--color-red-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.community-card-btn:hover {
  background: var(--color-red-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* === NEWSLETTER SECTION === */
.newsletter-section {
  margin-bottom: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(204, 0, 0, 0.1), transparent 60%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 280px;
}

.newsletter-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: 320px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-red-primary);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-btn {
  padding: 14px 28px;
  background: var(--color-red-primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--color-red-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* === FAQ SECTION === */
.faq-section {
  margin-bottom: 40px;
}

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

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

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

.faq-item.active {
  border-color: var(--color-red-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-red-subtle);
}

.faq-question span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.faq-toggle {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--color-red-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === FOOTER EXTENSIONS === */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-red-subtle);
  border-color: var(--color-red-primary);
  color: var(--color-red-light);
  transform: translateY(-2px);
}

/* === RESPONSIVE EXTENSIONS === */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    padding: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .category-card {
    padding: 16px 12px;
  }
}

/* === PRINT STYLES === */
@media print {
  .header,
  .sidebar,
  .footer,
  .game-section,
  .ambient-particles,
  .fog-layer,
  .ember-container,
  .stats-section,
  .community-section,
  .newsletter-section,
  .faq-section {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 20px !important;
  }

  body {
    background: white;
    color: black;
  }

  .video-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* === FEATURED SECTION === */
.featured-section {
  margin-bottom: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.featured-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.featured-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.featured-card-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.featured-card-info {
  padding: 20px;
  flex: 1;
}

.featured-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-red-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.featured-badge-new {
  background: var(--color-success);
}

.featured-card-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.featured-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.featured-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === TOP CREATORS SECTION === */
.top-creators-section {
  margin-bottom: 40px;
}

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

.top-creator-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.top-creator-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateX(4px);
}

.top-creator-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
}

.top-creator-item:nth-child(1) .top-creator-rank {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
}

.top-creator-item:nth-child(2) .top-creator-rank {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #000;
}

.top-creator-item:nth-child(3) .top-creator-rank {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.top-creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.top-creator-info {
  flex: 1;
  min-width: 0;
}

.top-creator-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.top-creator-views {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.top-creator-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.top-creator-change.positive {
  color: var(--color-success);
  background: rgba(68, 204, 68, 0.1);
}

.top-creator-change.negative {
  color: var(--color-live);
  background: rgba(255, 34, 34, 0.1);
}

/* === RESPONSIVE FOR NEW SECTIONS === */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .featured-card {
    flex-direction: column;
  }

  .top-creator-item {
    padding: 12px 16px;
  }

  .top-creator-rank {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .top-creator-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .featured-grid {
    gap: 16px;
  }

  .featured-card-info {
    padding: 16px;
  }

  .featured-card-title {
    font-size: 1rem;
  }

  .top-creator-change {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
}
