/**
 * next/assets/css/next.css
 * 42Code Next (next.42code.net) — 3-1-2 Havada Süzülen Podyum + Dikey Kart Vitrin Tasarımı
 */

:root {
  --nx-bg: #161618;
  --nx-bg-elevated: #1e1e22;
  --nx-surface: #222227;
  --nx-surface-hover: #28282f;
  --nx-text: #ffffff;
  --nx-text-soft: #d4d4d8;
  --nx-muted: #8e8e98;
  --nx-border: rgba(255, 255, 255, 0.09);
  --nx-border-strong: rgba(255, 255, 255, 0.18);
  --nx-gold: #f5c542;
  --nx-silver: #cbd5e1;
  --nx-bronze: #d98a52;
  --nx-success: #4ade80;
  --nx-success-bg: rgba(34, 197, 94, 0.14);
  --nx-success-border: rgba(74, 222, 128, 0.35);
  --nx-radius: 16px;
  --nx-font: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--nx-font);
  background: var(--nx-bg);
  color: var(--nx-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   HEADER (Kompakt tek şerit)
   ========================================================================= */
.nx-header {
  background: rgba(22, 22, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nx-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nx-header-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nx-text);
}

.nx-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nx-brand-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nx-brand-sub {
  display: block;
  font-size: 11.5px;
  color: var(--nx-muted);
}

.nx-header-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nx-border);
  font-size: 12px;
}

.nx-cd-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nx-text-soft);
  font-weight: 700;
}

.nx-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.nx-cd-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--nx-muted);
}

.nx-cd-inline strong {
  color: #ffffff;
  font-weight: 900;
  margin-right: 1px;
}

.nx-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-mini-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nx-muted);
}

.nx-mini-stats strong {
  color: #ffffff;
  font-weight: 800;
}

.nx-sep {
  opacity: 0.4;
}

/* Buttons */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nx-btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.nx-btn-primary {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.nx-btn-primary:hover:not(:disabled) {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.nx-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--nx-border-strong);
}

.nx-btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.nx-btn-voted {
  background: var(--nx-success-bg);
  color: var(--nx-success);
  border-color: var(--nx-success-border);
  cursor: default;
}

.nx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================================
   MAIN CONTAINER & TOOLBAR
   ========================================================================= */
.nx-container {
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 60px;
  flex: 1 0 auto;
}

.nx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.nx-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-border);
  border-radius: 11px;
  padding: 4px;
}

.nx-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--nx-muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.nx-tab:hover {
  color: #ffffff;
}

.nx-tab.active {
  background: #ffffff;
  color: #111111;
}

.nx-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nx-category-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nx-cat-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--nx-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nx-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.nx-cat-pill:hover {
  color: #ffffff;
  border-color: var(--nx-border-strong);
}

.nx-cat-pill.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}

.nx-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nx-search-wrap svg {
  position: absolute;
  left: 11px;
  color: var(--nx-muted);
  pointer-events: none;
}

.nx-search-wrap input {
  width: 210px;
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--nx-border);
  border-radius: 9px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nx-search-wrap input::placeholder {
  color: var(--nx-muted);
}

.nx-search-wrap input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* Viewer Banner */
.nx-viewer-banner {
  margin-bottom: 20px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--nx-success-bg);
  border: 1px solid var(--nx-success-border);
  color: var(--nx-success);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================================
   TOP STAGE: Sol Köşe 3-1-2 Podyum (Havada Süzülen İkonlar) + Sağda 1-2-3 Kartlar
   ========================================================================= */
.nx-top-stage {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

/* PODYUM ALANI (3 - 1 - 2) */
.nx-podium-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 65%, transparent 100%);
  border: 1px solid var(--nx-border);
  border-radius: 20px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.nx-podium-caption {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-muted);
}

.nx-podium-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 10px;
  padding-top: 44px;
}

.nx-podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.nx-podium-col.is-empty {
  cursor: default;
  opacity: 0.45;
}

/* Havada Süzülen App İkonu */
.nx-float-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.nx-float-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #27272d;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  animation: nxFloatBob 3.2s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nx-podium-col.rank-1 .nx-float-icon {
  width: 74px;
  height: 74px;
  border-radius: 19px;
  border-color: var(--nx-gold);
  box-shadow: 0 18px 36px rgba(245, 197, 66, 0.22), 0 14px 28px rgba(0, 0, 0, 0.55);
  animation-duration: 2.9s;
  animation-delay: 0s;
}

.nx-podium-col.rank-2 .nx-float-icon {
  border-color: var(--nx-silver);
  animation-duration: 3.4s;
  animation-delay: -1.1s;
}

.nx-podium-col.rank-3 .nx-float-icon {
  border-color: var(--nx-bronze);
  animation-duration: 3.7s;
  animation-delay: -2.1s;
}

