/* Chapterly v0.2 visual system. Inspired by familiar podcast/music UX, with original styling.
   SVG controls are from Lucide (ISC); all app typography/artwork is original. */
:root{--bg:#0b111e;--sidebar:#0d1523;--panel:#141f2e;--panel2:#1a2739;--stroke:#253448;--text:#eef4f9;--muted:#95a8ba;--accent:#c5eb89;--accent-dim:#9cc96a;color-scheme:dark}
body{background:var(--bg);-webkit-font-smoothing:antialiased}
button{touch-action:manipulation}
.only-mobile{display:none!important}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.icon{display:inline-block;width:19px;height:19px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon.large{width:37px;height:37px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:34px;min-height:34px;border-radius:9px;transition:background .16s,color .16s}
.icon-btn:hover{background:#ffffff12}
.icon-btn .icon{width:19px;height:19px}
.primary,.outline{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;transition:transform .14s,background .14s,border-color .14s}
.primary:hover,.outline:hover{transform:translateY(-1px)}
.primary .icon,.outline .icon{width:16px;height:16px}
.logo-mark{letter-spacing:normal!important;padding:0!important;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#dafaac,#a4ce77)}
.logo-mark .icon{width:37px;height:37px;stroke-width:2.2}
.logo-mark.small .icon{width:23px;height:23px}
.brand{padding:4px 8px 37px;gap:12px}
.brand strong{font-size:22px;letter-spacing:-.9px}
.brand-dot{color:var(--accent)}
.brand small{font-size:9px;letter-spacing:1.65px}
.brand-title{min-width:0}
.nav-label{margin-top:8px}
.sidebar nav{gap:5px}
.nav-item{gap:13px;padding:13px 13px;min-height:45px}
.nav-item>.icon{color:#8a9caf;width:19px;height:19px}
.nav-item.active>.icon,.nav-item:hover>.icon{color:var(--accent)}
.nav-item.active{background:#c5eb8918;border:1px solid #c5eb8924}
.series-entry{gap:12px;padding:11px 13px;font-size:12px}
.series-entry>.icon{width:16px;height:16px;color:#8d9fb4}
.series-entry:before{display:none}
.sidebar-spacer{flex:1;min-height:20px}
.sidebar-note{display:flex;gap:10px;padding:14px 12px;border-radius:12px;background:linear-gradient(120deg,#1b332d,#1a2635);border:1px solid #344c45;color:#dceee2}
.sidebar-note-icon{width:30px;height:30px;display:grid;place-items:center;color:var(--accent)}
.sidebar-note-icon .icon{width:19px;height:19px}
.sidebar-note strong{font-size:11px;font-weight:700}
.sidebar-note p{font-size:10px;line-height:1.5;color:#a6beb5;margin:6px 0 0}
.sidebar-bottom{padding-top:16px;margin-top:18px;gap:8px}
.sidebar-bottom .icon-btn{min-width:29px}
.topbar{height:76px;border-bottom:1px solid #233044;padding-inline:42px}
.top-left,.top-actions{display:flex;align-items:center;gap:18px}
.crumb{font-size:10px;letter-spacing:1.5px}
.crumb b{font-size:11px}
.search{min-width:275px;background:#172235;height:42px}
.search>.icon{width:16px;height:16px}
.search input{width:235px}
.profile{width:38px;height:38px;background:#e7cfad;font-family:Georgia,serif;font-size:21px}
.content{max-width:1350px;padding-top:30px}
.hero{background:radial-gradient(ellipse at 82% 35%,#2c5141 0%,transparent 48%),linear-gradient(110deg,#162830,#192e2d 65%,#1f3d33);border-color:#3b5549;min-height:288px}
.hero-copy{padding:35px 42px}
.hero .eyebrow{color:#d5e9c6;display:flex;align-items:center;gap:9px}
.hero-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px #c5eb896b}
.hero h1{font-size:clamp(33px,4.5vw,56px);line-height:1.1;margin:20px 0 13px}
.hero h1 em{font-style:italic;color:#cff19d}
.hero p{font-size:12px;line-height:1.75;max-width:390px;color:#b9c8c2}
.hero-actions{margin-top:19px}
.hero-actions .primary{padding:13px 19px}
.hero-actions .outline{border-color:#71887b;background:#21392e66}
.hero-art{width:36%;min-width:280px;display:flex;align-items:center;justify-content:center;isolation:isolate}
.hero-art-grid{position:absolute;inset:0;background-image:linear-gradient(#e6ffca0b 1px,transparent 1px),linear-gradient(90deg,#e6ffca0b 1px,transparent 1px);background-size:31px 31px;mask-image:linear-gradient(to left,#000,transparent)}
.hero-record{position:relative;width:204px;height:204px;border-radius:50%;background:conic-gradient(from 30deg,#91c19a55,#d1efa722,#1e382b99,#c4e69b44,#91c19a55);box-shadow:0 0 0 23px #cbefb80a,0 0 0 45px #cbefb808,0 22px 90px #02090690;display:grid;place-items:center;transform:rotate(-12deg)}
.record-ring{position:absolute;inset:21px;border:1px solid #d8efb544;border-radius:50%}
.ring-2{inset:45px;border-color:#d8efb55e}
.record-center{width:83px;height:83px;border-radius:50%;display:grid;place-items:center;background:#d4f4ae;color:#17261b;box-shadow:0 0 30px #deffb32b}
.hero-icon{width:47px!important;height:47px!important}
.hero-label{display:flex;gap:7px;align-items:center;position:absolute;bottom:17px;right:27px;font-size:9px;color:#b6d3ad;letter-spacing:1.5px}
.hero-label .icon{width:14px;height:14px}
.hero .orbit,.hero .sound-glyph{display:none}
.section-eyebrow{color:#92ad83}
.library-section{margin-top:38px}
.section-heading h2{margin-top:7px;font-size:25px}
.episode-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px}
.episode-card{background:#151f2e;border:1px solid #2a3b4b;border-radius:15px;padding:11px;box-shadow:0 4px 20px #00000010}
.episode-card:hover{background:#1a2839;box-shadow:0 8px 30px #02091640;border-color:#729567}
.card-art{height:160px;background:linear-gradient(145deg,#264840,#3c6758 65%,#819c6b)}
.episode-card:nth-child(4n + 2) .card-art{background:linear-gradient(145deg,#4c435c,#776589 65%,#ac8eaf)}
.episode-card:nth-child(4n + 3) .card-art{background:linear-gradient(145deg,#35435b,#597ea1 65%,#8aa8a8)}
.episode-card:nth-child(4n + 4) .card-art{background:linear-gradient(145deg,#5a473b,#ad805c 65%,#d3aa79)}
.card-art:before{border:1px solid #ffffff2f;transform:scaleX(.65) rotate(-33deg)}
.card-art:after{border:1px solid #ffffff40;transform:scaleX(.6) rotate(32deg)}
.art-stripe{position:absolute;width:145px;height:145px;border:18px solid #ffffff0f;border-radius:50%;transform:translate(34px,-16px)}
.card-art .art-symbol{width:95px;height:95px;display:grid;place-items:center;background:#ffffff16;border:1px solid #ffffff22;border-radius:24px;backdrop-filter:blur(10px);transform:rotate(-9deg)}
.card-art .art-symbol .icon{width:48px;height:48px;stroke-width:1.35}
.card-art .play-overlay{display:grid;place-items:center;width:43px;height:43px;bottom:12px;right:12px;opacity:.95}
.play-overlay .icon{width:19px;height:19px;stroke-width:2.3}
.card-tag{color:#b5e381;margin:14px 6px 8px}
.card-description{line-height:1.6}
.card-footer{padding-top:13px}
.card-footer span{display:inline-flex;align-items:center;gap:5px}
.card-footer .icon{width:13px;height:13px}
.card-progress{margin-bottom:5px}
.chapter-panel,.info-panel{background:#162234;border-radius:15px}
.chapter-panel .sub-heading b,.info-panel .sub-heading b{display:flex;align-items:center;gap:9px}
.chapter-panel .sub-heading .icon,.info-panel .sub-heading .icon{width:17px;height:17px;color:var(--accent)}
.chapter-row{gap:12px;min-height:50px}
.chapter-index{width:27px;height:27px;border-radius:8px;background:#ffffff0b;display:grid;place-items:center;font-size:11px}
.chapter-arrow{color:#71869d;display:grid;place-items:center}
.chapter-arrow .icon{width:15px;height:15px}
.chapter-row.current{background:#badc8b12;border-radius:8px;color:var(--accent)}
.chapter-row.current .chapter-index{background:#c4ed8c33;color:var(--accent)}
.word-transcript button.active{color:#22301b}
.info-actions{gap:9px}
.player{padding:12px 24px;min-height:92px;background:#121c2a;border-color:#374b5b;grid-template-columns:1fr 1.2fr 1fr}
.player-main .track-info{cursor:pointer}
.player-main>.cover{border-radius:9px;background:linear-gradient(135deg,#355d4a,#a4c886);color:#e7fbd8}
.tiny-cover .icon{width:26px;height:26px}
.track-info strong{font-size:12px;max-width:210px}
.track-info small{font-size:11px}
.player-controls{gap:17px}
.player-controls>.icon-btn{width:39px;height:39px;color:#bed0dc}
.player-controls>.icon-btn:hover{color:#fff}
.player-controls>.icon-btn .icon{width:18px;height:18px}
.play-circle{width:43px;height:43px;display:grid;place-items:center;background:var(--accent);border:0;color:#243018;transition:transform .15s,background .15s}
.play-circle:hover{transform:scale(1.07);background:#dafca2}
.play-circle .icon{width:20px;height:20px;stroke-width:2.3}
.skip-number{position:absolute;bottom:1px;right:2px;font-size:8px;font-weight:800;line-height:1;background:#121c2a;padding:1px 2px;border-radius:3px}
.timeline{gap:13px}
.timeline input,#sheet-seek{accent-color:var(--accent)}
.player-side{gap:15px}
.sync-indicator{display:flex;align-items:center;gap:6px}
.sync-indicator .icon{width:14px;height:14px}
.speed-label{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:1px;color:#8398ad;font-weight:800}
.speed-label select{min-width:70px;font-size:12px;font-weight:700}
.login-card{border-color:#385148}
.login-card .logo-mark{margin-bottom:27px}
.login-card .eyebrow{font-size:9px}
.login-card h1{font-size:36px;line-height:1.15}
.login-card h1 em{font-size:34px}
.login-card p{margin-bottom:19px}
.signin-foot{display:flex;align-items:center;gap:7px;font-size:10px;color:#879bb1;margin-top:22px}
.signin-foot .icon{width:14px;height:14px}
.now-playing-sheet{position:fixed;z-index:30;inset:0;background:radial-gradient(circle at 50% 30%,#385648,#162b2d 55%,#0d1624);overflow-y:auto;overscroll-behavior:contain}
.now-playing-inner{display:flex;flex-direction:column;align-items:center;min-height:100dvh;max-width:610px;margin:0 auto;padding:20px 34px 34px}
.sheet-header{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:10px;font-weight:800;letter-spacing:2.1px;color:#c4d6c8}
.sheet-header .icon-btn{width:44px;height:44px}
.sheet-header .icon{width:22px;height:22px}
.sheet-album{width:min(68vw,370px);height:min(68vw,370px);border-radius:24px;margin:38px 0 33px;background:linear-gradient(145deg,#2d6256,#5f8873 70%,#b1c78d);display:grid;place-items:center;box-shadow:0 34px 85px #030b1c9f;position:relative;overflow:hidden}
.sheet-album:before,.sheet-album:after{content:"";position:absolute;width:92%;height:92%;border:1px solid #fff4;border-radius:50%;transform:rotate(-28deg) scaleX(.65)}
.sheet-album:after{width:63%;height:63%;transform:rotate(34deg) scaleX(.7)}
.sheet-album>.icon{width:110px;height:110px;stroke:#e7f5d5;stroke-width:1.2;z-index:1}
.sheet-track{align-self:stretch}
.sheet-track .eyebrow{font-size:10px;color:#c0e299}
.sheet-track h2{font-size:clamp(18px,3.5vw,26px);line-height:1.4;margin:9px 0 26px;letter-spacing:-.5px}
.sheet-timeline{width:100%;display:flex;justify-content:space-between;color:#b5c8ba;font-size:11px}
#sheet-seek{width:100%;margin:9px 0 22px;height:6px}
.sheet-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:420px}
.sheet-controls .icon-btn{width:48px;height:48px;color:#c9d9c9}
.sheet-controls .icon{width:24px;height:24px}
.sheet-controls .big-play{width:66px;height:66px}
.sheet-controls .big-play .icon{width:27px;height:27px}
.sheet-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;margin-top:32px;padding-top:20px;border-top:1px solid #aec5af2b;color:#c2d6c4;font-size:11px}
.sheet-bottom>span{display:flex;gap:8px;align-items:center}
.sheet-bottom .icon{width:16px;height:16px}
.sheet-bottom label{display:flex;align-items:center;gap:9px}
.sheet-bottom select{background:#263d38;color:#dff1d4;border:1px solid #6d8879;border-radius:9px;padding:8px 10px}
.sidebar-scrim{position:fixed;z-index:11;inset:0;background:#030a13ab;backdrop-filter:blur(3px)}
.dialog .close-dialog{display:grid;place-items:center;width:38px;height:38px}
.dialog .primary{display:flex}
@media(max-width:1120px){.content{padding-inline:27px}.topbar{padding-inline:25px}.hero-copy{padding:33px}.hero-art{min-width:230px}.hero-record{width:175px;height:175px}}
@media(max-width:770px){
 .only-mobile{display:inline-flex!important}
 .sidebar{z-index:20}
 .nav-open{overflow:hidden}
 .sidebar .brand .only-mobile{margin-left:auto}
 .topbar{height:65px}
 .top-left{gap:8px}
 .search{height:39px;min-width:0}
 .search input{width:140px}
 .crumb{font-size:9px}
 .hero-art{width:48%;min-width:0;right:-50px;opacity:.52;pointer-events:none}
 .hero-record{width:160px;height:160px}
 .hero-copy{padding:28px 25px}
 .hero h1{font-size:clamp(34px,7vw,45px)}
 .hero p{max-width:270px}
 .content{padding:22px 17px 155px}
 .episode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .card-art{height:132px}
 .episode-card{padding:8px}
 .episode-card h3{font-size:12px;min-height:38px}
 .card-art .art-symbol{width:76px;height:76px}
 .card-art .art-symbol .icon{width:39px;height:39px}
 .card-tag{font-size:8px;letter-spacing:.8px}
 .card-description{font-size:10px}
 .card-footer{font-size:9px}
 .player{min-height:85px;grid-template-columns:minmax(0,1fr) 50px;grid-template-rows:1fr;gap:7px;padding:9px 12px 12px 12px;bottom:9px;left:9px;right:9px;width:auto;border-radius:13px;border:1px solid #45604c;background:linear-gradient(120deg,#1e3a32,#202f39);box-shadow:0 7px 30px #0008}
 .player-main{grid-column:1/2;grid-row:1/2}
 .player .tiny-cover{width:48px;height:48px}
 .track-info strong{max-width:calc(100vw - 190px);font-size:12px}
 .track-info small{max-width:calc(100vw - 190px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #open-details{display:none}
 .player-center{grid-column:2/3;grid-row:1/2}
 .player-controls{gap:0}
 .player-controls>.icon-btn{display:none}
 .player .play-circle{width:40px;height:40px}
 .player .timeline{position:absolute;left:0;right:0;bottom:0;width:100%;height:4px;gap:0}
 .player .timeline span{display:none}
 .player .timeline input{width:100%;height:4px;margin:0}
 .player-side{display:none}
  .now-playing-inner{padding:14px 25px 32px}
 .sheet-album{margin:24px 0 30px}
 .sheet-track h2{margin-bottom:19px}
 .sheet-controls{gap:6px}
 .sheet-bottom{margin-top:27px}
 .profile{width:29px;height:29px;font-size:16px}
 .hero-actions{gap:8px}
 .hero-actions .primary,.hero-actions .outline{font-size:11px;padding:11px 12px}
 .sidebar .icon-btn{display:flex}
}
@media(max-width:390px){
 .content{padding-inline:12px}
 .search{padding:0 7px}
 .search input{width:91px}
 .card-art{height:109px}
 .card-art .art-symbol{width:64px;height:64px}
 .card-art .art-symbol .icon{width:34px;height:34px}
 .hero h1{font-size:32px}
 .hero-copy{padding:25px 19px}
 .hero-actions .outline{font-size:10px}
 .sheet-album{width:min(68vw,270px);height:min(68vw,270px)}
 .sheet-album>.icon{width:80px;height:80px}
}
@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;scroll-behavior:auto!important}}

.google-signin{display:flex;align-items:center;justify-content:space-between;gap:13px;width:100%;padding:14px 18px;margin-top:20px;border:1px solid #a9bd9c;border-radius:9px;color:#e7f3ec;background:#ffffff0b;text-decoration:none;font-size:13px;font-weight:700}.google-signin:hover{background:#ffffff16;border-color:#c9ee9c}.google-g{display:grid;place-items:center;font-family:Arial,sans-serif;font-size:21px;font-weight:800;background:#fff;color:#4285f4;border-radius:7px;width:30px;height:30px}.google-signin .icon{width:17px;height:17px}
