*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: radial-gradient(circle at top left, #ffe6f7, #f4f7ff 40%, #ffffff);
  color: #111827;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  background-image: url('https://images.pexels.com/photos/3661394/pexels-photo-3661394.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(76, 29, 149, 0.8),
    rgba(236, 72, 153, 0.85)
  );
  backdrop-filter: blur(6px);
}

.hero-content {
  position: relative;
  max-width: 720px;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  margin: 0.75rem 0 1rem;
  letter-spacing: 0.03em;
}

.hero p {
  margin: 0 0 1.5rem;
  font-weight: 300;
  font-size: 0.98rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
  background: #ea580c;
}

.section {
  padding: 3.5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-alt {
  background: radial-gradient(circle at top right, #fef3c7, #f9fafb 50%, #ffffff);
  border-radius: 2rem 2rem 0 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.section-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.3rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.11);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.18);
}

.card-image-wrapper {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 55%);
}

.card-name {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.badge-soft {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.btn-vote {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-vote:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.45);
}

.btn-vote:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.info-text {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.info-text.error {
  color: #b91c1c;
}

.hidden {
  display: none !important;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.result-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-rank {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
}

.result-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.result-votes {
  font-weight: 500;
  font-size: 0.9rem;
  color: #111827;
}

.result-bar {
  position: relative;
  width: 120px;
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.result-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ec4899, #f97316);
  transform-origin: left;
}

.footer {
  margin-top: auto;
  padding: 1.4rem 1.5rem 1.8rem;
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  padding: 1.8rem 1.6rem 1.6rem;
  background: #ffffff;
  border-radius: 1.3rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.4);
  z-index: 1;
}

.modal-video {
  max-width: 960px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal-video-close {
  top: 1.5rem;
  right: 1.5rem;
  color: #f9fafb;
  z-index: 2;
}

.modal-close {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b7280;
}

.modal h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.modal-subtitle {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form-input {
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.28);
}

.form-hint {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.btn-primary {
  margin-top: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(236, 72, 153, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.45);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.form-message {
  min-height: 1.1rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.success {
  color: #15803d;
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
  }

  .card-body {
    padding: 0.95rem 1rem 1.05rem;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .result-bar {
    width: 100%;
  }
}