.nx-podium-col:hover:not(.is-empty) .nx-float-icon {
  border-color: #ffffff;
}

.nx-float-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Süzülme gölgesi */
.nx-float-shadow {
  width: 42px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, transparent 72%);
  animation: nxFloatShadow 3.2s ease-in-out infinite;
}

.nx-podium-col.rank-1 .nx-float-shadow {
  width: 52px;
  animation-duration: 2.9s;
}

.nx-podium-col.rank-2 .nx-float-shadow {
  animation-duration: 3.4s;
  animation-delay: -1.1s;
}

.nx-podium-col.rank-3 .nx-float-shadow {
  animation-duration: 3.7s;
  animation-delay: -2.1s;
}

@keyframes nxFloatBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-11px); }
}

@keyframes nxFloatShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.7; }
  50% { transform: scaleX(0.76); opacity: 0.35; }
}

.nx-podium-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--nx-text-soft);
  text-align: center;
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

/* Basamaklar (3 kısa, 1 en yüksek, 2 orta) */
.nx-podium-step {
  width: 100%;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--nx-border-strong);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 6px 10px;
  gap: 3px;
}

.nx-podium-col.rank-1 .nx-podium-step {
  height: 156px;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(245, 197, 66, 0.45);
}

.nx-podium-col.rank-2 .nx-podium-step {
  height: 114px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(203, 213, 225, 0.32);
}

.nx-podium-col.rank-3 .nx-podium-step {
  height: 82px;
  background: linear-gradient(180deg, rgba(217, 138, 82, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(217, 138, 82, 0.32);
}

.nx-step-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.nx-podium-col.rank-1 .nx-step-num { color: var(--nx-gold); font-size: 32px; }
.nx-podium-col.rank-2 .nx-step-num { color: var(--nx-silver); }
.nx-podium-col.rank-3 .nx-step-num { color: var(--nx-bronze); }

.nx-step-votes {
  font-size: 11px;
  font-weight: 800;
  color: var(--nx-text-soft);
}

/* SAĞ ÜST: 1 - 2 - 3 DİKEY KARTLAR */
.nx-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.nx-top3-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nx-top3-rank-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nx-top3-rank-label.rank-1 { color: var(--nx-gold); }
.nx-top3-rank-label.rank-2 { color: var(--nx-silver); }
.nx-top3-rank-label.rank-3 { color: var(--nx-bronze); }

.nx-top3-rank-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================================
   ALT BÖLÜM: TAM GENİŞLİK DİKEY KART GRİD (#4 ve sonrası)
   ========================================================================= */
.nx-rest-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nx-rest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* =========================================================================
   DİKEY PORTRE KART (Mavi alan = Sol üst App Icon, İsim + Bilgi Kart İçinde)
   ========================================================================= */
.nx-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  aspect-ratio: 3 / 4.25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.nx-top3-slot .nx-card {
  aspect-ratio: 3 / 4.15;
}

.nx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.65);
}

.nx-card.is-rank-1 {
  border-color: rgba(245, 197, 66, 0.55);
}

.nx-card.is-voted {
  border-color: var(--nx-success-border);
}

/* Tam kart arka plan ekran görüntüsü (1-3 görsel) */
.nx-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, #27272e 0%, #17171b 100%);
}

.nx-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.nx-card:hover .nx-card-bg-img {
  transform: scale(1.04);
}

.nx-card-bg-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.14);
}

/* Kart içi okunurluk gradyanı */
.nx-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 15, 0.45) 0%,
    rgba(12, 12, 15, 0.08) 34%,
    rgba(12, 12, 15, 0.72) 66%,
    rgba(10, 10, 13, 0.96) 100%
  );
  pointer-events: none;
}

/* SOL ÜST KÖŞE APP ICON (Çizimdeki Mavi Alan) */
.nx-app-icon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #18181c;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}

.nx-top3-slot .nx-app-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.nx-app-icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-app-icon-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2b2b34 0%, #141418 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sağ üst köşe küçük sıra/kazanan etiketi */
.nx-card-corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(14, 14, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.nx-card-corner-badge.is-winner {
  background: rgba(21, 128, 61, 0.9);
  border-color: rgba(74, 222, 128, 0.45);
}

/* Çoklu görsel kontrolleri (2-3 görsel varsa) */
.nx-slide-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 16, 0.65);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.nx-card:hover .nx-slide-btn {
  opacity: 1;
}

.nx-slide-btn:hover {
  background: rgba(12, 12, 16, 0.92);
}

.nx-slide-prev { left: 8px; }
.nx-slide-next { right: 8px; }

.nx-slide-dots {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.58);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.nx-slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: none;
  padding: 0;
  cursor: pointer;
}

