/* ============================================
   scam.video — Dark Theme, Video Platform
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --red: #ff1a1a;
  --red-dark: #cc0000;
  --orange: #ff6600;
  --yellow: #ffd700;
  --green: #00cc66;
  --text: #f0f0f0;
  --text-dim: #999;
  --text-muted: #666;
  --border: #333;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--orange); }

/* ---- NETWORK BAR ---- */
.network-bar {
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 6px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.network-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.network-label {
  font-weight: 800;
  color: var(--red);
  margin-right: 8px;
}

.network-bar a {
  color: var(--text-muted);
  font-weight: 500;
}
.network-bar a:hover { color: var(--text); }
.network-bar a.active {
  color: var(--red);
  font-weight: 700;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 29px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.logo {
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

.header-search input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.header-search input:focus {
  border-color: var(--red);
}

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

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

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

.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item .thumb {
  width: 80px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.search-result-item .info h4 {
  font-size: 13px;
  font-weight: 600;
}

.search-result-item .info p {
  font-size: 11px;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  gap: 4px;
}

.header-nav a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 26, 26, 0.15);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ---- MAIN CONTENT ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  min-height: 80vh;
}

.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.sort-select {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 40px 0 48px;
}

.hero-logo {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 12px;
  line-height: 1;
}

.hero-logo .red { color: var(--red); }
.hero-logo .dot { color: var(--orange); }

.hero-tagline {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 300;
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  display: block;
}

.hero-stat .label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.section-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-title .accent { color: var(--red); }

.section-link {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.section-link:hover { color: var(--red); }

/* ---- FEATURED VIDEO ---- */
.featured-video {
  margin-bottom: 48px;
}

.featured-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--red);
  margin-bottom: 16px;
}

.featured-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.featured-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.featured-info h3 {
  font-size: 22px;
  font-weight: 700;
}

.featured-info .creator {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}

.featured-info .creator a { color: var(--text-dim); }
.featured-info .creator a:hover { color: var(--red); }

.featured-badge {
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

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

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

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

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

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

.play-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-card-info {
  padding: 12px;
}

.video-card-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-info .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.video-card-info .meta .creator-name {
  font-weight: 600;
}

.video-card-info .category-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.tag-crypto { background: rgba(255, 102, 0, 0.2); color: var(--orange); }
.tag-nft { background: rgba(138, 43, 226, 0.2); color: #b366ff; }
.tag-phone { background: rgba(0, 204, 102, 0.2); color: var(--green); }
.tag-romance { background: rgba(255, 105, 180, 0.2); color: #ff69b4; }
.tag-online { background: rgba(100, 149, 237, 0.2); color: #6495ed; }

.video-card-info .desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- CREATOR SPOTLIGHT ---- */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.creator-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.creator-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.creator-card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.creator-card-header .subs {
  font-size: 12px;
  color: var(--text-dim);
}

.creator-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-card .video-count {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---- PLAYER PAGE ---- */
.player-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.player-main .embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 16px;
}

.player-main .embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.player-meta .creator-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.player-meta .creator-link:hover { color: var(--red); }

.player-meta .date,
.player-meta .views {
  font-size: 13px;
  color: var(--text-muted);
}

.player-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.wiki-link-box {
  background: var(--bg-card);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.wiki-link-box h4 {
  font-size: 14px;
  color: var(--red);
  margin-bottom: 4px;
}

.wiki-link-box p {
  font-size: 13px;
  color: var(--text-dim);
}

.wiki-link-box a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Sidebar */
.player-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.sidebar-video {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.sidebar-video:hover { opacity: 0.8; }

.sidebar-video .thumb {
  width: 140px;
  height: 79px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.sidebar-video .info h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-video .info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Affiliate sidebar */
.affiliate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.affiliate-box h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.affiliate-link {
  display: block;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 26, 26, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.affiliate-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---- CREATOR PROFILE PAGE ---- */
.creator-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.creator-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.creator-profile-info h1 {
  font-size: 28px;
  font-weight: 800;
}

.creator-profile-info .subs {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.creator-profile-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.creator-profile-info .channel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- VOTE BOX ---- */
.vote-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.vote-label {
  font-size: 12px;
  color: var(--text-muted);
}

.vote-box .vote-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.vote-box .vote-btn:hover { border-color: var(--text-dim); }
.vote-box .vote-btn.active-up { border-color: var(--orange); color: var(--orange); }
.vote-box .vote-btn.active-down { border-color: #6666ff; color: #6666ff; }

.vote-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

/* ---- PAGE TITLE ---- */
.page-title {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-title .accent { color: var(--red); }

.page-subtitle {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-section p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-section a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-section a:hover { color: var(--red); }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.donation-address {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 16px;
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  word-break: break-all;
}
.donation-address:hover {
  border-color: var(--red);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--green);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-content > * {
  animation: fadeIn 0.3s ease-out;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-logo { font-size: 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat .number { font-size: 24px; }

  .header-nav { display: none; }
  .header-nav.show {
    display: flex;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-btn { display: block; }

  .main-content { padding: 95px 16px 40px; }
  .page-title { font-size: 24px; }

  .video-grid { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr; }

  .player-page {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .creator-profile-header {
    flex-direction: column;
    text-align: center;
  }
}