/* Home Lilla + sole — layout del mockup */

body.ts-home {
  background: var(--ts-bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

body.ts-home .site-navbar,
body.ts-home .site-inner,
body.ts-home .site-footer,
body.ts-home .suggest-fab {
  display: none !important;
}

.ts-top,
.ts-hero,
.ts-feed,
.ts-suggest,
.ts-pwa,
.ts-foot {
  box-sizing: border-box;
}

.ts-top-desk { display: none; }

.ts-top-mob {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
}

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

.ts-brand-name {
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ts-page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.ts-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 20px 6px;
}

.ts-pin {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ts-mist);
  color: var(--ts-violet-strong);
  font-size: 13px;
  font-weight: 700;
}

body.site-shell .ts-hero h1 {
  margin: 0 0 18px;
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ts-ink);
}

.ts-h1-plain,
.ts-h1-rest { display: none; }

.ts-hero-lead {
  margin: 0 0 16px;
  max-width: 28em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ts-muted);
}

.ts-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 16px;
}

.ts-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ts-ink);
}

.ts-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ts-ranges {
  padding: 14px 20px 0;
}

.ts-ranges .ts-segmented button {
  font-size: 15px;
}

.ts-filters {
  display: flex;
  gap: 8px;
  padding: 12px 20px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ts-filters .ts-chip { flex-shrink: 0; }

.ts-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 18px 20px 8px;
}

.ts-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ts-day-head h2 {
  margin: 0;
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.ts-day-head h2 span,
.ts-day-count {
  font-family: var(--ts-font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ts-muted);
  letter-spacing: 0;
}

.ts-day-count {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ts-day-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-event {
  display: flex;
  gap: 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ts-ink);
}

.ts-event-poster,
.ts-event-fallback {
  width: 92px;
  height: 116px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--ts-mist);
  object-fit: cover;
}

.ts-event-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  color: var(--ts-violet);
}

.ts-event-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
  padding: 2px 4px 2px 0;
}

.ts-when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ts-violet);
}

.ts-event-title {
  font-family: var(--ts-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.ts-place {
  font-size: 13px;
  color: var(--ts-muted);
}

.ts-tags {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
}

.ts-featured-block h2 {
  margin: 0 0 12px;
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.ts-featured {
  position: relative;
  display: block;
  height: 460px;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #2A2145;
}

.ts-featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-featured-when {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ts-sun);
  color: var(--ts-ink);
  font-size: 13px;
  font-weight: 800;
}

.ts-featured-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(27, 21, 48, 0.86);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-featured-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #CFC6FF;
}

.ts-featured-title {
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ts-featured-place {
  font-size: 14px;
  color: #E9E5FF;
}

.ts-featured-slot--desk { display: none; }

.ts-empty {
  padding: 28px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed #B7AEDF;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.ts-empty strong {
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 20px;
}

.ts-empty span { font-size: 15px; color: var(--ts-muted); line-height: 1.45; }

.ts-suggest {
  margin: 8px 20px 0;
  padding: 24px 22px;
  border-radius: 26px;
  background: var(--ts-violet);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-suggest h2 {
  margin: 0;
  font-family: var(--ts-font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.ts-suggest p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ts-mist);
}

.ts-pwa {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 20px 0;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ts-line);
}

.ts-pwa-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ts-pwa-copy strong { font-size: 15px; }
.ts-pwa-copy span { font-size: 13px; color: var(--ts-muted); }

.ts-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 20px 20px;
  font-size: 13px;
  color: var(--ts-muted);
}

.ts-foot-links { display: flex; gap: 18px; }

.ts-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--ts-line);
}

.ts-bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ts-muted);
  font-size: 12px;
  font-weight: 600;
}

.ts-bottom a[aria-current="page"] {
  color: var(--ts-violet);
  font-weight: 700;
}

.ts-skel {
  height: 136px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ECE8FF 25%, #F6F3FF 37%, #ECE8FF 63%);
  background-size: 400% 100%;
  animation: ts-pulse 1.2s ease infinite;
}

