/* In the `components` cascade layer, declared in _head_assets.html. This sheet loads after style.css and shares its layer, so a tie still resolves in this file's favour by source order, exactly as when both were unlayered. The creator theme block stays unlayered and outranks both. */ @layer components { /* Unified media player styles, shared by audio and video player pages. */ /* Media container. The 680px measure lives in style.css as the shared reading column, alongside the three other long-form wrappers that used to carry their own copy of it. Only descendants are styled here. */ /* Author header */ .author-header { display: flex; align-items: center; gap: var(--gap-section); margin-bottom: var(--gap-page); } .author-avatar { width: 48px; height: 48px; background: var(--surface-sunken); border-radius: var(--radius-round); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--text-subhead); color: var(--content); } .author-info { flex: 1; } .author-name { font-family: var(--font-mono); font-size: var(--text-body); color: var(--content); } .author-name a { color: inherit; text-decoration: none; } .author-name a:hover { text-decoration: underline; } .media-meta { font-family: var(--font-mono); font-size: var(--text-note); color: var(--content-muted); } /* Title */ .media-title { font-family: var(--font-display); font-size: var(--text-display); font-weight: normal; line-height: 1.2; margin-bottom: var(--gap-section); color: var(--content); text-align: left; } /* Series name */ .media-series { font-family: var(--font-mono); font-size: var(--text-note); color: var(--content-muted); margin-bottom: var(--gap-page); } .media-series a { color: var(--action); text-decoration: none; } .media-series a:hover { text-decoration: underline; } /* Cover art (audio) */ .cover-art { background: var(--surface-sunken); aspect-ratio: 1; max-width: 400px; margin: 0 auto var(--gap-page); display: flex; align-items: center; justify-content: center; color: var(--content-muted); font-family: var(--font-mono); } .cover-art img { width: 100%; height: 100%; object-fit: cover; } /* Video display */ .video-display { max-width: 100%; margin: 0 auto var(--gap-page); background: var(--content); } .video-display video { width: 100%; display: block; } /* Only the active element is shown; the standby preloads the next segment off-screen so pre/mid/post-roll transitions are gapless. */ .video-display video.is-standby { display: none; } /* Player controls */ .media-player { background: var(--surface-overlay); padding: var(--gap-pane); margin-bottom: var(--gap-page); } .player-controls { display: flex; align-items: center; gap: var(--gap-section); margin-bottom: var(--gap-section); } .play-button { width: 56px; height: 56px; background: var(--primary-dark); color: var(--primary-light); border: none; border-radius: var(--radius-round); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: var(--text-head); transition: opacity 0.2s ease; flex-shrink: 0; } .play-button:hover { opacity: 0.8; } .progress-container { flex: 1; } .progress-bar { height: 6px; background: var(--surface-sunken); border-radius: var(--radius-control); overflow: hidden; cursor: pointer; margin-bottom: var(--gap-peer); position: relative; } .progress-fill { height: 100%; /* respec-ok: name collision, not a contest. layout.css styles `.progress > .progress-fill`, and this one is inside .progress-bar, the media scrubber, which is not the generated primitive and never matches that selector. Worth knowing before anything here adopts .progress: the two would then collide for real. */ background: var(--action); width: 0%; border-radius: var(--radius-control); transition: width 0.1s linear; } .time-display { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-fine); color: var(--content-muted); } .player-secondary { display: flex; justify-content: space-between; align-items: center; padding-top: var(--gap-section); border-top: 1px solid var(--border); } .speed-control { font-family: var(--font-mono); font-size: var(--text-note); display: flex; align-items: center; gap: var(--gap-peer); } .speed-button { background: var(--surface-sunken); border: none; padding: var(--gap-peer) var(--gap-section); font-family: var(--font-mono); font-size: var(--text-fine); cursor: pointer; color: var(--content); } .speed-button:hover { background: var(--border); } .speed-button.is-selected { background: var(--primary-dark); color: var(--primary-light); } .volume-control { display: flex; align-items: center; gap: var(--gap-peer); } .volume-icon { color: var(--content-muted); } .volume-slider { width: 80px; height: 4px; background: var(--surface-sunken); border-radius: var(--radius-fine); appearance: none; cursor: pointer; } .volume-slider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; background: var(--content); border-radius: var(--radius-round); cursor: pointer; } .volume-slider::-moz-range-thumb { width: 12px; height: 12px; background: var(--content); border-radius: var(--radius-round); cursor: pointer; border: none; } /* Description */ .media-description { font-family: var(--font-sans); font-size: var(--text-lead); line-height: 1.9; margin-bottom: var(--gap-page); } .media-description p { margin-bottom: var(--gap-pane); } /* Chapters */ .chapters { background: var(--surface-overlay); padding: var(--gap-pane); margin-bottom: var(--gap-page); } .chapters h3 { font-family: var(--font-mono); font-size: var(--text-body); font-weight: normal; margin-bottom: var(--gap-section); color: var(--content); } .chapter-list { list-style: none; } .chapter-item { display: flex; justify-content: space-between; padding: var(--gap-section) 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s ease; } .chapter-item:last-child { border-bottom: none; } .chapter-item:hover { background: var(--surface-sunken); /* The bleed and the inset must stay equal or the row shifts on hover, so both sides read the same token. */ margin: 0 calc(var(--gap-pane) * -1); padding-left: var(--gap-pane); padding-right: var(--gap-pane); } .chapter-title { font-family: var(--font-sans); color: var(--content); } .chapter-time { font-family: var(--font-mono); font-size: var(--text-note); color: var(--content-muted); } /* Tags */ .media-tags { display: flex; gap: var(--gap-peer); flex-wrap: wrap; margin-top: var(--gap-page); padding-top: var(--gap-page); border-top: 1px solid var(--border); } .tag { font-family: var(--font-mono); background: var(--surface-sunken); color: var(--content); padding: var(--gap-peer) var(--gap-section); font-size: var(--text-fine); } /* Footer */ .media-player-footer { font-family: var(--font-mono); text-align: center; padding: var(--gap-page); font-size: var(--text-note); color: var(--content-muted); border-top: 1px solid var(--border); } .media-player-footer a { color: var(--content); text-decoration: none; } .media-player-footer a:hover { text-decoration: underline; } /* Hidden media elements */ audio { display: none; } /* Skip button for insertion segments */ .skip-insertion { font-family: var(--font-mono); font-size: var(--text-fine); background: var(--surface-sunken); border: 1px solid var(--border); padding: var(--gap-peer) var(--gap-section); cursor: pointer; color: var(--content); display: none; margin-top: var(--gap-peer); } .skip-insertion:hover { background: var(--border); } /* Insertion label shown during playback */ .insertion-label { font-family: var(--font-mono); font-size: var(--text-fine); color: var(--content-muted); font-style: italic; display: none; margin-top: var(--gap-bound); } /* Responsive */ @media (max-width: 599px) { .media-title { font-size: var(--text-title); } .cover-art { max-width: 100%; } .player-secondary { flex-direction: column; gap: var(--gap-section); align-items: flex-start; } } }