/* Cines históricos: estilos del mapa, el buscador y las fichas (antes dentro de index.html). */
    .hc-top {
      position: sticky;
      top: 0;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 10px;
      background: var(--glass);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }

    .hc-top a.icon-btn {
      color: var(--ink);
      text-decoration: none;
    }

    .hc-top-title {
      font-size: var(--t-base);
      font-weight: 650;
    }

    /* El mapa ocupa toda la pantalla; cada cine se abre en un panel al tocar su punto o al buscarlo. */
    html,
    body {
      height: 100%;
    }

    body {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .hc-top h1 {
      flex: 1;
      min-width: 0;
      margin: 0;
      overflow: hidden;
      font-size: var(--t-base);
      font-weight: 650;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hc-stage {
      position: relative;
      flex: 1;
      min-height: 0;
    }

    .hc-map {
      position: absolute;
      inset: 0;
      background: var(--map-land);
    }

    .hc-map-error {
      display: grid;
      place-items: center;
      height: 100%;
      margin: 0;
      padding: 0 24px;
      color: var(--muted);
      text-align: center;
    }

    .hc-finder {
      position: absolute;
      top: 12px;
      left: var(--gutter);
      right: var(--gutter);
      z-index: 3;
      max-width: 420px;
    }

    .hc-search {
      display: flex;
      align-items: center;
      gap: 8px;
      height: 48px;
      padding: 0 6px 0 16px;
      border: 1px solid var(--line);
      border-radius: var(--r-pill);
      background: var(--surface);
      color: var(--muted);
      box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    }

    .hc-search input {
      flex: 1;
      min-width: 0;
      height: 100%;
      border: 0;
      background: none;
      color: var(--ink);
      font-size: var(--t-base);
      outline: none;
    }

    .hc-search input::-webkit-search-cancel-button {
      display: none;
    }

    .hc-search .icon-btn {
      width: 36px;
      height: 36px;
      color: var(--muted);
    }

    .hc-results {
      max-height: min(55dvh, 420px);
      margin: 8px 0 0;
      padding: 6px;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      background: var(--surface);
      list-style: none;
      box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    }

    .hc-results button {
      display: block;
      width: 100%;
      padding: 10px 12px;
      border: 0;
      border-radius: 10px;
      background: none;
      color: var(--ink);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .hc-results button:hover,
    .hc-results button[aria-selected="true"] {
      background: var(--surface-2);
    }

    .hc-results b {
      display: block;
      font-weight: 600;
    }

    .hc-results small,
    .hc-results-empty {
      color: var(--muted);
      font-size: var(--t-sm);
    }

    .hc-results-empty {
      padding: 10px 12px;
    }

    .hc-top [data-about] {
      color: var(--muted);
    }

    /* Línea de tiempo, abajo y al alcance del pulgar. --thumb alinea la curva y los años con el recorrido del control. */
    .hc-time {
      --thumb: 24px;
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: calc(env(safe-area-inset-bottom) + 12px);
      z-index: 2;
      max-width: 520px;
      padding: 12px 14px 10px;
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      background: var(--glass-2);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    }

    .hc-time-head {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 40px;
    }

    .hc-time-play {
      display: grid;
      flex: none;
      place-items: center;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 50%;
      background: var(--accent-fill);
      color: #fff;
      cursor: pointer;
    }

    .hc-time-label {
      display: grid;
      flex: 1;
      min-width: 0;
    }

    .hc-time-year {
      font-family: var(--font-display);
      font-size: var(--t-lg);
      font-stretch: 85%;
      font-weight: 750;
      line-height: 1.05;
      font-variant-numeric: tabular-nums;
    }

    .hc-time-count {
      overflow: hidden;
      color: var(--muted);
      font-size: var(--t-xs);
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hc-time-track {
      position: relative;
      height: 34px;
      margin-top: 6px;
    }

    .hc-time-curve {
      position: absolute;
      left: calc(var(--thumb) / 2);
      right: calc(var(--thumb) / 2);
      bottom: 15px;
      width: calc(100% - var(--thumb));
      height: 22px;
      fill: color-mix(in srgb, var(--ink) 14%, transparent);
      pointer-events: none;
    }

    .hc-time-range {
      --p: 100%;
      position: absolute;
      inset: auto 0 0;
      width: 100%;
      height: var(--thumb);
      margin: 0;
      background: none;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      touch-action: pan-y;
    }

    .hc-time-range::-webkit-slider-runnable-track {
      height: 4px;
      border-radius: 2px;
      background: linear-gradient(to right, var(--accent) var(--p), var(--line-strong) var(--p));
    }

    .hc-time-range::-moz-range-track {
      height: 4px;
      border-radius: 2px;
      background: linear-gradient(to right, var(--accent) var(--p), var(--line-strong) var(--p));
    }

    .hc-time-range::-webkit-slider-thumb {
      width: var(--thumb);
      height: var(--thumb);
      margin-top: calc(2px - var(--thumb) / 2);
      border: 3px solid var(--bg);
      border-radius: 50%;
      background: var(--ink);
      appearance: none;
      -webkit-appearance: none;
    }

    .hc-time-range::-moz-range-thumb {
      width: var(--thumb);
      height: var(--thumb);
      box-sizing: border-box;
      border: 3px solid var(--bg);
      border-radius: 50%;
      background: var(--ink);
    }

    .hc-time-range:focus-visible {
      outline: none;
    }

    .hc-time-range:focus-visible::-webkit-slider-thumb {
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .hc-time-ticks {
      position: relative;
      height: 14px;
      margin: 2px calc(var(--thumb) / 2) 0;
      color: var(--muted);
      font-size: var(--t-2xs);
      font-variant-numeric: tabular-nums;
    }

    .hc-time-ticks span {
      position: absolute;
      transform: translateX(-50%);
    }

    .hc-time-ticks span:last-child {
      transform: translateX(-80%);
    }

    /* Panel del cine: el fondo apenas se oscurece para que se siga viendo el punto en el mapa. */
    .hc-sheet .sheet-backdrop {
      background: rgb(0 0 0 / 0.2);
    }

    @media (max-width: 899px) {
      .hc-sheet .sheet-panel {
        max-height: 70dvh;
      }
    }

    .hc-sheet .sheet-body {
      padding: 0 0 calc(32px + env(safe-area-inset-bottom));
    }

    /* Para los cines sin foto: el nombre como cartel de marquesina. */
    .hc-marquee {
      position: relative;
      display: grid;
      place-content: center;
      gap: 8px;
      min-height: 150px;
      padding: 30px 28px;
      overflow: hidden;
      background: var(--surface-2);
      text-align: center;
    }

    .hc-marquee::before {
      content: "";
      position: absolute;
      inset: 12px;
      border: 4px dotted color-mix(in srgb, var(--accent) 75%, transparent);
      border-radius: 12px;
    }

    .hc-marquee-name {
      font-family: var(--font-display);
      font-size: var(--t-xl);
      font-stretch: 75%;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }

    .hc-marquee-years {
      color: var(--accent);
      font-size: var(--t-sm);
      font-weight: 700;
      letter-spacing: 0.14em;
    }

    .hc-photo {
      margin: 0;
    }

    .hc-photo img {
      display: block;
      width: 100%;
      max-height: 42dvh;
      object-fit: cover;
      background: var(--surface-2);
    }

    .hc-photo figcaption {
      padding: 8px 20px 0;
      color: var(--muted);
      font-size: var(--t-xs);
      line-height: 1.4;
    }

    .hc-photo figcaption a {
      color: inherit;
    }

    .hc-body {
      padding: 14px 20px 0;
    }

    .hc-kicker {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 12px;
      margin: 0 0 4px;
      color: var(--muted);
      font-size: var(--t-xs);
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .hc-body h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: var(--t-xl);
      font-stretch: 85%;
      font-weight: 700;
      line-height: 1.1;
    }

    .hc-otros {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: var(--t-sm);
      font-style: italic;
    }

    .hc-addr {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: var(--t-sm);
    }

    .hc-desc {
      margin: 12px 0 0;
      font-size: var(--t-base);
      line-height: 1.5;
    }

    .hc-hoy {
      margin: 10px 0 0;
      font-size: var(--t-sm);
    }

    .hc-hoy b {
      color: var(--accent);
    }

    .hc-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .hc-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 10px 0 0;
      font-size: var(--t-sm);
      color: var(--muted);
    }

    .hc-stats span {
      padding: 3px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
    }

    .hc-stats b {
      color: var(--ink);
      font-variant-numeric: tabular-nums;
    }

    .hc-sec {
      margin-top: 14px;
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }

    .hc-sec summary {
      cursor: pointer;
      font-size: var(--t-sm);
      font-weight: 600;
    }

    .hc-etapas {
      margin: 8px 0 0;
      padding: 0;
      list-style: none;
      font-size: var(--t-sm);
    }

    .hc-etapas li {
      display: flex;
      flex-direction: column;
      padding: 6px 0;
    }

    .hc-etapas li + li {
      border-top: 1px dashed var(--line);
    }

    .hc-etapas span {
      color: var(--muted);
      font-size: var(--t-xs);
    }

    .hc-nota {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: var(--t-xs);
    }

    .hc-pelis h3 {
      margin: 12px 0 2px;
      font-size: var(--t-sm);
      font-variant-numeric: tabular-nums;
    }

    .hc-pelis ul {
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: var(--t-sm);
    }

    .hc-pelis li {
      display: flex;
      gap: 10px;
      padding: 3px 0;
      line-height: 1.35;
    }

    .hc-pelis time {
      flex: none;
      width: 3.2em;
      color: var(--muted);
      font-size: var(--t-xs);
      font-variant-numeric: tabular-nums;
      padding-top: 1px;
    }

    .hc-pelis b {
      font-weight: 600;
    }

    .hc-pelis i {
      color: var(--muted);
      font-size: var(--t-xs);
    }

    .hc-src {
      margin-top: 14px;
      color: var(--muted);
      font-size: var(--t-xs);
    }

    .hc-src summary {
      cursor: pointer;
    }

    .hc-src ul {
      margin: 6px 0 0;
      padding-left: 18px;
      line-height: 1.6;
    }

    .hc-about {
      color: var(--muted);
      font-size: var(--t-sm);
      line-height: 1.55;
    }

    .hc-about h2 {
      margin: 0 0 10px;
      color: var(--ink);
      font-family: var(--font-display);
      font-size: var(--t-xl);
      font-stretch: 85%;
    }

    .hc-about p {
      margin: 0 0 10px;
    }

    /* En celular la línea de tiempo ocupa el ancho: la atribución del mapa va arriba de ella. */
    @media (max-width: 559px) {
      .hc-stage .maplibregl-ctrl-bottom-right {
        bottom: calc(env(safe-area-inset-bottom) + 132px);
      }
    }
