/* ——— Scroll page only ——— */

.page-scroll{
    margin: 0;
    padding: 0;
}

/* three columns: left | center | right */
.scroll-tools{
	position: sticky; top:0; z-index:40;
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 6px 10px;
	align-items: center;
	padding: 8px 12px;
	background: var(--panel);
}
.scroll-tools .left{
    display:flex;
    align-items: center;
    gap:8px;
}
.scroll-tools .center{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
}
.scroll-tools .right{
    display:flex;
    gap:8px;
}

#scTitle{
    font-family: poco;
    font-size: 20px;
    padding-bottom: 4px;
}

.bm-select{
    font-family: poco;
    font-size: 16px;
    margin-right: 6px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 7px;
    border-radius: 8px;
    border: none;
    min-width: 16vw;
}

/* bookmark button overlay on each page (top-right) */
.sc-page{ display:grid; margin:0 0 16px; }
.sc-page figure{ grid-area:1/1; margin:0; }
.sc-page img{ grid-area:1/1; display:block; width:1080px; max-width:100%; height:auto; }

/* star button */
.sc-page .bm-btn{
	grid-area:1/1;
	justify-self:end; align-self:start;
	margin: -6px -6px 0 0;
	z-index:6;
	width: 32px; height: 32px; border-radius:50%;
	border: none;
	background: none;
	color: var(--accent-2);
	display:flex; align-items:center; justify-content:center;
	cursor:pointer;
}
.sc-page .bm-btn.active{
    background: var(--accent);
    color: var(--bg);
}

.theme-switch{
    margin-top: 64px;
}

.progress{
	grid-column: 1 / -1;
	height: 4px;
	background: #0256;
	border-radius: 999px;
	overflow: hidden;
}
.progress > span{
	display: block;
	height: 100%;
	width: 0%;
	background: var(--accent);
}

.sc-root{
	max-width: 1080px;
	margin: 12px auto 40px;
	padding: 0 8px;
}

/* Episode section */
.sc-ep{
	margin: 0;
	border-radius: 10px;
}
.sc-ep > .sc-ep-head{
	display: none;
	justify-content:space-between;
	align-items:center;
	padding: 8px 12px;
	color: var(--fg);
	border-bottom: 1px dashed var(--panel-border);
}

/* Page block */
.sc-page{
    display: grid;
    margin: 0;
	padding: 0;
}
.sc-page figure{
    grid-area: 1 / 1;
    margin: 0;
}
.sc-page img{
	display: block;
	width: 1080px;      /* native page width */
	max-width: 100%;    /* responsive on small screens */
	height: auto;
}
.sc-page .p-meta{
    font-family: poco;
    font-size: 16px;
    
    grid-area: 1 / 1;
    align-self: end;
	display: inline-flex;
    justify-self: flex-start;
    position: absolute;
    gap: 8px;
    
    padding-left: 6px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 3px;
    
	color: var(--accent-2);
    z-index: 5;
}

/* Optional transcript style if you enable it */
.sc-tx{
	margin: 6px 2px 0;
	padding: 8px 10px;
	background: #0002;
	border: 1px solid var(--panel-border);
	border-radius: 6px;
	white-space: pre-wrap;
	color: var(--fg);
	font-size: 14px;
}
