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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  line-height: 1.6;
}

a { color: #f59e0b; text-decoration: none; }
a:hover { color: #d97706; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
#header {
  background: linear-gradient(135deg, #111, #1a1a0a);
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid #222;
}
#header h1 {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#header .tagline { color: #888; font-size: 15px; margin-top: 4px; }

/* Nav */
nav {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 12px 0;
}
nav .container { display: flex; gap: 20px; }
nav a { color: #aaa; font-size: 14px; font-weight: 500; }
nav a:hover { color: #f59e0b; }

/* Hero */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h2 { font-size: 28px; margin-bottom: 12px; }
.hero p { color: #999; max-width: 600px; margin: 0 auto 24px; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000 !important;
  font-weight: 700; font-size: 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.4); }

/* Cam grid */
#cams { padding: 40px 0; }
#cams h2 { font-size: 24px; margin-bottom: 20px; }

.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cam-card {
  display: block;
  background: #151520;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.cam-card:hover { border-color: #f59e0b; transform: translateY(-2px); }
.cam-card.online { border-color: #22c55e; }
.cam-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #0a0a0f;
  overflow: hidden;
}
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.status-dot {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; background: rgba(0,0,0,0.7);
  color: #22c55e;
}
.cam-card:not(.online) .status-dot { color: #666; }
.cam-info { padding: 10px; font-size: 13px; text-align: center; color: #ddd; }

/* Affiliate programs */
#programs { padding: 40px 0; }
#programs h2 { font-size: 24px; margin-bottom: 20px; }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prog-item {
  background: #151520;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 24px;
}
.prog-item h3 { font-size: 18px; margin-bottom: 8px; }
.prog-item p { font-size: 14px; color: #999; margin-bottom: 12px; }
.prog-link { font-size: 14px; font-weight: 600; }

/* Footer */
footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid #222;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}
footer small { font-size: 12px; }

@media (max-width: 600px) {
  #header h1 { font-size: 26px; }
  .cam-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cam-card .cam-thumb { aspect-ratio: 4/3; }
  .hero h2 { font-size: 22px; }
}
