* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0e14 50%, #0d0d0d 100%);
  color: #f5f5f5;
  min-height: 100vh;
}

header {
  background: rgba(20, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 30px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff4fa3, #ff8fc7, #ff4fa3) 1;
  box-shadow: 0 4px 20px rgba(255, 79, 163, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 500;
}

header h1 {
  margin: 0;
  letter-spacing: 2px;
  font-size: 28px;
  background: linear-gradient(90deg, #ff4fa3, #ffb3d9, #ff4fa3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 79, 163, 0.4);
}

#categories-section {
  padding: 25px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

#categories-section h2,
#trending-section h2 {
  color: #f5f5f5;
  margin-bottom: 15px;
  font-size: 20px;
  position: relative;
  padding-left: 12px;
  border-left: 3px solid #ff4fa3;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#categories-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tag {
  padding: 10px 20px;
  border: 1px solid #444444;
  border-radius: 25px;
  background: rgba(255,255,255,0.03);
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-tag:hover {
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

#trending-section {
  padding: 25px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

#videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: linear-gradient(145deg, #1a1a1a, #221420);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333333;
  transition: all 0.25s ease;
}
.video-card:hover {
  border-color: #ff4fa3;
  box-shadow: 0 12px 35px rgba(255, 79, 163, 0.4);
  transform: translateY(-6px) scale(1.02);
}

.video-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.video-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-title {
  padding: 12px;
  margin: 0;
  font-size: 14px;
  color: #f5f5f5;
  border-top: 1px solid #2a2a2a;
}

/* Admin form styling */
#admin-section {
  padding: 25px 20px;
  max-width: 500px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(145deg, #1a1a1a, #221420);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
}

.admin-form label {
  color: #ff8fc7;
  font-size: 14px;
  margin-top: 10px;
  font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  background-color: #0d0d0d;
  border: 1px solid #333;
  color: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #ff4fa3;
  box-shadow: 0 0 10px rgba(255, 79, 163, 0.3);
}

.admin-form button {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.admin-form button:hover {
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

.admin-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-status {
  margin-top: 10px;
  font-size: 14px;
}

/* Footer (jab banayenge tab ye use hoga) */
footer {
  background: rgba(20, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff4fa3, #ff8fc7, #ff4fa3) 1;
  padding: 25px 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 40px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
footer .footer-brand {
  color: #ff8fc7;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}
#pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.page-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.page-btn:hover {
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

.page-info {
  color: #ff8fc7;
  font-size: 14px;
  font-weight: 500;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-box {
  background: linear-gradient(145deg, #1a1a1a, #221420);
  border: 1px solid #ff4fa3;
  border-radius: 16px;
  width: 55%;
  max-width: 700px;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 40px rgba(255, 79, 163, 0.4);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #ff8fc7;
  font-size: 20px;
  cursor: pointer;
}

.modal-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.modal-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-title {
  color: #f5f5f5;
  margin-top: 12px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .modal-box {
    width: 90%;
  }
}

/* for search box design */

#search-box {
  padding: 10px 18px;
  width: 300px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid #ff4fa3;
  background-color: #1a1a1a;
  color: #f5f5f5;
  font-size: 14px;
}
.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #ff8fc7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: 0.2s;
}

.main-nav a:hover {
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
}
#all-categories-section {
  padding: 25px 20px;
}

#all-categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.category-card {
  background: linear-gradient(145deg, #1a1a1a, #221420);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333333;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.category-card:hover {
  border-color: #ff4fa3;
  box-shadow: 0 8px 25px rgba(255, 79, 163, 0.3);
  transform: translateY(-4px);
}

.category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.category-card p {
  padding: 10px;
  margin: 0;
  font-weight: bold;
  color: #ff8fc7;
}
#images-section {
  padding: 25px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

#images-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.image-card {
  background: linear-gradient(145deg, #1a1a1a, #221420);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333333;
  transition: all 0.25s ease;
}

.image-card:hover {
  border-color: #ff4fa3;
  box-shadow: 0 8px 25px rgba(255, 79, 163, 0.3);
  transform: translateY(-4px);
}

.image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.image-title {
  padding: 10px;
  margin: 0;
  font-size: 14px;
  color: #f5f5f5;
}
.image-modal-box {
  width: auto;
  max-width: 80%;
  padding: 15px;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .image-modal-box {
    max-width: 95%;
  }
}
/* Age Verification Popup */
#age-verify-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none; /* JS ise 'flex' karega agar zaroorat ho */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.age-verify-box {
  background: linear-gradient(145deg, #1a1a1a, #221420);
  border: 1px solid #ff4fa3;
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 40px rgba(255, 79, 163, 0.4);
}

.age-verify-box h2 {
  color: #ff4fa3;
  margin-top: 0;
}

.age-verify-box p {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0;
}

.age-verify-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

#age-yes-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

#age-no-btn {
  padding: 10px 20px;
  background: transparent;
  color: #999;
  border: 1px solid #555;
  border-radius: 20px;
  cursor: pointer;
}

#age-yes-btn:hover {
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
}

#age-no-btn:hover {
  border-color: #ff4fa3;
  color: #ff8fc7;
}
/* Mobile ke liye chhoti screens pe categories 2 per row fit karo */
@media (max-width: 600px) {
  #all-categories-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #videos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #images-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
#video-categories-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #0d0d0d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f5f5f5;
  font-size: 14px;
  cursor: pointer;
}

.category-checkbox {
  accent-color: #ff4fa3;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* Ad Slots - placeholders, baad me real ad code yahan jayega */
.ad-slot {
  background-color: #151515;
  border: 1px dashed #444;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
}

.ad-banner {
  max-width: 1300px;
  margin: 20px auto;
  min-height: 90px;
}

.ad-in-grid {
  min-height: 200px;
  grid-column: span 1;
}

.ad-modal {
  margin-top: 12px;
  min-height: 100px;
}

.ad-placeholder-text {
  margin: 0;
}
.logo-link {
  display: block;
  flex-shrink: 0;
}

.site-logo {
  height: 130px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 70px;
  width: auto;
  display: block;
  position: absolute;
  left: 30px;
}

.footer-brand {
  display: none;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  #search-box {
    width: 100%;
  }

  .site-logo {
    height: auto;
    max-width: 200px;
    width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .footer-logo {
    position: static;
    margin: 0 auto 10px auto;
  }

  header.header-scrolled {
    padding: 6px 20px;
  }

  header.header-scrolled .site-logo {
    max-width: 110px;
  }
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #333333, transparent);
  max-width: 1300px;
  margin: 10px auto;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card,
.category-card,
.image-card {
  animation: fadeInUp 0.5s ease forwards;
}
header {
  transition: padding 0.3s ease, background 0.3s ease;
}

header.header-scrolled {
  padding: 8px 30px;
  background: rgba(13, 13, 13, 0.9);
}

header.header-scrolled .site-logo {
  height: 55px;
  transition: height 0.3s ease;
}

.site-logo {
  transition: height 0.3s ease;
}
#manage-videos-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d0d0d;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 14px;
}

.manage-row span {
  color: #f5f5f5;
  font-size: 13px;
  flex: 1;
}

.delete-btn {
  background-color: #661a2e;
  color: #ff8fc7;
  border: none;
  padding: 6px 14px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  margin-left: 10px;
}

.delete-btn:hover {
  background-color: #ff4fa3;
  color: #0d0d0d;
}
.video-views {
  padding: 0 12px 10px 12px;
  margin: 0;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Loading spinner - heart pulse animation */
.loading-spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
  grid-column: 1 / -1;
}

.loading-heart {
  width: 90px;
  height: 90px;
  animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.error-404-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-404-content {
  text-align: center;
}

.error-404-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.error-404-number span {
  font-size: 100px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404-heart {
  width: 70px;
  height: 70px;
}

.error-404-content h2 {
  color: #f5f5f5;
  font-size: 22px;
  margin: 10px 0;
}

.error-404-content p {
  color: #999;
  font-size: 14px;
  margin-bottom: 25px;
}

.error-404-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ff4fa3, #ff8fc7);
  color: #0d0d0d;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.error-404-btn:hover {
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ccc;
  line-height: 1.7;
}

.legal-section h1 {
  color: #ff8fc7;
  font-size: 26px;
  margin-bottom: 5px;
}

.legal-updated {
  color: #777;
  font-size: 13px;
  margin-bottom: 30px;
}

.legal-section h2 {
  color: #f5f5f5;
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 8px;
  border-left: 3px solid #ff4fa3;
  padding-left: 10px;
}

.legal-section p {
  font-size: 14px;
  color: #aaa;
}