:root {
  --void: #0d0a1f;
  --indigo: #1a0f3d;
  --magenta-deep: #3a1256;
  --magenta: #5c1450;
  --cyan: #00e5ff;
  --magenta-accent: #ff2fb0;
  --orange: #ffb347;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.45);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 31, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-left: 28px;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 138, 61, 0.16), transparent 60%),
    linear-gradient(180deg, var(--indigo) 0%, var(--magenta-deep) 55%, var(--magenta) 100%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero h1 .accent { color: var(--cyan); }

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* mountain-range silhouette signature, echoes the Instagram profile art */
.hero-range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 140px;
  pointer-events: none;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.section-head .section-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Festival grid ---------- */
.festival-section {
  padding: 72px 0 96px;
}

.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.festival-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: block;
}

.festival-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
}

.card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--indigo), var(--magenta-deep));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.25), transparent 55%);
}

.card-country {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body {
  padding: 18px 18px 20px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.card-dates {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}

.card-link::after {
  content: ' \2192';
}

.empty-state {
  border: 1px dashed var(--card-border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 20px;
}

.footer-links a:hover { color: var(--cyan); }

/* ---------- Festival detail page ---------- */
.detail-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--magenta-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.detail-breadcrumb a { color: var(--cyan); }

.detail-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 10px;
}

.detail-meta {
  font-size: 15px;
  color: var(--text-muted);
}

.detail-body {
  padding: 56px 0 96px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

@media (max-width: 780px) {
  .detail-body { grid-template-columns: 1fr; }
}

.detail-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 22px;
}

.detail-block h2 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 0 0 14px;
}

.detail-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

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

.info-label {
  color: var(--text-faint);
  flex-shrink: 0;
}

.info-value {
  color: var(--white);
  text-align: right;
}

.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--void);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  margin-top: 6px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-thumb-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.video-thumb-link:hover img {
  transform: scale(1.03);
  filter: brightness(0.8);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(13, 10, 31, 0.75);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--cyan);
  margin-left: 4px;
}

.video-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

.loading-state, .error-state {
  padding: 80px 24px;
  text-align: center;
  color: var(--text-faint);
}
