:root {
  --bg:     #0e0e0b;
  --sc:     #14120e;
  --orange: #E0542A;
  --teal:   #5A9FB8;
  --cream:  #EDE0C8;
  --muted:  #A89880;
  --faint:  #5C5248;
  --s950:   #0e0a07;
  --s100:   #EDE0C8;
  --s400:   #A89880;
  --s500:   #7A6E62;
  --s600:   #5C5248;
  --s700:   #46403A;
  --fh: 'Plus Jakarta Sans', sans-serif;
  --fb: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { touch-action: manipulation; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

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

/* ── NAV ── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: color-mix(in srgb, var(--s950) 85%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.nav-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; max-width: 1200px; margin-inline: auto;
}
.nav-logo {
  font-family: var(--fh); font-size: 1.25rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--orange); text-transform: uppercase;
}
.nav-btn {
  display: none;
  background: var(--orange); color: var(--s950);
  padding: .6rem 1.4rem; border-radius: 9999px;
  font-family: var(--fh); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: -.01em;
}
.hamburger {
  background: none; border: none; color: var(--cream);
  cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 1.25rem;
  padding: 0 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--s950) 95%, transparent);
  backdrop-filter: blur(24px);
  font-family: var(--fh); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--cream); font-size: .9rem; }
.mobile-menu .btn-mob {
  background: var(--orange); color: var(--s950);
  padding: .75rem; border-radius: 9999px;
  text-align: center; font-size: .85rem;
}

@media (min-width: 640px) {
  .nav-btn { display: inline-block; }
  .hamburger { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 768px) {
  .hero-img { object-position: 60% 20%; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,.85) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: absolute;
  left: 6%; right: 6%;
  bottom: 18%;
  z-index: 2;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  will-change: transform, opacity;
}
@media (max-width: 768px) {
  .hero-content { bottom: 25%; }
}
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .9rem; border-radius: 9999px;
  font-family: var(--fh); font-size: .65rem;
  font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange);
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--fh);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase; line-height: .92;
  color: var(--s100); margin-bottom: .75rem;
  overflow-wrap: break-word;
}
.hero h1 span { color: var(--orange); }
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; line-height: .95; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.65rem; }
}
.hero-sub {
  font-size: clamp(.85rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: 0; max-width: 36rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.95);
}
.hero-meta {
  color: rgba(255,255,255,.7); font-size: .72rem;
  font-weight: 700; letter-spacing: .05em;
  margin-top: .6rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.95);
}

/* ── FEED ── */
.feed-wrap {
  max-width: 680px; margin: 0 auto;
  padding: 2.5rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
}
.feed-label {
  font-family: var(--fh); font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}

/* rows */
.row {
  display: flex; flex-direction: column;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none; color: inherit; cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.row:last-child { border-bottom: none; }
.row.clickable { cursor: pointer; }
.row.clickable:hover .title { color: #fff; }
.row.clickable:active { opacity: .7; }
.row-top { display: flex; align-items: center; gap: .6rem; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.salsa   { background: var(--orange); }
.dot.bachata { background: var(--teal); }
.dot.mixed   { background: var(--muted); }

.time {
  width: 60px; font-family: var(--fh); font-size: .75rem;
  color: var(--faint); flex-shrink: 0;
}
.title {
  font-family: var(--fh); font-weight: 700; font-size: .95rem;
  letter-spacing: -.01em; transition: color .15s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta {
  margin-left: 67px; font-size: .75rem; color: var(--muted); margin-top: .2rem;
}
.dance-type { font-weight: 600; }
.dance-type.salsa   { color: var(--orange); }
.dance-type.bachata { color: var(--teal); }
.dance-type.mixed   { color: var(--muted); }

/* empty + show more */
.empty {
  text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0;
}
.show-more-wrap { margin: .75rem 0; display: flex; justify-content: center; }
.show-more-btn {
  font-family: var(--fh); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); background: none; border: none;
  cursor: pointer; padding: .5rem 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── FOOTER ── */
footer {
  background: var(--s950); border-top: 1px solid rgba(255,255,255,.05);
  padding: 2.5rem 1.5rem;
}
.foot-inner {
  max-width: 680px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.foot-logo {
  font-family: var(--fh); font-weight: 800; font-size: 1rem;
  color: var(--orange); text-transform: uppercase; letter-spacing: -.01em;
}
.foot-copy { font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-nav a { font-size: .7rem; color: var(--s600); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.foot-nav a:hover { color: var(--orange); }

@media (min-width: 640px) {
  .foot-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── MODAL / SHEET ── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.overlay.open { display: block; }

.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  background: #1a1814;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 0 1.5rem calc(2rem + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  max-width: 680px; margin-inline: auto;
  max-height: 90vh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }

.drag-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.15);
  margin: 12px auto 1.5rem;
}

.sheet-badge {
  display: inline-block; padding: .2rem .75rem; border-radius: 9999px;
  font-family: var(--fh); font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.sheet-badge.salsa   { background: rgba(224,84,42,.15); color: #E0542A; }
.sheet-badge.bachata { background: rgba(90,159,184,.15); color: #5A9FB8; }
.sheet-badge.mixed   { background: rgba(168,152,128,.15); color: #A89880; }

.sheet-title {
  font-family: var(--fh); font-size: 1.35rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--cream); margin-bottom: 1.25rem;
  line-height: 1.15;
}

.sheet-meta { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.sheet-meta-row { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.sheet-meta-icon { font-size: 1rem; flex-shrink: 0; }

.sheet-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.06); margin-bottom: 1.5rem;
}

/* ── BESKRIVELSE BOKS ── */
.sheet-desc-box {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255,255,255,.02);
  margin-top: 1rem;
}
.sheet-desc-label {
  font-family: var(--fh); font-size: .6rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .4rem;
}
.sheet-desc {
  font-size: .82rem;
  color: var(--s500);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── SKELETON LOADING ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-row {
  display: flex; flex-direction: column;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.skeleton-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.skel {
  background: linear-gradient(90deg, #1a1814 25%, #2a2520 50%, #1a1814 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}
.skel-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.skel-time { width: 50px; height: 10px; flex-shrink: 0; }
.skel-title { flex: 1; height: 13px; max-width: 220px; }
.skel-meta { height: 10px; width: 180px; margin-left: 67px; }

/* ── LOADING PULSE ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.97); }
}
.loading-pulse {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 0; gap: 1rem;
}
.loading-pulse .pulse-icon {
  width: 48px; height: 48px;
  background: var(--orange); border-radius: 12px;
  animation: pulse 1.2s ease-in-out infinite;
}
.loading-pulse .pulse-text {
  font-family: var(--fh); font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint);
  animation: pulse 1.2s ease-in-out infinite;
}

/* ── SE EVENT KNAP ── */
.sheet-link-btn {
  display: block; width: 100%;
  background: var(--orange); color: var(--s950);
  padding: .9rem; border-radius: 9999px;
  font-family: var(--fh); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: -.01em;
  text-align: center; margin-top: .5rem;
  transition: opacity .15s;
}
.sheet-link-btn:hover { opacity: .85; }
