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

body {  
  background: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hide {
  display: none !important;
}

/* div pop-up */

.pop-up {
    background-color: #111111;
    width: 90%;
    max-width: 400px;
    position: fixed;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    padding: 25px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgb(255, 255, 255);
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.title-container h1 {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin: 0;
}

.title-container h2 {
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin: 0;
    opacity: 0.8;
}

.video-title {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    width: 100%;
}

#url-title, #script-title {
    display: none;
}

.verify-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 20px 0;
}

.verify-container h2 {
    color: #fff;
    font-size: 14px;
}

#like-video-ads,
#like-video,
#subscribe-channel {
    background-color: #ff3f3f;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: none;
    border: 0;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15pt;
    width: 300px;
    height: 45px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#like-video:hover,
#like-video-ads:hover,
#subscribe-channel:hover {
    background-color: #ff6060;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#get-script {
    background-color: #d6d9e3;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: 0;
    color: #000;
    font-family: 'Fredoka', sans-serif;
    font-size: 15pt;
    width: 300px;
    height: 45px;
    cursor: pointer;
    transition: background-color 0.3;
}

#close {
    background-color: #ff3f3f;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: none;
    border: 0;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15pt;
    width: 120px;
    height: 45px;
    cursor: pointer;
    transition: background-color 0.3;
}

/* div script-container */

.script-container {
    background-color: #0f0f0f;
    width: 70%;
    max-width: 900px;
    position: fixed;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    padding: 25px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgb(63, 63, 63);
}

.script-code {
    background-color: #181818;
    padding: 15px;
    color: #fff;
    border-radius: 15px;
    font-size: 16px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    word-break: break-all;
    text-align: center;
}

#copy-script {
    background-color: #9900ff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: 0;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15pt;
    width: 250px;
    height: 45px;
    cursor: pointer;
    transition: background-color 0.3;
}

#copy-script:hover {
    background-color: #b44bff;
}

#close-script {
    background-color: #ff3f3f;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: none;
    border: 0;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15pt;
    width: 120px;
    height: 45px; 
    cursor: pointer;
    transition: background-color 0.3;
}

#close-script:hover {
    background-color: #ff6060;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.98) 50%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  padding: 20px;
  animation: overlayFadeIn 0.4s ease-out;
  overflow-y: auto;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.overlay-container {
  display: flex;
  flex-direction: row;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid #8000ff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 32px rgba(128, 0, 255, 0.3);
  position: relative;
  animation: containerSlideUp 0.4s ease-out;
  overflow: hidden;
  box-sizing: border-box;
}

.overlay-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8000ff, transparent);
}

