/* ========================= */
/* TOPCLIPADAS PAGE */
/* ========================= */

.topclipadas-page .main {
  padding: 24px 36px;
}

/* HEADER */

.topclipadas-header {
  margin-top: 10px;
  margin-bottom: 20px;
}

.topclipadas-header h1 {
  font-size: 28px;
  font-weight: 700;
}


/* TABS */

.subcategory-tabs {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.subcategory-tab {
  padding: 8px 16px;
  background: #1f1830;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
  color: white;
}

.subcategory-tab:hover {
  background: #2a1f45;
}

.subcategory-tab.active {
  background: linear-gradient(135deg,#7c3aed,#facc15);
  color: white;
  font-weight: 600;
}

/* GRID */

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

/* CARD */

.video-card {
  background: #120b22;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
}

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

/* THUMB */

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  overflow: hidden;
  border-radius: 14px;
}

.thumb.vertical {
  aspect-ratio: 9 / 16;
}

.thumb.vertical img {
  object-fit: cover;
  object-position: center;
}

.thumb img,
.thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* IMPORTANTE PARA TWITCH */
.thumb iframe {
  pointer-events: none;
}

/* PLAY ICON */

.thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: .25s;
}

.video-card:hover .play {
  opacity: 1;
}

/* INFO */

.info {
  padding: 14px;
}

.info h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

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

/* GRID SHORTS */
.topclipadas-grid.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 260px);
  gap: 28px;
  justify-content: start;
}

/* GRID TWITCH */
.topclipadas-grid.twitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 28px;
}

/* SOBRESCREVER limite global dos cards */
.topclipadas-page .video-card.short-card {
  max-width: 260px !important;
  width: 260px !important;
}

.topclipadas-page .video-card .thumb {
  height: auto !important;
}

.topclipadas-page .layout {
  min-height: auto;
}

/* ========================= */
/* BANNER TOPCLIPADAS */
/* ========================= */

.topclipadas-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 30px 0;
}

.topclipadas-banner img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: .4s ease;

  box-shadow:
    0 0 25px rgba(255, 0, 150, 0.4),
    0 0 45px rgba(255, 200, 0, 0.4);
}

.topclipadas-banner img:hover {
  transform: scale(1.02);
}

/* esconder botão no desktop */
  .mobile-menu-btn {
    display: none;
  }

.modal-nav {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,10,40,0.75);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover premium */
.modal-nav button:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg,#7c3aed,#facc15);
  color: black;
  box-shadow:
    0 10px 25px rgba(124,58,237,.4),
    0 0 20px rgba(250,204,21,.4);
}

/* Click effect */
.modal-nav button:active {
  transform: scale(0.92);
}

.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 */

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

@media (max-width: 600px) {
  .topclipadas-grid {
    grid-template-columns: 1fr;
  }
}


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

@media (max-width: 768px) {

  /* MAIN padding menor */
  .topclipadas-page .main {
    padding: 16px;
  }

  /* BANNER menor no mobile */
  .topclipadas-banner img {
    max-width: 100%;
  }

  /* TABS centradas */
  .subcategory-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .subcategory-tab {
    font-size: 13px;
    padding: 6px 14px;
  }

  /* GRID sempre 1 coluna */
  .topclipadas-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Shorts ocupam largura toda */
  .topclipadas-page .video-card.short-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Twitch também largura total */
  .topclipadas-page .video-card.twitch-card {
    max-width: 100%;
  }

  /* Ajustar thumbs */
  .thumb {
    border-radius: 14px;
  }

  /* Info mais confortável */
  .info h3 {
    font-size: 14px;
  }

  .info span {
    font-size: 12px;
  }

   /* SIDEBAR OFF-CANVAS */
  body.topclipadas-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #1a0f2e, #0b0713);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  /* sidebar aberta */
  body.topclipadas-page.sidebar-open .sidebar {
    transform: translateX(0);
  }

/* BOTÃO ☰ */
  body.topclipadas-page .mobile-menu-btn {
    display: block;
    background: none;
    border: 0;
    color: white;
    font-size: 26px;
    cursor: pointer;
  }

 /* Shorts menos altos no mobile */
 .topclipadas-page .thumb.vertical {
    aspect-ratio: 9 / 9 !important;
  }
}
