/* =============================================
   TAQREER - NAATENABI.COM
   Premium Islamic Website Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold: #c8973a;
  --gold-light: #e8b85a;
  --gold-dark: #a07428;
  --emerald: #0a5c3a;
  --emerald-mid: #0d7a50;
  --emerald-light: #10a067;
  --emerald-glow: rgba(16, 160, 103, 0.3);
  --bg-dark: #050d0a;
  --bg-card: #0c1a14;
  --bg-card2: #0f2118;
  --border: rgba(200, 151, 58, 0.15);
  --border-hover: rgba(200, 151, 58, 0.45);
  --text-primary: #f0ede6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --shadow-gold: 0 0 30px rgba(200, 151, 58, 0.2);
  --shadow-emerald: 0 0 30px rgba(16, 160, 103, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Outfit', 'Noto Nastaliq Urdu', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  direction: rtl;
}

/* ---- Particles Canvas ---- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(5, 13, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 13, 10, 0.95);
  border-bottom-color: rgba(200, 151, 58, 0.3);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--gold));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--gold)); }
  50% { filter: drop-shadow(0 0 20px var(--gold-light)); }
}

.logo-text { display: flex; flex-direction: column; }

.logo-main {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(200, 151, 58, 0.3);
  line-height: 1.5;
  padding-top: 5px;
  overflow: visible;
}

.logo-sub {
  font-size: 11px;
  color: var(--emerald-light);
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 50%;
  left: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after, .nav-link.active::after {
  right: 16px;
  left: 16px;
}

.nav-yt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-yt-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(13, 122, 80, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 151, 58, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(10, 92, 58, 0.2) 0%, transparent 50%),
    var(--bg-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8973a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-geometric {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(200, 151, 58, 0.05) 60deg, transparent 120deg, rgba(13, 122, 80, 0.05) 180deg, transparent 240deg, rgba(200, 151, 58, 0.05) 300deg, transparent 360deg);
  animation: rotate-bg 40s linear infinite;
}

@keyframes rotate-bg {
  from { transform: rotate(0deg) scale(2); }
  to { transform: rotate(360deg) scale(2); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  animation: hero-enter 1s ease-out;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 151, 58, 0.1);
  border: 1px solid rgba(200, 151, 58, 0.3);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-family: 'Noto Nastaliq Urdu', serif;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.title-arabic {
  display: block;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(200, 151, 58, 0.5);
  line-height: 2;
  overflow: visible;
}

.title-main {
  display: block;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 30px rgba(200,151,58,0.4), 0 0 60px rgba(200,151,58,0.15);
  margin-bottom: 0.3rem;
  padding: 0 1rem;
  overflow: visible;
}

.title-sub {
  display: block;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 500;
  color: var(--emerald-light);
  margin-bottom: 1.5rem;
  line-height: 2;
  text-shadow: 0 0 15px rgba(16,160,103,0.5);
}

.hero-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald-mid), var(--emerald-light));
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13, 122, 80, 0.4);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 122, 80, 0.6);
  background: linear-gradient(135deg, var(--emerald-light), #14c07a);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 600;
  border: 1.5px solid var(--gold);
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(200, 151, 58, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'Noto Nastaliq Urdu', serif;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(200, 151, 58, 0.1);
  border: 1px solid rgba(200, 151, 58, 0.3);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-family: 'Noto Nastaliq Urdu', serif;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 15px rgba(200, 151, 58, 0.3);
  margin-bottom: 1rem;
  line-height: 2;
  padding-top: 10px;
  overflow: visible;
}

.section-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Videos Section ---- */
.videos-section {
  padding: 100px 0 80px;
  position: relative;
  z-index: 1;
}

/* ---- Controls Bar ---- */
.controls-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Noto Nastaliq Urdu', serif;
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--emerald-light);
  box-shadow: 0 0 0 3px rgba(16, 160, 103, 0.15);
}

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

