:root{
  --navy:#061426;
  --navy-2:#0c2b50;
  --navy-3:#123c6d;
  --orange:#ff5c00;
  --orange-2:#ff8847;
  --blue:#2563eb;
  --blue-2:#3b82f6;
  --green:#22a55a;
  --ink:#061426;
  --muted:#536173;
  --line:rgba(6,20,38,.10);
  --surface:#ffffff;
  --bg:#f5f8fc;
  --shadow:0 15px 38px rgba(6,20,38,.10);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--ink);
}
button,a{font:inherit}
button{cursor:pointer}
.app-shell{
  width:100%;
  max-width:760px;
  min-height:100vh;
  margin:0 auto;
  background:var(--surface);
  padding:14px 18px calc(158px + var(--safe-bottom));
  box-shadow:0 0 60px rgba(6,20,38,.08);
}
.topbar{
  height:64px;
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  gap:10px;
}
.brand{
  justify-self:center;
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--navy);
  text-decoration:none;
  font-size:24px;
  letter-spacing:-1px;
}
.brand strong{font-weight:950}
.brand span,.brand i{color:var(--orange)}
.brand i{font-size:26px}
.icon-button{
  width:42px;height:42px;border:0;background:transparent;color:var(--navy);
  font-size:28px;border-radius:50%;display:grid;place-items:center;
}
.icon-button:hover{background:#eef3f9}
.install-button{
  margin:4px auto 18px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:999px;
  color:white;
  background:linear-gradient(90deg,var(--orange),var(--orange-2));
  padding:12px 23px;
  font-weight:850;
  box-shadow:0 12px 25px rgba(255,92,0,.22);
}
.hero-card{
  min-height:268px;
  border-radius:27px;
  padding:24px;
  display:grid;
  grid-template-columns:minmax(150px,215px) 1fr 108px;
  align-items:center;
  gap:22px;
  color:white;
  background:
    radial-gradient(circle at 83% 44%,rgba(37,99,235,.35),transparent 26%),
    linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 70%,var(--navy-3) 100%);
  box-shadow:0 22px 48px rgba(6,20,38,.24);
  overflow:hidden;
  position:relative;
}
.hero-card:after{
  content:"";position:absolute;width:280px;height:280px;border-radius:50%;
  right:-110px;top:-125px;border:1px solid rgba(255,255,255,.13);
}
.hero-logo-wrap{display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
.hero-logo-image{
  width:100%;max-width:210px;aspect-ratio:1;object-fit:cover;border-radius:23px;
  background:#fff;box-shadow:0 16px 32px rgba(0,0,0,.26);
}
.hero-copy{position:relative;z-index:1;min-width:0}
.hero-kicker{
  display:inline-flex;align-items:center;gap:7px;color:#ffd0b4;font-size:12px;
  font-weight:850;letter-spacing:.8px;margin-bottom:10px;
}
.hero-copy h1{margin:0 0 9px;font-size:27px;line-height:1.12}
.hero-copy p{margin:0;line-height:1.5;color:rgba(255,255,255,.82)}
.hero-song{
  display:flex;align-items:center;gap:8px;margin-top:13px;padding:9px 12px;
  border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);
  border-radius:11px;color:#fff;min-width:0;
}
.hero-song span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.live-line{display:flex;gap:8px;align-items:center;margin-top:12px;color:rgba(255,255,255,.88)}
.live-pill{
  display:inline-flex;gap:6px;align-items:center;background:#eaf1ff;color:var(--blue);
  padding:6px 10px;border-radius:999px;font-weight:900;font-size:11px;
}
.live-dot{width:8px;height:8px;border-radius:50%;background:#42d77d;box-shadow:0 0 0 5px rgba(66,215,125,.13)}
.hero-play{
  width:92px;height:92px;border-radius:50%;border:10px solid rgba(255,255,255,.11);
  background:var(--orange);color:#fff;font-size:42px;
  display:grid;place-items:center;position:relative;z-index:1;
  box-shadow:0 16px 38px rgba(255,92,0,.28);transition:.22s;
}
.hero-play:hover{transform:scale(1.04)}
.hero-play.playing{background:var(--blue)}
.hero-play.loading{animation:pulsePlay 1s infinite}
.section-block{margin-top:25px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.section-heading h2{margin:0;font-size:23px;color:var(--navy)}
.station-list{display:flex;flex-direction:column;gap:10px}
.station-card{
  border:1px solid var(--line);border-radius:19px;padding:10px;background:#fff;
  display:grid;grid-template-columns:1fr 54px;gap:10px;align-items:center;
  box-shadow:0 8px 22px rgba(6,20,38,.06);transition:.22s;
}
.station-card:hover,.station-card.featured{
  border-color:rgba(255,92,0,.42);box-shadow:0 13px 28px rgba(6,20,38,.11);
}
.station-card.featured{background:linear-gradient(90deg,#fff8f3,#fff)}
.station-select{
  border:0;background:transparent;padding:0;display:grid;grid-template-columns:108px 1fr;
  gap:14px;align-items:center;text-align:left;min-width:0;
}
.station-art{
  width:108px;height:88px;border-radius:14px;overflow:hidden;background:#eef3f9;
  display:block;
}
.station-art img{width:100%;height:100%;object-fit:cover;display:block}
.station-info{min-width:0;display:block}
.station-info strong{display:block;margin:0 0 5px;font-size:17px;color:var(--navy)}
.station-description{display:block;color:var(--muted);line-height:1.38;font-size:13px}
.now-playing{
  display:block;margin-top:7px;color:var(--blue);font-size:12px;font-weight:750;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.now-playing i{margin-right:4px;color:var(--orange)}
.station-play{
  width:50px;height:50px;border:1.5px solid rgba(37,99,235,.42);border-radius:50%;
  background:#fff;color:var(--blue);font-size:25px;display:grid;place-items:center;transition:.2s;
}
.station-play:hover{background:#eaf1ff}
.station-play.playing{background:var(--orange);color:#fff;border-color:var(--orange)}
.station-play.loading{animation:pulsePlay 1s infinite}
.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.media-card,.portal-card{
  min-height:120px;border:1px solid var(--line);border-radius:20px;padding:18px;
  text-align:left;color:white;display:flex;flex-direction:column;justify-content:flex-end;
  box-shadow:0 10px 25px rgba(6,20,38,.09);transition:.22s;
}
.media-card:hover,.portal-card:hover{transform:translateY(-3px)}
.media-card{background:linear-gradient(135deg,var(--navy),var(--blue))}
.tv-vale{background:linear-gradient(135deg,#082f49,#0284c7)}
.media-card span{font-size:12px;opacity:.82}
.media-card strong{font-size:27px}
.media-card small{margin-top:6px}
.portal-card{background:linear-gradient(135deg,var(--blue),#0b76d8);border:0}
.guide-card{background:linear-gradient(135deg,var(--orange),var(--orange-2))}
.view{display:none}
.view.active{display:block}
.page-title{display:flex;align-items:center;gap:12px;margin:12px 0 18px}
.page-title h1{margin:0;color:var(--navy)}
.back-button{border:0;background:#eef3f9;color:var(--navy);width:42px;height:42px;border-radius:12px;font-size:30px}
.tv-tabs{display:flex;gap:10px;margin-bottom:12px}
.tv-tab{flex:1;border:1px solid var(--line);background:white;border-radius:12px;padding:12px;font-weight:800;color:var(--navy)}
.tv-tab.active{background:var(--orange);color:white;border-color:var(--orange)}
.video-card,.external-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:white;box-shadow:var(--shadow)}
.video-frame{aspect-ratio:16/9;background:var(--navy)}
.video-frame iframe{width:100%;height:100%;border:0}
.video-info{padding:18px}
.video-info h2{margin:0 0 6px}
.video-info p{margin:0;color:var(--muted)}
.external-card{padding:30px;text-align:center}
.external-icon{
  width:74px;height:74px;margin:0 auto;border-radius:22px;display:grid;place-items:center;
  background:#fff0e8;color:var(--orange);font-size:38px;
}
.external-card h2{margin:15px 0 8px}
.external-card p{color:var(--muted);line-height:1.6}
.external-card a{
  display:inline-flex;align-items:center;margin-top:12px;background:var(--orange);
  color:white;text-decoration:none;padding:13px 18px;border-radius:999px;font-weight:850;
}
.player-bar{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(70px + var(--safe-bottom));
  width:min(724px,calc(100% - 20px));min-height:76px;
  display:grid;grid-template-columns:54px 1fr 54px;gap:12px;align-items:center;
  padding:10px 14px;border-radius:18px 18px 0 0;color:white;
  background:linear-gradient(90deg,var(--navy),var(--navy-2) 65%,var(--blue));
  box-shadow:0 -10px 30px rgba(6,20,38,.25);z-index:40;
}
.mini-logo{width:52px;height:52px;border-radius:12px;background:#fff;overflow:hidden;display:grid;place-items:center}
.mini-logo img{width:100%;height:100%;object-fit:cover}
.player-copy{min-width:0}
.player-copy strong,.player-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-copy small{margin-top:4px;color:rgba(255,255,255,.78)}
.player-toggle{
  width:48px;height:48px;border-radius:50%;border:0;background:var(--orange);
  color:#fff;font-size:22px;display:grid;place-items:center;
}
.bottom-nav{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;
  width:min(760px,100%);height:calc(72px + var(--safe-bottom));
  padding:7px 12px var(--safe-bottom);display:grid;grid-template-columns:repeat(4,1fr);
  background:rgba(255,255,255,.97);backdrop-filter:blur(16px);
  border-top:1px solid var(--line);z-index:50;
}
.nav-item{
  border:0;background:transparent;color:#667085;display:flex;flex-direction:column;
  align-items:center;gap:3px;padding:4px;
}
.nav-item i{font-size:23px}
.nav-item small{font-weight:750}
.nav-item.active{color:var(--orange)}
.toast{
  position:fixed;left:50%;bottom:170px;transform:translate(-50%,20px);
  opacity:0;pointer-events:none;background:var(--navy);color:white;padding:11px 15px;
  border-radius:10px;transition:.2s;z-index:80;max-width:90%;text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes pulsePlay{50%{transform:scale(.9);opacity:.65}}
@media(max-width:680px){
  .app-shell{padding-left:12px;padding-right:12px}
  .hero-card{grid-template-columns:118px 1fr 72px;gap:13px;padding:17px;min-height:225px}
  .hero-logo-image{max-width:118px}
  .hero-copy h1{font-size:21px}
  .hero-copy p{font-size:13px}
  .hero-play{width:66px;height:66px;border-width:7px;font-size:30px}
  .station-select{grid-template-columns:86px 1fr;gap:10px}
  .station-art{width:86px;height:77px}
}
@media(max-width:470px){
  .brand{font-size:20px}
  .hero-card{grid-template-columns:94px 1fr 54px;border-radius:21px;padding:14px;min-height:190px}
  .hero-logo-image{max-width:94px;border-radius:16px}
  .hero-kicker{font-size:9px;margin-bottom:7px}
  .hero-copy h1{font-size:17px}
  .hero-copy p{display:none}
  .hero-song{padding:7px 9px;margin-top:8px}
  .hero-song span{font-size:11px}
  .live-line{font-size:11px;margin-top:8px}
  .live-pill{font-size:9px;padding:5px 7px}
  .hero-play{width:51px;height:51px;border-width:5px;font-size:24px}
  .station-card{grid-template-columns:1fr 44px}
  .station-select{grid-template-columns:72px 1fr}
  .station-art{width:72px;height:66px}
  .station-info strong{font-size:15px}
  .station-description{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .media-grid{grid-template-columns:1fr}
}

.install-modal{
  position:fixed;inset:0;z-index:120;background:rgba(6,20,38,.68);
  display:grid;place-items:center;padding:20px;backdrop-filter:blur(6px);
}
.install-modal[hidden]{display:none}
.install-dialog{
  width:min(390px,100%);background:#fff;border-radius:26px;padding:28px 24px 24px;
  box-shadow:0 30px 80px rgba(6,20,38,.35);text-align:center;position:relative;
}
.modal-close{
  position:absolute;right:14px;top:14px;width:38px;height:38px;border:0;border-radius:50%;
  background:#eef3f9;color:#061426;display:grid;place-items:center;
}
.install-app-icon{
  width:82px;height:82px;margin:0 auto 14px;border-radius:22px;overflow:hidden;
  box-shadow:0 12px 28px rgba(6,20,38,.17);
}
.install-app-icon img{width:100%;height:100%;object-fit:cover}
.install-dialog h2{margin:0 0 10px;color:#061426}
.install-dialog p{margin:0;color:#536173;line-height:1.6}
.confirm-install-button{
  margin:18px auto 0;border:0;border-radius:999px;padding:13px 20px;
  background:#ff5c00;color:#fff;font-weight:850;
}

body.modal-open{overflow:hidden}
.hero-card{min-height:238px;grid-template-columns:minmax(130px,190px) 1fr 86px}
.hero-actions-stack{display:flex;flex-direction:column;gap:10px;align-items:center;position:relative;z-index:2}
.hero-play{width:76px;height:76px;font-size:34px;border-width:8px}
.hero-share{width:43px;height:43px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.10);color:#fff;display:grid;place-items:center;font-size:17px}
.station-topline{display:flex;align-items:center;gap:8px;justify-content:space-between}
.station-topline strong{min-width:0}
.station-topline em{font-style:normal;font-size:9px;font-weight:900;letter-spacing:.45px;color:#ff5c00;background:#fff0e8;padding:5px 7px;border-radius:999px;white-space:nowrap}
.install-banner{margin-top:18px;border-radius:22px;padding:18px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px;color:#fff;background:linear-gradient(135deg,#061426,#0c2b50 65%,#2563eb);box-shadow:0 16px 34px rgba(6,20,38,.18)}
.install-banner-icon{width:58px;height:58px;border-radius:16px;overflow:hidden}
.install-banner-icon img{width:100%;height:100%;object-fit:cover}
.install-banner strong,.install-banner span{display:block}
.install-banner strong{font-size:16px}
.install-banner span{font-size:12px;color:rgba(255,255,255,.75);margin-top:4px}
.install-banner button{border:0;border-radius:999px;background:#ff5c00;color:#fff;padding:11px 15px;font-weight:850}
.expanded-player{position:fixed;inset:0;z-index:110;background:rgba(6,20,38,.72);display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(10px)}
.expanded-player[hidden]{display:none}
.expanded-player-sheet{width:min(760px,100%);min-height:78vh;border-radius:30px 30px 0 0;background:linear-gradient(180deg,#07182c,#061426);color:#fff;padding:18px 24px calc(28px + env(safe-area-inset-bottom,0px));text-align:center;position:relative;box-shadow:0 -25px 60px rgba(0,0,0,.32)}
.expanded-close{width:50px;height:38px;border:0;border-radius:999px;background:rgba(255,255,255,.09);color:#fff;font-size:24px}
.expanded-brand{font-weight:950;letter-spacing:-.5px;margin-top:8px}
.expanded-brand span{color:#ff5c00}
.expanded-cover-wrap{width:min(310px,74vw);margin:24px auto 18px;position:relative}
.expanded-cover-wrap img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:30px;box-shadow:0 26px 60px rgba(0,0,0,.42)}
.equalizer{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:flex-end;gap:4px;height:30px;padding:7px 11px;border-radius:999px;background:rgba(6,20,38,.68);backdrop-filter:blur(8px)}
.equalizer i{width:4px;height:8px;background:#ff5c00;border-radius:4px}
.equalizer.active i{animation:eq 1s ease-in-out infinite}
.equalizer.active i:nth-child(2){animation-delay:.15s}.equalizer.active i:nth-child(3){animation-delay:.3s}.equalizer.active i:nth-child(4){animation-delay:.45s}.equalizer.active i:nth-child(5){animation-delay:.6s}
@keyframes eq{0%,100%{height:7px}50%{height:23px}}
.expanded-info h2{margin:10px 0 7px;font-size:24px}
.expanded-info p{margin:0;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expanded-live{display:inline-flex;align-items:center;gap:6px;color:#ffb58c;font-size:11px;font-weight:900;letter-spacing:.7px}
.expanded-controls{display:flex;justify-content:center;align-items:center;gap:28px;margin:24px 0}
.expanded-controls button{width:50px;height:50px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:20px}
.expanded-controls .expanded-main-play{width:78px;height:78px;border:0;background:#ff5c00;font-size:34px;box-shadow:0 15px 35px rgba(255,92,0,.30)}
.volume-row{display:grid;grid-template-columns:24px 1fr 24px;gap:10px;align-items:center;max-width:430px;margin:0 auto}
.volume-row input{width:100%;accent-color:#ff5c00}
.sleep-options{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.sleep-options[hidden]{display:none}
.sleep-options button{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:9px 13px}
.nav-item.active{color:#ff5c00;background:#fff0e8;border-radius:14px}
@media(max-width:680px){.hero-card{grid-template-columns:108px 1fr 64px;min-height:205px}.hero-play{width:58px;height:58px;font-size:27px;border-width:6px}.hero-share{width:38px;height:38px}}
@media(max-width:470px){.hero-card{grid-template-columns:86px 1fr 49px;min-height:174px}.hero-play{width:46px;height:46px;font-size:22px;border-width:4px}.hero-share{width:34px;height:34px;font-size:14px}.hero-song{max-width:190px}.install-banner{grid-template-columns:48px 1fr;padding:15px}.install-banner-icon{width:48px;height:48px}.install-banner button{grid-column:1/-1;width:100%}.station-topline em{font-size:8px}}

.player-bar{grid-template-columns:54px 1fr auto}
.player-actions{display:flex;align-items:center;gap:8px}
.player-expand{
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);color:#fff;display:grid;place-items:center;font-size:17px;
}
.expanded-close{
  width:auto;min-width:146px;height:42px;padding:0 16px;display:inline-flex;
  align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:800;
}
.expanded-close span{display:inline}
.logo-guide-card{
  margin-top:18px;border:1px dashed rgba(37,99,235,.35);background:#f8fbff;
  border-radius:18px;padding:16px;display:grid;grid-template-columns:48px 1fr;
  align-items:center;gap:12px;
}
.logo-guide-icon{
  width:48px;height:48px;border-radius:14px;background:#eaf1ff;color:#2563eb;
  display:grid;place-items:center;font-size:23px;
}
.logo-guide-card strong,.logo-guide-card span{display:block}
.logo-guide-card strong{color:#061426}
.logo-guide-card span{color:#536173;font-size:12px;line-height:1.45;margin-top:4px}
@media(max-width:470px){
  .player-expand{width:38px;height:38px}
  .expanded-close{min-width:132px;font-size:14px}
}

.expanded-player-sheet{padding-top:74px}
.expanded-close{
  position:absolute !important;
  top:16px !important;
  right:16px !important;
  left:auto !important;
  z-index:10;
  width:auto !important;
  min-width:112px !important;
  height:44px !important;
  padding:0 16px !important;
  border:1px solid rgba(255,255,255,.28) !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#061426 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  font-size:15px !important;
  font-weight:900 !important;
  box-shadow:0 10px 30px rgba(0,0,0,.28) !important;
}
.expanded-close i{font-size:17px}
.expanded-close-bottom{
  margin:24px auto 0;
  width:min(340px,100%);
  min-height:48px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:850;
}
@media(max-width:470px){
  .expanded-close{
    top:12px !important;
    right:12px !important;
    min-width:96px !important;
    height:40px !important;
    padding:0 13px !important;
    font-size:13px !important;
  }
  .expanded-player-sheet{padding-top:66px}
}

.install-banner,.logo-guide-card{display:none!important}

.share-panel{
  position:fixed;
  inset:0;
  z-index:140;
  background:rgba(6,20,38,.76);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  backdrop-filter:blur(10px);
}
.share-panel[hidden]{display:none}
.share-panel-card{
  width:min(560px,100%);
  border-radius:30px;
  background:#fff;
  padding:14px 24px 28px;
  text-align:center;
  position:relative;
  box-shadow:0 30px 90px rgba(6,20,38,.45);
}
.share-panel-handle{
  width:54px;
  height:5px;
  border-radius:999px;
  background:#d0d5dd;
  margin:0 auto 18px;
}
.share-panel-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#eef3f9;
  color:#061426;
  display:grid;
  place-items:center;
  font-size:18px;
}
.share-panel-logo{
  width:92px;
  height:92px;
  border-radius:24px;
  object-fit:cover;
  background:#f5f8fc;
  box-shadow:0 12px 30px rgba(6,20,38,.14);
}
.share-panel-kicker{
  display:block;
  margin-top:15px;
  color:#ff5c00;
  font-size:11px;
  font-weight:900;
  letter-spacing:.8px;
}
.share-panel-card h2{
  margin:7px 0 6px;
  color:#061426;
  font-size:24px;
}
.share-panel-card p{
  margin:0 0 22px;
  color:#536173;
}
.share-panel-actions{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.share-panel-actions button{
  min-height:104px;
  border:1px solid rgba(6,20,38,.10);
  border-radius:20px;
  background:#f8fafc;
  color:#061426;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-weight:800;
  transition:.2s;
}
.share-panel-actions button:hover{
  transform:translateY(-3px);
  background:#fff0e8;
  border-color:rgba(255,92,0,.30);
}
.share-panel-actions i{
  font-size:30px;
  color:#ff5c00;
}
.share-panel-actions span{font-size:12px}

@media(max-width:520px){
  .share-panel-actions{grid-template-columns:repeat(2,1fr)}
  .share-panel-card{padding:14px 18px 22px}
}
