/* 1radio.pl – styles (dark theme from the mockup). No external requests: fonts are served from /assets/fonts. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/inter-800.woff2) format('woff2'); }

/* 1radio.pl - styles. Rules are taken from the mockup (flash1-makietav2); the layout itself is inline in site.js, as in the mockup. */
html, body { margin: 0; background: #0C0910; }
body { color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #0C0910; color: #fff; }
#app > main { flex: 1; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #FFC21F; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nl:hover { background: rgba(255, 255, 255, .08); }
.btn:hover { filter: brightness(1.1); }
.pill:hover { background: rgba(255, 255, 255, .2) !important; }
.it:hover { background: rgba(255, 255, 255, .07) !important; }
.card:hover .rc { transform: translateY(-4px); }
.rc { transition: transform .2s ease; }
.rec:hover h3 { text-decoration: underline; }
.side:hover { background: rgba(255, 255, 255, .07); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 3px; height: 100%; background: #fff; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .45s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF3D5A; animation: pulse 1.6s ease-in-out infinite; }
.dot.off { background: #6b6277; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { 0% { opacity: 0; transform: translateY(-14px); background: rgba(255, 194, 31, .35); } 60% { opacity: 1; transform: none; background: rgba(255, 194, 31, .25); } 100% { background: transparent; } }
.scroll::-webkit-scrollbar { width: 8px; } .scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.hero, .lcol { container-type: inline-size; }
.hero-cover { flex: 0 1 clamp(230px, 26cqi, 300px) !important; width: min(clamp(230px, 26cqi, 300px), 100%) !important; }
.hero-h1 { font-size: clamp(30px, 4.2cqi, 60px) !important; }
/* rows of cards: always whole tiles, the count depends on the width of the column (2 -> 8) */
.row { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row > * { min-width: 0; }
.row > :nth-child(n+3) { display: none !important; }
.row > :nth-child(-n+2) { display: flex !important; }
@container (min-width: 520px) { .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .row > :nth-child(-n+3) { display: flex !important; } }
@container (min-width: 760px) { .row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .row > :nth-child(-n+4) { display: flex !important; } }
@container (min-width: 980px) { .row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .row > :nth-child(-n+5) { display: flex !important; } }
@container (min-width: 1200px) { .row { grid-template-columns: repeat(6, minmax(0, 1fr)); } .row > :nth-child(-n+6) { display: flex !important; } }
@container (min-width: 1500px) { .row { grid-template-columns: repeat(7, minmax(0, 1fr)); } .row > :nth-child(-n+7) { display: flex !important; } }
@container (min-width: 1800px) { .row { grid-template-columns: repeat(8, minmax(0, 1fr)); } .row > :nth-child(-n+8) { display: flex !important; } }
.srch-btn { display: none !important; }
.dock-tabs { display: none !important; }
@media (max-width: 1100px) { .nav-links { display: none !important; } .dock-tabs { display: grid !important; } }
@media (max-width: 760px) { .srch { display: none !important; } .srch-btn { display: grid !important; } .mini-extra { display: none !important; } .hide-sm { display: none !important; } }

/* Playlist */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr)); gap: 20px 18px; grid-auto-flow: dense; align-items: start; container-type: inline-size; margin-top: 12px; }
.wall .cell { min-width: 0; }
.wall .tile { container-type: inline-size; }
.tile .act { opacity: 0; transition: opacity .15s; }
.tile:hover .act, .tile:focus-within .act { opacity: 1; }
.tile .cv { transition: transform .2s; }
.tile:hover .cv { transform: translateY(-3px); }
.act-b:hover { background: rgba(12, 9, 16, .92) !important; }
@media (hover: none) { .tile .act { opacity: 1; } }
.eq.sm { height: 12px; }

/* player dock and tabs stay at the bottom of the window */
.dockwrap { position: sticky; bottom: 0; z-index: 10; }
.vol { cursor: pointer; touch-action: none; }

@media (prefers-reduced-motion: reduce) { .eq i, .dot, .fresh { animation: none !important; } .rc, .tile .cv, .tile .act { transition: none; } }
.js-play.busy { animation: busy 1.1s ease-in-out infinite; }
@keyframes busy { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---- Schedule page ---- */
.sch-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 16px; border-radius: 24px; background: #17121F; border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 32px; }
.sch-daybar { flex: 1 1 520px; min-width: 0; display: flex; align-items: center; gap: 6px; }
.sch-days { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 2px; }
.sch-days::-webkit-scrollbar { display: none; }
.sch-day { flex: none; height: 54px; min-width: 76px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: #0C0910; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.sch-day span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #B9AFC8; }
.sch-day b { font-size: 14px; white-space: nowrap; }
.sch-day:hover { border-color: rgba(255, 255, 255, .5); }
.sch-day[aria-pressed="true"] { background: linear-gradient(120deg, #FFC21F, #FF8A3D 50%, #FF3D9A); border: 2px solid #000; color: #0D0A12; }
.sch-day[aria-pressed="true"] span { color: #0D0A12; }
.sch-arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.sch-arrow:hover { background: rgba(255, 255, 255, .2); }
.sch-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-parts button { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-weight: 700; }
.sch-parts button[aria-pressed="true"] { background: #fff; color: #0D0A12; border-color: #fff; }
.sch-h { margin: 8px 0 18px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.sch-hero { position: relative; display: flex; gap: 32px; align-items: center; padding: 28px; margin-bottom: 40px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #17121F; isolation: isolate; }
.sch-hero-bg { position: absolute; inset: -25%; z-index: -1; filter: blur(56px) saturate(1.5); opacity: .55; }
.sch-hero-pic { position: relative; flex: none; width: clamp(160px, 18vw, 240px); aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 3px #FFC21F, 0 24px 60px rgba(255, 61, 154, .28); overflow: hidden; }
.sch-hero-txt { position: relative; flex: 1; min-width: 0; }
.sch-hero-txt h2 { margin: 0; font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.sch-hero-play { position: absolute; right: 0; top: 0; }
.sch-live { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(12, 9, 16, .72); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.sch-sub { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.sch-desc { margin: 8px 0 0; max-width: 70ch; color: #D9D1E6; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sch-prog { margin-top: 18px; max-width: 520px; }
.sch-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr)); gap: 28px 18px; }
.sch-card { min-width: 0; }
.sch-card.past { opacity: .55; }
.sch-card.past:hover { opacity: 1; }
.sch-cpic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; box-shadow: 0 0 0 2px #000, 0 10px 24px rgba(0, 0, 0, .4); overflow: hidden; }
.sch-card.on .sch-cpic { box-shadow: 0 0 0 3px #FFC21F, 0 14px 34px rgba(255, 61, 154, .3); }
.sch-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(12, 9, 16, .8); backdrop-filter: blur(6px); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.sch-chip em { font-style: normal; font-weight: 600; color: #B9AFC8; }
.sch-chip i { font-style: normal; font-size: 10px; letter-spacing: .08em; color: #0D0A12; background: #FFC21F; border-radius: 999px; padding: 2px 7px; margin-right: 2px; }
.sch-onair { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(120deg, #FFC21F, #FF3D9A); color: #0D0A12; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.sch-onair .dot { background: #0D0A12; }
.sch-card h3 { margin: 12px 0 0; font-size: 17px; line-height: 1.25; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-card .sch-sub { margin-top: 2px; font-size: 14px; color: #FFC21F; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-card .sch-desc { margin-top: 4px; font-size: 14px; color: #B9AFC8; -webkit-line-clamp: 2; }
@media (max-width: 760px) {
  .sch-panel { padding: 12px; margin-bottom: 24px; }
  .sch-day { height: 50px; min-width: 70px; }
  .sch-parts button { height: 40px; padding: 0 14px; }
  .sch-h { font-size: 24px; }
  .sch-hero { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px; border-radius: 22px; margin-bottom: 28px; }
  .sch-hero-pic { width: 100%; max-width: 190px; }
  .sch-hero-play { position: static; margin-top: 16px; }
  .sch-wall { gap: 24px 14px; }
  .sch-chip { font-size: 12px; padding: 4px 8px; left: 8px; top: 8px; }
  .sch-chip em { display: none; }
  .sch-card h3 { font-size: 15px; }
}

/* ---- One size for the covers of every page (Playlist, Schedule, Music, Hits, New releases, Search) ---- */
:root { --tile-min: clamp(150px, 13vw, 200px); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr)); gap: 28px 18px; }
.tgrid > * { min-width: 0; }
@media (max-width: 760px) { .tgrid { gap: 22px 14px; } }

/* ---- Search: the suggestions under the header box, the sheet on a phone and the results page ---- */
.sg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; padding: 8px; border-radius: 22px; background: #17121F; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); max-height: min(72vh, 600px); overflow-y: auto; }
.sg[hidden] { display: none; }
.sg-h { padding: 10px 10px 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #B9AFC8; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 8px; border-radius: 14px; color: #fff; min-height: 56px; box-sizing: border-box; }
.sg-row:hover, .sg-row.act { background: rgba(255, 255, 255, .1); }
.sg-pic { flex: none; position: relative; width: 48px; height: 48px; border-radius: 10px; box-shadow: 0 0 0 2px #000; overflow: hidden; }
.sg-t, .sg-s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-t { font-weight: 700; }
.sg-s { color: #B9AFC8; font-size: 14px; }
.sg-k { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8F84A3; }
.sg-all { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 14px 14px; color: #FFC21F; font-weight: 700; min-height: 52px; }
.sg-none { padding: 18px 12px; color: #B9AFC8; }
.sov { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #0C0910; }
.sov-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.sov-back { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.sov .sg { position: static; flex: 1; border: 0; box-shadow: none; background: transparent; max-height: none; border-radius: 0; padding: 4px 8px 24px; }
.sov-hint { margin: 0; padding: 18px 20px; color: #B9AFC8; }
.sr-h { margin: 0 0 18px; font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 28px; }

/* ---- Page changes: the new page is built beside the old one and fades in; a thin bar shows the progress (like YouTube) ---- */
#app > main.staging { position: fixed !important; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }
#app > main.leaving { pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#app > main.page-in { animation: pageIn .26s ease-out both; }
#nbar { position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, #FFC21F, #FF8A3D 55%, #FF3D9A); box-shadow: 0 0 10px rgba(255, 61, 154, .6); border-radius: 0 3px 3px 0; }
@media (prefers-reduced-motion: reduce) { #app > main.page-in { animation: none; } }

/* Article page (/article/<slug>): the picture, the title, the lead and the text (a column of comfortable width). */
.art { max-width: 1040px; margin: 0 auto; }
.art-hero { width: 100%; aspect-ratio: 40 / 21; border-radius: 24px; background: #1E1E1E center / cover no-repeat; box-shadow: 0 0 0 3px #000, 0 20px 50px rgba(0, 0, 0, .45); }
.art-head { max-width: 720px; margin: 36px auto 0; }
.art-head h1 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.art-lead { margin-top: 12px; color: #B9AFC8; font-size: 20px; line-height: 1.4; }
.art-body { max-width: 720px; margin: 28px auto 0; font-size: 18px; line-height: 1.65; color: #E7E1F0; overflow-wrap: anywhere; }
.art-body p { margin: 0 0 18px; }
.art-body h2 { margin: 40px 0 12px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.art-body h3 { margin: 28px 0 8px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; color: #fff; }
.art-body ul { margin: 0 0 18px; padding-left: 1.3em; }
.art-body li { margin: 0 0 8px; padding-left: 4px; }
.art-body strong { color: #fff; }
.art-body a:not(.art-btn) { color: #FFC21F; text-decoration: underline; text-underline-offset: 3px; }
.art-body a:not(.art-btn):hover { text-decoration-thickness: 2px; }
.art-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: #fff; color: #0D0A12; font-size: 16px; font-weight: 700; text-decoration: none; }
.art-btn:hover { filter: brightness(1.1); }
@media (max-width: 760px) {
  .art-hero { border-radius: 18px; }
  .art-head { margin-top: 24px; }
  .art-lead { font-size: 18px; }
  .art-body { font-size: 17px; }
  .art-body h2 { font-size: 23px; margin-top: 32px; }
}
