/* ============================================================
   Anime Oylama - Ana Stil Dosyasi v2
   Koyu anime temali, glassmorphism, parcacik efektli tasarim
   Crunchyroll Anime Awards / AnimePoll kalitesinde
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Degiskenleri --- */
:root {
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1e;
  --bg-card: rgba(18, 18, 50, 0.6);
  --bg-card-solid: #12122e;
  --bg-card-hover: rgba(30, 30, 70, 0.7);
  --text-primary: #eeeeff;
  --text-secondary: #9999bb;
  --text-muted: #555577;
  --accent-primary: #7c3aed;
  --accent-secondary: #a855f7;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --border-color: rgba(124, 58, 237, 0.15);
  --border-glow: rgba(124, 58, 237, 0.4);
  --glass-bg: rgba(12, 12, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --card-radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1300px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Animasyonlu Parcacik Arka Plan --- */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 5% 70%, rgba(6, 182, 212, 0.07) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

body::after {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(168, 85, 247, 0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 45%, rgba(236, 72, 153, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 15%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 70%, rgba(168, 85, 247, 0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 35%, rgba(6, 182, 212, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 80%, rgba(236, 72, 153, 0.25) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 65%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 50% 90%, rgba(168, 85, 247, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 10%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 55%, rgba(6, 182, 212, 0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 85%, rgba(168, 85, 247, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.15) 50%, transparent 50%);
  animation: starsDrift 30s linear infinite;
}

@keyframes starsDrift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-40px);
  }
}

/* --- Glassmorphism --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  transform: translate3d(0, 0, 0);
  /* Force GPU Layer */
}

@media (max-width: 768px) {
  :root {
    --glass-blur: 8px;
  }

  .glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.glass-strong {
  background: rgba(12, 12, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
}

@media (max-width: 768px) {
  .glass-strong {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ANA SAYFA HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 60px var(--accent-glow);
}

.hero-logo svg {
  width: 60px;
  height: 60px;
  color: white;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-secondary) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.hero .event-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-secondary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-categories {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.hero-cat-pill {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: var(--transition);
}

.hero-cat-pill:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-secondary);
  border-color: rgba(124, 58, 237, 0.3);
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-pink));
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-small {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ============================================================
   OYLAMA - SECTION LAYOUT
   ============================================================ */
.vote-section {
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.vote-section:not(.hidden) {
  display: flex !important;
}

.pill-nav-wrap {
  padding: 16px 16px 0;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  /* Sag ve sol kenarlara fade efekti (transparanlik) vererek kaydirilabilirligi vurgulariz */
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

@media (max-width: 768px) {
  .pill-nav-wrap {
    padding: 12px 0 0;
    /* Mobilde mask alanini daraltalim ki daha genis alan kaydirilsin */
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  }
}

.pill-nav {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(12, 12, 30, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  justify-content: flex-start;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

@media (max-width: 768px) {
  .pill-nav {
    border-radius: 0;
    /* Mobilde tam genislikte ekran kenarina yapisik daha iyi durur */
    border-left: none;
    border-right: none;
    padding: 8px 16px;
  }
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.pill-btn:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.pill-btn.completed::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ============================================================
   OYLAMA - PROGRESS
   ============================================================ */
.progress-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 4px;
  padding: 0 20px;
  flex-shrink: 0;
}

.progress-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   OYLAMA - HEADER
   ============================================================ */
.vote-header {
  text-align: center;
  padding: 12px 20px 4px;
  flex-shrink: 0;
}

.vote-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vote-header h2 svg {
  width: 28px;
  height: 28px;
  color: var(--accent-secondary);
  -webkit-text-fill-color: initial;
}

.vote-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   ADAY KARTLARI
   ============================================================ */
.candidates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  align-content: center;
}

.candidate-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: var(--card-w, 150px);
  flex-shrink: 0;
}

.candidate-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  opacity: 0;
  transition: opacity 0.35s;
  background: linear-gradient(180deg, transparent 40%, rgba(124, 58, 237, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

.candidate-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}

.candidate-card:hover::after {
  opacity: 1;
}

.candidate-card.selected {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.candidate-card.selected .candidate-check {
  opacity: 1;
  transform: scale(1);
}

.candidate-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.candidate-check svg {
  width: 16px;
  height: 16px;
  color: white;
}

.candidate-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-secondary);
  display: block;
  transition: transform 0.5s ease;
}

.candidate-card:hover .candidate-image {
  transform: scale(1.05);
}

.candidate-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(124, 58, 237, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: 700;
}

.candidate-info {
  padding: 16px;
  position: relative;
  z-index: 2;
}

.candidate-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.candidate-info .anime-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* ============================================================
   İZLE BUTONU (OP/ED Kartlarında)
   ============================================================ */
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08));
  color: var(--accent-secondary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(4px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.listen-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
}

.listen-btn:hover {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow), 0 0 20px rgba(236, 72, 153, 0.15);
}

.listen-btn:hover::before {
  opacity: 1;
}

.listen-btn svg,
.listen-btn span {
  position: relative;
  z-index: 1;
}

.listen-btn svg {
  width: 14px;
  height: 14px;
}

/* Dual image fix */
.candidate-image-wrapper {
  transition: transform 0.4s ease;
}

.candidate-card:hover .candidate-image-wrapper {
  transform: scale(1.05);
  /* Wrapper'ı büyüt ki yan yana resimler bozulmasın */
}

.candidate-dual-half {
  width: 50% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
  /* Kendileri ayrıca büyümesin */
  flex-shrink: 0;
}

/* ============================================================
   VIDEO MODAL — Premium İzleme Deneyimi
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0a0a18;
  width: 100%;
  max-width: 920px;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(124, 58, 237, 0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay:not(.hidden) .modal-content {
  transform: translateY(0) scale(1);
}

/* Kapatma Butonu */
.modal-close-global {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(10, 10, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10002;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-close-global:hover {
  background: rgba(239, 68, 68, 0.7);
  color: #fff;
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Video Kapsayıcısı */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  background: #000;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  outline: none;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   VIDEO MODAL — Bilgi Paneli (Glassmorphism)
   ============================================================ */
.video-info-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(12, 12, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.video-info-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-secondary);
}

.video-info-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(124, 58, 237, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-info-thumb-placeholder svg {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.video-info-text {
  flex: 1;
  min-width: 0;
}

.video-info-song {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.video-info-anime {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.video-info-counter {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* Modal İçi Oy Butonu */
.video-vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.08));
  color: var(--accent-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.video-vote-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.video-vote-btn:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.video-vote-btn.voted {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  pointer-events: none;
}

.video-vote-btn.voted svg {
  transform: scale(1.2);
}

/* ============================================================
   VIDEO MODAL — Navigasyon Okları
   ============================================================ */
.video-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.video-nav-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-nav-prev {
  left: 0;
  border-radius: 20px 0 0 0;
}

.video-nav-prev::before {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}

.video-nav-next {
  right: 0;
  border-radius: 0 20px 0 0;
}

.video-nav-next::before {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}

.video-nav-arrow:hover {
  color: #fff;
}

.video-nav-arrow:hover::before {
  opacity: 1;
}

.video-nav-arrow svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.video-nav-prev:hover svg {
  transform: translateX(-3px);
}

.video-nav-next:hover svg {
  transform: translateX(3px);
}

.video-nav-arrow:active svg {
  transform: scale(0.9);
}

.video-nav-arrow.hidden-arrow {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   VIDEO MODAL — Responsive
   ============================================================ */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .modal-close-global {
    top: 12px;
    right: 12px;
    width: 44px; /* Mobilde daha kolay dokunma için 44px standarta çekildi */
    height: 44px;
    font-size: 1.5rem;
  }

  .video-container {
    border-radius: 0;
    flex-shrink: 0;
  }

  .video-container video {
    border-radius: 0 !important;
  }

  .video-info-panel {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .video-info-thumb,
  .video-info-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .video-info-song {
    font-size: 0.9rem;
  }

  .video-info-text {
    min-width: 0;
    /* Mobilde info text ile vote btn yan yana sığmazsa alta at */
  }

  .video-vote-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .video-nav-arrow {
    width: 44px;
  }

  .video-nav-arrow svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 400px) {
  .video-info-panel {
    padding: 12px 14px;
  }

  .video-info-thumb,
  .video-info-thumb-placeholder {
    display: none;
  }

  .video-vote-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .video-info-panel {
    flex-wrap: wrap;
  }
}

/* Kategori gecis animasyonu */
.category-enter {
  animation: categorySlideIn 0.4s ease forwards;
}

@keyframes categorySlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   OYLAMA NAVIGASYONU
   ============================================================ */
.vote-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
  /* Safe area insets for notches/home indicators on mobile */
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* ============================================================
   ONAY EKRANI
   ============================================================ */
.confirm-screen {
  max-width: 850px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
}

.confirm-screen h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confirm-screen .confirm-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.confirm-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.confirm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.confirm-item:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

.confirm-item-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.confirm-item-img-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(124, 58, 237, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.confirm-item-text {
  flex: 1;
  min-width: 0;
}

.confirm-item-category {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.confirm-item-name {
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.confirm-bottom-actions {
  position: -webkit-sticky;
  position: sticky;
  bottom: 20px;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* soft outline */
  border-radius: 24px;
  /* soft rounded edges */
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.kvkk-consent-wrap {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.kvkk-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

#kvkkCheckbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-orange);
}

.kvkk-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* ============================================================
   HATIRA KARTI SAYFASI
   ============================================================ */
.hatira-page-notice {
  position: relative;
  z-index: 2;
  padding: var(--space-sm) max(16px, env(safe-area-inset-left, 0px)) 0
    max(16px, env(safe-area-inset-right, 0px));
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hatira-page-notice__box {
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--card-radius);
  background: rgba(239, 68, 68, 0.07);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.08);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 100%;
}

.hatira-page-notice__box svg {
  flex-shrink: 0;
  color: #f87171;
}

.hatira-page-notice__box > div {
  width: 100%;
  text-align: center;
}

.hatira-page-notice__box p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hatira-page-notice__box p + p {
  margin-top: 10px;
}

.hatira-page-notice__box a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hatira-page-notice__box a:hover {
  color: #fca5a5;
}

@media (max-width: 480px) {
  .hatira-page-notice {
    max-width: min(520px, 100%);
    padding-top: 12px;
  }

  .hatira-page-notice__box {
    padding: 12px 14px;
    gap: 10px;
  }

  .hatira-page-notice__box svg {
    width: 20px;
    height: 20px;
  }

  .hatira-page-notice__box p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

.card-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 20px;
  position: relative;
  z-index: 1;
}

.card-page h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-page .card-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  text-align: center;
  font-size: 0.95rem;
}

.card-download-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.card-preview-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.card-preview-wrapper:hover {
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.card-preview-wrapper canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Paylasim */
.share-section {
  text-align: center;
  margin-bottom: var(--space-md);
}

.share-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn:active {
  transform: scale(0.97);
}

.share-native {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 4px 16px var(--accent-glow);
}

.share-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.25);
}

.share-tiktok {
  background: #010101;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-tiktok:hover {
  box-shadow: 0 0 14px rgba(37, 244, 238, 0.25), 0 0 14px rgba(254, 44, 85, 0.25);
}

.share-x {
  background: #14171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-x:hover {
  background: #1a1f24;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 20px;
}

.admin-login h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.admin-login-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-login-form input {
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  width: 260px;
}

.admin-login-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.admin-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg) 20px;
}

.admin-dashboard h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.admin-stats {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card-solid);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  flex: 1;
  min-width: 140px;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-category {
  background: var(--bg-card-solid);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.admin-category-header {
  padding: var(--space-sm) 20px;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-candidate-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  gap: 16px;
}

.admin-candidate-row:last-child {
  border-bottom: none;
}

.admin-candidate-name {
  flex: 1;
  font-weight: 500;
}

.admin-candidate-votes {
  font-weight: 700;
  color: var(--accent-secondary);
  font-size: 1.1rem;
  min-width: 40px;
  text-align: right;
}

.candidate-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #1a1a2e 8%, #252545 18%, #1a1a2e 33%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s linear infinite;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.candidate-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  transition: background-color 0.3s ease;
}

.admin-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ============================================================
   LOADING / SPINNERS
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* --- Identity Recovered (Welcome Back) --- */
.identity-recovered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: var(--space-lg) 20px;
}

.recovered-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: fadeInDown 0.6s ease both;
}

.recovered-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.recovered-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.recovered-card-preview {
  width: 100%;
  max-width: 400px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.3s both;
  position: relative;
}

.recovered-card-preview::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

.btn-premium {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
  padding: 18px 48px;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.btn-premium:hover {
  box-shadow: 0 15px 45px rgba(6, 182, 212, 0.5);
}

/* --- Improved Loading --- */
.loading-overlay {
  background: var(--bg-primary);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(124, 58, 237, 0.1);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 20px var(--accent-glow);
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   ALERT / MESAJLAR
   ============================================================ */
.alert {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 24px;
  border-radius: 12px;
  text-align: center;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-orange);
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

/* ============================================================
   YARDIMCI SINIFLAR
   ============================================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-4 {
  margin-top: var(--space-md);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

/* ============================================================
   ANIMASYONLAR
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.fade-in-up-delay-1 {
  animation-delay: 0.12s;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation-delay: 0.24s;
  opacity: 0;
}

.fade-in-up-delay-3 {
  animation-delay: 0.36s;
  opacity: 0;
}

.fade-in-up-delay-4 {
  animation-delay: 0.48s;
  opacity: 0;
}

.fade-in-up-delay-5 {
  animation-delay: 0.60s;
  opacity: 0;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 4px 24px var(--accent-glow);
  }

  50% {
    box-shadow: 0 4px 40px rgba(124, 58, 237, 0.6), 0 0 60px rgba(124, 58, 237, 0.2);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .candidates-grid {
    gap: 10px;
    padding: 8px 12px;
    overflow: hidden;
  }

  .confirm-list {
    grid-template-columns: 1fr;
  }

  .admin-bar-wrapper {
    width: 80px;
  }

  .pill-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 5px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .pill-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .vote-header {
    padding: 8px 16px 4px;
  }

  .vote-header p {
    display: none;
  }

  .progress-container {
    margin-bottom: 2px;
  }

  .progress-info {
    margin-bottom: 6px;
    font-size: 0.85rem;
  }

  .vote-nav {
    padding: 12px 16px 16px;
    flex-shrink: 0;
    min-height: 52px;
  }

  .candidate-info {
    padding: 10px 12px;
  }

  .candidate-info h3 {
    font-size: 0.9rem;
  }

  .candidate-info .anime-name {
    font-size: 0.76rem;
  }

  .hero-categories {
    gap: 8px;
    margin-bottom: var(--space-md);
  }

  .hero-cat-pill {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .candidates-grid {
    gap: 8px;
    padding: 4px 8px;
  }

  .candidate-info {
    padding: 8px 10px;
  }

  .candidate-info h3 {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .candidate-info .anime-name {
    font-size: 0.7rem;
  }

  .vote-nav {
    padding: 8px 12px 14px;
    gap: 10px;
  }

  .btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .confirm-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .candidate-check {
    width: 26px;
    height: 26px;
    top: 6px;
    right: 6px;
  }

  .candidate-check svg {
    width: 13px;
    height: 13px;
  }

  .confirm-bottom-actions {
    padding: 12px;
    margin-top: 12px;
    border-radius: 16px;
    bottom: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  }

  .kvkk-consent-wrap {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
  }

  .kvkk-label {
    gap: 8px;
  }

  #kvkkCheckbox {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  .kvkk-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .turnstile-wrap {
    margin-bottom: 12px;
    transform: scale(0.9);
    transform-origin: center;
  }

  .confirm-actions {
    gap: 10px;
  }

}

/* Dokunmatik cihazlar */
@media (hover: none) {
  .candidate-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .candidate-card:hover::after {
    opacity: 0;
  }

  .candidate-card:hover .candidate-image {
    transform: none;
  }

  .candidate-card:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }

  .candidate-card.selected:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 24px var(--accent-glow);
  }

  .btn:hover {
    transform: none;
    box-shadow: 0 4px 24px var(--accent-glow);
  }

  .btn:active {
    transform: scale(0.97);
  }

  .card-preview-wrapper:hover {
    transform: none;
  }
}

/* iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {

  .vote-nav,
  .card-download-actions,
  .confirm-actions {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Cok kucuk ekranlar */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .btn-small {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .candidates-grid {
    gap: 6px;
    padding: 2px 6px;
  }

  .candidate-info h3 {
    font-size: 0.76rem;
  }

  .candidate-info .anime-name {
    font-size: 0.65rem;
  }

  .candidate-info {
    padding: 6px 8px;
  }

  .card-preview-wrapper {
    max-width: calc(100vw - 32px);
  }

  .pill-btn {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .vote-header h2 {
    font-size: 1.1rem;
    gap: 6px;
  }

  .vote-header h2 svg {
    width: 20px;
    height: 20px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Erisebilirlik & Performans */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body::before,
  body::after {
    display: none;
  }

  /* Ağır arka planları kapat */
  .glass,
  .glass-strong {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-card-solid);
  }
}

/* Low Performance Mode (Auto-detected) */
.low-perf-device body::after {
  display: none !important;
  /* Yıldız kaymasını kapat */
}

.low-perf-device body::before {
  animation: none !important;
  /* Stop heavy gradient shifts */
}

/* Glass ve blur efektlerini kapat, düz arkapan tanımla */
.low-perf-device .glass,
.low-perf-device .glass-strong,
.low-perf-device .vote-nav,
.low-perf-device .confirm-bottom-actions,
.low-perf-device .modal-overlay,
.low-perf-device .video-info-panel,
.low-perf-device .modal-close-global {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(12, 12, 30, 0.98) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

/* Candidate Card Performans Artışı: Gölge, transform ve glow kapalı */
.low-perf-device .candidate-card {
  box-shadow: none !important;
  transform: none !important;
  transition: transform 0.1s, border-color 0.1s !important;
}

.low-perf-device .candidate-card:hover,
.low-perf-device .candidate-card.selected,
.low-perf-device .candidate-card.selected:hover {
  box-shadow: none !important;
  transform: scale(0.98) !important;
  border-width: 2px !important;
}

/* Reduce transition times for snappier feel on slow devices */
.low-perf-device *,
.low-perf-device *::before,
.low-perf-device *::after {
  transition-duration: 0.1s !important;
  animation-duration: 0.1s !important;
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: white;
}

/* ============================================================
   CONSENT BANNER (GDPR / Fingerprinting)
   ============================================================ */
.consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  max-width: 380px;
  padding: 20px;
  background: rgba(12, 12, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.1);
  animation: slideUpIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-orange);
  font-size: 1.1rem;
}

.consent-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-text a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-ack {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ack:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* KVKK Checkbox Güzelleştirme */
#kvkkCheckbox {
  cursor: pointer;
  accent-color: var(--accent-primary);
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

#kvkkCheckbox:active {
  transform: scale(0.9);
}