:root {
  --bg: #0a0a0f;
  --card: #15151c;
  --accent: #F5D547;
  --accent-hover: #FFE066;
  --text: #f0f0f5;
  --muted: #888;
  --bonus: #f39c12;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 20px;
  overflow-x: hidden;
}

/* AGE GATE */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.age-gate-box {
  background: var(--card);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.age-gate-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.age-gate-box h2 span { color: var(--accent); }
.age-warning {
  color: #e74c3c;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}
.age-text {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}
.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.age-yes {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.age-yes:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.age-no {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.age-no:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}
.age-footer {
  color: #555;
  font-size: 11px;
  margin-top: 15px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
h1:hover { opacity: 0.7; }
h1 span { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button {
  background: transparent;
  border: 1px solid #333;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}
.filters button.active, .filters button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.neonrice-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.neonrice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}
.bonus-btn {
  background: linear-gradient(135deg, var(--bonus), #e67e22);
  color: #1a1a1a;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.bonus-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* SUB NAV */
.sub-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
}
.sub-nav button {
  background: transparent;
  border: 1px solid #333;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}
.sub-nav button.active, .sub-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* GRID - Responsive */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid.clips {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

/* Desktop large */
@media (max-width: 1400px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 900px) {
  body { padding: 15px; }
  h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .nav-right { gap: 10px; }
  .filters { gap: 8px; }
  .filters button { padding: 6px 12px; font-size: 12px; }
  .neonrice-btn { padding: 6px 14px; font-size: 12px; }
  .bonus-btn { padding: 6px 14px; font-size: 12px; }
}

/* Mobile large */
@media (max-width: 600px) {
  body { padding: 12px; }
  header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 15px;
  }
  h1 { font-size: 22px; text-align: center; }
  .nav-right {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .filters {
    justify-content: center;
    width: 100%;
  }
  .filters button { flex: 1; text-align: center; }
  .neonrice-btn { text-align: center; padding: 10px; }
  .grid { grid-template-columns: 1fr; gap: 15px; }
  .grid.clips { grid-template-columns: repeat(2, 1fr); }
  .age-gate-box { padding: 30px 20px; }
  .age-gate-box h2 { font-size: 26px; }
  .age-warning { font-size: 16px; }
  .age-text { font-size: 13px; }
  .age-yes, .age-no { padding: 12px; font-size: 14px; }
}

/* Mobile small */
@media (max-width: 400px) {
  body { padding: 10px; }
  h1 { font-size: 20px; }
  .grid.clips { grid-template-columns: 1fr; }
  .filters button { padding: 6px 10px; font-size: 11px; }
  .age-gate-box { padding: 25px 15px; }
  .age-gate-box h2 { font-size: 24px; }
}

/* CARDS */
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}
.card.hidden { display: none; }
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrapper.vertical {
  aspect-ratio: 9/16;
}
.video-wrapper video, .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
.play-overlay:hover { background: rgba(0, 0, 0, 0.1); }
.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}
.play-overlay:hover .play-btn {
  transform: scale(1.1);
  background: rgba(245, 213, 71, 0.9);
  color: #000;
}
.actions {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  gap: 8px;
}
.actions button {
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}
.actions button.fav:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 213, 71, 0.1);
}
.actions button.pass:hover {
  color: #aaa;
  border-color: #666;
  background: rgba(102, 102, 102, 0.15);
}
.actions button.fav.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 213, 71, 0.15);
}
.actions button.pass.active {
  color: #aaa;
  border-color: #666;
  background: rgba(102, 102, 102, 0.15);
}
.card-title {
  padding: 0 15px 10px;
  font-size: 14px;
  color: #ccc;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* TIKTOK FEED */
.tiktok-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: calc(100vh - 80px);
  scrollbar-width: none;
}
.tiktok-feed::-webkit-scrollbar { display: none; }
.tiktok-item {
  height: calc(100vh - 80px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.tiktok-video {
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}
.tiktok-actions {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 10;
}
.tiktok-actions button {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 18px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.tiktok-actions button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
.tiktok-actions button.fav.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 213, 71, 0.2);
}
.tiktok-actions button.pass.active {
  color: #aaa;
  border-color: #666;
  background: rgba(102, 102, 102, 0.3);
}
.tiktok-title {
  position: absolute;
  left: 15px;
  bottom: 140px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 10;
  max-width: 70%;
}

/* Mobile adjustments for TikTok feed */
@media (max-width: 600px) {
  .tiktok-item { height: calc(100vh - 120px); }
  .tiktok-feed { height: calc(100vh - 120px); }
  .tiktok-actions { bottom: 60px; }
  .tiktok-actions button { width: 40px; height: 40px; font-size: 16px; }
  .tiktok-title { font-size: 14px; bottom: 120px; }
}