  /* radioserver: what is in the events pages and the admin's door (31.10.2026). In the pages from the server and, from
     /events.css, inside the radio's page, where the events open without leaving it (the owner: „когато се натисне events и
     се разглежда сайта, музиката не трябва да спира“). Everything is under #view, so nothing here touches the radio's page */
  #view { --line: rgba(214, 225, 236, .14); --line2: rgba(214, 225, 236, .26); --hot: #ff8f70; --hott: #ffb19c; position: relative; flex: 1 0 auto; display: flex; flex-direction: column; }
  #view main { position: relative; flex: 1 0 auto; padding: 0 var(--gut) 40px; }
  #view .lab { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--rs-accent); text-shadow: 0 1px 3px #001a28; }
  #view .lab.red { color: var(--hot); }
  #view .lab.red::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); animation: evpulse 2.4s ease-in-out infinite; }
  @keyframes evpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
  #view .big { font-size: clamp(34px, 4vw, 58px); font-weight: 380; line-height: 1.08; letter-spacing: -.034em; overflow-wrap: anywhere; text-shadow: 0 1px 9px #06142755; }
  #view .empty { padding: 18px 0; color: #e5e9edcd; }

  /* the list of events: the title over the sea, the events in the see-through lower zone of the radio's page */
  #view main:not([class]) { display: flex; flex-direction: column; padding: 0; }
  #view .evh { padding: clamp(70px, 17vh, 190px) var(--gut) 34px; font-weight: 300; text-transform: lowercase; letter-spacing: -.045em; }
  #view .evs { position: relative; padding: 27px var(--gut) 30px; border-top: 1px solid #c9d4e057; -webkit-backdrop-filter: blur(3px) saturate(.78); backdrop-filter: blur(3px) saturate(.78); }
  #view .evs::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 11, 23, calc(var(--rs-lower-opacity) + .1)); }
  #view .evs:last-child { flex: 1 0 auto; }
  #view main:not([class]) > .empty { padding: 0 var(--gut) 30px; }
  #view .evs + .evs { border-top-color: #c9d4e02a; }
  #view .evs h2 { margin-bottom: 18px; color: #e1eaf3c7; }
  #view .evs ol { list-style: none; }
  #view .evs li a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  #view .evs li:first-child a { padding-top: 0; }
  #view .evs li:last-child a { border-bottom: 0; }
  #view .evs .im { width: 76px; aspect-ratio: 1; background: rgba(214, 225, 236, .07) center/cover no-repeat; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
  #view .evs .tx { display: grid; gap: 4px; min-width: 0; }
  #view .evs .t { font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; letter-spacing: -.012em; color: #f4f7f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 7px #06162955; }
  #view .evs a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  #view .evs .d { font-size: 13px; color: #e5e9edcd; }
  #view .evs time { color: var(--rs-accent); font-variant-numeric: tabular-nums; }
  #view .evs.past .t { color: #e5e9edcd; }
  #view .evs.past .im { filter: grayscale(.7) brightness(.8); }

  /* one event: the picture and, on frosted glass, what, when, who; the ring goes to the radio */
  #view .stage { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding-top: clamp(36px, 8vh, 90px); }
  #view .pic { position: relative; width: 100%; aspect-ratio: 1; }
  #view .pic .block, #view .pic .tri { display: none; }
  #view .art { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(214, 225, 236, .07) center/cover no-repeat; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
  #view .art span { width: 42%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--rs-accent); opacity: .75; }
  #view .play { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: grid; place-items: center; width: clamp(64px, 7vw, 84px); height: auto; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--rs-accent); background: rgba(4, 14, 26, .32); color: #f8fcff; box-shadow: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .4s; }
  #view .play:hover { background: rgba(4, 14, 26, .5); }
  #view .play svg { width: 36%; height: 36%; fill: currentColor; filter: drop-shadow(0 3px 12px #0006); }
  #view .info { min-width: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid #cedce83d; background: rgba(4, 11, 23, .46); -webkit-backdrop-filter: blur(12px) saturate(.8); backdrop-filter: blur(12px) saturate(.8); }
  #view .info .big { margin-top: 16px; }
  #view .when { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: #e3e8eee0; font-variant-numeric: tabular-nums; }
  #view .dj { margin-top: 4px; font-size: clamp(16px, 1.3vw, 19px); color: #cdd7e1d9; }
  #view .desc { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line2); font-size: 15px; line-height: 1.65; color: #e5e9edde; white-space: pre-line; overflow-wrap: anywhere; }
  #view .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  #view .btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 1px solid rgba(214, 225, 236, .34); border-radius: 2px; background: rgba(214, 225, 236, .04); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: background .2s, border-color .2s; }
  #view .btn:hover { background: rgba(214, 225, 236, .1); border-color: rgba(214, 225, 236, .6); }
  #view .btn.red { color: var(--rs-accent); border-color: color-mix(in srgb, var(--rs-accent) 70%, transparent); background: color-mix(in srgb, var(--rs-accent) 14%, transparent); }

  /* the admin's door: a small pane of frosted glass over the sea */
  #view .door { display: grid; align-content: start; justify-items: center; padding-top: clamp(48px, 14vh, 160px); }
  #view .door .big { width: min(400px, 100%); padding: 32px 30px 0; border: 1px solid #cedce83d; border-bottom: 0; background: rgba(4, 11, 23, .46); -webkit-backdrop-filter: blur(12px) saturate(.8); backdrop-filter: blur(12px) saturate(.8); font-size: 34px; font-weight: 300; letter-spacing: -.04em; text-transform: lowercase; }
  #view .door form, #view .door > .empty { display: grid; gap: 12px; width: min(400px, 100%); padding: 24px 30px 30px; border: 1px solid #cedce83d; border-top: 0; background: rgba(4, 11, 23, .46); -webkit-backdrop-filter: blur(12px) saturate(.8); backdrop-filter: blur(12px) saturate(.8); }
  #view .door input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 2px; background: rgba(2, 8, 18, .35); font-size: 16px; transition: border-color .2s; }
  #view .door input:focus { outline: none; border-color: color-mix(in srgb, var(--rs-accent) 75%, transparent); }
  #view .door input::placeholder { color: rgba(214, 225, 236, .42); }
  #view .door .btn { margin-top: 4px; }
  #view .door .msg { min-height: 20px; font-size: 13px; color: var(--hott); }

  @container wrap (max-width: 760px) {
    #view main { padding: 0 22px 36px; } #view .evh, #view .evs { padding-left: 22px; padding-right: 22px; }
    #view .stage { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
    #view .pic { max-width: 420px; }
    #view .evs li a { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
    #view .evs .im { width: 64px; }
  }
  @media (prefers-reduced-motion: reduce) { #view .lab.red::before { animation: none; } }
