:root {
  --bg-dark: #0f0715;
  --card-bg: #140b1c;
  --primary-gradient: linear-gradient(90deg, #0043d8 0%, #ffffff 100%);
  --accent-purple: #0043d8;
  --text-gray: #dddddd;
}

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


body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  padding-top: 70px;
}

/* BACKGROUND GLOW */
.bg-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(135, 80, 247, 0.15) 0%,
    rgba(15, 7, 21, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #050214;
  padding: 20px 20px;
  z-index: 100;
}

.nav ul {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #c7c9e5;
  padding: 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-link.active {
  background: rgba(135, 80, 247, 0.1);
  border: 1px solid var(--accent-purple);
  padding: 14px 14px;
  border-radius: 50px;
  font-size: 0.9em;
  color: var(--accent-purple);
  font-weight: bold;
  transform: scale(1.05);
}

/* HEADER */
header {
  padding: 10px 0 60px;
  text-align: center;
}

.badge {
  background: rgba(135, 80, 247, 0.1);
  border: 1px solid var(--accent-purple);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9em;
  color: var(--accent-purple);
  font-weight: bold;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.1;
}

header h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-gray);
  line-height: 1.6;
}

/* FILTERS */
.categories-filter {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #2a1454;
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(135, 80, 247, 0.4);
}

/* ============================= */
/* VIDEO GRID — RESPONSIVO LIMPO */
/* ============================= */

/* BASE — MOBILE FIRST */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 100px;
}

/* VIDEO CARD */
.video-item {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid #2a1454;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(135, 80, 247, 0.2);
}

.thumb-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-item:hover .thumb-wrapper img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-purple);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

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

.video-info {
  padding: 25px;
}

.channel-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  font-weight: 700;
}

.video-info h3 {
  margin: 10px 0;
  font-size: 1.4rem;
}

.video-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  background: #140b1c;
  border-radius: 15px;
  padding: 5px;
  border: 1px solid #8750f7;
}

.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 35px;
  cursor: pointer;
  color: #fff;
}

/* ============================= */
/* BREAKPOINTS ORGANIZADOS */
/* ============================= */

/* CELULAR PEQUENO */
@media (max-width: 480px) {
  header h1 {
    font-size: 2.2rem;
  }

  .thumb-wrapper {
    height: 190px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* TABLET EM PÉ */
@media (min-width: 481px) and (max-width: 768px) {
  header h1 {
    font-size: 2.6rem;
  }

  .bg-glow {
    width: 420px;
    height: 420px;
  }
}

/* TABLET DEITADO */
@media (min-width: 769px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  header h1 {
    font-size: 3rem;
  }

  .bg-glow {
    width: 500px;
    height: 500px;
  }
}

/* DESKTOP */
@media (min-width: 1025px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}

/* FOOTER */
footer {
  padding: 50px;
  text-align: center;
  border-top: 1px solid #2a1454;
  color: #666;
}

