:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131c;
  --accent-red: #ff004c;
  --accent-orange: #ff6a00;
  --accent-yellow: #ffb800;
  --text-primary: #ffffff;
  --text-secondary: #9ea3b0;
  --text-muted: #5e6475;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --gradient-main: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 0, 76, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 106, 0, 0.08), transparent 25%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Header & Nav */
.site-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9), transparent);
}

.site-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 2rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.highlight-red { color: var(--accent-red); }
.highlight-orange { color: var(--accent-orange); }
.highlight-yellow { color: var(--accent-yellow); }

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
}

.nav-btn.warning {
  border-color: rgba(255, 0, 76, 0.3);
  color: #ff809f;
}

.nav-btn.warning:hover {
  background: rgba(255, 0, 76, 0.1);
  border-color: var(--accent-red);
}

/* Main Layout Grid */
.container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gallery List Elements */
.galleries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover {
  transform: translateX(4px);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}

.gallery-card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.gallery-card:hover .card-title {
  color: var(--accent-orange);
}

.card-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-stats span strong {
  color: var(--accent-yellow);
}

.card-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  border: 1px solid var(--glass-border);
}

.gallery-card:hover .card-btn {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  margin-right: 12px;
}

/* Videos List */
.video-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.video-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.video-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 1rem 0.5rem 0.5rem;
}

.video-duration {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.7);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-yellow);
}

.video-item-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Popular Sites List */
.sites-list {
  list-style: none;
}

.sites-list li {
  margin-bottom: 0.5rem;
}

.sites-list a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sites-list a::before {
  content: '›';
  margin-right: 10px;
  color: var(--accent-red);
  font-size: 1.2rem;
  line-height: 1;
}

.sites-list a:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.footer-btn:hover {
  color: white;
  border-color: var(--accent-orange);
}

/* Responsive */
@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  
  .gallery-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .card-btn {
    width: 100%;
    text-align: center;
  }
}