* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #2b134f, #0c0814);
  color: white;
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #1a0f2e, #0b0713);
  padding: 24px;
}



.logo {
  width: 170px;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 12px #a855f7);
}

.side-nav a {
  display: block;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  color: #d1d1d1;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a.active {
  background: linear-gradient(90deg, #7c3aed, #facc15);
  color: black;
}

/* MAIN */
.main {
  flex: 1;
  padding: 24px 36px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav a {
  margin-right: 28px;
  color: #bdbdbd;
  font-weight: 500;
}

.top-nav a.active {
  color: #facc15;
  border-bottom: 3px solid #facc15;
  padding-bottom: 6px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* a search fica colada à direita */
.search-box {
  margin-left: auto;
 
}



.actions input {
  background: #1f1830;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  color: white;
}

/* HERO */
.hero {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.hero::-webkit-scrollbar {
  display: none;
}

.hero-play-center {

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(.9);

  width: 84px;
  height: 84px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);

  box-shadow:
    0 0 30px rgba(124,58,237,.45),
    inset 0 0 12px rgba(255,255,255,.15);

  transition: all .25s ease;
}

/* ÍCONE PLAY */
.hero-play-center span {

  font-size: 36px;
  color: white;

  display: block;

  transform: translateX(3px); /* ← correção perfeita de centramento */

}

/* HOVER */
.video-slide:hover .hero-play-center {

  transform: translate(-50%, -50%) scale(1.15);

  background: linear-gradient(
    135deg,
    #7c3aed,
    #facc15
  );

}




.hero-card {
  min-width: 260px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 18px;
  text-shadow: 0 4px 10px black;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: red;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
}

.hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTIONS */
.section {
  margin-top: 48px;
}

.section h2 {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  height: 160px;
  background: linear-gradient(135deg, #24163d, #1b102e);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(168,85,247,0.4);
}

/* HOME HORIZONTAL VIDEO CAROUSEL */

.home-video-carousel {
  margin: 50px auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
}


.video-window {
  width: 100%;
  max-width: 780px; /* ← tamanho ideal */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  position: relative;
  touch-action: pan-y;
}


.video-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}


.video-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 22px;
  overflow: hidden;

  position: relative;
  cursor: pointer;

  background: #000;

  box-shadow:
    0 25px 80px rgba(0,0,0,.65),
    0 0 40px rgba(124,58,237,.15);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.video-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* não corta */
  background: black;   /* evita espaços feios */
}

.video-slide:hover {
  transform: scale(1.02);

  box-shadow:
    0 35px 100px rgba(0,0,0,.8),
    0 0 60px rgba(124,58,237,.35);
}


.video-slide .hero-play {
  cursor: pointer;
}

.video-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* setas */

.video-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  background: linear-gradient(
    135deg,
    #7c3aed,
    #facc15
  );

  border:none;

  width:54px;
  height:54px;

  border-radius:50%;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:28px;
  color:white;

  opacity:.85;

  box-shadow:
    0 10px 30px rgba(0,0,0,.4);

  transition:
    transform .25s ease,
    opacity .25s ease,
    box-shadow .25s ease;
  backdrop-filter: blur(6px);
}

.video-btn:hover {

  transform: scale(1.15);

  opacity: 1;

  box-shadow:
    0 15px 40px rgba(124,58,237,.5),
    0 0 25px rgba(250,204,21,.35);

}

.video-btn span{
  display:flex;
  align-items:center;
  justify-content:center;
}


/* ajuste visual do símbolo */
.video-btn.left {
  left:40px;
}

.video-btn.right {
  right:40px;
}


.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots span {

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: rgba(255,255,255,.3);

  cursor: pointer;

  transition:
    transform .25s ease,
    background .25s ease;

}

.carousel-dots span.active {

  background: linear-gradient(
    135deg,
    #7c3aed,
    #facc15
  );

  transform: scale(1.35);

}

.home-video-carousel:hover .video-btn {
  opacity: 1;
}

.video-btn {
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.video-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trending-card {
  background: #120b22;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: 0.25s;
}

.trending-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trending-info {
  padding: 14px;
}

.trending-info h3 {
  font-size: 15px;
  line-height: 1.3;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(168,85,247,.35);
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: black;
  box-shadow: 0 15px 40px rgba(0,0,0,.6);
  cursor: pointer;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.category-card {
  background: linear-gradient(135deg, #24163d, #1b102e);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
  color: inherit;          /* mantém a cor atual */
  text-decoration: none;   /* remove o sublinhado */
}

.category-card:hover {
  background: linear-gradient(135deg,#7c3aed,#facc15);
  color: black;
  transform: translateY(-3px);
  text-decoration: none;
}


/* TRENDING VIDEOS */
.trending-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  background: #1b102e;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: 0.25s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(168,85,247,0.35);
}

.video-card .thumb {
  position: relative;
  height: 180px;
}

.video-card img {
  width: 100%;
  height: 180px;   /* altura fixa da thumbnail */
  object-fit: cover;
}

.video-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
}

.video-card:hover .play {
  opacity: 1;
  transform: scale(1.15);
}

.video-card .info {
  padding: 14px;
}

.video-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.video-card .info span {
  font-size: 13px;
  color: #bdbdbd;
}

/* ========================= */
/* VIDEO MODAL – PREMIUM */
/* ========================= */

.video-modal {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at top,
      rgba(168,85,247,.35),
      rgba(0,0,0,.9) 60%
    );
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 3000;
}

/* MODAL ABERTO */
.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* ========================= */
/* CAIXA DO VÍDEO */
/* ========================= */

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(92vw, 960px);
  background: #05030a;
  border-radius: 26px;

  overflow: visible;          /* ← mudar isto */
  

  transform: scale(.9) translateY(40px);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow:
    0 50px 140px rgba(0,0,0,.95),
    0 0 90px rgba(168,85,247,.45),
    inset 0 0 0 1px rgba(255,255,255,.08);
}


/* animação entrada */
.video-modal.open .video-box {
  transform: scale(1) translateY(0);
}

/* ========================= */
/* GLOW ANIMADO */
/* ========================= */

.video-box::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    120deg,
    #7c3aed,
    #facc15,
    #7c3aed
  );
  filter: blur(40px);
  opacity: .35;
  z-index: -1;
  animation: modalGlow 6s linear infinite;
}

