/* todd radio: zakładka przy lewej krawędzi + okno z kasetą. 1:1 z makiety ToddRadio.dc.html (handoff 8). */
@keyframes tr-spin { to { transform: rotate(360deg); } }
@keyframes tr-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes tr-in { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.tr { font-family: var(--shantell); font-weight: 600; color: var(--ink); }
.tr-tab *, .tr-modal *:not(button):not(input) { box-sizing: content-box; } /* makieta liczy wymiary bez paddingu (jak ToddRadio.dc.html) */
.tr-tab { position: fixed; left: 0; top: 50%; z-index: 82; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-left: 0; border-radius: 0 18px 18px 0; padding: 12px 8px 14px 6px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: padding .15s; font: inherit; }
.tr-tab:hover { padding-left: 12px; }
.tr.is-on .tr-tab { background: var(--gold); }
.tr-tab__cass { position: relative; width: 34px; height: 24px; border-radius: 6px; background: var(--olive); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 5px; }
.tr-tab__reel { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tr.is-on .tr-tab__reel { animation: tr-spin 1.4s linear infinite; }
.tr-tab__lbl { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--bowlby); font-size: 15px; line-height: 1; letter-spacing: .02em; }
.tr-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.tr-eq[hidden] { display: none; }
.tr-eq span { width: 3px; height: 100%; background: var(--ink); border-radius: 2px; transform-origin: 50% 100%; animation: tr-eq .6s ease-in-out infinite; }
.tr-eq span:nth-child(2) { animation-delay: .2s; } .tr-eq span:nth-child(3) { animation-delay: .4s; }

.tr-modal { position: fixed; inset: 0; z-index: 130; background: rgba(30, 28, 20, .6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.tr-modal[hidden] { display: none; }
.tr-card { position: relative; width: 100%; max-width: 700px; max-height: 100%; overflow-y: auto; background: var(--paper); border: 3px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--ink); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 18px; animation: tr-in .3s cubic-bezier(.3, 1.4, .5, 1) both; }
.tr-card :focus-visible { outline-color: var(--ink); }
.tr-x { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 26px; line-height: 1; font-weight: 800; color: var(--ink); }
.tr-head { display: flex; flex-direction: column; gap: 4px; padding-right: 60px; }
.tr-h { margin: 0; font-family: var(--bowlby); font-weight: 400; font-size: clamp(34px, 6vw, 50px); line-height: .95; }
.tr-sub { font-weight: 800; font-size: 16px; color: var(--green); }

.tr-cass { position: relative; background: var(--gold); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--ink); padding: clamp(16px, 4vw, 40px) clamp(16px, 6vw, 50px) 0; transform: rotate(-.6deg); display: flex; flex-direction: column; align-items: center; }
.tr-screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); }
.tr-screw--tl { left: 12px; top: 12px; } .tr-screw--tr { right: 12px; top: 12px; } .tr-screw--bl { left: 12px; bottom: 12px; } .tr-screw--br { right: 12px; bottom: 12px; }
.tr-label { position: relative; width: 100%; background: repeating-linear-gradient(180deg, var(--paper) 0 22px, #E9E3C8 22px 24px); border: 2.5px solid var(--ink); border-radius: 12px; padding: 20px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tr-side { position: absolute; left: 14px; top: 10px; background: var(--ink); color: var(--gold); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; transform: rotate(-2deg); }
.tr-title { font-family: var(--bowlby); font-size: clamp(24px, 4.4vw, 36px); line-height: 1; padding-top: 14px; text-align: center; }
.tr-window { width: min(100%, 340px); height: 84px; background: var(--ink); border-radius: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 10px; }
.tr-reel { flex: none; width: 58px; height: 58px; border-radius: 50%; background: repeating-conic-gradient(#C9D3A8 0 20deg, var(--paper) 20deg 40deg); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.tr-reel span { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.tr.is-on .tr-reel { animation: tr-spin 2.4s linear infinite; }
.tr-tape { flex: 1; height: 22px; background: #6B4A2B; border-radius: 3px; }
.tr-foot { width: 68%; height: 72px; margin-top: 28px; background: var(--olive); border: 2.5px solid var(--ink); border-bottom: 0; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; gap: 28px; }
.tr-foot span { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }

.tr-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 4px; }
.tr-btn { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.tr-btn svg { fill: var(--ink); }
.tr-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.tr-btn--play { width: 96px; height: 96px; background: var(--gold); box-shadow: 6px 6px 0 var(--ink); }
.tr-btn--play:active { box-shadow: 3px 3px 0 var(--ink); }
.tr-row { display: flex; align-items: center; gap: 14px; }
.tr-row--vol { margin-top: -8px; }
.tr-time { flex: none; font-family: var(--bowlby); font-size: 18px; min-width: 44px; font-variant-numeric: tabular-nums; }
.tr-vollbl { flex: none; font-weight: 800; font-size: 17px; color: var(--green); }
.tr-range { flex: 1; min-width: 0; height: 22px; accent-color: var(--gold); background: transparent; cursor: pointer; margin: 0; }
.tr-list { display: flex; flex-direction: column; gap: 10px; max-height: min(300px, max(132px, calc(100dvh - 730px))); overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 6px 0; } /* 7 utworów: lista przewija się sama, przyciski zostają na miejscu; wysokość tak, by okno mieściło się w ekranie (1440×900: ~2,5 wiersza, 1080 px: ~4,5) */
.tr-song { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 16px 10px 12px; cursor: pointer; color: var(--ink); font: inherit; }
.tr-song.is-on { background: var(--gold); box-shadow: 4px 4px 0 var(--ink); }
.tr-song__n { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.tr-song__t { flex: 1; min-width: 0; font-family: var(--bowlby); font-size: 19px; line-height: 1.1; }
.tr-song__d { flex: none; font-weight: 800; font-size: 17px; color: var(--green); font-variant-numeric: tabular-nums; }

/* telefon (prośba Huberta 2026-10-06): mała wypustka z samą kasetą zamiast pionowej zakładki 55×168 z makiety */
@media (max-width: 760px) {
  .tr-tab { gap: 5px; padding: 7px 6px 7px 4px; border-width: 2.5px; border-radius: 0 12px 12px 0; box-shadow: 3px 3px 0 var(--ink); }
  .tr-tab:hover { padding-left: 4px; }
  .tr-tab__cass { width: 24px; height: 17px; border-radius: 4px; border-width: 2px; gap: 3px; }
  .tr-tab__reel { width: 5px; height: 5px; border-width: 1.5px; }
  .tr-tab__lbl { display: none; }
  .tr-eq { height: 10px; }
  .tr-card { padding-left: 18px; padding-right: 18px; }
  .tr-song { gap: 8px; padding-right: 10px; }
  .tr-song__t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* „the name's enough” w jednej linii na 390 px */
}
@media (prefers-reduced-motion: reduce) {
  .tr.is-on .tr-tab__reel, .tr.is-on .tr-reel, .tr-eq span, .tr-card { animation: none; }
}