@keyframes ts-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.ts-past-label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ts-muted);
}

@media (display-mode: standalone) {
  .ts-pwa { display: none; }
}

@media (min-width: 992px) {
  body.ts-home { padding-bottom: 0; }
  .ts-top-mob,
  .ts-bottom,
  .ts-featured-slot--mob { display: none; }
  body.ts-home .ts-top-desk .ts-search { display: none; }
  .ts-hero .ts-search {
    max-width: 560px;
    height: 52px;
  }
  .ts-top-desk {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 64px;
    border-bottom: 1px solid var(--ts-line);
    background: #fff;
  }
  .ts-top-desk .ts-search {
    flex: 1;
    max-width: 460px;
    height: 46px;
    border-radius: 14px;
    background: var(--ts-bg);
  }
  .ts-desk-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    font-weight: 600;
    font-size: 15px;
  }
  .ts-desk-nav a {
    color: var(--ts-ink);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .ts-desk-nav a[aria-current="page"]:not(.ts-btn) { color: var(--ts-violet); }
  .ts-desk-nav a.ts-btn--primary,
  .ts-desk-nav a.ts-btn--primary:hover,
  .ts-desk-nav a.ts-btn--primary:focus {
    color: #fff;
    background: var(--ts-violet);
    border-radius: 999px;
    padding: 0 18px;
    min-height: 44px;
  }
  .ts-desk-nav a.ts-btn--primary:hover,
  .ts-desk-nav a.ts-btn--primary:focus {
    background: var(--ts-violet-strong);
  }
  .ts-page { width: 100%; }
  .ts-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 32px;
    padding: 56px 64px 40px;
    align-items: center;
  }
  .ts-hero-copy { display: flex; flex-direction: column; gap: 26px; }
  body.site-shell .ts-hero h1 {
    font-size: 84px;
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin-bottom: 0;
  }
  .ts-h1-q { display: none; }
  .ts-h1-plain,
  .ts-h1-rest { display: inline; }
  .ts-hero-lead { max-width: 560px; margin: 0; font-size: 19px; line-height: 1.5; }
  .ts-ranges { padding: 0; }
  .ts-ranges .ts-segmented { display: flex; width: max-content; }
  .ts-ranges .ts-segmented button { padding: 0 22px; height: 46px; font-size: 16px; }
  .ts-filters { padding: 0; overflow: visible; flex-wrap: wrap; }
  .ts-featured-slot--desk { display: block; }
  .ts-featured { height: 520px; border-radius: 30px; }
  .ts-featured-title { font-size: 28px; }
  .ts-feed { gap: 48px; padding: 8px 64px 24px; }
  .ts-day-head { justify-content: flex-start; gap: 14px; }
  .ts-day-head h2 { font-size: 34px; letter-spacing: -0.03em; }
  .ts-day-head h2 span,
  .ts-day-count { font-size: 17px; }
  .ts-day-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .ts-event {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .ts-event-poster,
  .ts-event-fallback {
    width: 100%;
    height: 330px;
    border-radius: 20px;
  }
  .ts-event-fallback { font-size: 30px; }
  .ts-event-title { font-size: 20px; }
  .ts-event-body { padding: 0; }
  .ts-suggest,
  .ts-pwa,
  .ts-foot { margin-left: 64px; margin-right: 64px; }
}

body.modal-open .ts-bottom { display: none; }