@keyframes modalGlow {
  0% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
  100% { transform: translateX(-30%); }
}

/* ========================= */
/* IFRAME */
/* ========================= */

.video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: black;
}

/* ========================= */
/* BOTÃO FECHAR */
/* ========================= */

.video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,.65);
  color: white;
  font-size: 18px;
  cursor: pointer;

  z-index: 10;
  backdrop-filter: blur(6px);
  transition: .3s;
}

.video-close:hover {
  background: linear-gradient(135deg, #7c3aed, #facc15);
  color: black;
  transform: rotate(90deg) scale(1.1);
}

.footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #7c3aed;
}

.footer-copy {
  font-size: 12px;
  color: #666;
}

.legal-page {
  background: linear-gradient(180deg,#1a0f2e,#0b0713);
  color: white;
  min-height: 100vh;
  padding: 0 20px;  /* remove o espaço vertical */
}

.legal-page .main {
 padding-top: 24px;   /* reduz espaço no topo */
}

.legal-container {
  max-width: 800px;
  margin: 90px auto 60px auto; 
}

.legal-page h1 {
  font-size: 28px;
  margin-bottom: 25px;
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 18px;
}

.legal-page p {
  max-width: 800px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 15px;
}

.legal-container h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 35px;
}

.legal-container h2 {
  margin-top: 35px;
  font-size: 18px;
  font-weight: 600;
}

.legal-container p {
  color: #cfcfe8;
  line-height: 1.7;
}

/* ========================= */
/* BOTÃO YOUTUBE */
/* ========================= */

.youtube-btn {
  position: absolute;
  left: 50%;
  top: 100%; 
  transform: translate(-50%, 22px); /* baixa aqui */
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #facc15);
  color: black;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .4px;
  text-decoration: none;
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}

.youtube-btn:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.05);
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
}

.mobile-menu-btn {
  display: none;
}

.search-results {
  position: absolute;
  top: 50px;
  width: 300px;
  background: #140c25;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  z-index: 9999;
}

.search-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
}

.search-item:hover {
  background: rgba(255,255,255,.05);
}

.search-item img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

.search-item h4 {
  font-size: 13px;
}

.search-item span {
  font-size: 12px;
  opacity: .7;
}

.search-title{
  display:flex;
  align-items:center;
  gap:6px;
}