.sort-box select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Noto Nastaliq Urdu', serif;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sort-box select:focus { border-color: var(--emerald-light); }

/* ---- API Notice ---- */
.api-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.notice-icon { font-size: 40px; margin-bottom: 1rem; }

.notice-text strong {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 20px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.notice-text p {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.api-input-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.api-input-group input {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: var(--transition);
  direction: ltr;
  text-align: left;
}

.api-input-group input:focus { border-color: var(--gold); }

.api-input-group button {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.api-input-group button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.api-help {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Noto Nastaliq Urdu', serif;
}

.api-help a { color: var(--emerald-light); }

/* ---- Loading / Error States ---- */
.loading-state, .error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-state p, .error-state p {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 1rem;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-icon { font-size: 48px; margin-bottom: 1rem; }

.error-state h3 {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.retry-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--emerald-mid);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Noto Nastaliq Urdu', serif;
  cursor: pointer;
  transition: var(--transition);
}

.retry-btn:hover { background: var(--emerald-light); }

/* ---- Videos Grid ---- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---- Video Card ---- */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  animation: card-enter 0.5s ease-out backwards;
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--shadow-gold);
}

.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-card2);
}

.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.play-btn-big {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.video-card:hover .play-btn-big {
  transform: scale(1);
}

.play-btn-big svg { color: var(--bg-dark); margin-right: -2px; }

.card-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.card-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 2.2;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: 5px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.card-views {
  font-size: 12px;
  color: var(--emerald-light);
  font-family: 'Outfit', sans-serif;
}

.card-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* ---- Load More ---- */
.load-more-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--gold-light);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: rgba(200, 151, 58, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---- About Section ---- */
.about-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(13, 122, 80, 0.05), transparent);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 15px rgba(200, 151, 58, 0.3);
  margin-bottom: 1.5rem;
  line-height: 2;
  padding-top: 10px;
  overflow: visible;
}

.about-text {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-primary);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card2);
}

.feature-icon { font-size: 20px; }

/* About Card */
.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-emerald);
}

.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(200,151,58,0.03), transparent);
  animation: rotate-bg 20s linear infinite;
}

.about-ornament {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--gold));
  animation: pulse-glow 3s ease-in-out infinite;
}

.about-card h3 {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.about-card p {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.about-divider {
  width: 60%;
  height: 1px;
  background: var(--border);
  margin: 1.5rem auto;
}

.about-channel-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ff4444 !important;
  font-weight: 600;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-container { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(200,151,58,0.7); }

.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Local file fallback box */
.modal-local-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.modal-local-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.modal-local-play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255,0,0,0.85);
  color: white;
  text-decoration: none;
  padding: 20px 36px;
  border-radius: 16px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.modal-local-play:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.modal-local-note {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.75);
  color: #ffd;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}



.modal-info {
  padding: 1.5rem;
}

#modal-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 2.2;
  padding-top: 5px;
}

#modal-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  line-height: 2.2;
  padding-top: 5px;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1rem;
}

.modal-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 600;
  transition: var(--transition);
}

.modal-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-social { display: flex; gap: 0.75rem; }

.social-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: #ff0000;
  color: #ff0000;
}

.footer-bottom {
  text-align: center;
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-note {
  margin-top: 4px;
  font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .about-features { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-stats { gap: 1rem; }
  .api-input-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .videos-grid { grid-template-columns: 1fr; }
}


/* ---- Category Tabs ---- */
.category-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Noto Nastaliq Urdu', serif;
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  border-color: var(--emerald-light);
  color: #fff;
  box-shadow: 0 4px 15px rgba(13,122,80,0.4);
}

/* ---- Card Category Badge ---- */
.card-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.card-yt-icon {
  display: flex;
  align-items: center;
}

/* ---- No Results ---- */

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 18px;
  grid-column: 1 / -1;
}

/* ---- Skeleton Loader ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
