/* KinoKollen - delat designsystem (baserat på Swift-appens utseende) */

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1C1C1E;
  --border: #2C2C2E;
  --border-2: #38383A;
  --border-3: #3A3A3C;
  --text: #FFFFFF;
  --text-secondary: #8E8E93;
  --text-tertiary: #636366;
  --accent: #FF3B30;
  --accent-orange: #FF9500;
  --accent-pink: #FF6B9D;
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout ───────────────────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding-top: 68px;
  padding-bottom: 60px;
}

.hem-sida main {
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 80px;
}

/* ── Nav ──────────────────────────────────────────────── */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .25s, backdrop-filter .25s, border-color .25s;
}

.topnav.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.topnav .wordmark {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}

.topnav .wordmark span {
  color: var(--accent);
}

.topnav nav {
  display: flex;
  gap: 32px;
}

.topnav nav a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.topnav nav a:hover {
  color: var(--text-secondary);
}

.topnav nav a.active {
  color: var(--text);
  border-color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 96px 40px 8px;
}

.hero--hidden {
  display: none;
}

.hero h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text);
}

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

.hero p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Hero-karusell (full-bleed, utanför main) ─────────── */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--surface-2);
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.hero-carousel .slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 25%, rgba(0, 0, 0, 0.92) 85%);
  pointer-events: none;
}

.hero-carousel .slide .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 48px;
}

.hero-carousel .slide .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hero-carousel .slide .titel {
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-carousel .slide .etikett {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-carousel .slide .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-carousel .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-carousel .nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.hero-carousel .nav .counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-carousel .trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

/* ── Page header (Tablå / Biografer) ─────────────────────── */

.page-header {
  padding: 52px 24px 12px;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text);
}

/* ── Section header med accentstreck ─────────────────────── */

.section {
  padding-bottom: 52px;
}

.section-header {
  position: relative;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-secondary);
  padding-left: 48px;
  padding-bottom: 20px;
  text-transform: uppercase;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 20px;
  width: 2px;
  border-radius: 1px;
}

.section-header--ikvall::before { background: var(--accent); }
.section-header--bio::before { background: var(--accent-orange); }
.section-header--special::before { background: var(--cat-color, var(--accent-pink)); }

/* ── Horisontell radvy ────────────────────────────────────── */

.row-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 40px 16px;
  scrollbar-width: none;
}

.row-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Poster placeholder ──────────────────────────────────── */

.poster {
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--border) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.poster svg {
  width: 32%;
  height: 32%;
  opacity: 0.35;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── FilmKort (vertikalt kort) ────────────────────────────── */

.film-kort {
  flex-shrink: 0;
  width: 300px;
}

.film-kort .poster {
  width: 300px;
  height: 450px;
}

.film-kort .titel {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 34px;
}

.film-kort .etikett {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 14px;
  line-height: 14px;
}

.film-kort .bio {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-kort .tidrad {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
}

.film-kort .tidrad .tid {
  font-weight: 700;
  color: var(--accent);
}

.film-kort .tidrad .dag {
  font-weight: 600;
  color: var(--text-secondary);
}

.film-kort .boka {
  margin-top: 6px;
}

/* ── IkvällKort (bakgrundskort) ──────────────────────────── */

.ikvall-kort {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 540px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--border) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ikvall-kort::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.85) 85%);
  pointer-events: none;
}

.ikvall-kort > * {
  position: relative;
  z-index: 1;
}

.ikvall-kort .ikon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.ikvall-kort .ikon svg {
  width: 30%;
  height: 30%;
  opacity: 0.25;
}

.ikvall-kort .ikon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ikvall-kort .badge {
  align-self: flex-start;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  background: rgba(255, 59, 48, 0.9);
  border-radius: 999px;
}