.nx-slide-dot.active {
  background: #ffffff;
  width: 14px;
}

/* KART İÇİ ALT İÇERİK (İsim + Oy + Aksiyonlar kartın içinde) */
.nx-card-overlay {
  position: relative;
  z-index: 4;
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nx-card-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-top3-slot .nx-card-title {
  font-size: 17px;
}

.nx-card-title:hover {
  text-decoration: underline;
}

.nx-card-tagline {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.nx-vote-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nx-vote-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.nx-vote-meter-count {
  font-weight: 800;
  color: #ffffff;
}

.nx-vote-meter-pct {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

.nx-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.nx-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.4s ease;
}

.nx-card.is-rank-1 .nx-progress-fill {
  background: var(--nx-gold);
}

.nx-card.is-voted .nx-progress-fill {
  background: var(--nx-success);
}

.nx-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.nx-card-actions .nx-vote-action {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  font-size: 11.5px;
}

.nx-comment-pill-btn {
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s ease;
}

.nx-comment-pill-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Skeletons */
.nx-skeleton-podium {
  min-height: 360px;
  border-radius: 20px;
  background: linear-gradient(90deg, #202025 25%, #2a2a31 50%, #202025 75%);
  background-size: 200% 100%;
  animation: nxShimmer 1.3s infinite;
}

.nx-skeleton-card {
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  background: linear-gradient(90deg, #202025 25%, #2a2a31 50%, #202025 75%);
  background-size: 200% 100%;
  animation: nxShimmer 1.3s infinite;
}

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

/* Empty State */
.nx-empty {
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  border-radius: 18px;
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nx-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nx-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-empty h3 {
  font-size: 17px;
  font-weight: 800;
}

.nx-empty p {
  font-size: 13.5px;
  color: var(--nx-muted);
}

/* Footer */
.nx-footer {
  border-top: 1px solid var(--nx-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 24px;
  font-size: 12px;
  color: var(--nx-muted);
}

.nx-footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================================
   DETAY & FİKİR / YORUM MODALI
   ========================================================================= */
.nx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.nx-modal {
  background: #1d1d22;
  color: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nx-border-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.nx-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--nx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nx-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nx-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111114;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
}

.nx-modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-modal-header h2 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.nx-modal-meta {
  font-size: 12px;
  color: var(--nx-muted);
  margin-top: 2px;
}

.nx-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 22px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.nx-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nx-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nx-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.nx-modal-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  cursor: zoom-in;
}

.nx-modal-tagline {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.nx-modal-desc {
  font-size: 13.5px;
  color: var(--nx-text-soft);
  line-height: 1.65;
  white-space: pre-line;
}

.nx-modal-vote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-border);
}

/* Comments */
.nx-comments-section {
  border-top: 1px solid var(--nx-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nx-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-comments-head h3 {
  font-size: 15px;
  font-weight: 800;
}

.nx-comments-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--nx-muted);
}

.nx-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.nx-comment-form input,
.nx-comment-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--nx-border-strong);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  outline: none;
  resize: vertical;
}

.nx-comment-form input::placeholder,
.nx-comment-form textarea::placeholder {
  color: var(--nx-muted);
}

.nx-comment-form input:focus,
.nx-comment-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.nx-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nx-comment-hint {
  font-size: 11.5px;
  color: var(--nx-muted);
}

.nx-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nx-comment-item {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  background: rgba(255, 255, 255, 0.03);
}

.nx-comment-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.nx-comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.nx-comment-date {
  font-size: 11px;
  color: var(--nx-muted);
}

.nx-comment-body {
  font-size: 13px;
  color: var(--nx-text-soft);
  white-space: pre-line;
  word-break: break-word;
}

/* Lightbox */
.nx-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nx-lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.nx-lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.nx-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.nx-lb-prev { left: 18px; }
.nx-lb-next { right: 18px; }

.nx-lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* Toast */
.nx-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.nx-toast.is-error {
  background: #dc2626;
  color: #ffffff;
}

.nx-toast.is-success {
  background: #16a34a;
  color: #ffffff;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1280px) {
  .nx-top-stage {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
  }
  .nx-rest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nx-top-stage {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .nx-podium-panel {
    min-height: 310px;
  }
  .nx-rest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nx-mini-stats {
    display: none;
  }
}

@media (max-width: 680px) {
  .nx-header-inner,
  .nx-container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .nx-header-countdown {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .nx-top3-grid {
    grid-template-columns: 1fr;
  }
  .nx-rest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .nx-search-wrap {
    width: 100%;
  }
  .nx-search-wrap input {
    width: 100%;
  }
  .nx-toolbar-right {
    width: 100%;
  }
  .nx-slide-btn {
    opacity: 0.9;
  }
}