@keyframes containerSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.overlay-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.overlay-video {
  background: linear-gradient(135deg, #2d2d2d, #252525);
  height: 400px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.overlay-description {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.overlay-subtitle-text {
  color: #ffffff;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
}

.overlay-subtitle-text ol {
  padding-left: 20px;
  margin-top: 6px;
}

.overlay-subtitle-text li {
  margin-bottom: 6px;
}

.overlay-subtitle-text a {
  color: #8000ff;
  text-decoration: underline;
  font-weight: 500;
}

.overlay-subtitle-text a:hover {
  color: #9933ff;
}

.overlay-title,
.overlay-subtitle,
.overlay-text-line {
  border-radius: 8px;
  background: linear-gradient(90deg, #8000ff, #9933ff);
  position: relative;
  overflow: hidden;
  animation: shimmer 2s infinite;
}

.overlay-title {
  background: linear-gradient(135deg, #0f0f0f, #0f0f0f);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: break-word;
  box-shadow: 0 0 10px rgba(128, 0, 255, 0.1);
}

.overlay-subtitle {
  width: 80%;
  height: 70px;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.overlay-button {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  padding: 14px 32px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: fit-content;
  transition: all 0.25s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overlay-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.25s ease-out;
}

.overlay-button:hover {
  background: linear-gradient(135deg, #059669, #0f766e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.overlay-button:hover::before {
  left: 100%;
}

.overlay-button:active {
  transform: translateY(0);
}

.overlay-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1a1a1a, #252525);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  gap: 16px;
  overflow-y: auto;
  width: 300px;
}

.overlay-sidebar h3 {
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overlay-sidebar .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #ffffff;
  border: none;
  font-size: 18px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.25s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.overlay-sidebar .close-button:hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.overlay-sidebar .close-button:active {
  transform: rotate(90deg) scale(0.95);
}

.related-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2d2d2d, #252525);
  border-radius: 12px;
  overflow: hidden;
  padding: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  transition: all 0.25s ease-out;
}

.related-video .video-thumb {
  width: 90%;
  height: 150px;
  background: linear-gradient(135deg, #4a5568, #2d3748);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-video span {
  font-size: 12px;
  color: #a1a1aa;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: auto;
  padding: 0 4px;
}

.related-video:hover {
  transform: translateY(-4px);
  border-color: #8000ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(128, 0, 255, 0.1);
}

.related-video:hover span {
  color: #ffffff;
}

/* div main-container */

.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    flex: 1;
}

.search-bar {
    width: 100%;
    max-width: 1000px;
    margin: 7rem auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}


.search-bar label {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.search-bar input {
    background: linear-gradient(137deg, rgba(17, 18, 20, .75) 4.87%, rgba(12, 13, 15, .9) 75.88%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 25px;
    width: 100%;
    height: 50px;
    color: #fff;
    font-size: 16px;
    padding: 0 20px;
    outline: none;
}

.videos-container {
    background: linear-gradient(137deg, rgba(17, 18, 20, .75) 4.87%, rgba(12, 13, 15, .9) 75.88%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    width: 90%; 
    max-width: 1400px; 
    border-radius: 25px;
    padding: 30px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

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

.video-container {
    background-color: #111111;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    padding: 15px;
    transition: transform 0.2s;
    height: 100%;
    color: #fff;
    min-height: 200px;
    font-size: 1.1rem; 
    font-family: 'Fredoka', sans-serif;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    width: 100%;
    height: 190px;
    margin-bottom: 15px;
}

.video-title {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    width: 100%;
}

.video-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

/* footer */

.footer-container {
    background: #0a0a0a;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container a {
    color: #9900ff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-container a:hover {
    color: #b44bff;
}

/* ===============================
   AJUSTES DE RESPONSIVIDADE
   =============================== */

/* Telas até 1200px — notebooks e tablets grandes */
@media (max-width: 1200px) {
  .overlay-container {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .overlay-main {
    width: 100%;
  }

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

/* Telas até 900px — tablets e celulares grandes */
@media (max-width: 900px) {
  .videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .overlay-container {
    padding: 24px;
    gap: 20px;
  }

  .overlay-video {
    height: 300px;
  }

  .overlay-description {
    padding: 16px;
  }

  .video-container {
    font-size: 1rem;
    padding: 12px;
  }

  .search-bar label {
    font-size: 22px;
  }

  .search-bar input {
    height: 45px;
    font-size: 14px;
  }
}

/* Telas até 600px — celulares */
@media (max-width: 600px) {
  .videos {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .overlay-container {
    padding: 16px;
    width: 95%;
    min-height: auto;
  }

  .overlay-video {
    height: 220px;
  }

  .overlay-description {
    padding: 14px;
    font-size: 14px;
  }

  .overlay-button {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .related-video {
    height: 160px;
  }

  .related-video .video-thumb {
    height: 120px;
  }

  .pop-up,
  .script-container {
    width: 90%;
    max-width: 95%;
    padding: 20px;
  }

  .buttons button,
  #get-script,
  #like-video,
  #subscribe-channel {
    width: 100%;
    font-size: 14pt;
    height: 40px;
  }

  .search-bar {
    margin-top: 5rem;
  }

  .search-bar label {
    font-size: 18px;
  }

  .footer-container a {
    font-size: 14px;
  }
}

/* Telas muito pequenas (até 400px) */
@media (max-width: 400px) {
  .video-container {
    padding: 10px;
  }

  .video {
    height: 160px;
  }

  .overlay-video {
    height: 180px;
  }

  .overlay-button {
    font-size: 13px;
    padding: 10px 20px;
  }

  .pop-up {
    padding: 16px;
  }

  .video-title {
    font-size: 14px;
  }

  .verify-container h2 {
    font-size: 12px;
  }
}
