/* TelegramVideos.net Design System */

:root {
  --bg-main: #0a0a0c;
  --bg-card: #121216;
  --bg-nav: rgba(10, 10, 12, 0.85);
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --primary: #e50914;
  --primary-hover: #b80710;
  --primary-glow: rgba(229, 9, 20, 0.4);
  --accent-vip: #8b5cf6;
  --accent-vip-glow: rgba(139, 92, 246, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(229, 9, 20, 0.4);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(18, 18, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body.age-gate-active {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Age Gate Overlay */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.age-gate-modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(229, 9, 20, 0.15);
}

.age-gate-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2s infinite;
}

.age-gate-modal h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.age-gate-modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Header & Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-red {
  color: var(--primary);
}

.logo-dot {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-glow-red {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.btn-glow-red:hover {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-block {
  width: 100%;
  padding: 12px;
}

.text-button {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.text-button:hover {
  color: #fff;
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 130px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.12) 0%, rgba(229, 9, 20, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(229, 9, 20, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-glow 2s infinite;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-copy {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  line-height: 1.5;
}

/* Search Wrapper */
.search-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  height: 54px;
  transition: var(--transition);
}

.search-bar:focus-within {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
}

.search-icon {
  margin-right: 12px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  height: 100%;
}

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

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}

.clear-search-btn:hover {
  color: #fff;
}

/* Filters Section */
.filter-section {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.categories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

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

.filter-chip {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.filter-chip.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.25);
}

/* Directory Section Grid */
.directory-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.results-counter {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards (Netflix-style aspect ratio 16:10) */
.card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.1);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 16:10 aspect ratio */
  overflow: hidden;
  background-color: #050507;
}

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

.card-item:hover .card-img {
  transform: scale(1.06);
}

/* Overlay play button */
.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.card-item:hover .media-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(0.9);
  transition: var(--transition);
}

.card-item:hover .play-btn-circle {
  transform: scale(1);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #fff;
  margin-left: 4px;
}

/* Card Badges */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-red {
  background-color: var(--primary);
  color: #fff;
}

.badge-vip {
  background-color: var(--accent-vip);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-vip-glow);
}

.badge-ai {
  background-color: #0ea5e9;
  color: #fff;
}

.badge-game {
  background-color: #10b981;
  color: #fff;
}

/* Card Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title-row h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.favorite-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.favorite-btn:hover, .favorite-btn.active {
  color: var(--primary);
  transform: scale(1.15);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 12px;
}

.card-meta-row span {
  display: flex;
  align-items: center;
}

.rating {
  color: #f59e0b;
}

/* Bookmark Grid (Mini layouts) */
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.discovery-section {
  margin-bottom: 30px;
}

.discovery-section h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 600;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Pagination */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.pagination-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.pagination-link.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-link.pagination-prev, .pagination-link.pagination-next {
  width: auto;
  padding: 0 16px;
}

.pagination-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 0.5;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
}

.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-family);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.payment-info {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.payment-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.payment-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.address-box {
  background-color: #050507;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.address-box:last-child {
  margin-bottom: 0;
}

.copyable {
  font-family: monospace;
  color: var(--text-main);
}

/* SEO Content & Cloud */
.seo-content {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
}

.seo-content h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.seo-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.channel-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-index-list a {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.channel-index-list a:hover {
  background-color: rgba(229, 9, 20, 0.05);
  border-color: var(--primary);
  color: var(--text-main);
}

.seo-guide-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.seo-guide-section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.seo-guide-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.seo-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.seo-grid p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Footer styling */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: #050507;
  padding: 40px 24px;
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

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

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.2rem; }
  .hero-copy { font-size: 1rem; }
  .top-nav { height: 60px; }
  .nav-container { padding: 0 16px; }
  .logo { font-size: 1.3rem; }
  .directory-section { padding: 0 16px; }
  .filter-section { padding: 0 16px; }
  .channels-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .age-gate-modal { padding: 30px 20px; }
}

/* Sticky / Floating Bot Promotion Ads */

/* Desktop Left Sidebar Floating Banner */
.desktop-side-left-bot {
  display: none;
}

@media (min-width: 1280px) {
  .desktop-side-left-bot {
    display: block;
    position: fixed;
    top: 55%;
    transform: translateY(-50%);
    left: max(16px, calc((100vw - 1000px) / 2 - 180px));
    z-index: 100;
    width: 160px;
  }
}

/* Mobile/Tablet Sticky Bottom Ad */
@media (max-width: 1279px) {
  .go-bot-promo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 8px 16px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
  }
  
  .go-bot-promo .go-bot-promo-link {
    margin: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
  }
  
  /* Add padding to body to prevent content from being covered at the bottom */
  body.site-body {
    padding-bottom: 80px;
  }
}