.ikvall-kort .info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.ikvall-kort .titel {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ikvall-kort .etikett {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ikvall-kort .bio {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Boka-knapp ───────────────────────────────────────────── */

.boka-knapp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 12px;
  border: 1px solid rgba(255, 59, 48, 0.5);
  border-radius: 4px;
}

.boka-knapp--disabled {
  color: var(--border-3);
  border-color: var(--surface-2);
  pointer-events: none;
}

/* ── Tablå-rad ────────────────────────────────────────────── */

.tabla-rad {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-2);
}

.tabla-rad .poster {
  width: 62px;
  height: 90px;
  border-radius: 6px;
}

.tabla-rad .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tabla-rad .tid {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.tabla-rad .titel {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabla-rad .etikett {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tabla-rad .bio {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabla-rad.passerad {
  opacity: 0.7;
}

.tabla-rad.passerad .poster {
  opacity: 0.35;
}

.tabla-rad.passerad .tid,
.tabla-rad.passerad .titel {
  color: var(--text-tertiary);
}

.tabla-rad.passerad .bio {
  color: var(--border-3);
}

.visad-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 7px 12px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Veckonavigation ──────────────────────────────────────── */

.vecka-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: 8px;
}

.vecka-nav button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.vecka-nav button:disabled {
  color: var(--border-3);
  cursor: default;
}

.vecka-nav .vecka-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  padding: 9px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
}

/* ── Dag-tabs ─────────────────────────────────────────────── */

.dag-tabs {
  display: flex;
  padding: 8px 16px 0;
}

.dag-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: var(--text-secondary);
}

.dag-tab .namn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

.dag-tab .nr {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dag-tab.idag .nr {
  color: var(--text);
}

.dag-tab.aktiv .namn,
.dag-tab.aktiv .nr {
  color: var(--text);
  font-weight: 900;
}

.dag-tab.aktiv {
  border-color: var(--accent);
}

.dag-tab.passerad {
  cursor: default;
}

.dag-tab.passerad .namn,
.dag-tab.passerad .nr {
  color: var(--border-3);
}

.divider {
  height: 1px;
  background: var(--surface-2);
}

/* ── Biograf-kort ─────────────────────────────────────────── */

.biograf-kort {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--surface-2);
}

.biograf-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}

.biograf-kort .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.biograf-kort .namn {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text);
  text-transform: uppercase;
}

.biograf-kort .adress {
  font-size: 11px;
  color: var(--text-tertiary);
}

.biograf-kort .antal {
  font-size: 11px;
  color: var(--text-tertiary);
}

.biograf-kort .karta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 7px 12px;
}

/* ── Status/tomma tillstånd ───────────────────────────────── */

.status {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Personuppgiftssidor ─────────────────────────────────── */

.policy-page {
  padding: 0 24px;
}

.policy-body {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.policy-updated {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.policy-section p,
.policy-section li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.policy-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-section p + p,
.policy-section ul + p {
  margin-top: 10px;
}

.policy-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  padding: 32px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.footer-copy {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── Klickbara filmkort ───────────────────────────────────── */

a.film-kort, a.ikvall-kort {
  display: block;
  cursor: pointer;
}

a.film-kort:hover .poster img,
a.film-kort:hover .poster { opacity: 0.85; }

a.ikvall-kort:hover { opacity: 0.88; }

/* ── Biograf-grid (biografer.html) ───────────────────────── */

.biograf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 20px 24px 40px;
}

.biograf-foto-kort {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: opacity .15s;
}

.biograf-foto-kort:hover { opacity: 0.85; }

.biograf-foto-kort .foto-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

.biograf-foto-kort .badge-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
}

.biograf-foto-kort::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.88) 85%);
  pointer-events: none;
}

.biograf-foto-kort .foto-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 10px 10px 12px;
}

.biograf-foto-kort .foto-namn {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.3;
}

.biograf-foto-kort .foto-visningar {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Film-detaljsida ─────────────────────────────────────── */

.film-detail-hero {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 320px;
  background: var(--surface-2);
  overflow: hidden;
}

.film-detail-hero img.backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.8;
}

.film-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 30%, rgba(0,0,0,0.95) 85%);
}

.film-detail-info {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 24px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.film-detail-poster {
  width: 90px;
  height: 134px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.film-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-detail-meta {
  padding-bottom: 4px;
}

.film-detail-meta h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.film-detail-tagline {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.film-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.film-detail-rating .stjärna { color: #FFD60A; font-size: 11px; }
.film-detail-rating .betyg { font-size: 13px; font-weight: 700; }
.film-detail-rating .genre { font-size: 11px; color: var(--text-secondary); }

.film-detail-knappar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 0;
}

.film-detail-knappar .trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #000;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-transform: uppercase;
}

.film-detail-section {
  padding: 28px 24px 0;
}

.film-detail-section-rubrik {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.film-synopsis {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.cast-rad {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cast-rad::-webkit-scrollbar { display: none; }

.cast-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 64px;
  flex-shrink: 0;
}

.cast-person .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-tertiary);
}

.cast-person.regi .avatar {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.85);
}

.cast-person .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-person .cast-namn {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--text);
}

.cast-person .cast-roll {
  font-size: 9px;
  color: var(--text-tertiary);
  text-align: center;
}

.visningar-dag-rubrik {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 6px;
}

