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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0d0d0d;
  color: #eee;
  min-height: 100vh;
}

/* ===== Age Gate ===== */
.age-gate {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.age-box h1 {
  font-size: 64px;
  color: #e74c3c;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.age-box p {
  font-size: 16px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 28px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-yes, .btn-no {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-yes {
  background: #e74c3c;
  color: #fff;
}

.btn-yes:hover {
  background: #c0392b;
}

.btn-no {
  background: #333;
  color: #aaa;
}

.btn-no:hover {
  background: #444;
}

.age-note {
  font-size: 12px !important;
  color: #666 !important;
  margin-bottom: 0 !important;
}

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

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: #e74c3c;
}

.search-box input {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  width: 260px;
  font-size: 15px;
  outline: none;
}

.search-box input:focus {
  border-color: #e74c3c;
}

/* Categories */
.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
}

.cat-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #aaa;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

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

.video-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #222;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.25);
}

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

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2a1a1a);
  color: #555;
  font-size: 40px;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

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

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cat {
  font-size: 12px;
  color: #e74c3c;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

/* Player Modal */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.player-box {
  position: relative;
  background: #111;
  border-radius: 12px;
  width: 90%;
  max-width: 960px;
  padding: 20px;
  z-index: 1;
}

.close-player {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.close-player:hover {
  color: #e74c3c;
}

#player-title {
  font-size: 18px;
  margin-bottom: 14px;
  padding-right: 40px;
}

#player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

#player-container video,
#player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

footer {
  margin-top: 50px;
  text-align: center;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
  .logo {
    font-size: 22px;
  }
  .search-box input {
    width: 100%;
  }
  header {
    flex-direction: column;
    align-items: stretch;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card-title {
    font-size: 13px;
  }
}