.category-icon{
  font-size:14px;
  margin-right:6px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {
  .video-box {
    width: 94vw;
    border-radius: 18px;
  }

  .youtube-btn {
    font-size: 13px;
    padding: 12px 22px;
  }
}

.copy-link-btn{
  position:absolute;
  top:-50px;
  left:0;

  padding:10px 16px;
  border-radius:30px;
  border:none;

  background:rgba(0,0,0,0.6);
  color:white;
  font-size:14px;
  cursor:pointer;

  backdrop-filter:blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-link-btn:hover{
   transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

.copy-toast{

  position:fixed;

  bottom:40px;
  left:50%;

  transform:translateX(-50%) translateY(20px);

  padding:12px 20px;

  border-radius:999px;

  background:linear-gradient(
    90deg,
    #7c3aed,
    #facc15
  );

  color:black;

  font-weight:600;

  opacity:0;

  pointer-events:none;

  transition:0.3s;

  z-index:9999;

}

.copy-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0) scale(1);
  animation: pop 0.35s cubic-bezier(.16,1,.3,1);
}

@keyframes pop{
  0%{
    transform:translateX(-50%) translateY(20px) scale(0.8);
    opacity:0;
  }
  60%{
    transform:translateX(-50%) translateY(-4px) scale(1.05);
    opacity:1;
  }
  100%{
    transform:translateX(-50%) translateY(0) scale(1);
  }
}

.copy-toast::before{
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  margin-right: 8px;

  border-radius: 50%;

  background: #16a34a;
  color: white;

  font-size: 12px;
  font-weight: bold;
}

/* ============================= */
/* RESPONSIVE FIXES */
/* ============================= */

@media (max-width: 1200px) {
  .home-video-carousel {
    max-width: 100%;
    padding: 0 20px;
  }

  .video-window {
    width: 85%;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid,
  .trending-grid,
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: 200px;
  }
}

@media (max-width: 768px) {

  /* layout só na HOME */
  body.home-page .layout {
    flex-direction: column;
  }

  /* SIDEBAR HORIZONTAL (HOME) */
  body.home-page .sidebar {
    position: relative;
    width: 100%;
    display: flex;
    padding: 14px 12px;
    justify-content: center;
    background: linear-gradient(180deg, #140b25, #0b0713);
    overflow: hidden;
    flex-direction: column;
  }

  body.home-page .sidebar .logo img {
  display: block;
}

  body.home-page .sidebar img {
  display: block;
  margin: 0 auto;
}

  /* NAV SCROLLÁVEL */
  body.home-page .side-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    min-width: 100%;
    scrollbar-width: none;
  }

  body.home-page .side-nav::-webkit-scrollbar {
    display: none;
  }

  /* BOTÕES */
  body.home-page .side-nav a {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1f1830;
    color: #d1d1d1;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: 0.25s;
  }

  body.home-page .side-nav a:hover {
    background: #2a1f45;
  }

  body.home-page .side-nav a.active {
    background: linear-gradient(90deg, #7c3aed, #facc15);
    color: black;
  }

  /* FADES LATERAIS */
  body.home-page .sidebar::before,
  body.home-page .sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    width: 32px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
  }

  body.home-page .sidebar::before {
    left: 0;
    background: linear-gradient(to right, #140b25, transparent);
  }

  body.home-page .sidebar::after {
    right: 0;
    background: linear-gradient(to left, #140b25, transparent);
  }

  /* MAIN */
  body.home-page .main {
    padding: 20px;
  }

  /* AJUSTES MOBILE */
  body.home-page .video-btn {
    display: none;
  }

  body.home-page .search-box input {
    width: 100%;
  }

  body.home-page .actions {
    flex: 1;
  }

}


@media (max-width: 480px) {
  .grid,
  .trending-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .video-card h4 {
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
  }
}

/* SEARCH BOX */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(31, 24, 48, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 12px 16px 12px 42px; /* espaço para o ícone */
  border-radius: 999px;
  color: white;
  width: 220px;
  outline: none;
  transition: 0.3s;
  font-size: 16px
}

/* placeholder */
.search-box input::placeholder {
  color: #9b8fb8;
}

/* ícone */
.search-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  opacity: 0.6;
  pointer-events: none;
}

/* foco bonito */
.search-box input:focus {
  border-color: #facc15;
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.15),
    0 0 20px rgba(168, 85, 247, 0.35);
  background: #1f1830;
}

/* hover */
.search-box input:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