.visningar-dag-rubrik .linje {
  flex: 1;
  height: 1px;
  background: var(--surface-2);
}

.visningar-dag-rubrik .dag-text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.visning-rad {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--surface);
}

.visning-rad .vis-tid {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  width: 56px;
  flex-shrink: 0;
}

.visning-rad .vis-bio {
  flex: 1;
  min-width: 0;
}

.visning-rad .vis-bio-namn {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .15s;
}

.visning-rad .vis-bio-namn:hover { color: var(--text); }

.visning-rad .vis-bio-etikett {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ── Biograf-detaljsida ──────────────────────────────────── */

.biograf-detail-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--surface-2);
  overflow: hidden;
}

.biograf-detail-hero img.biograf-bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.biograf-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}

.biograf-detail-hero .biograf-hero-namn {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.biograf-accent-linje {
  display: flex;
  height: 4px;
}

.biograf-accent-linje .rod { background: var(--accent); flex: 0 0 32px; }
.biograf-accent-linje .bla { background: #007AFF; flex: 0 0 32px; }
.biograf-accent-linje .rest { background: var(--surface-2); flex: 1; }

.biograf-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
  background: var(--surface);
  margin: 12px 0;
}

.biograf-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.biograf-stat-cell + .biograf-stat-cell {
  border-left: 1px solid var(--surface-2);
}

.biograf-stat-värde {
  font-size: 28px;
  font-weight: 900;
}

.biograf-stat-etikett {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-tertiary);
}

.biograf-adress-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin: 0 24px 12px;
  background: var(--surface-2);
  border-radius: 12px;
  text-decoration: none;
}

.biograf-adress-block .karta-ikon {
  width: 36px;
  height: 36px;
  background: #007AFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.biograf-adress-text { font-size: 14px; font-weight: 600; }
.biograf-adress-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.biograf-program-rubrik {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 24px 8px;
}

.biograf-program-rubrik .linje { width: 3px; height: 16px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.biograf-program-rubrik span { font-size: 13px; font-weight: 900; letter-spacing: 3px; }

.biograf-program-divider { height: 1px; background: var(--surface-2); }

.biograf-manad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}

.biograf-manad-label { font-size: 13px; font-weight: 900; letter-spacing: 1.5px; }
.biograf-manad-antal { font-size: 11px; font-weight: 700; color: var(--text-tertiary); letter-spacing: 1.5px; }

.biograf-dag-rubrik {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px 8px;
}

.biograf-dag-nr {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  width: 52px;
  flex-shrink: 0;
}

.biograf-dag-nr.idag { color: var(--accent); }

.biograf-dag-text .dag-lång {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.biograf-dag-text .dag-man { font-size: 10px; letter-spacing: 1px; color: var(--text-tertiary); margin-top: 2px; }

.biograf-visning-rad {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--surface);
}

.biograf-visning-tid {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  width: 56px;
  flex-shrink: 0;
}

.biograf-visning-film { flex: 1; min-width: 0; }

.biograf-visning-film .film-titel {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biograf-visning-film .film-etikett {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* ── Tablå-kalender ──────────────────────────────────────── */

.vecka-nav {
  position: relative;
}

.kalender-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 98;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.kalender-overlay.öppen { display: block; }

.kalender-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  background: #1C1C1E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: min(480px, calc(100vw - 32px));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.kalender-popup.öppen { display: block; }

.kalender-mån-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.kalender-mån-rubrik {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.kalender-mån-nav {
  display: flex;
  gap: 6px;
}

.kalender-mån-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2C2C2E;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}

.kalender-mån-nav button:hover { background: #3A3A3C; }

.kalender-dagheader {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.kalender-dagheader span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #636366;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.kalender-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kalender-veckorad {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  cursor: default;
}

.kalender-veckorad.klickbar { cursor: pointer; }

.kalender-veckorad.klickbar:hover .kalender-dag { background: #2C2C2E; }

.kalender-veckorad.aktiv .kalender-dag {
  background: var(--accent);
}

.kalender-veckorad.aktiv .kalender-dag .dag-nr {
  color: #fff;
  font-weight: 900;
}

.kalender-dag {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  transition: background .1s;
}

.kalender-dag.annan-mån .dag-nr { color: #3A3A3C; }

.kalender-dag .dag-nr {
  font-size: 16px;
  font-weight: 500;
  color: #8E8E93;
}

.kalender-dag.idag .dag-nr {
  color: var(--accent);
  font-weight: 900;
}

.kalender-dag.ej-klickbar .dag-nr { opacity: 0.2; }