#eventModal .modal-header,
#eventModal .modal-footer { display: none; }
#eventModal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
#eventModal .ts-sheet-content {
  background: var(--ts-bg);
  border: 0;
  overflow: hidden;
}
#eventModalBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.ts-sheet {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  background: var(--ts-bg);
  color: var(--ts-ink);
}
.ts-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.ts-sheet-poster {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #2A2145;
  border-radius: 0 0 30px 30px;
}
.ts-sheet-poster-img,
.ts-sheet-poster-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ts-sheet-poster-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--ts-font-display);
  font-size: 72px;
  font-weight: 800;
}
.ts-sheet-tools {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ts-sheet-tools-right,
.ts-sheet-fav-slot { display: flex; gap: 8px; }
.ts-sheet-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ts-ink);
  font-size: 16px;
  cursor: pointer;
}
.ts-sheet-tool.active { color: #d1264a; }
.ts-sheet-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 20px 28px;
}
.ts-sheet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-sheet-tags .ts-tag {
  padding: 6px 12px;
  background: var(--ts-mist);
  color: var(--ts-violet-strong);
  font-size: 13px;
  font-weight: 700;
}
.ts-sheet-tags .ts-tag--sun {
  background: var(--ts-sun);
  color: var(--ts-ink);
}
body.site-shell .ts-sheet-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ts-sheet-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 22px;
}
.ts-sheet-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #EEE9FB;
}
.ts-sheet-row:first-child { border-top: 0; }
.ts-sheet-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ts-mist);
  color: var(--ts-violet-strong);
}
.ts-sheet-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ts-sheet-row strong { font-size: 15px; line-height: 1.3; }
.ts-sheet-row span { font-size: 13px; color: var(--ts-muted); }
.ts-sheet-row a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-violet);
  text-decoration: none;
}
.ts-sheet-actions { display: flex; gap: 10px; }
.ts-sheet-action { flex: 1; height: 52px; }
.ts-sheet-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 16px;
}
.ts-sheet-menu[hidden] { display: none; }
.ts-sheet-menu h6 { margin: 0; font-size: 13px; }
.ts-sheet-menu .event-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-sheet-menu a { color: var(--ts-violet-strong); font-weight: 700; }
body.site-shell .ts-sheet-about h2,
body.site-shell .ts-sheet-related h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ts-sheet-desc {
  margin: 0;
  color: var(--ts-ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.ts-readmore {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ts-violet);
  font-weight: 700;
  cursor: pointer;
}
.ts-sheet-source {
  padding: 14px 16px;
  border: 1px solid var(--ts-line);
  border-radius: 16px;
  background: #fff;
  color: var(--ts-muted);
  font-size: 13px;
  line-height: 1.45;
}
.ts-sheet-source p { margin: 0 0 8px; }
.ts-sheet-source a { color: var(--ts-violet-strong); }
.ts-sheet .event-correction-toggle {
  color: var(--ts-violet);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.ts-sheet-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ts-sheet-mini {
  flex: 0 0 160px;
  color: var(--ts-ink);
  text-decoration: none;
}
.ts-sheet-mini img,
.ts-sheet-rail-fallback {
  display: block;
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  background: #2A2145;
}
.ts-sheet-rail-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--ts-font-display);
  font-size: 36px;
  font-weight: 800;
}
.ts-sheet-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.25;
}
.ts-sheet-mini span {
  display: block;
  margin-top: 2px;
  color: var(--ts-muted);
  font-size: 12px;
}
.ts-sheet-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--ts-line);
}
.ts-sheet-bar-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ts-sheet-bar-copy span {
  overflow: hidden;
  color: var(--ts-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ts-sheet-bar-copy strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ts-sheet-ticket {
  height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}
.ts-sheet-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ts-sun);
  color: var(--ts-ink);
  font-weight: 800;
  cursor: pointer;
}
.ts-sheet-save.active { color: #d1264a; }

@media (min-width: 992px) {
  #eventModal .ts-sheet-dialog {
    width: calc(100% - 48px);
    max-width: 960px;
    height: calc(100vh - 48px);
  }
  #eventModal .ts-sheet-content {
    height: 100%;
    border-radius: 28px;
  }
  .ts-sheet-scroll {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: start;
  }
  .ts-sheet-poster {
    position: sticky;
    top: 0;
    height: calc(100vh - 160px);
    border-radius: 0;
  }
  .ts-sheet-main { padding: 28px 28px 36px; }
}
