:root {
  --bg-main: #0b0e14;
  --bg-card: #151922;
  --bg-card-hover: #1c2230;
  --primary: #f59e0b;
  --primary-hover: #ea580c;
  --primary-dark: #c2410c;
  --accent: #f97316;
  --accent-pink: #ec4899;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #262b3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f59e0b, #ea580c);
}

/* Glass Header */
.header-glass {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.2) 0%, rgba(11, 14, 20, 0.95) 85%, var(--bg-main) 100%),
              radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22) 0%, rgba(234, 88, 12, 0.12) 40%, transparent 65%);
}

/* Anime Card */
.anime-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.anime-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.35);
}

.anime-card .cover-container {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #11141c;
}

.anime-card .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anime-card:hover .cover-img {
  transform: scale(1.05);
}

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

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

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.85);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

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

/* Genre Tag Chip */
.genre-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
  white-space: nowrap;
}

/* Utilitário para ocultar barra de rolagem mantendo a rolagem ativa */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Filter Chips */
.filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(21, 25, 34, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: var(--text-main);
  background: rgba(30, 37, 50, 0.95);
  border-color: rgba(245, 158, 11, 0.4);
}

.filter-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

/* Episode Item Button */
.episode-btn {
  background: #191f2c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s ease;
}

.episode-btn:hover {
  background: #232a3b;
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateX(4px);
}

.episode-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Video Player container */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Badge Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-pill.telegram-connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.demo-mode {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
