:root {
  --primary-color: #0077ff;
  --secondary-color: #222222;
  --accent-color: #00d4ff;
  --text-color: #333333;
  --light-bg: #f8faff;
  --white: #ffffff;
  --shadow-light: 0 6px 20px rgba(0, 119, 255, 0.15);
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.1);
  --error-color: #d93025;
  --error-bg: #fce8e6;
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 0 60px;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 119, 255, 0.1);
}

h1 {
  color: var(--primary-color);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 119, 255, 0.3);
}

header p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-color);
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.profile-header {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  padding: 20px 0;
  box-shadow: var(--shadow-dark);
  margin-bottom: 30px;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.influencers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  padding-bottom: 40px;
}

.influencer-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-light);
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.influencer-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

.influencer-avatar {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.influencer-card:hover .influencer-avatar {
  transform: scale(1.05);
}

.influencer-info {
  padding: 22px 18px 25px;
  text-align: center;
  width: 100%;
}

.influencer-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.influencer-followers {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.social-icons a img {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  filter: grayscale(100%);
}

.social-icons a img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--primary-color);
}

.social-icon.instagram {
  background: linear-gradient(45deg, #833AB4, #C13584, #FD1D1D);
}

.social-icon.tiktok {
  background: linear-gradient(45deg, #010101, #000000);
}

.social-icon.youtube {
  background: linear-gradient(45deg, #FF0000, #CC0000);
}

.social-icon:hover {
  transform: scale(1.25);
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
}

.videos-btn {
  display: inline-block;
  padding: 7px 28px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.5s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
  user-select: none;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.videos-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.6);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  background-color: var(--white);
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px 50px 50px;
  box-shadow: 0 15px 50px rgba(0, 119, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 2.2rem;
  color: var(--secondary-color);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 119, 255, 0.35);
  transition: transform 0.3s ease;
}

.modal-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 6px;
  user-select: none;
  white-space: nowrap;
}

.modal-followers {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  opacity: 0.85;
  user-select: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.video-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background-color: #fafafa;
  min-height: 320px;
  transition: box-shadow 0.3s ease;
}

.video-item:hover {
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.25);
}

.video-views-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-views-badge {
  position: absolute;
  top: 72px;
  left: 12px;
  background-color: rgba(0, 119, 255, 0.85);
  color: white;
  padding: 7px 18px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  z-index: 10;
  display: flex;
  align-items: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 119, 255, 0.4);
  user-select: none;
}

.video-views-badge i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.video-item iframe,
.video-item blockquote {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 0 0 15px 15px;
  pointer-events: auto;
}

.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
  background-color: var(--error-bg);
  color: var(--error-color);
  border-radius: 10px;
  margin: 1.5rem;
  font-weight: 600;
  font-size: 1.15rem;
}

@media (max-width: 1100px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 800px) {
  header {
    padding-bottom: 8px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .modal-content {
    padding: 30px 35px 40px;
  }

  .modal-name {
    font-size: 1.9rem;
  }

  .modal-followers {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-info p {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .influencers-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    flex-direction: column;
    gap: 12px;
  }

  .modal-avatar {
    width: 80px;
    height: 80px;
    border-width: 3px;
  }

  .modal-name {
    font-size: 1.6rem;
    text-align: center;
  }

  .modal-followers {
    font-size: 1rem;
    text-align: center;
  }

  /* 👇 ADIÇÃO FINAL: Corrigir proporção dos ícones em telas pequenas */
  .social-icons a img {
    width: 18px;
    height: 18px;
  }

  .social-icons {
    gap: 6px;
  }
}
