/* cams.fan stylesheet - mobile first */

:root {
  --accent:      #D85A30;
  --accent-dark: #993C1D;
  --bg:          #111111;
  --bg-card:     #1c1c1c;
  --bg-card-h:   #242424;
  --bg-nav:      #161616;
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --border:      rgba(255,255,255,0.07);
  --radius:      8px;
  --radius-card: 10px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  color: var(--text);
}

.logo span { color: var(--accent); }

.main-nav {
  display: none;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.live-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-form input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  width: 130px;
  outline: none;
}

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

.search-form button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 15px;
  line-height: 1;
}

.search-form button:hover { color: var(--text); }

/* ============================================================
   Main content
   ============================================================ */

.main-content { flex: 1; }

/* ============================================================
   Filter bar
   ============================================================ */

.filter-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar .container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.filter-chip:hover  { border-color: rgba(255,255,255,0.2); color: var(--text); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.filter-sort {
  margin-left: auto;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
}

/* ============================================================
   Model grid
   ============================================================ */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
}

.section-head h1,
.section-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.section-head .count {
  font-size: 12px;
  color: var(--text-muted);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 24px;
}

.model-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}

.model-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.model-thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: #1a1a1a;
  overflow: hidden;
}

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

.model-card:hover .model-thumb img {
  transform: scale(1.04);
}

.badge-live {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-new {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-hd {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.viewers {
  position: absolute;
  bottom: 7px;
  left: 7px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.viewers::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e74c3c;
  display: inline-block;
}

.toy-icon {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(216,90,48,0.85);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
}

.model-info {
  padding: 8px 10px;
}

.model-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Pagination
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 32px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  padding: 0 10px;
  text-decoration: none;
  transition: all 0.15s;
}

.page-btn:hover  { color: var(--text); border-color: rgba(255,255,255,0.2); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ============================================================
   Model page
   ============================================================ */

.model-page { padding: 20px 0; }

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

.player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.model-page-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.model-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.model-page-details h1 {
  font-size: 20px;
  font-weight: 600;
}

.model-page-details .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.meta-pill {
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--text-muted);
}

.meta-pill.accent {
  background: rgba(216,90,48,0.15);
  border-color: rgba(216,90,48,0.3);
  color: var(--accent);
}

.goal-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.goal-bar strong { color: var(--text); }

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: background 0.15s;
}

.visit-btn:hover { background: var(--accent-dark); }

.related-head {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================================
   Age gate
   ============================================================ */

.agegate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  padding: 24px;
}

.agegate-box {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.agegate-logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.agegate-logo span { color: var(--accent); }

.agegate-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.agegate-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.agegate-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  text-align: center;
  margin-bottom: 10px;
  text-decoration: none;
}

.agegate-btn.yes {
  background: var(--accent);
  color: #fff;
}

.agegate-btn.yes:hover { background: var(--accent-dark); }

.agegate-btn.no {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.agegate-box .legal-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ============================================================
   Empty state
   ============================================================ */

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

.empty-state p { margin-top: 8px; font-size: 14px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  margin-top: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--border);
}

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

.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  padding: 14px 0;
}

.footer-legal {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover { color: var(--text); }

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================================
   Responsive - tablet
   ============================================================ */

@media (min-width: 640px) {
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav { display: flex; }

  .search-form input { width: 160px; }
}

/* ============================================================
   Responsive - desktop
   ============================================================ */

@media (min-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .search-form input { width: 200px; }

  .model-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .model-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}