/* Cliffy Stream: For You (/stream/for-you). A full-screen vertical feed; layout and behaviour modelled on getcliffy.com.
   Phone layout first; the three-column desktop layout (sidebar, player, details card) is at the bottom.
   Colours reuse the stream theme (black, Inter); everything here is scoped to .fy-* so no other page is touched. */

body.fy { display: block; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: #000; }
body.fy::before { display: none; }

.fy-app {
  --tab-h: calc(58px + env(safe-area-inset-bottom, 0px));
  --panel: #161618;
  --chip: rgba(255,255,255,0.1);
  --soft: rgba(255,255,255,0.07);
  position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #000; color: #f5f5f7;
}
.fy-app.is-watching { --tab-h: 0px; }
.fy-app button, .fy-dlg button, .fy-menu button { -webkit-tap-highlight-color: transparent; }

/* ---------- Feed ---------- */
.fy-main { position: absolute; left: 0; right: 0; top: 0; bottom: var(--tab-h); }
.fy-feed { height: 100%; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; }
.fy-feed::-webkit-scrollbar { display: none; }
.fy-app.is-watching .fy-feed { overflow: hidden; }
.fy-slide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.fy-cluster { height: 100%; display: flex; justify-content: center; }

/* ---------- Player ---------- */
.fy-player {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; isolation: isolate;
  max-width: calc((100vh - var(--tab-h)) * 9 / 16); max-width: calc((100dvh - var(--tab-h)) * 9 / 16);
}
.fy-poster, .fy-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.fy-poster.broken { visibility: hidden; }
.fy-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0, rgba(0,0,0,0) 17%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.78) 100%); }
.fy-tap { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: pointer; }
.fy-tap:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 0; }
.fy-bigplay, .fy-spin { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.fy-bigplay { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: scale(0.88); transition: opacity 0.18s ease, transform 0.18s ease; }
.fy-player.paused .fy-bigplay { opacity: 1; transform: none; }
.fy-spin { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; opacity: 0; }
.fy-player.loading .fy-spin { opacity: 1; animation: fy-rot 0.8s linear infinite; }
@keyframes fy-rot { to { transform: rotate(360deg); } }

.fy-mute { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 126px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,0.38); }
.fy-mute .off { display: none; }
.fy-app[data-muted="1"] .fy-mute .on { display: none; }
.fy-app[data-muted="1"] .fy-mute .off { display: grid; }

