/* MUSIC FM Reels — editorial short-video rail, 2026 refresh. */
/* MUSIC FM Reels — uses the same section shell and heading language as the rest of the home templates. */
.home-page .mf-home-reels{
  --reels-navy:#041327;
  --reels-navy-2:#071d37;
  --reels-blue:#147cff;
  --reels-sky:#59c7ff;
  --reels-turquoise:#25c8c3;
  --reels-purple:#7c67d9;
  --reels-red:#e94355;
  --reels-ink:var(--mf-ui-ink,#17243a);
  --reels-muted:var(--mf-ui-muted,#617086);
  --reels-line:var(--mf-ui-line,#e2e8ef);
  --reels-soft:var(--mf-ui-soft,#f8fafc);
  position:relative;
  min-width:0;
  margin:0 0 30px;
  padding:0 22px 26px;
  background:var(--mf-ui-porcelain,#fff);
  border:1px solid var(--reels-line);
  border-radius:var(--mf-ui-radius,3px);
  box-shadow:var(--mf-ui-depth-1,0 10px 28px rgba(7,31,63,.045));
  color:var(--reels-ink);
  overflow:hidden;
  scroll-margin-top:100px;
}
.home-page .mf-home-reels::before{content:"";position:absolute;right:0;left:0;top:0;height:2px;background:var(--mf-ui-navy-2,#071d37)}
.mf-home-reels [hidden]{display:none!important}

/* Same title system as every regular home section: marker + title + compact action area. */
.home-page .mf-home-reels .mf-reels-heading{
  min-height:0;
  height:auto;
  margin:0 0 12px;
  padding:18px 0 15px;
  border:0;
  border-bottom:1px solid var(--reels-line);
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.mf-home-reels .mf-reels-heading-main{display:flex;align-items:center;gap:12px;min-width:0}
.home-page .mf-home-reels .mf-reels-heading-main>i{display:block;flex:0 0 auto;width:26px;height:1px;border-radius:0;background:#5ba7e8!important}
.home-page .mf-home-reels .mf-reels-heading h2{margin:0;color:var(--mf-ui-ink-strong,#102541)!important;font-size:31px;font-weight:700!important;line-height:1.25;letter-spacing:-.9px}
.mf-home-reels .mf-reels-description{margin:0 0 16px;color:var(--reels-muted);font-size:12.5px;line-height:1.65}
.mf-home-reels .mf-reels-toolbar{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.mf-home-reels .mf-reels-filter{display:flex;align-items:center;gap:7px;color:var(--reels-muted);font-size:10.5px;font-weight:700;white-space:nowrap}
.mf-home-reels .mf-reels-filter select{height:36px;max-width:150px;padding:0 10px;border:1px solid var(--mf-ui-line-strong,#ced8e3);border-radius:var(--mf-ui-radius-control,3px);background:#fff;color:var(--mf-ui-ink-strong,#102541);font:inherit;font-size:11px;cursor:pointer}
.mf-home-reels .mf-reels-count{font-size:10px;color:var(--mf-ui-muted-2,#748298);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Rail: intentionally tall and cinematic, like a proper short-form video strip. */
.mf-home-reels .mf-reels-stage{position:relative;min-width:0;padding:0 24px}
.mf-home-reels .mf-reels-rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 24px)/3);
  gap:12px;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:0;
  scrollbar-width:none;
  direction:rtl;
  -webkit-overflow-scrolling:touch;
}
.mf-home-reels .mf-reels-rail::-webkit-scrollbar{display:none}
.mf-home-reels .mf-reel-card{min-width:0;scroll-snap-align:start;background:var(--reels-navy);overflow:hidden;border:1px solid #dbe3ed}
.mf-home-reels .mf-reel-watch{position:relative;display:block;height:clamp(400px,48vw,560px);min-height:0;overflow:hidden;isolation:isolate;background:#091b30;color:#fff;text-decoration:none}
.mf-home-reels .mf-reel-watch::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(4,19,39,.28) 0%,rgba(4,19,39,.03) 25%,rgba(4,19,39,.06) 48%,rgba(4,19,39,.78) 72%,rgba(4,19,39,.98) 100%)}
.mf-home-reels .mf-reel-watch::after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.mf-home-reels .mf-reel-watch>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.96) contrast(1.02);transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .25s ease}
.mf-home-reels .mf-reel-watch:hover>img{transform:scale(1.025);filter:saturate(1.03) contrast(1.03)}

.mf-home-reels .mf-reel-topbar{position:absolute;z-index:3;top:12px;right:12px;left:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.mf-home-reels .mf-reel-brand{display:inline-flex;align-items:center;gap:6px;height:27px;padding:0 8px;background:rgba(4,19,39,.68);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);font-size:9px;font-weight:900;letter-spacing:1.05px;color:#fff}
.mf-home-reels .mf-reel-brand i{width:5px;height:12px;background:linear-gradient(180deg,var(--reels-sky),var(--reels-turquoise))}
.mf-home-reels .mf-reel-source-icon{width:28px;height:28px;display:grid;place-items:center;background:rgba(4,19,39,.62);border:1px solid rgba(255,255,255,.17);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.mf-home-reels .mf-reel-source-icon .mf-icon{width:16px;height:16px;color:#fff}

.mf-home-reels .mf-reel-play{position:absolute;z-index:3;right:16px;bottom:132px;width:39px;height:39px;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#0b2a4f;border:1px solid rgba(255,255,255,.82);box-shadow:0 8px 25px rgba(3,15,30,.22);transition:transform .2s ease,background-color .2s ease,color .2s ease}
.mf-home-reels .mf-reel-play .mf-icon{width:15px;height:15px;margin-inline-start:2px}
.mf-home-reels .mf-reel-watch:hover .mf-reel-play{transform:translateY(-2px);background:#fff;color:var(--reels-blue)}

.mf-home-reels .mf-reel-caption{position:absolute;z-index:3;right:0;left:0;bottom:0;padding:56px 15px 15px;color:#fff;pointer-events:none}
.mf-home-reels .mf-reel-artist{display:block;margin-bottom:7px;color:#9edcff;font-size:10.5px;font-weight:900;letter-spacing:.05px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-home-reels .mf-reel-caption h3{margin:0;min-height:52px;color:#fff;font-size:17px;font-weight:850;line-height:1.47;letter-spacing:-.25px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 1px 14px rgba(0,0,0,.25)}
.mf-home-reels .mf-reel-meta{display:flex;align-items:center;gap:7px;margin-top:12px;min-height:24px}
.mf-home-reels .mf-reel-duration{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 7px;background:linear-gradient(135deg,#285ef4,#2f7fff);color:#fff;font-size:10px;font-weight:900;direction:ltr;font-variant-numeric:tabular-nums;box-shadow:0 3px 12px rgba(20,124,255,.22)}
.mf-home-reels .mf-reel-pick{display:inline-flex;align-items:center;min-height:24px;padding:0 7px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-size:9px;color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.mf-home-reels .mf-reel-open-label{margin-inline-start:auto;color:#dce8f5;font-size:9.5px;font-weight:800}

/* Large floating arrows, inspired by the reference without copying its visual identity. */
.mf-home-reels .mf-reels-floating-nav{position:absolute;z-index:5;inset:0;pointer-events:none}
.mf-home-reels .mf-reels-floating-nav button{position:absolute;top:50%;width:52px;height:52px;margin-top:-26px;display:grid;place-items:center;padding:0;border:1px solid #d9e1ea;border-radius:50%;background:rgba(255,255,255,.97);color:#243142;box-shadow:0 10px 30px rgba(4,19,39,.17);cursor:pointer;pointer-events:auto;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}
.mf-home-reels .mf-reels-floating-nav button:hover:not(:disabled){transform:scale(1.045);box-shadow:0 12px 34px rgba(4,19,39,.22)}
.mf-home-reels .mf-reels-floating-nav button:disabled{opacity:0;pointer-events:none}
.mf-home-reels .mf-reels-floating-nav .mf-icon{width:20px;height:20px}
.mf-home-reels .mf-reels-rail-prev{right:5px}
.mf-home-reels .mf-reels-rail-next{left:5px}
.mf-home-reels .mf-reels-arrow-next{transform:rotate(180deg)}


.mf-home-reels .mf-reels-empty{display:flex;align-items:center;gap:15px;margin:0 24px;padding:26px 22px;border:1px solid #e3e9f0;background:#f9fbfd}
.mf-home-reels .mf-reels-empty-icon{width:48px;height:58px;display:grid;place-items:center;background:#fff;border:1px solid #dbe4ee;color:var(--reels-blue);box-shadow:5px 5px 0 #edf3f8;flex:0 0 auto}
.mf-home-reels .mf-reels-empty strong{display:block;color:#15253b;font-size:17px}.mf-home-reels .mf-reels-empty p{margin:6px 0 0;color:#6a788b;font-size:12px;line-height:1.65}.mf-home-reels .mf-reels-empty>a{display:flex;align-items:center;gap:6px;margin-inline-start:auto;color:#0d5fc2;font-size:11px;font-weight:900;white-space:nowrap}

.mf-home-reels :is(a,button,select,input):focus-visible{outline:3px solid var(--reels-blue);outline-offset:3px}
.mf-home-reels .mf-reel-watch:focus-visible{outline-offset:-4px;outline-color:var(--reels-sky)}

/* Viewer: vertical-video first, clean and restrained. */
.mf-home-reels .mf-reels-dialog{padding:0;margin:auto;width:min(900px,calc(100vw - 26px));max-width:calc(100vw - 26px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border:1px solid #213b5a;border-radius:4px;background:#fff;color:#17243a;box-shadow:0 28px 100px rgba(0,0,0,.46)}
.mf-home-reels .mf-reels-dialog[open]{display:grid;grid-template-columns:minmax(300px,440px) minmax(270px,1fr);grid-template-rows:auto minmax(0,1fr)}
.mf-home-reels .mf-reels-dialog::backdrop{background:rgba(2,10,21,.88);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.mf-home-reels .mf-reels-dialog-head{grid-column:1/-1;display:flex;align-items:center;gap:12px;min-height:50px;padding:6px 10px 6px 14px;background:#041327;color:#e9f2fb;border-bottom:1px solid #1f3c5e}
.mf-home-reels .mf-reels-dialog-brand{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:1.2px}.mf-home-reels .mf-reels-dialog-brand i{width:5px;height:15px;background:linear-gradient(180deg,var(--reels-sky),var(--reels-turquoise))}.mf-home-reels .mf-reels-dialog-brand b{color:#7bdcff;font-weight:900}
.mf-home-reels .mf-reels-position{margin-inline-start:auto;color:#9fb2c8;font-size:10px;direction:ltr;font-variant-numeric:tabular-nums}
.mf-home-reels .mf-reels-dialog-head button{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid #35516f;border-radius:2px;background:transparent;color:#fff;cursor:pointer}
.mf-home-reels .mf-reels-player-wrap{display:flex;align-items:center;justify-content:center;min-height:560px;background:#000;overflow:hidden}
.mf-home-reels .mf-reels-player{width:min(100%,400px);height:auto;aspect-ratio:9/16;min-width:0;min-height:0;background:#000}
.mf-home-reels .mf-reels-player iframe{display:block;width:100%;height:100%;border:0}
.mf-home-reels .mf-reels-info{display:flex;flex-direction:column;min-width:0;padding:34px 28px 24px;background:#fff;touch-action:pan-y}
.mf-home-reels .mf-reels-now{margin-bottom:12px;color:#7a8796;font-size:9.5px;font-weight:900;letter-spacing:.7px}
.mf-home-reels .mf-reels-artist-link{color:#0d5fc2;font-size:14px;font-weight:900;line-height:1.4;overflow-wrap:anywhere}
.mf-home-reels .mf-reels-info h3{margin:9px 0 20px;color:#102541;font-size:23px;font-weight:850;line-height:1.42;letter-spacing:-.35px;overflow-wrap:anywhere}
.mf-home-reels .mf-reels-source{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:15px 0;border-top:1px solid #e3e8ef;border-bottom:1px solid #e3e8ef}
.mf-home-reels .mf-reels-source a,.mf-home-reels .mf-reels-source button{display:flex;align-items:center;gap:7px;min-height:34px;padding:0;border:0;background:none;color:#5f6f83;font:inherit;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer}.mf-home-reels .mf-reels-source a .mf-icon{color:var(--reels-red)}.mf-home-reels .mf-reels-source button .mf-icon{width:14px;height:14px;transform:rotate(-45deg)}
.mf-home-reels .mf-reels-player-status{min-height:42px;margin:0;padding:13px 0;color:#6d7a8d;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.mf-home-reels .mf-reels-share-url{width:100%;min-width:0;min-height:40px;margin-bottom:12px;padding:8px;border:1px solid #d7e1ec;background:#f8fafc;color:#17243a;font:inherit;font-size:11px}
.mf-home-reels .mf-reels-player-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:18px}.mf-home-reels .mf-reels-player-nav button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:0 12px;border:1px solid #d8e1eb;border-radius:2px;background:#fff;color:#102541;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.mf-home-reels .mf-reels-player-nav button:last-child{border-color:#0d5fc2;background:#0d5fc2;color:#fff}.mf-home-reels .mf-reels-player-nav .mf-icon{width:14px;height:14px}.mf-home-reels .mf-reels-player-nav button:disabled{opacity:.38;cursor:default}
.mf-home-reels .mf-reels-hint{padding-top:11px;color:#8a96a5;font-size:9.5px;line-height:1.6}
body.mf-reels-open{overflow:hidden}

@media(max-width:1100px){
  .mf-home-reels .mf-reels-rail{grid-auto-columns:calc((100% - 12px)/2)}
  .mf-home-reels .mf-reel-watch{height:clamp(430px,61vw,570px)}
}

@media(max-width:700px){
  .home-page .mf-home-reels{margin:18px 0;padding:0 14px 20px;box-shadow:none;scroll-margin-top:80px}
  .home-page .mf-home-reels .mf-reels-heading{padding:14px 0 12px;margin-bottom:10px}
  .home-page .mf-home-reels .mf-reels-heading h2{font-size:24px;letter-spacing:-.6px}
  .home-page .mf-home-reels .mf-reels-heading-main>i{width:20px}
  .mf-home-reels .mf-reels-description{font-size:11px;line-height:1.55;margin-bottom:12px}
  .mf-home-reels .mf-reels-toolbar{display:none!important}
  .mf-home-reels .mf-reels-stage{padding:0 13px}
  .mf-home-reels .mf-reels-rail{grid-auto-columns:calc((100% - 8px)/2);gap:8px}
  .mf-home-reels .mf-reel-watch{height:clamp(390px,74vh,520px)}
  .mf-home-reels .mf-reel-topbar{top:9px;right:9px;left:9px}
  .mf-home-reels .mf-reel-brand{height:24px;padding-inline:6px;font-size:8px;letter-spacing:.75px}
  .mf-home-reels .mf-reel-source-icon{width:25px;height:25px}.mf-home-reels .mf-reel-source-icon .mf-icon{width:14px;height:14px}
  .mf-home-reels .mf-reel-play{right:11px;bottom:125px;width:35px;height:35px}.mf-home-reels .mf-reel-play .mf-icon{width:13px;height:13px}
  .mf-home-reels .mf-reel-caption{padding:50px 10px 11px}
  .mf-home-reels .mf-reel-artist{margin-bottom:5px;font-size:9px}
  .mf-home-reels .mf-reel-caption h3{min-height:50px;font-size:14.5px;line-height:1.5;letter-spacing:-.15px}
  .mf-home-reels .mf-reel-meta{gap:5px;margin-top:9px}.mf-home-reels .mf-reel-duration{min-height:23px;padding-inline:6px;font-size:9px}.mf-home-reels .mf-reel-pick{min-height:23px;padding-inline:5px;font-size:8px}.mf-home-reels .mf-reel-open-label{display:none}
  .mf-home-reels .mf-reels-floating-nav button{width:46px;height:46px;margin-top:-23px}.mf-home-reels .mf-reels-floating-nav .mf-icon{width:18px;height:18px}.mf-home-reels .mf-reels-rail-prev{right:-9px}.mf-home-reels .mf-reels-rail-next{left:-9px}
  .mf-home-reels .mf-reels-empty{margin:0 14px;padding:21px 15px;gap:12px}.mf-home-reels .mf-reels-empty-icon{width:43px;height:52px}.mf-home-reels .mf-reels-empty strong{font-size:15px}.mf-home-reels .mf-reels-empty p{font-size:11px}.mf-home-reels .mf-reels-empty>a{display:none}

  .mf-home-reels .mf-reels-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;overflow:hidden;background:#041327}
  .mf-home-reels .mf-reels-dialog[open]{display:flex;flex-direction:column}
  .mf-home-reels .mf-reels-dialog-head{flex:0 0 48px;min-height:48px;padding:5px 8px 5px 12px}
  .mf-home-reels .mf-reels-player-wrap{flex:1 1 auto;min-height:0;background:#000}
  .mf-home-reels .mf-reels-player{width:min(100vw,calc((100dvh - 214px)*.5625));max-width:100%;height:auto;aspect-ratio:9/16}
  .mf-home-reels .mf-reels-info{flex:0 0 166px;padding:10px 14px 11px;background:#fff}
  .mf-home-reels .mf-reels-now{display:none}.mf-home-reels .mf-reels-artist-link{font-size:11px}.mf-home-reels .mf-reels-info h3{margin:3px 0 7px;font-size:15px;line-height:1.38;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .mf-home-reels .mf-reels-source{padding:0;border:0;justify-content:space-between}.mf-home-reels .mf-reels-source a,.mf-home-reels .mf-reels-source button{min-height:32px;font-size:10px}
  .mf-home-reels .mf-reels-player-status{min-height:18px;padding:1px 0;font-size:9.5px;line-height:1.4}
  .mf-home-reels .mf-reels-player-nav{padding-top:5px;gap:7px}.mf-home-reels .mf-reels-player-nav button{min-height:39px;font-size:10.5px}
  .mf-home-reels .mf-reels-hint{display:none}
}

@media(max-width:380px){
  .mf-home-reels .mf-reel-watch{height:clamp(370px,72vh,480px)}
  .mf-home-reels .mf-reel-caption h3{font-size:13.5px}
}


/* MUSIC FM REELS — native horizontal mobile experience. */
.mf-home-reels .mf-reels-mobile-tip,
.mf-home-reels .mf-reels-gesture{display:none}
.mf-home-reels .mf-reel-brand b,.mf-home-reels .mf-reels-dialog-brand b{font:inherit;color:#7fe2ff}
.mf-home-reels .mf-reel-fresh{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(5,18,30,.58);color:#fff;font-size:8px;font-weight:900;letter-spacing:.02em;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.mf-home-reels .mf-reels-source button[data-reel-sound] .mf-icon{width:14px;height:14px}

@media(max-width:700px){
  /* A contained horizontal reel: the page keeps its normal vertical length. */
  /* Mobile web and installed app use the same light template shell; only the video canvas is dark. */
  .home-page .mf-home-reels{
    margin:18px 0;
    padding:0 14px 20px;
    border:1px solid var(--reels-line);
    border-left:0;
    border-right:0;
    background:var(--mf-ui-porcelain,#fff);
    color:var(--reels-ink);
    box-shadow:none;
    overflow:hidden;
  }
  .home-page .mf-home-reels .mf-reels-heading{
    position:relative;
    z-index:4;
    padding:14px 0 12px;
    margin-bottom:10px;
    border-bottom:1px solid var(--reels-line);
    background:transparent;
  }
  .home-page .mf-home-reels .mf-reels-heading h2{color:var(--mf-ui-ink-strong,#102541)!important;font-size:24px}
  .home-page .mf-home-reels .mf-reels-heading-main>i{width:20px;height:1px;background:#5ba7e8!important}
  .mf-home-reels .mf-reels-description{margin-bottom:12px;color:var(--reels-muted);font-size:11px}
  

  .mf-home-reels .mf-reels-stage{position:relative;padding:0;background:#000;overflow:hidden}
  .mf-home-reels .mf-reels-mobile-tip{
    position:absolute;
    z-index:9;
    top:12px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:7px;
    min-height:29px;
    padding:0 11px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    background:rgba(2,8,15,.57);
    color:#fff;
    box-shadow:0 7px 22px rgba(0,0,0,.18);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    font-size:9px;
    white-space:nowrap;
    pointer-events:none;
    animation:mfReelsTipOut 4.8s ease forwards;
  }
  .mf-home-reels .mf-reels-mobile-tip span{font-weight:950;color:#83e5ff}
  .mf-home-reels .mf-reels-mobile-tip b{font-weight:750;color:#eef7ff}

  .mf-home-reels .mf-reels-rail{
    display:flex;
    flex-flow:row nowrap;
    gap:0;
    width:100%;
    height:clamp(500px,72svh,680px);
    min-height:500px;
    overflow-x:auto;
    overflow-y:hidden;
    direction:rtl;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
    touch-action:pan-y;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    background:#000;
  }
  .mf-home-reels .mf-reels-rail::-webkit-scrollbar{display:none}
  .mf-home-reels .mf-reel-card{
    position:relative;
    flex:0 0 100%;
    width:100%;
    height:100%;
    min-width:100%;
    min-height:100%;
    border:0;
    scroll-snap-align:center;
    scroll-snap-stop:always;
    background:#000;
  }
  .mf-home-reels .mf-reel-watch{height:100%;min-height:100%;background:#000;cursor:pointer}
  .mf-home-reels .mf-reel-watch::before{background:linear-gradient(180deg,rgba(0,0,0,.30) 0%,rgba(0,0,0,.02) 25%,rgba(0,0,0,.03) 54%,rgba(0,0,0,.66) 78%,rgba(0,0,0,.96) 100%)}
  .mf-home-reels .mf-reel-watch::after{box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
  .mf-home-reels .mf-reel-watch>img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(1.04) contrast(1.04)}
  .mf-home-reels .mf-reel-topbar{top:48px;right:14px;left:14px;align-items:center}
  .mf-home-reels .mf-reel-brand{height:29px;padding-inline:9px;border-color:rgba(255,255,255,.15);border-radius:999px;background:rgba(3,11,20,.52);font-size:8.5px;letter-spacing:.05em}
  .mf-home-reels .mf-reel-brand i{box-shadow:0 0 0 4px rgba(74,212,255,.08)}
  .mf-home-reels .mf-reel-fresh{margin-inline-start:auto;background:rgba(4,14,24,.55);color:#dff9ff}
  .mf-home-reels .mf-reel-source-icon{display:none!important}
  .mf-home-reels .mf-reel-play{right:auto;left:50%;bottom:auto;top:50%;width:54px;height:54px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(4,14,24,.56);color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.30);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .mf-home-reels .mf-reel-watch:hover .mf-reel-play{transform:translate(-50%,-50%);background:rgba(4,14,24,.68);color:#fff}
  .mf-home-reels .mf-reel-caption{padding:118px 18px 24px 72px}
  .mf-home-reels .mf-reel-artist{margin-bottom:6px;color:#84e3ff;font-size:11px;font-weight:950}
  .mf-home-reels .mf-reel-caption h3{min-height:0;max-width:95%;font-size:19px;line-height:1.4;letter-spacing:-.24px;-webkit-line-clamp:3;text-shadow:0 2px 16px rgba(0,0,0,.55)}
  .mf-home-reels .mf-reel-meta{margin-top:11px;gap:6px}
  .mf-home-reels .mf-reel-duration{border-radius:999px;background:rgba(11,104,255,.88);padding-inline:8px}
  .mf-home-reels .mf-reel-pick{border-radius:999px;background:rgba(5,15,27,.52)}
  .mf-home-reels .mf-reel-open-label{border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(3,12,22,.42);color:#f3f8fd;padding:4px 8px;font-size:8.5px;font-weight:850}
  .mf-home-reels .mf-reels-floating-nav{display:none!important}

  /* Full viewer uses our own chrome. The source player stays underneath, control-less. */
  .mf-home-reels .mf-reels-dialog{
    inset:0;
    width:100vw;
    max-width:100vw;
    height:100dvh;
    max-height:100dvh;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    overflow:hidden;
    background:#000;
    color:#fff;
    box-shadow:none;
    touch-action:none;
  }
  .mf-home-reels .mf-reels-dialog[open]{display:block}
  .mf-home-reels .mf-reels-dialog::backdrop{background:#000;backdrop-filter:none;-webkit-backdrop-filter:none}
  .mf-home-reels .mf-reels-player-wrap{position:absolute;z-index:1;inset:0;display:grid;place-items:center;width:100%;height:100%;min-height:0;overflow:hidden;background-color:#000;background-position:center;background-size:cover;transition:opacity .18s ease,transform .18s ease}
  .mf-home-reels .mf-reels-player-wrap::after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.27) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,.02) 52%,rgba(0,0,0,.42) 76%,rgba(0,0,0,.90) 100%)}
  .mf-home-reels .mf-reels-player{position:absolute;z-index:1;top:50%;left:50%;width:max(100vw,calc(100dvh * .5625));height:max(100dvh,calc(100vw * 1.7777778));max-width:none;aspect-ratio:9/16;transform:translate(-50%,-50%);background:#000}
  .mf-home-reels .mf-reels-player iframe{width:100%;height:100%;pointer-events:none}
  .mf-home-reels .mf-reels-dialog.mf-reels-changing .mf-reels-player-wrap{opacity:.58;transform:translateX(-1.5%) scale(.993)}

  .mf-home-reels .mf-reels-dialog-head{position:absolute;z-index:8;top:0;right:0;left:0;display:flex;align-items:center;min-height:0;height:auto;padding:calc(env(safe-area-inset-top,0px) + 10px) 12px 10px;border:0;background:linear-gradient(180deg,rgba(0,0,0,.62),rgba(0,0,0,0));color:#fff;pointer-events:none}
  .mf-home-reels .mf-reels-dialog-brand{font-size:9px;text-shadow:0 2px 12px rgba(0,0,0,.5)}
  .mf-home-reels .mf-reels-position{margin-inline-start:auto;color:#e5eef8;font-size:9.5px;text-shadow:0 2px 12px rgba(0,0,0,.6)}
  .mf-home-reels .mf-reels-dialog-head button{width:38px;height:38px;border-color:rgba(255,255,255,.17);border-radius:50%;background:rgba(4,12,22,.45);color:#fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:auto}

  .mf-home-reels .mf-reels-gesture{position:absolute;z-index:4;inset:0;display:block;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
  .mf-home-reels .mf-reels-gesture:active{cursor:grabbing}
  .mf-home-reels .mf-reels-gesture-play{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(1,8,16,.52);color:#fff;opacity:0;transform:translate(-50%,-50%) scale(.86);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:opacity .16s ease,transform .16s ease;pointer-events:none}
  .mf-home-reels .mf-reels-gesture-play .mf-icon{width:20px;height:20px;margin-inline-start:2px}
  .mf-home-reels .mf-reels-gesture.is-feedback .mf-reels-gesture-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
  .mf-home-reels .mf-reels-gesture-copy{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);transform:translateX(-50%);min-height:28px;padding:0 11px;display:flex;align-items:center;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(0,0,0,.44);color:#eaf8ff;font-size:9px;font-weight:850;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:none;animation:mfReelsGestureHint 4.8s ease forwards}

  .mf-home-reels .mf-reels-info{position:absolute;z-index:6;right:0;bottom:0;left:0;display:block;min-width:0;padding:0 72px calc(env(safe-area-inset-bottom,0px) + 48px) 16px;background:transparent;color:#fff;pointer-events:none}
  .mf-home-reels .mf-reels-info>*{pointer-events:auto}
  .mf-home-reels .mf-reels-now{display:inline-flex;align-items:center;min-height:24px;margin-bottom:8px;padding:0 8px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(2,10,18,.46);color:#a9edff;font-size:8px;font-weight:900;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
  .mf-home-reels .mf-reels-artist-link{display:block;width:max-content;max-width:100%;color:#8ce7ff;font-size:12px;font-weight:950;text-shadow:0 2px 14px rgba(0,0,0,.55)}
  .mf-home-reels .mf-reels-info h3{max-width:100%;margin:5px 0 10px;color:#fff;font-size:18px;line-height:1.42;font-weight:900;text-shadow:0 2px 15px rgba(0,0,0,.65);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .mf-home-reels .mf-reels-source{position:absolute;right:14px;bottom:calc(env(safe-area-inset-bottom,0px) + 72px);display:grid;gap:8px;padding:0;border:0;background:transparent;pointer-events:auto}
  .mf-home-reels .mf-reels-source a,.mf-home-reels .mf-reels-source button{display:grid;place-items:center;width:46px;height:46px;min-height:46px;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(3,12,22,.52);color:#fff;font-size:0;box-shadow:0 8px 24px rgba(0,0,0,.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .mf-home-reels .mf-reels-source a[data-reel-source]{display:none}
  .mf-home-reels .mf-reels-source .mf-icon{width:17px;height:17px;margin:0}
  .mf-home-reels .mf-reels-player-status{min-height:16px;margin:0;color:#dce8f4;font-size:9px;text-shadow:0 2px 10px rgba(0,0,0,.65)}
  .mf-home-reels .mf-reels-player-nav,.mf-home-reels .mf-reels-hint{display:none!important}
}

@media(max-width:380px){
  .mf-home-reels .mf-reels-rail{height:clamp(470px,70svh,620px);min-height:470px}
  .mf-home-reels .mf-reel-caption{padding-left:64px}
  .mf-home-reels .mf-reel-caption h3{font-size:17px}
}

@keyframes mfReelsTipOut{0%,63%{opacity:1;transform:translateX(-50%) translateY(0)}100%{opacity:0;transform:translateX(-50%) translateY(-5px);visibility:hidden}}
@keyframes mfReelsGestureHint{0%,68%{opacity:1}100%{opacity:0;visibility:hidden}}

@media(prefers-reduced-motion:reduce){
  .mf-home-reels .mf-reels-mobile-tip,.mf-home-reels .mf-reels-gesture-copy{animation:none}
  .mf-home-reels .mf-reels-rail{scroll-behavior:auto}
}

/* MUSIC FM REELS — premium native mobile chrome. */
.mf-home-reels .mf-reels-action-icon{display:grid;place-items:center}
.mf-home-reels .mf-reels-icon{display:block;width:20px;height:20px}
.mf-home-reels .mf-reels-icon-sound-on{display:none}
.mf-home-reels .mf-reels-action-sound.is-sound-on .mf-reels-icon-sound-off{display:none}
.mf-home-reels .mf-reels-action-sound.is-sound-on .mf-reels-icon-sound-on{display:block}
.mf-home-reels .mf-reels-close>span{display:grid;place-items:center}
.mf-home-reels .mf-reels-close svg{display:block;width:18px;height:18px}

@media(max-width:700px){
  /* Top chrome is intentionally proprietary: no provider/source treatment in the mobile viewer. */
  .mf-home-reels .mf-reels-dialog-head{
    padding:calc(env(safe-area-inset-top,0px) + 14px) 14px 12px;
    gap:10px;
    background:linear-gradient(180deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.24) 58%,rgba(0,0,0,0) 100%);
  }
  .mf-home-reels .mf-reels-dialog-brand{
    min-height:31px;
    padding:0 11px;
    border:1px solid rgba(129,226,255,.24);
    border-radius:999px;
    background:linear-gradient(180deg,rgba(7,24,39,.76),rgba(3,13,24,.58));
    box-shadow:0 9px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter:blur(13px) saturate(1.15);
    -webkit-backdrop-filter:blur(13px) saturate(1.15);
    text-shadow:none;
    letter-spacing:.09em;
  }
  .mf-home-reels .mf-reels-dialog-brand i{
    width:3px;
    height:15px;
    border-radius:999px;
    background:linear-gradient(180deg,#7ce9ff 0%,#25c8c3 100%);
    box-shadow:0 0 14px rgba(37,200,195,.35);
  }
  .mf-home-reels .mf-reels-position{
    margin-inline-start:0;
    min-height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    background:rgba(3,12,22,.46);
    color:#f4f8fd;
    font-size:10px;
    font-weight:850;
    letter-spacing:.03em;
    text-shadow:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  .mf-home-reels .mf-reels-dialog-head .mf-reels-close{
    width:43px;
    height:43px;
    min-width:43px;
    margin-inline-start:auto;
    border:1px solid rgba(153,218,255,.22);
    border-radius:50%;
    background:radial-gradient(circle at 35% 25%,rgba(28,67,92,.52),rgba(3,11,20,.68) 68%);
    color:#fff;
    box-shadow:0 9px 28px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter:blur(14px) saturate(1.12);
    -webkit-backdrop-filter:blur(14px) saturate(1.12);
    transition:transform .16s ease,border-color .16s ease,background .16s ease;
  }
  .mf-home-reels .mf-reels-dialog-head .mf-reels-close:active{transform:scale(.94);background:rgba(8,31,48,.82);border-color:rgba(104,226,255,.38)}
  .mf-home-reels .mf-reels-close svg{width:20px;height:20px}

  /* Keep metadata readable but deliberately quiet so the video remains the focus. */
  .mf-home-reels .mf-reels-info{
    padding:0 82px calc(env(safe-area-inset-bottom,0px) + 29px) 16px;
  }
  .mf-home-reels .mf-reels-now{
    min-height:27px;
    margin-bottom:9px;
    padding:0 10px;
    border-color:rgba(118,226,255,.24);
    background:linear-gradient(180deg,rgba(6,29,43,.64),rgba(2,12,22,.52));
    color:#d9f8ff;
    box-shadow:0 8px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    letter-spacing:.025em;
  }
  .mf-home-reels .mf-reels-artist-link{color:#bfefff;font-size:13px;font-weight:900;letter-spacing:-.1px}
  .mf-home-reels .mf-reels-info h3{margin:4px 0 7px;font-size:20px;line-height:1.35;font-weight:900;letter-spacing:-.35px;text-shadow:0 2px 18px rgba(0,0,0,.72)}

  /* Action dock: Music FM controls, not third-party player controls. */
  .mf-home-reels .mf-reels-source{
    right:13px;
    bottom:calc(env(safe-area-inset-bottom,0px) + 30px);
    gap:12px;
    align-items:center;
  }
  .mf-home-reels .mf-reels-source a[data-reel-source]{display:none!important}
  .mf-home-reels .mf-reels-source .mf-reels-action{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:54px;
    height:54px;
    min-height:54px;
    padding:0;
    border:1px solid rgba(135,223,255,.20);
    border-radius:17px;
    background:linear-gradient(145deg,rgba(14,40,57,.72),rgba(2,10,18,.70));
    color:#f7fcff;
    box-shadow:0 12px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.07),inset 0 -10px 22px rgba(0,0,0,.09);
    backdrop-filter:blur(15px) saturate(1.2);
    -webkit-backdrop-filter:blur(15px) saturate(1.2);
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
    overflow:visible;
    -webkit-tap-highlight-color:transparent;
  }
  .mf-home-reels .mf-reels-source .mf-reels-action::before{
    content:"";
    position:absolute;
    inset:5px;
    border-radius:13px;
    border:1px solid rgba(255,255,255,.035);
    pointer-events:none;
  }
  .mf-home-reels .mf-reels-source .mf-reels-action::after{
    content:"";
    position:absolute;
    top:8px;
    right:9px;
    width:4px;
    height:4px;
    border-radius:50%;
    background:#57ddff;
    box-shadow:0 0 10px rgba(87,221,255,.7);
    opacity:.72;
    pointer-events:none;
  }
  .mf-home-reels .mf-reels-source .mf-reels-action:active{transform:scale(.93);border-color:rgba(111,229,255,.42);box-shadow:0 7px 22px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.08)}
  .mf-home-reels .mf-reels-source .mf-reels-action-icon{height:23px;color:#f2fbff}
  .mf-home-reels .mf-reels-source .mf-reels-icon{width:21px;height:21px;filter:drop-shadow(0 2px 8px rgba(45,205,255,.10))}
  .mf-home-reels .mf-reels-source .mf-reels-action-label{
    display:block;
    margin:0;
    color:#b8cad9;
    font-size:7.5px;
    font-weight:850;
    line-height:1;
    letter-spacing:0;
  }
  .mf-home-reels .mf-reels-source .mf-reels-action-sound.is-sound-on{
    border-color:rgba(73,216,244,.38);
    background:linear-gradient(145deg,rgba(7,70,88,.78),rgba(3,22,34,.74));
    box-shadow:0 12px 34px rgba(0,0,0,.28),0 0 0 1px rgba(44,203,223,.06),inset 0 1px 0 rgba(255,255,255,.08);
  }
  .mf-home-reels .mf-reels-source .mf-reels-action-sound.is-sound-on .mf-reels-action-icon{color:#7cecff}
  .mf-home-reels .mf-reels-source .mf-reels-action-sound.is-sound-on::after{background:#27e2c8;box-shadow:0 0 11px rgba(39,226,200,.9)}

  /* Status text must never look like a provider notice or player toolbar. */
  .mf-home-reels .mf-reels-player-status{
    width:min(270px,calc(100vw - 118px));
    min-height:14px;
    margin:0;
    padding:0;
    color:rgba(229,241,249,.72);
    font-size:8.5px;
    line-height:1.45;
    text-shadow:0 2px 10px rgba(0,0,0,.72);
  }
}

/* iPhone/WebKit stability: keep the horizontal rail visually identical while
   avoiding dozens of off-screen compositing layers. Cards are progressively
   added by home-reels.js, and mobile badges use solid translucency instead of
   backdrop blur until a reel is intentionally opened. */
.mf-home-reels .mf-reel-card{
  content-visibility:auto;
  contain-intrinsic-size:270px 480px;
}
@media (max-width:700px){
  .mf-home-reels .mf-reel-card{contain:layout paint style;contain-intrinsic-size:168px 299px}
  .mf-home-reels .mf-reel-watch>img{filter:none!important}
  .mf-home-reels :is(.mf-reel-brand,.mf-reel-pick,.mf-reel-fresh,.mf-reel-play){
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .mf-home-reels .mf-reel-brand{background:rgba(4,19,39,.82)!important}
  .mf-home-reels .mf-reel-pick{background:rgba(20,31,45,.78)!important}
  .mf-home-reels .mf-reel-fresh{background:rgba(5,18,30,.78)!important}
  .mf-home-reels .mf-reel-play{background:rgba(4,14,24,.76)!important}
}