/* Phone: right-hand rail */
.fy-rail { position: absolute; z-index: 6; right: 8px; bottom: 82px; display: flex; flex-direction: column; align-items: center; gap: 15px; pointer-events: none; }
.fy-rail > * { pointer-events: auto; }
.fy-avatar { position: relative; width: 46px; height: 46px; margin-bottom: 9px; border-radius: 50%; border: 2px solid #fff; background: #000; }
.fy-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fy-avatar b { position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.rail-act { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.rail-act svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 5px rgba(0,0,0,0.55)); }
.rail-act.dots span { display: none; }

/* Phone, feed mode: title, blurb, Watch */
.fy-info { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 70px 14px 14px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 28%, rgba(0,0,0,0)); }
.fy-info a, .fy-info button { pointer-events: auto; }
.fy-text { padding-right: 62px; }
.fy-ititle { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.fy-idesc { margin-top: 5px; font-size: 14px; line-height: 1.38; color: rgba(255,255,255,0.86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-info.open .fy-idesc { display: block; max-height: 34vh; max-height: 34dvh; overflow: auto; pointer-events: auto; }
.fy-more { font-size: 13.5px; font-weight: 800; color: #fff; }
.fy-cta { display: flex; gap: 10px; margin-top: 12px; }
.fy-watch, .fy-infobtn { height: 48px; border-radius: 999px; background: rgba(72,72,76,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fy-watch { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.fy-infobtn { width: 48px; flex: none; display: grid; place-items: center; }

/* Phone, watching: episode title and the bottom bar */
.fy-now { display: none; }
.fy-app.is-watching .fy-info { display: none; }
.fy-app.is-watching .fy-now { display: block; position: absolute; z-index: 5; left: 14px; right: 76px; bottom: 138px; font-size: 17px; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,0.6); pointer-events: none; }
.fy-app.is-watching .fy-rail { bottom: 150px; }

.fy-bar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; }
.fy-barrow, .fy-times, .fy-eprow { display: none; }
.fy-scrub { position: relative; height: 3px; background: rgba(255,255,255,0.28); cursor: pointer; touch-action: none; }
.fy-scrub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }   /* bigger hit area */
.fy-scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.fy-feed .fy-scrub { pointer-events: none; }
.fy-app.is-watching .fy-bar { padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
.fy-app.is-watching .fy-scrub { pointer-events: auto; border-radius: 3px; }
.fy-app.is-watching .fy-scrub::after { content: ""; position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; }
.fy-app.is-watching .fy-times { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
.fy-app.is-watching .fy-eprow { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-top: 10px; padding: 0 14px; border-radius: 14px; background: rgba(56,56,60,0.9); font-size: 14px; font-weight: 700; }
.fy-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }

/* Locked / error / end-of-episodes panel inside the player */
.fy-overlay { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fy-overlay h3 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.fy-overlay p { max-width: 290px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.78); }
.fy-overlay .store { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; width: min(260px, 100%); }
.fy-overlay .btn { width: 100%; }
.fy-lockicon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); }

/* ---------- Phone chrome ---------- */
.fy-top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(52px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.fy-top > * { pointer-events: auto; }
.fy-top-grow { flex: 1; pointer-events: none; }
.fy-switch { position: relative; }
.fy-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 2px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.fy-switch summary::-webkit-details-marker { display: none; }
.fy-switch[open] summary svg { transform: rotate(180deg); }
.fy-switch-pop { position: absolute; left: -8px; top: 100%; margin-top: 8px; min-width: 168px; padding: 6px; border-radius: 16px; background: #232326; box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
.fy-switch-pop a { display: block; padding: 11px 13px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.fy-switch-pop a.on { background: rgba(255,255,255,0.1); }
.fy-back, .fy-top-title { display: none; }
.fy-back { width: 40px; height: 40px; margin-left: -10px; place-items: center; flex: none; }
.fy-top-title { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: calc(100% - 230px); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.fy-app.is-watching .fy-switch { display: none; }
.fy-app.is-watching .fy-back { display: grid; }
.fy-app.is-watching .fy-top-title { display: block; }
/* On a tablet or a narrow-but-tall window the video is a centred column; keep the bars the same width */
.fy-top, .fy-tabs { max-width: calc((100vh - var(--tab-h)) * 9 / 16); max-width: calc((100dvh - var(--tab-h)) * 9 / 16); margin: 0 auto; }
.fy-appnow { height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 700; white-space: nowrap; }

.fy-tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: space-around; background: #000; }
.fy-app.is-watching .fy-tabs { display: none; }
.fy-tabs a { flex: 1; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,0.58); }
.fy-tabs a.on { color: #fff; }
.fy-tabs .fy-plus { flex: 0 0 58px; width: 58px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 3px 0 rgba(255,255,255,0.28); }
.fy-side { display: none; }

/* ---------- Details card (a bottom sheet on phones) ---------- */
.fy-pager { display: none; }
.fy-panel { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 82vh; max-height: 82dvh; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden; transform: translateY(105%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s; box-shadow: 0 -20px 60px rgba(0,0,0,0.5); }
.fy-slide.sheet .fy-panel { visibility: visible; transform: none; transition-delay: 0s; }
.fy-slide.sheet::after { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.55); }
.fy-grab { width: 38px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: rgba(255,255,255,0.22); }
.fy-ptabs { display: flex; align-items: center; gap: 20px; padding: 10px 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fy-ptab { padding: 8px 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.5); }
.fy-ptab.on { color: #fff; border-color: #fff; }
.fy-sheet-x { margin-left: auto; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.fy-pbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 26px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.fy-head { display: flex; gap: 14px; align-items: flex-start; }
.fy-thumb, .fy-head .noimg { flex: none; width: 66px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 9px; background: var(--chip); font-size: 22px; }
.fy-headtext { min-width: 0; }
.fy-title { font-size: 20px; font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
.fy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fy-chip { padding: 5px 8px; border-radius: 5px; background: var(--chip); color: rgba(255,255,255,0.8); font-size: 10px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; text-transform: uppercase; }
.fy-count { margin-top: 9px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); }
.fy-by { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.fy-bya img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.fy-byn { font-size: 13px; font-weight: 700; }
.fy-follow { margin-left: auto; height: 32px; padding: 0 15px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 700; }
.fy-desc { margin-top: 12px; }
.fy-desc p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.74); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-desc.open p { display: block; }
.fy-desc .fy-more { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,0.55); }
.fy-full { display: none; width: 100%; height: 48px; margin-top: 14px; border-radius: 999px; background: #fff; color: #000; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.fy-actions { display: flex; gap: 8px; margin-top: 12px; }
.fy-pill { height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--soft); font-size: 13.5px; font-weight: 600; }
.fy-pill:hover { background: rgba(255,255,255,0.12); }
.fy-pill.sq { width: 40px; padding: 0; justify-content: center; }
.fy-stabs { display: flex; gap: 20px; margin-top: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fy-stab { display: inline-flex; align-items: center; gap: 5px; padding: 8px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); }
.fy-stab.on { color: #fff; border-color: #fff; }
.fy-eps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.fy-eps-head h3 { font-size: 16px; font-weight: 700; }
.fy-eps-head h3 span { margin-left: 4px; font-weight: 600; color: rgba(255,255,255,0.42); }
.fy-access { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); }
.fy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.fy-ep { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(rgba(255,255,255,0.11), rgba(255,255,255,0.055)); font-size: 17px; font-weight: 800; transition: background 0.15s ease, transform 0.1s ease; }
.fy-ep:hover { background: rgba(255,255,255,0.2); }
.fy-ep:active { transform: scale(0.96); }
.fy-ep.cur, .fy-ep.cur:hover { background: #fff; color: #000; }
.fy-ep.locked { background: rgba(255,255,255,0.045); color: rgba(255,255,255,0.4); }
.fy-eplock { position: absolute; top: 6px; right: 6px; display: grid; opacity: 0.8; }
.fy-epbar { display: none; }
.fy-ep.cur .fy-epbar { display: block; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(0,0,0,0.16); overflow: hidden; }
.fy-ep.cur .fy-epbar::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #000; border-radius: 3px; }
.fy-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 8px 10px; text-align: center; color: rgba(255,255,255,0.8); }
.fy-empty h3 { margin-top: 6px; font-size: 17px; font-weight: 800; color: #fff; }
.fy-empty p { max-width: 260px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.6); }
.fy-empty .store { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; width: min(250px, 100%); }
.fy-empty .btn { width: 100%; }

/* ---------- Popover menu, dialog, toast ---------- */
.fy-menu { position: fixed; z-index: 70; min-width: 200px; padding: 6px; border-radius: 14px; background: #232326; box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06); }
.fy-menu > * { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #f5f5f7; text-align: left; }
.fy-menu > *:hover, .fy-menu > *:focus-visible { background: rgba(255,255,255,0.1); }
.fy-dlg { margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--panel, #161618); color: #fff; width: min(380px, calc(100vw - 32px)); box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08); }
.fy-dlg::backdrop { background: rgba(0,0,0,0.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fy-dlg-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 24px 24px; text-align: center; }
.fy-dlg-in > img { width: 56px; height: 56px; border-radius: 14px; }
.fy-dlg h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.fy-dlg p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.68); }
.fy-dlg .store { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.fy-dlg .btn { width: 100%; }
.fy-dlg-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.fy-toast { position: fixed; z-index: 80; left: 50%; bottom: 96px; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: #f5f5f7; color: #000; font-size: 13.5px; font-weight: 700;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.fy-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Full screen (the Full screen button) ---------- */
.fy-player:fullscreen { width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0 !important; }
.fy-player:fullscreen .fy-video, .fy-player:fullscreen .fy-poster { object-fit: contain; }
.fy-player:-webkit-full-screen { width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0 !important; }
.fy-player:-webkit-full-screen .fy-video, .fy-player:-webkit-full-screen .fy-poster { object-fit: contain; }

/* ---------- Desktop: sidebar, player, details card ---------- */
@media (min-width: 1024px) and (min-height: 520px) {
  .fy-app { display: flex; }
  .fy-top, .fy-tabs { display: none; }
  .fy-main { position: relative; inset: auto; flex: 1; min-width: 0; height: 100%; }
  .fy-slide { container-type: size; }
  .fy-cluster { display: grid; grid-template-columns: auto 64px 400px; justify-content: center; align-items: center; padding: 16px 0; }

  .fy-player { width: auto; max-width: none; height: calc(100vh - 32px); height: calc(100dvh - 32px); aspect-ratio: 9 / 16; border-radius: 16px; }
  @supports (height: 1cqh) {
    .fy-player { height: min(calc(100cqh - 32px), calc((100cqw - 464px - 32px) * 16 / 9)); }
  }
  .fy-mute { top: 12px; right: 12px; }
  .fy-rail, .fy-info, .fy-now { display: none !important; }
  .fy-bigplay { width: 80px; height: 80px; margin: -40px 0 0 -40px; }

  /* bottom bar: "Episode 1" and the time over a thin scrub line */
  .fy-bar { padding: 0 16px 14px; }
  .fy-barrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
  .fy-time { font-weight: 600; color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; }
  .fy-feed .fy-scrub { pointer-events: auto; border-radius: 3px; transition: height 0.12s ease; }
  .fy-scrub:hover, .fy-scrub:focus-visible { height: 5px; }
  .fy-scrub:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 3px; }
  .fy-app.is-watching .fy-bar { padding: 0 16px 14px; }
  .fy-app.is-watching .fy-times, .fy-app.is-watching .fy-eprow { display: none; }
  .fy-app.is-watching .fy-scrub::after { display: none; }
  .fy-app.is-watching .fy-feed { overflow-y: auto; }

  .fy-pager { display: flex; flex-direction: column; gap: 2px; justify-self: center; padding: 4px; border-radius: 999px; background: var(--panel); }
  .fy-pg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,0.78); }
  .fy-pg:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #fff; }
  .fy-pg:disabled { opacity: 0.28; cursor: default; }

  .fy-panel { position: relative; inset: auto; z-index: 1; align-self: stretch; contain: size; max-height: none; border-radius: 24px; padding-bottom: 0; visibility: visible; transform: none; transition: none; box-shadow: none; }
  .fy-slide.sheet::after { display: none; }
  .fy-grab, .fy-sheet-x { display: none; }
  .fy-full { display: flex; }
  .fy-pbody { padding: 18px 20px 26px; }

  /* sidebar */
  .fy-side { flex: none; width: 240px; display: flex; flex-direction: column; padding: 22px 14px 14px; background: #000; z-index: 5; overflow-y: auto; scrollbar-width: none; }
  .fy-logo { display: block; padding: 0 10px 20px; }
  .fy-logo img { height: 30px; width: auto; }
  .fy-logo-mark { display: none; }
  .fy-search { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 15px; border-radius: 999px; background: #1c1c1e; color: rgba(255,255,255,0.5); transition: box-shadow 0.15s ease; }
  .fy-search:focus-within { box-shadow: 0 0 0 2px rgba(138,92,246,0.8); }
  .fy-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 14px; }
  .fy-search input::placeholder { color: rgba(255,255,255,0.5); }
  .fy-search input::-webkit-search-cancel-button { display: none; }
  .fy-search kbd { padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,0.08); font: 600 11px/1.5 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.55); }
  .fy-nav { list-style: none; display: grid; gap: 4px; margin-top: 16px; }
  .fy-nav a, .fy-nav button { display: flex; align-items: center; gap: 13px; width: 100%; height: 44px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: left; color: rgba(245,245,247,0.68); transition: background 0.15s ease, color 0.15s ease; }
  .fy-nav a:hover, .fy-nav button:hover { background: #111113; color: #fff; }
  .fy-nav a.on { background: #1c1c1e; color: #fff; }
  .fy-nav-search { display: none; }
  .fy-grow { flex: 1; min-height: 16px; }
  .fy-appcard { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #111113; }
  .fy-appcard h2 { font-size: 14px; font-weight: 800; }
  .fy-appcard p { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.58); }
  .fy-appbtn { display: block; padding: 9px 12px; border-radius: 10px; background: #1c1c1e; text-align: center; font-size: 13px; font-weight: 700; }
  .fy-appbtn:hover { background: #2a2a2d; }
  .fy-legal { margin-top: 14px; padding: 0 6px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.4); }
  .fy-legal a:hover { color: #fff; }

  .fy-toast { bottom: 32px; }
}

/* Smaller laptops: the sidebar becomes an icon rail */
@media (min-width: 1024px) and (max-width: 1179px) and (min-height: 520px) {
  .fy-side { width: 76px; align-items: center; padding: 18px 8px; }
  .fy-logo { padding: 0 0 18px; }
  .fy-logo img:not(.fy-logo-mark) { display: none; }
  .fy-logo-mark { display: block; width: 40px; height: 40px; border-radius: 11px; }
  .fy-search, .fy-appcard, .fy-legal { display: none; }
  .fy-nav { margin-top: 4px; width: 100%; }
  .fy-nav a, .fy-nav button { justify-content: center; padding: 0; }
  .fy-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fy-nav-search { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .fy-panel, .fy-bigplay, .fy-toast, .fy-scrub, .fy-ep { transition: none !important; }
  .fy-player.loading .fy-spin { animation-duration: 2.4s; }
}
