/*
 * Video library and watch pages (2.6.4).
 * Loaded after blog-list.css, so it reuses the theme tokens, listing header,
 * side cards, help card and booking banner, and only adds video-specific parts.
 */

.pt-videos {
	--pt-copper: #b45309;
	--pt-card-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
	--pt-card-shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.11);
}

/* Search box: no focus outline, same as the blog search. */
.pt-videos .listing-search-field input:focus,
.pt-videos .listing-search-field input:focus-visible { outline: none; }
.pt-videos .listing-header h1 { overflow-wrap: anywhere; letter-spacing: -0.03em; }

/* ---------- Library hero ---------- */
.pt-video-hero { padding-block: 34px 26px; }
.pt-video-hero__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: center; gap: 40px; }
.pt-video-hero__copy { min-width: 0; }
/* Same full yellow block as the blog hero ("Help."). */
.pt-video-hero__copy h1 mark { display: inline-block; padding: 0 6px 3px; border-radius: 4px; background: var(--pt-yellow); color: #1a1a1a; }
.pt-video-hero__copy > p { max-width: 560px; line-height: 1.6; }
.pt-video-hero__visual { width: 100%; justify-self: end; margin-right: clamp(0px, 5vw, 72px); }
.pt-video-hero__visual img { display: block; width: 100%; height: auto; }

/* Same pill as the blog hero ("Hey there, future PTE champion"). */
.pt-video-eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 0 18px !important; padding: 0 14px; border-radius: 999px; background: var(--pt-yellow); color: #1a1a1a !important; font-size: 0.82rem !important; font-weight: 900 !important; text-transform: uppercase; }
.pt-video-eyebrow span { color: #1a1a1a; font-size: 12px; }
.pt-video-eyebrow__icon { flex: 0 0 auto; width: 20px; height: 20px; color: #1a1a1a; }
.pt-video-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--pt-copper); font-size: 0.9rem; font-weight: 800; text-decoration: none; }
.pt-video-back:hover { text-decoration: underline; }

.pt-video-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pt-video-stats li { padding: 6px 12px; border: 1px solid var(--pt-border); border-radius: 999px; background: #ffffff; color: var(--pt-muted); font-size: 0.85rem; font-weight: 600; }
.pt-video-stats strong { color: var(--pt-ink); font-weight: 800; }

.pt-videos .pt-video-search { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-top: 22px; }

/* Topic chips */
.pt-video-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pt-video-topic { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--pt-border); border-radius: 999px; background: #ffffff; color: #344054; font-size: 0.88rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.pt-video-topic:hover { border-color: var(--pt-yellow); background: var(--pt-yellow-soft); color: var(--pt-ink); }
.pt-video-topic.is-active { border-color: var(--pt-ink); background: var(--pt-ink); color: #ffffff; }
.pt-video-topic__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f2f4f7; color: var(--pt-muted); font-size: 0.74rem; font-weight: 700; text-align: center; }
.pt-video-topic.is-active .pt-video-topic__count { background: var(--pt-yellow); color: var(--pt-ink); }

/* ---------- Library grid ---------- */
.pt-video-library { padding-block: 34px 56px; }
.pt-video-library__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.pt-video-library__head .section-title { margin: 0; overflow-wrap: anywhere; }
.pt-video-library__count { margin: 0; color: var(--pt-muted); font-size: 0.9rem; font-weight: 600; }
.pt-video-library__count a { color: var(--pt-copper); font-weight: 800; }
.pt-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }

.pt-videos .blog-pagination { margin-top: 34px; }
.pt-videos .blog-pagination .current { border-color: var(--pt-yellow); background: var(--pt-yellow); }
.pt-videos .blog-pagination .dots { border-color: transparent; background: transparent; }

.pt-video-empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--pt-yellow); color: var(--pt-ink); }

/* ---------- Video card ---------- */
/* YouTube-style card: rounded thumbnail, no box around the card. */
.pt-video-card { position: relative; min-width: 0; display: flex; flex-direction: column; }

.pt-video-card__link { position: relative; z-index: 0; display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; border-radius: 12px; }
/* Hover background tinted with the thumbnail's colour (--pt-tint from ptenote_video_tint()). */
.pt-video-card__link::before, .pt-up-next__item::before, .pt-playlist-item__link::before { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: 18px; background: rgb(var(--pt-tint, 15 23 42) / 0.15); opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.pt-up-next__item::before { inset: -6px; border-radius: 14px; }
@media (hover: hover) {
	.pt-video-card__link:hover::before, .pt-up-next__item:hover::before, .pt-playlist-item__link:hover::before { opacity: 1; }
}
.pt-video-card__link:focus-visible::before, .pt-up-next__item:focus-visible::before, .pt-playlist-item__link:focus-visible::before { opacity: 1; }

.pt-video-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #1b1d22; isolation: isolate; }
.pt-video-card__media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.pt-video-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45)); opacity: 0.9; pointer-events: none; transition: opacity 180ms ease; }

.pt-video-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 80% 20%, rgba(255, 193, 32, 0.35), transparent 45%), linear-gradient(135deg, #1f2329, #121316); }
.pt-video-card__placeholder span { margin-top: 124px; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.24em; }

/* Yellow play button in the centre of the thumbnail; hidden while the preview plays. */
.pt-video-card__play { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; padding-left: 3px; border-radius: 50%; background: var(--pt-yellow); color: var(--pt-ink); box-shadow: 0 0 0 6px rgba(255, 193, 32, 0.28), 0 10px 24px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); transition: transform 200ms ease, opacity 180ms ease, box-shadow 200ms ease; }
.pt-video-card__play svg { width: 22px; height: 22px; }

.pt-video-duration { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 7px; border-radius: 6px; background: rgba(17, 17, 17, 0.82); color: #ffffff; font-size: 0.75rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.pt-video-card__progress { position: absolute; left: 0; bottom: 0; z-index: 3; width: 100%; height: 3px; background: var(--pt-yellow); transform: scaleX(var(--preview-progress, 0)); transform-origin: left; }

.pt-video-card__body { display: flex; align-items: flex-start; gap: 12px; padding: 12px 2px 0; }
.pt-video-card__avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pt-video-card__text { display: grid; gap: 4px; min-width: 0; }
.pt-video-card__title { margin: 0; color: var(--pt-ink); font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-video-card__channel { color: var(--pt-muted); font-size: 0.8rem; font-weight: 500; }

.pt-video-card__sound { position: absolute; top: 10px; right: 10px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(17, 17, 17, 0.8); color: #ffffff; cursor: pointer; backdrop-filter: blur(4px); transition: background-color 160ms ease, color 160ms ease; }
.pt-video-card__sound[hidden] { display: none; }
/* Only while this card's preview is playing (hover on desktop, in view on phones). */
.pt-video-card__sound { opacity: 0; visibility: hidden; transform: scale(0.85); transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms, background-color 160ms ease, color 160ms ease; }
.pt-video-card.is-previewing .pt-video-card__sound,
.pt-video-card__sound:focus-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease, visibility 0s, background-color 160ms ease, color 160ms ease; }
/* Stays dark in every state (hover, sound on); only the icon changes. */
.pt-video-card__sound:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(17, 17, 17, 0.88); }
.pt-video-card__sound svg { width: 20px; height: 20px; pointer-events: none; }
.pt-video-sound-on, .pt-video-card.is-sound-on .pt-video-sound-off { display: none; }
.pt-video-card.is-sound-on .pt-video-sound-on { display: block; }

/* The preview fills the card like the thumbnail and reaches 1px past each
   edge (the card clips it), so a card that starts or ends partway through a
   pixel (the middle card in a row of three is 506.66–933.33px) never shows a
   sliver of background beside the moving picture. */
.pt-video-card__preview-video { position: absolute; top: -1px; left: -1px; z-index: 1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; background: transparent; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.pt-video-card.is-previewing .pt-video-card__preview-video { opacity: 1; }
/* Vertical, square or other non-wide videos: shown whole with black bars. */
.pt-video-card__preview-video.is-fit { object-fit: contain; background: #000000; }
/* Rounded corners are smoothed by blending with what's underneath, so the dark
   thumbnail/background would show as a thin line around a playing preview.
   Once the preview has faded in, nothing dark is left under it. */
.pt-video-card.is-previewing .pt-video-card__media { background: transparent; }
.pt-video-card.is-previewing .pt-video-card__media > img,
.pt-video-card.is-previewing .pt-video-card__placeholder { visibility: hidden; transition: transform 300ms ease, visibility 0s linear 200ms; }
.pt-video-card.is-previewing .pt-video-card__play,
.pt-video-card.is-previewing .pt-video-duration,
.pt-video-card.is-previewing .pt-video-card__media::after { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
	.pt-video-card__link:hover .pt-video-card__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 9px rgba(255, 193, 32, 0.3), 0 12px 28px rgba(0, 0, 0, 0.32); }
}

/* ---------- Watch page (YouTube-style) ---------- */
.pt-watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; grid-template-areas: "stage side" "main side"; gap: 0 28px; align-items: start; padding-block: 24px 44px; }
.pt-watch-stage { grid-area: stage; min-width: 0; }
.pt-watch-main { grid-area: main; min-width: 0; }

.pt-watch-info { margin-top: 12px; }
.pt-watch-title { margin: 0; color: var(--pt-ink); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.55rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.pt-watch-channel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 8px; }
.pt-watch-actions { display: flex; gap: 8px; margin-left: auto; }
.pt-watch-action { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #f2f3f5; color: var(--pt-ink); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background-color 140ms ease; }
.pt-watch-action:hover { background: #e4e6ea; }
.pt-watch-action[hidden] { display: none; }
.pt-watch-action svg { width: 20px; height: 20px; }
.pt-watch-channel__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pt-watch-channel__name { color: var(--pt-ink); font-size: 1rem; font-weight: 700; }

/* Description box, like YouTube's grey box under the video. */
.pt-video-about { --pt-about-bg: #f2f3f5; position: relative; margin-top: 10px; padding: 14px 16px 16px; border-radius: 12px; background: var(--pt-about-bg); transition: background-color 140ms ease; }
/* Folded description (video-page.js): first three lines and "…more", like YouTube. */
.pt-video-about.is-collapsed .pt-video-about__body { max-height: 4.9rem; overflow: hidden; }
.pt-video-about.is-collapsible.is-collapsed { cursor: pointer; }
.pt-video-about.is-collapsible.is-collapsed:hover { --pt-about-bg: #e9ebee; }
.pt-video-about__more { position: absolute; right: 16px; bottom: 16px; padding: 0 0 0 40px; border: 0; background: linear-gradient(90deg, transparent, var(--pt-about-bg) 38px); color: var(--pt-ink); font: inherit; font-size: 0.94rem; font-weight: 800; line-height: 1.63rem; cursor: pointer; }
.pt-video-about__less { display: block; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--pt-ink); font: inherit; font-size: 0.94rem; font-weight: 800; cursor: pointer; }
.pt-video-about__more[hidden], .pt-video-about__less[hidden] { display: none; }
.pt-video-about__more:hover, .pt-video-about__less:hover { text-decoration: underline; }
.pt-video-about__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; color: var(--pt-ink); font-size: 0.92rem; font-weight: 700; }
.pt-video-about .post-password-form p { margin: 0 0 10px; }
.pt-video-about .post-password-form input[type="password"] { min-height: 40px; padding: 0 12px; border: 1px solid #cfd6df; border-radius: 8px; background: #ffffff; }
.pt-video-about .post-password-form input[type="submit"] { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font-weight: 800; cursor: pointer; }
.pt-video-description { color: var(--pt-text); font-size: 0.96rem; line-height: 1.7; overflow-wrap: anywhere; }
.pt-video-description > :first-child { margin-top: 0; }
.pt-video-description > :last-child { margin-bottom: 0; }
.pt-video-description h2, .pt-video-description h3 { margin: 1.4em 0 0.5em; color: var(--pt-ink); font-size: 1.1rem; font-weight: 800; }
.pt-video-description ul, .pt-video-description ol { padding-left: 1.3em; }
.pt-video-description li { margin: 0.3em 0; }
.pt-video-description li::marker { color: #d18b00; }
.pt-video-description a { color: var(--pt-copper); font-weight: 700; }
.pt-video-description img, .pt-video-description iframe { max-width: 100%; }
.pt-video-description img { height: auto; border-radius: 8px; }
.pt-video-description table { display: block; overflow-x: auto; }
/* Descriptions pasted as a Preformatted or Code block keep their line breaks
   but use the theme font, not the browser's default monospace. */
.pt-video-description pre,
.pt-video-description pre code,
.pt-video-description .wp-block-preformatted,
.pt-video-description .wp-block-code,
.pt-video-description .wp-block-verse { margin: 0 0 1em; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.pt-video-description pre code { display: block; margin: 0; }

.pt-video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.pt-video-tags a { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: #ffffff; color: #344054; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.pt-video-tags a:hover { background: var(--pt-yellow-soft); color: var(--pt-ink); }

/* Sidebar: Up next (related first, then every other video), YouTube-style rows. */
.pt-watch-sidebar { grid-area: side; min-width: 0; }
.pt-up-next__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pt-up-next__head h2 { margin: 0; color: var(--pt-ink); font-size: 1.12rem; font-weight: 800; }
.pt-up-next__head a { color: var(--pt-copper); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.pt-up-next__head a:hover { text-decoration: underline; }
.pt-up-next__group { margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid var(--pt-border); color: var(--pt-ink); font-size: 0.98rem; font-weight: 700; }
.pt-up-next__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pt-up-next__item { position: relative; z-index: 0; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; align-items: start; border-radius: 10px; color: inherit; text-decoration: none; }
.pt-up-next__thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1d22; }
.pt-up-next__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-up-next__thumb .pt-video-card__placeholder span { display: none; }
.pt-up-next__thumb .pt-video-duration { right: 5px; bottom: 5px; z-index: 2; padding: 1px 5px; font-size: 0.7rem; }
.pt-up-next__copy { display: grid; gap: 4px; min-width: 0; padding-top: 1px; }
.pt-up-next__title { color: var(--pt-ink); font-size: 0.92rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pt-up-next__channel { color: var(--pt-muted); font-size: 0.75rem; font-weight: 500; }
.pt-up-next__item:hover .pt-up-next__title { color: #7a4b00; }

.pt-videos .booking-banner { margin-top: 8px; margin-bottom: 40px; }

/* ---------- Custom player (assets/js/video-watch.js) ---------- */
.pt-video-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: #000000; color: #ffffff; }
/* The black sits on the video itself (with the same rounded corners), not
   behind it, so no dark hairline shows around the corners while it plays. */
.pt-video-player[data-pt-player] { background: transparent; }
.pt-video-player video { display: block; width: 100%; height: 100%; border-radius: inherit; background: #000000; object-fit: contain; }
.pt-video-player--empty { display: grid; place-items: center; background: linear-gradient(135deg, #1f2329, #121316); color: rgba(255, 255, 255, 0.78); font-weight: 700; }
.pt-video-player--empty p { margin: 0; padding: 0 20px; text-align: center; }
.pt-video-player.is-enhanced { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pt-video-player.is-enhanced video { cursor: pointer; }
.pt-video-player.is-idle, .pt-video-player.is-idle video { cursor: none; }
.pt-video-player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.pt-video-player:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }

.pt-player__big { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: var(--pt-yellow); color: var(--pt-ink); box-shadow: 0 0 0 8px rgba(255, 193, 32, 0.28), 0 12px 30px rgba(0, 0, 0, 0.35); cursor: pointer; transform: translate(-50%, -50%); transition: transform 160ms ease, opacity 160ms ease; }
.pt-player__big:hover { transform: translate(-50%, -50%) scale(1.06); }
.pt-player__big svg { width: 30px; height: 30px; }
.pt-player__big .pt-player__icon-play { margin-left: 4px; }
.pt-video-player.is-playing .pt-player__big, .pt-video-player.is-waiting .pt-player__big { opacity: 0; pointer-events: none; }

.pt-player__spinner { position: absolute; top: 50%; left: 50%; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: var(--pt-yellow); border-radius: 50%; opacity: 0; pointer-events: none; animation: pt-player-spin 0.8s linear infinite; transition: opacity 160ms ease; }
.pt-video-player.is-waiting .pt-player__spinner { opacity: 1; }
@keyframes pt-player-spin { to { transform: rotate(360deg); } }

.pt-player__controls { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; padding: 28px 12px 6px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72)); transition: opacity 220ms ease, transform 220ms ease; }
.pt-video-player.is-idle .pt-player__controls { opacity: 0; transform: translateY(6px); pointer-events: none; }

.pt-player__progress { position: relative; height: 18px; margin: 0 4px; cursor: pointer; touch-action: none; }
.pt-player__track { position: absolute; top: 50%; right: 0; left: 0; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.28); transition: height 120ms ease, margin-top 120ms ease; }
.pt-player__buffer, .pt-player__played { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; transform: scaleX(0); transform-origin: left center; }
.pt-player__buffer { background: rgba(255, 255, 255, 0.45); }
.pt-player__played { background: var(--pt-yellow); }
.pt-player__knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--pt-yellow); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); transform: scale(0); transition: transform 120ms ease; }
.pt-player__progress:hover .pt-player__track, .pt-player__progress.is-dragging .pt-player__track, .pt-player__progress:focus-visible .pt-player__track { height: 6px; margin-top: -3px; }
.pt-player__progress:hover .pt-player__knob, .pt-player__progress.is-dragging .pt-player__knob, .pt-player__progress:focus-visible .pt-player__knob { transform: scale(1); }
.pt-player__tip { position: absolute; bottom: 22px; left: 0; padding: 3px 7px; border-radius: 6px; background: rgba(17, 17, 17, 0.9); color: #ffffff; font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 120ms ease; }
.pt-player__progress:hover .pt-player__tip, .pt-player__progress.is-dragging .pt-player__tip { opacity: 1; }

.pt-player__bar { display: flex; align-items: center; gap: 2px; }
.pt-player__btn { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #ffffff; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.pt-player__btn:hover { background: rgba(255, 255, 255, 0.14); }
.pt-player__btn svg { width: 24px; height: 24px; }
.pt-player__icon-pause, .pt-player__icon-replay, .pt-player__icon-muted, .pt-player__icon-exit { display: none; }
.pt-video-player.is-playing .pt-player__icon-play { display: none; }
.pt-video-player.is-playing .pt-player__icon-pause { display: block; }
.pt-video-player.is-ended .pt-player__icon-play { display: none; }
.pt-video-player.is-ended .pt-player__icon-replay { display: block; }
.pt-video-player.is-muted .pt-player__icon-volume { display: none; }
.pt-video-player.is-muted .pt-player__icon-muted { display: block; }
.pt-video-player.is-fullscreen .pt-player__icon-enter { display: none; }
.pt-video-player.is-fullscreen .pt-player__icon-exit { display: block; }

.pt-player__volume { display: flex; align-items: center; }
.pt-player__volume-range { width: 0; height: 4px; margin: 0; opacity: 0; accent-color: var(--pt-yellow); cursor: pointer; transition: width 180ms ease, opacity 180ms ease, margin 180ms ease; }
.pt-player__volume:hover .pt-player__volume-range, .pt-player__volume:focus-within .pt-player__volume-range { width: 72px; margin: 0 8px 0 2px; opacity: 1; }
.pt-player__time { padding: 0 8px; font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-player__spacer { flex: 1; }

.pt-player__btn--settings svg { transition: transform 220ms ease; }
.pt-video-player.is-menu-open .pt-player__btn--settings svg { transform: rotate(30deg); }
.pt-player__hd { position: absolute; top: 7px; right: 3px; display: none; padding: 0 3px; border-radius: 3px; background: var(--pt-yellow); color: var(--pt-ink); font-size: 0.5rem; font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; pointer-events: none; }
.pt-video-player.is-hd .pt-player__hd { display: block; }
.pt-player__icon-theater-exit { display: none; }
.pt-video-player.is-theater .pt-player__icon-theater { display: none; }
.pt-video-player.is-theater .pt-player__icon-theater-exit { display: block; }
.pt-player__freeze { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; background: #000000; pointer-events: none; }
.pt-player__freeze[hidden] { display: none; }

/* Settings menu: Quality and Playback speed, each with its own list. */
.pt-player__menu { position: absolute; right: 12px; bottom: 62px; z-index: 6; width: 264px; max-width: calc(100% - 24px); max-height: calc(100% - 74px); margin: 0; padding: 8px 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; background: rgba(28, 28, 28, 0.94); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); scrollbar-width: thin; }
.pt-player__menu[hidden], .pt-player__panel[hidden] { display: none; }
.pt-player__panel button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: #ffffff; font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer; }
.pt-player__panel button:hover { background: rgba(255, 255, 255, 0.12); }
.pt-player__panel button:focus-visible { outline-offset: -3px; }
.pt-player__panel button svg { flex: 0 0 auto; width: 22px; height: 22px; }
.pt-player__menu-label { flex: 1 1 auto; }
.pt-player__menu-value { color: rgba(255, 255, 255, 0.72); font-weight: 500; white-space: nowrap; }
.pt-player__panel .pt-player__menu-chevron { width: 18px; height: 18px; margin-left: -6px; opacity: 0.8; }
.pt-player__panel .pt-player__menu-back { margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-weight: 700; }
.pt-player__panel [role="menuitemradio"] { padding-left: 46px; position: relative; }
.pt-player__panel [role="menuitemradio"][aria-checked="true"] { color: var(--pt-yellow); font-weight: 800; }
.pt-player__panel [role="menuitemradio"][aria-checked="true"]::before { content: ""; position: absolute; top: 50%; left: 18px; width: 12px; height: 6px; margin-top: -5px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(-45deg); }
.pt-player__panel sup { margin-left: -8px; color: var(--pt-yellow); font-size: 0.62rem; font-weight: 900; }

/* ---------- Theater mode: wide player above the title and Up next ---------- */
@media (min-width: 1001px) {
	.pt-watch-layout.is-theater { grid-template-areas: "stage stage" "main side"; padding-top: 0; }
	.pt-watch-layout.is-theater .pt-watch-stage { margin-bottom: 4px; background: #000000; box-shadow: 0 0 0 100vmax #000000; clip-path: inset(0 -100vmax); }
	.pt-watch-layout.is-theater .pt-video-player { max-height: calc(100vh - 150px); min-height: 360px; margin-inline: auto; border-radius: 0; }
	.pt-watch-layout.is-theater .pt-watch-sidebar { padding-top: 20px; }
}
@media (max-width: 1000px) {
	.pt-player__btn--theater { display: none; }
}

/* ---------- Share dialog ---------- */
html.pt-share-open { overflow: hidden; }
.pt-share-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 18px 22px 20px; overflow: auto; border: 0; border-radius: 16px; background: #ffffff; color: var(--pt-ink); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3); }
.pt-share-dialog::backdrop { background: rgba(15, 15, 15, 0.55); }
.pt-share-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pt-share-dialog__head h2 { margin: 0; color: var(--pt-ink); font-size: 1.15rem; font-weight: 800; }
.pt-share-dialog__close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pt-ink); cursor: pointer; }
.pt-share-dialog__close:hover { background: #f2f3f5; }
.pt-share-dialog__close svg { width: 22px; height: 22px; }
.pt-share-dialog__apps { display: flex; gap: 14px; margin: 0 0 20px; padding: 2px 2px 6px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.pt-share-dialog__app { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 68px; color: var(--pt-text); font-size: 0.78rem; font-weight: 600; text-align: center; text-decoration: none; }
.pt-share-dialog__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #6b7280; color: #ffffff; transition: transform 140ms ease, filter 140ms ease; }
.pt-share-dialog__icon svg { width: 26px; height: 26px; }
.pt-share-dialog__app:hover .pt-share-dialog__icon { filter: brightness(1.08); transform: translateY(-2px); }
.pt-share-dialog__app--whatsapp .pt-share-dialog__icon { background: #25d366; }
.pt-share-dialog__app--facebook .pt-share-dialog__icon { background: #1877f2; }
.pt-share-dialog__app--x .pt-share-dialog__icon { background: #0f0f0f; }
.pt-share-dialog__app--linkedin .pt-share-dialog__icon { background: #0a66c2; }
.pt-share-dialog__app--email .pt-share-dialog__icon { background: #5f6673; }
.pt-share-dialog__link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--pt-border); border-radius: 12px; background: #f8f9fb; }
.pt-share-dialog__link input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0; border: 0; background: transparent; color: var(--pt-ink); font: inherit; font-size: 0.92rem; text-overflow: ellipsis; }
.pt-share-dialog__copy { flex: 0 0 auto; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pt-yellow); color: var(--pt-ink); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.pt-share-dialog__copy:hover { background: #ffd257; }
.pt-share-dialog__start { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--pt-text); font-size: 0.92rem; font-weight: 600; }
.pt-share-dialog__start[hidden] { display: none; }
.pt-share-dialog__start input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #b17b00; cursor: pointer; }
.pt-share-dialog__start label { cursor: pointer; }
.pt-share-dialog__time { width: 76px; height: 32px; padding: 0 4px; border: 0; border-bottom: 1px solid #cfd6df; background: transparent; color: var(--pt-ink); font: inherit; font-variant-numeric: tabular-nums; }
.pt-share-dialog__time:focus { border-bottom-color: var(--pt-ink); }
.pt-share-dialog__status { min-height: 1.3em; margin: 10px 0 0; color: #027a48; font-size: 0.85rem; font-weight: 700; }

/* ---------- Comments (comments-video.php, video-page.js) ---------- */
.pt-comments { margin-top: 20px; }
.pt-comments--off { color: var(--pt-muted); font-size: 0.92rem; font-weight: 600; }
.pt-comments__title { margin: 0 0 20px; color: var(--pt-ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.pt-comments__closed { margin: 0 0 22px; color: var(--pt-muted); font-size: 0.92rem; }
.pt-comments__teaser { display: none; }

.pt-comment-respond { margin: 0 0 28px; }
.pt-comment-form { display: grid; grid-template-columns: 40px repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; margin: 0; }
.pt-comment-form > * { grid-column: 2 / -1; margin: 0; }
.pt-comment-form > .pt-comment__avatar { grid-column: 1; grid-row: 1 / span 12; }
.pt-comment-form > .comment-form-author { grid-column: 2; }
.pt-comment-form > .comment-form-email { grid-column: 3; }
.pt-comment-form__title { margin: 0 0 8px; color: var(--pt-ink); font-size: 0.95rem; font-weight: 700; }
.pt-comments.is-ready .pt-comment-form__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-comment-form .comment-form-comment textarea { display: block; width: 100%; min-height: 34px; padding: 6px 0 7px; border: 0; border-bottom: 1px solid #cfd6df; border-radius: 0; background: transparent; color: var(--pt-ink); font: inherit; font-size: 0.95rem; line-height: 1.5; resize: none; overflow: hidden; transition: border-color 140ms ease; }
.pt-comment-form .comment-form-comment textarea:focus { padding-bottom: 6px; border-bottom: 2px solid var(--pt-ink); }
.pt-comment-form .comment-form-comment textarea::placeholder { color: #7b8494; }
.pt-comment-form__note { margin-top: 12px !important; color: var(--pt-muted); font-size: 0.8rem; }
.pt-comment-form .comment-form-author, .pt-comment-form .comment-form-email { margin-top: 10px; }
.pt-comment-form label { display: block; margin-bottom: 4px; color: var(--pt-muted); font-size: 0.78rem; font-weight: 700; }
.pt-comment-form .comment-form-author input, .pt-comment-form .comment-form-email input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #cfd6df; border-radius: 10px; background: #ffffff; color: var(--pt-ink); font: inherit; font-size: 0.92rem; }
.pt-comment-form .comment-form-author input:focus, .pt-comment-form .comment-form-email input:focus { border-color: var(--pt-ink); }
.pt-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--pt-muted); font-size: 0.8rem; }
.pt-comment-form .comment-form-cookies-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #b17b00; }
.pt-comment-form .comment-form-cookies-consent label { margin: 0; font-size: inherit; font-weight: 500; }
.pt-comment-form__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px !important; }
.pt-comment-form__cancel, .pt-comment-form__submit { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; transition: background-color 140ms ease; }
.pt-comment-form__cancel { background: transparent; color: var(--pt-ink); }
.pt-comment-form__cancel:hover { background: #f2f3f5; }
.pt-comment-form__cancel[hidden] { display: none; }
.pt-comment-form__submit { background: var(--pt-yellow); color: var(--pt-ink); }
.pt-comment-form__submit:hover { background: #ffd257; }
.pt-comment-form__submit:disabled { background: #f2f3f5; color: #98a2b3; cursor: default; }
/* The box opens (name, email, buttons) when you start typing, like YouTube. */
.pt-comment-form.is-collapsible:not(.is-active) > :not(.pt-comment__avatar):not(.comment-form-comment):not(.comment-reply-title) { display: none; }
.pt-comments .must-log-in, .pt-comments .logged-in-as { color: var(--pt-muted); font-size: 0.9rem; }

.pt-comment-list, .pt-comment-list .children { margin: 0; padding: 0; list-style: none; }
.pt-comment { margin: 0 0 20px; }
.pt-comment__body { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; border-radius: 12px; }
.pt-comment--reply .pt-comment__body { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.pt-comment__avatar { display: block; width: 40px; height: 40px; border-radius: 50%; background: #e4e6ea; object-fit: cover; }
.pt-comment--reply .pt-comment__avatar { width: 24px; height: 24px; }
.pt-comment__avatar--letter { display: grid; place-items: center; color: #ffffff; font-size: 1rem; font-weight: 800; line-height: 1; }
.pt-comment--reply .pt-comment__avatar--letter { font-size: 0.7rem; }
.pt-comment__avatar--guest { background: #c9ced6; color: #ffffff; }
.pt-comment__avatar--guest svg { width: 70%; height: 70%; margin-top: 15%; }
.pt-comment__avatar--guest { overflow: hidden; }
.pt-comment__main { min-width: 0; }
.pt-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 3px; font-size: 0.82rem; line-height: 1.4; }
.pt-comment__author { color: var(--pt-ink); font-weight: 700; overflow-wrap: anywhere; }
.pt-comment__author.is-creator { padding: 1px 9px; border-radius: 999px; background: #e4e6ea; }
.pt-comment__time { color: var(--pt-muted); font-weight: 500; text-decoration: none; }
.pt-comment__time:hover { color: var(--pt-ink); }
.pt-comment__pending { display: inline-block; margin: 2px 0 6px; padding: 3px 8px; border-radius: 6px; background: #fffaeb; color: #93370d; font-size: 0.8rem; font-weight: 600; }
.pt-comment__text { color: var(--pt-text); font-size: 0.94rem; line-height: 1.55; overflow-wrap: anywhere; }
.pt-comment__text p { margin: 0; }
.pt-comment__text p + p { margin-top: 0.6em; }
.pt-comment__text a { color: var(--pt-copper); font-weight: 600; }
.pt-comment__actions { display: flex; align-items: center; gap: 4px; margin: 4px 0 0 -12px; }
.pt-comment__reply, .pt-comment__actions .comment-edit-link { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; color: var(--pt-ink); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.pt-comment__reply:hover, .pt-comment__actions .comment-edit-link:hover { background: #f2f3f5; }
.pt-comment-list .children { margin: 8px 0 0 54px; }
.pt-comment-list .children .pt-comment { margin-bottom: 14px; }
.pt-comment__replies-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 2px 0 0 42px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--pt-copper); font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer; }
.pt-comment__replies-toggle:hover { background: var(--pt-yellow-soft); }
.pt-comment__replies-toggle svg { width: 20px; height: 20px; transition: transform 160ms ease; }
.pt-comment__replies-toggle.is-open svg { transform: rotate(180deg); }
.pt-comment > .pt-comment-respond { margin: 10px 0 14px 54px; }
.pt-comment--reply > .pt-comment-respond { margin-left: 36px; }
.pt-comment-respond.is-reply .pt-comment-form { grid-template-columns: 24px repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pt-comment-respond.is-reply .pt-comment-form > .pt-comment__avatar { width: 24px; height: 24px; font-size: 0.7rem; }
.pt-comment.is-highlighted > .pt-comment__body { animation: pt-comment-flash 2.6s ease; }
@keyframes pt-comment-flash { 0%, 40% { background: var(--pt-yellow-soft); box-shadow: 0 0 0 8px var(--pt-yellow-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.pt-comments__pages { margin-top: 8px; }
.pt-comments__pages .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-comments__pages .page-numbers { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--pt-border); border-radius: 999px; color: var(--pt-ink); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.pt-comments__pages .page-numbers.current { border-color: var(--pt-yellow); background: var(--pt-yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pt-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-video-hero__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; }
	.pt-video-hero__visual { margin-right: 0; }
	.pt-watch-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 24px; }
	.pt-up-next__item { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 1000px) {
	.pt-watch-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "stage" "main" "side"; }
	.pt-watch-sidebar { margin-top: 28px; }
	.pt-up-next__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }

	/* Phones and tablets: a compact Comments card that opens the full list. */
	.pt-comments { margin-top: 12px; }
	.pt-comments.is-teaser > .pt-comments__title, .pt-comments.is-teaser > .pt-comments__panel { display: none; }
	.pt-comments.is-teaser > .pt-comments__teaser { display: grid; gap: 8px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #f2f3f5; color: inherit; font: inherit; text-align: left; cursor: pointer; }
	.pt-comments__teaser:hover { background: #e9ebee; }
	.pt-comments__teaser-head { display: flex; align-items: center; gap: 8px; }
	.pt-comments__teaser-title { color: var(--pt-ink); font-size: 0.95rem; font-weight: 800; }
	.pt-comments__teaser-count { color: var(--pt-muted); font-size: 0.9rem; font-weight: 600; }
	.pt-comments__teaser-head svg { width: 20px; height: 20px; margin-left: auto; color: var(--pt-ink); }
	.pt-comments__teaser-preview { display: flex; align-items: center; gap: 10px; min-width: 0; }
	.pt-comments__teaser-preview .pt-comment__avatar { flex: 0 0 auto; width: 24px !important; height: 24px !important; font-size: 0.7rem; }
	.pt-comments__teaser-text { min-width: 0; color: var(--pt-text); font-size: 0.88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
	.pt-comments__teaser-text.is-prompt { flex: 1 1 auto; padding: 6px 12px; border-radius: 999px; background: #ffffff; color: #7b8494; }
}

@media (max-width: 700px) {
	.pt-video-hero { padding-block: 22px 20px; }
	.pt-video-hero__intro { display: block; }
	.pt-video-hero__visual { display: none; }
	.pt-videos .pt-video-search { max-width: none; margin-top: 18px; }
	.pt-video-topics { margin-top: 14px; }
	.pt-videos .listing-header h1 { font-size: 2.1rem; }
	.pt-video-stats { gap: 6px; margin-top: 14px; }
	.pt-video-stats li { padding: 5px 10px; font-size: 0.8rem; }
	.pt-video-topics { flex-wrap: nowrap; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.pt-video-topics::-webkit-scrollbar { display: none; }
	.pt-video-library { padding-block: 24px 40px; }
	.pt-video-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

	.pt-watch-layout { padding-block: 14px 32px; }
	.pt-watch-sidebar { margin-top: 22px; }
	.pt-watch-action { height: 36px; padding: 0 14px 0 10px; font-size: 0.86rem; }
	.pt-comment-form { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; }
	.pt-comment-form > .comment-form-author, .pt-comment-form > .comment-form-email { grid-column: 2; }
	.pt-comment-form > .pt-comment__avatar { width: 32px; height: 32px; }
	.pt-comment-respond.is-reply .pt-comment-form { grid-template-columns: 24px minmax(0, 1fr); }
	.pt-comment__body { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
	.pt-comment__avatar { width: 32px; height: 32px; }
	.pt-comment-list .children { margin-left: 44px; }
	.pt-comment__replies-toggle { margin-left: 32px; }
	.pt-comment > .pt-comment-respond { margin-left: 44px; }
	.pt-comment--reply > .pt-comment-respond { margin-left: 0; }
	.pt-share-dialog { width: 100%; max-height: 85vh; margin: auto auto 0; padding: 16px 18px 22px; border-radius: 16px 16px 0 0; }
	.pt-watch-info { margin-top: 10px; }
	.pt-watch-channel__avatar { width: 36px; height: 36px; }
	.pt-up-next__list { grid-template-columns: minmax(0, 1fr); }
	.pt-up-next__item { grid-template-columns: 150px minmax(0, 1fr); }
	.pt-player__controls { padding: 24px 6px 2px; }
	.pt-player__btn { width: 36px; height: 36px; }
	.pt-player__btn svg { width: 22px; height: 22px; }
	.pt-player__volume-range { display: none; }
	.pt-player__time { padding: 0 4px; font-size: 0.8rem; }
	.pt-player__big { width: 62px; height: 62px; }
	.pt-player__big svg { width: 26px; height: 26px; }
	.pt-player__menu { right: 6px; bottom: 52px; max-width: calc(100% - 12px); max-height: calc(100% - 60px); padding: 4px 0; }
	.pt-player__panel button { min-height: 36px; }
}

@media (max-width: 380px) {
	.pt-up-next__item { grid-template-columns: 124px minmax(0, 1fr); }
	.pt-player__btn--pip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pt-videos *, .pt-videos *::before, .pt-videos *::after { transition: none !important; animation: none !important; }
	.pt-player__spinner { animation: pt-player-spin 1.6s linear infinite !important; }
}


/* =====================================================================
 * Playlists / learning paths (inc/playlists.php)
 * ===================================================================== */

/* Level colours: Beginner green, Intermediate amber, Advanced indigo. */
.pt-level--beginner, .pt-guide-card--beginner, .pt-level-group--beginner { --lv: #067647; --lv-soft: #e9f8ef; --lv-line: rgba(6, 118, 71, 0.18); }
.pt-level--intermediate, .pt-guide-card--intermediate, .pt-level-group--intermediate { --lv: #a15c07; --lv-soft: #fff4dc; --lv-line: rgba(161, 92, 7, 0.2); }
.pt-level--advanced, .pt-guide-card--advanced, .pt-level-group--advanced { --lv: #3538cd; --lv-soft: #eef0ff; --lv-line: rgba(53, 56, 205, 0.18); }
/* The grey "View all playlists" card at the end of the Videos page row. */
.pt-guide-card--more { --lv: var(--pt-ink); --lv-soft: #f2f3f5; --lv-line: rgba(15, 23, 42, 0.1); }

/* Level badge with three rising bars */
.pt-level { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 11px 4px 9px; border-radius: 999px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--lv-line); color: var(--lv); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.pt-level__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.pt-level__bars i { display: block; width: 3px; border-radius: 2px; background: currentColor; opacity: 0.22; }
.pt-level__bars i:nth-child(1) { height: 5px; }
.pt-level__bars i:nth-child(2) { height: 8px; }
.pt-level__bars i:nth-child(3) { height: 12px; }
.pt-level__bars i.is-on { opacity: 1; }

/* Guide cards: tinted "learning path" cards, deliberately unlike video cards */
.pt-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pt-guide-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pt-guide-card { min-width: 0; }
.pt-guide-card__link { display: flex; flex-direction: column; height: 100%; padding: 22px 14px 16px; border-radius: 20px; background: var(--lv-soft); color: inherit; text-decoration: none; transition: transform 200ms ease, box-shadow 200ms ease; }
@media (hover: hover) {
	.pt-guide-card__link:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1); }
	.pt-guide-card__link:hover .pt-guide-card__start span { transform: translateX(3px); }
}
.pt-guide-card__cover { position: relative; display: block; }
/* Two sheets peeking out above the cover: "a stack of videos". */
.pt-guide-card__cover::before, .pt-guide-card__cover::after { content: ""; position: absolute; left: 9%; right: 9%; top: -11px; height: 24px; border-radius: 12px 12px 0 0; background: var(--lv); opacity: 0.22; }
.pt-guide-card__cover::after { left: 4.5%; right: 4.5%; top: -6px; opacity: 0.42; }
.pt-guide-card__image { position: relative; z-index: 1; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #1b1d22; }
.pt-guide-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-guide-card__count { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 8px; background: rgba(17, 17, 17, 0.82); color: #ffffff; font-size: 0.76rem; font-weight: 700; }
.pt-guide-card__count svg { width: 16px; height: 16px; }
.pt-guide-card__body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 16px 4px 0; }
.pt-guide-card__title { color: var(--pt-ink); font-size: 1.08rem; font-weight: 800; line-height: 1.32; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pt-guide-card__goal { display: inline-flex; align-items: center; gap: 6px; color: var(--lv); font-size: 0.85rem; font-weight: 700; }
.pt-guide-card__goal svg, .pt-playlist-hero__goal svg { flex: 0 0 auto; width: 16px; height: 16px; }
.pt-guide-card__summary { color: var(--pt-text); font-size: 0.9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-guide-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--lv-line); font-size: 0.84rem; }
.pt-guide-card__meta { color: var(--pt-muted); font-weight: 600; }
.pt-guide-card__start { color: var(--lv); font-weight: 800; white-space: nowrap; }
.pt-guide-card__start span { display: inline-block; transition: transform 180ms ease; }

/* "View all playlists" card: three small covers fanned out with an arrow. */
.pt-guide-more__art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: #e4e6ea; }
.pt-guide-more__tile { position: absolute; top: 50%; left: 50%; overflow: hidden; width: 44%; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1d22; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18); transition: transform 220ms ease; }
.pt-guide-more__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-guide-more__tile .pt-video-card__placeholder span { display: none; }
.pt-guide-more__tile:nth-child(1) { transform: translate(-108%, -50%) rotate(-7deg); }
.pt-guide-more__tile:nth-child(2) { z-index: 1; transform: translate(-50%, -58%); }
.pt-guide-more__tile:nth-child(3) { transform: translate(8%, -50%) rotate(7deg); }
.pt-guide-more__arrow { position: relative; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; margin-top: 34%; border-radius: 50%; background: var(--pt-ink); color: #ffffff; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3); transition: transform 200ms ease; }
.pt-guide-more__arrow svg { width: 24px; height: 24px; }
@media (hover: hover) {
	.pt-guide-card--more .pt-guide-card__link:hover .pt-guide-more__arrow { transform: translateX(4px); }
	.pt-guide-card--more .pt-guide-card__link:hover .pt-guide-more__tile:nth-child(1) { transform: translate(-114%, -50%) rotate(-10deg); }
	.pt-guide-card--more .pt-guide-card__link:hover .pt-guide-more__tile:nth-child(3) { transform: translate(14%, -50%) rotate(10deg); }
}
.pt-guide-card--more .pt-guide-card__body { padding-top: 16px; }

/* "Learning paths" row on the Videos page */
.pt-guides-row { padding-block: 34px 4px; }
.pt-guides-row__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 26px; }
.pt-guides-row__head .section-title { margin: 0; }
.pt-guides-row__eyebrow { margin: 0 0 6px; color: var(--pt-copper); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-guides-row__intro { margin: 8px 0 0; color: var(--pt-muted); font-size: 0.95rem; }

/* All playlists page */
.pt-playlists-hero h1 { margin-top: 0; }
.pt-level-filter { margin-top: 22px; }
.pt-playlists-body { display: grid; gap: 46px; padding-block: 36px 52px; }
.pt-level-group__head { display: grid; justify-items: start; gap: 8px; margin-bottom: 26px; }
.pt-level-group__head .section-title { margin: 0; }
.pt-level-group__head p { max-width: 640px; margin: 0; color: var(--pt-muted); font-size: 0.95rem; }
/* Each level's playlists sit in one row that scrolls sideways when there are
   more than fit (all screen sizes). Arrow buttons come from playlist-rows.js. */
.pt-guide-scroller { position: relative; min-width: 0; }
.pt-guide-grid.pt-guide-grid--scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 22px) / 2.12); gap: 22px; margin: -6px -4px 0; padding: 6px 4px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: #c9ced6 transparent; }
.pt-guide-grid--scroll::-webkit-scrollbar { height: 6px; }
.pt-guide-grid--scroll::-webkit-scrollbar-thumb { border-radius: 3px; background: #c9ced6; }
.pt-guide-scroller__item { display: flex; min-width: 0; scroll-snap-align: start; }
.pt-guide-scroller__item > .pt-guide-card { flex: 1; }
.pt-guide-scroller__btn { position: absolute; top: 120px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2); color: var(--pt-ink); cursor: pointer; transition: transform 160ms ease, opacity 160ms ease; }
.pt-guide-scroller__btn:hover { transform: scale(1.06); }
.pt-guide-scroller__btn svg { width: 22px; height: 22px; }
.pt-guide-scroller__btn--prev { left: -12px; }
.pt-guide-scroller__btn--next { right: -12px; }
.pt-guide-scroller__btn[hidden] { display: none; }
@media (hover: none) {
	.pt-guide-scroller__btn { display: none; }
}
.pt-level-group__head .pt-level-group__step { color: var(--lv); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
/* Desktop: each level is a step of the guide, heading on the left, its paths on the right. */
@media (min-width: 1001px) {
	.pt-level-group { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
	.pt-level-group__head { position: sticky; top: 18px; margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--lv); }
	.pt-level-group__head .section-title { font-size: 1.45rem; }
}
@media (max-width: 1000px) {
	.pt-level-group__head { padding-left: 14px; border-left: 3px solid var(--lv); }
}

/* Playlist landing page */
.pt-playlist-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 24px 44px; }
.pt-playlist-hero { position: sticky; top: 18px; min-width: 0; padding: 18px 20px 22px; border-radius: 20px; background: linear-gradient(180deg, rgb(var(--pt-tint, 255 199 39) / 0.3), rgb(var(--pt-tint, 255 199 39) / 0.07) 70%); }
.pt-playlist-hero .pt-video-back { margin-bottom: 14px; }
.pt-playlist-hero__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #1b1d22; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18); }
.pt-playlist-hero__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-playlist-hero__play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, 0.5); color: #ffffff; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; transition: opacity 180ms ease; }
.pt-playlist-hero__play svg { width: 22px; height: 22px; }
.pt-playlist-hero__cover:hover .pt-playlist-hero__play { opacity: 1; }
.pt-playlist-hero__level { margin: 18px 0 10px; }
.pt-playlist-hero__level .pt-level { --lv-line: rgba(15, 23, 42, 0.1); }
.pt-playlist-hero__title { margin: 0; color: var(--pt-ink); font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.7rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pt-playlist-hero__channel { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--pt-ink); font-size: 0.92rem; font-weight: 700; }
.pt-playlist-hero__channel img { width: 28px; height: 28px; border-radius: 50%; }
.pt-playlist-hero__stats { display: flex; flex-wrap: wrap; margin: 8px 0 0; color: var(--pt-muted); font-size: 0.86rem; font-weight: 600; }
.pt-playlist-hero__stats span + span::before { content: "·"; margin: 0 7px; }
.pt-playlist-hero__goal { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--pt-ink); font-size: 0.9rem; font-weight: 700; }
.pt-playlist-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pt-playlist-play { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px 0 15px; border-radius: 999px; background: var(--pt-ink); color: #ffffff; font-size: 0.92rem; font-weight: 800; text-decoration: none; transition: background-color 140ms ease; }
.pt-playlist-play:hover { background: #000000; color: #ffffff; }
.pt-playlist-play svg { width: 18px; height: 18px; }
.pt-playlist-hero .pt-watch-action { height: 40px; background: rgba(255, 255, 255, 0.78); }
.pt-playlist-hero .pt-watch-action:hover { background: #ffffff; }
.pt-playlist-hero__summary { margin: 16px 0 0; color: var(--pt-text); font-size: 0.94rem; line-height: 1.6; }
.pt-playlist-main { min-width: 0; }
.pt-playlist-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pt-playlist-about { margin: 0 0 18px; padding: 20px 22px; border-radius: 14px; background: #f2f3f5; }
.pt-playlist-about h2 { margin: 0 0 10px; color: var(--pt-ink); font-size: 1.15rem; font-weight: 800; }
.pt-playlist-about__content { color: var(--pt-text); font-size: 0.96rem; line-height: 1.7; }
.pt-playlist-about__content > :first-child { margin-top: 0; }
.pt-playlist-about__content > :last-child { margin-bottom: 0; }
.pt-playlist-about__content h2, .pt-playlist-about__content h3 { margin: 1.2em 0 0.4em; color: var(--pt-ink); font-size: 1.02rem; font-weight: 800; }
.pt-playlist-about__content ul, .pt-playlist-about__content ol { padding-left: 1.3em; }
.pt-playlist-about__content a { color: var(--pt-copper); font-weight: 700; }

/* A playlist row (landing page list and watch page panel) */
.pt-playlist-item__link { position: relative; z-index: 0; display: grid; grid-template-columns: 30px 160px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 8px 8px 0; border-radius: 12px; color: inherit; text-decoration: none; }
.pt-playlist-item__number { display: grid; place-items: center; color: var(--pt-muted); font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-playlist-item__number svg { width: 14px; height: 14px; color: var(--pt-copper); }
.pt-playlist-item__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1d22; }
.pt-playlist-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-playlist-item__thumb .pt-video-card__placeholder span { display: none; }
.pt-playlist-item__thumb .pt-video-duration { right: 5px; bottom: 5px; padding: 1px 5px; font-size: 0.7rem; }
.pt-playlist-item__copy { display: grid; gap: 4px; min-width: 0; }
.pt-playlist-item__title { color: var(--pt-ink); font-size: 0.98rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pt-playlist-item__channel { color: var(--pt-muted); font-size: 0.76rem; font-weight: 500; }
.pt-playlist-item__link:hover .pt-playlist-item__title { color: var(--pt-copper); }
.pt-playlist-item__link::before { inset: 0; border-radius: 12px; }
.pt-playlist-item.is-current .pt-playlist-item__link { background: var(--pt-yellow-soft); }
.pt-playlist-item.is-current .pt-playlist-item__link::before { display: none; }

/* Watch page opened from a playlist: the panel sits beside the player. */
.pt-watch-playlist { min-width: 0; }
.pt-more-videos { margin-top: 16px; }
.pt-playlist-panel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pt-border); border-radius: 14px; background: #ffffff; }
.pt-playlist-panel__head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--pt-border); background: #f8f9fb; }
.pt-playlist-panel__info { flex: 1 1 auto; min-width: 0; }
.pt-playlist-panel__eyebrow { margin: 0 0 6px; }
.pt-playlist-panel__eyebrow .pt-level { padding: 2px 9px 2px 7px; font-size: 0.68rem; }
.pt-playlist-panel__title { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.pt-playlist-panel__title a { color: var(--pt-ink); text-decoration: none; }
.pt-playlist-panel__title a:hover { text-decoration: underline; }
.pt-playlist-panel__position { margin: 4px 0 0; color: var(--pt-muted); font-size: 0.82rem; font-weight: 600; }
.pt-playlist-panel__next { display: none; margin: 6px 0 0; color: var(--pt-text); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-playlist-panel__next span { color: var(--pt-muted); font-weight: 700; }
.pt-playlist-panel__toggle { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pt-ink); cursor: pointer; }
.pt-playlist-panel__toggle:hover { background: #e9ebee; }
.pt-playlist-panel__toggle svg { width: 22px; height: 22px; transition: transform 180ms ease; }
.pt-playlist-panel.is-collapsed .pt-playlist-panel__toggle svg { transform: rotate(180deg); }
.pt-playlist-panel.is-collapsed .pt-playlist-panel__list { display: none; }
.pt-playlist-panel.is-collapsed .pt-playlist-panel__head { border-bottom: 0; cursor: pointer; }
.pt-playlist-panel.is-collapsed .pt-playlist-panel__next { display: block; }
.pt-playlist-panel__list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 6px 6px 8px; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.pt-playlist-panel .pt-playlist-item__link { grid-template-columns: 22px 100px minmax(0, 1fr); gap: 10px; padding: 6px 6px 6px 0; border-radius: 10px; }
.pt-playlist-panel .pt-playlist-item__thumb { border-radius: 8px; }
.pt-playlist-panel .pt-playlist-item__title { font-size: 0.86rem; }
.pt-playlist-panel .pt-playlist-item__number { font-size: 0.78rem; }
.pt-playlist-panel .pt-playlist-item__link::before { inset: 0; border-radius: 10px; }
@media (min-width: 1001px) {
	/* As tall as its videos, up to the player's height (set by video-page.js), then the list scrolls. */
	.pt-watch-sidebar--playlist .pt-playlist-panel { max-height: var(--pt-playlist-max, 70vh); }
	.pt-watch-layout.is-theater .pt-watch-sidebar--playlist .pt-playlist-panel { max-height: 520px; }
}
}

/* Player: previous / next buttons and the "next video" countdown */
.pt-player__next { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: rgba(10, 10, 10, 0.8); color: #ffffff; text-align: center; }
.pt-player__next[hidden] { display: none; }
.pt-video-player.is-next-open .pt-player__big, .pt-video-player.is-next-open .pt-player__controls { opacity: 0; pointer-events: none; }
.pt-player__next-label { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; font-weight: 600; }
.pt-player__next-seconds { color: #ffffff; font-weight: 800; }
.pt-player__next-card { display: flex; align-items: center; gap: 14px; max-width: min(520px, 100%); text-align: left; }
.pt-player__next-thumb { flex: 0 0 auto; overflow: hidden; width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1d22; }
.pt-player__next-thumb:empty { display: none; }
.pt-player__next-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-player__next-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-player__next-actions { display: flex; align-items: center; gap: 12px; }
.pt-player__next-cancel, .pt-player__next-go { height: 46px; border: 0; border-radius: 999px; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.pt-player__next-cancel { padding: 0 20px; background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.pt-player__next-cancel:hover { background: rgba(255, 255, 255, 0.24); }
.pt-player__next-go { position: relative; display: inline-flex; align-items: center; padding: 0 20px 0 52px; background: var(--pt-yellow); color: var(--pt-ink); }
.pt-player__next-go:hover { background: #ffd257; }
.pt-player__next-ring { position: absolute; top: 50%; left: 5px; width: 38px; height: 38px; color: var(--pt-ink); transform: translateY(-50%); }
.pt-player__next-ring circle:first-child { stroke: rgba(17, 17, 17, 0.16); }
.pt-player__next-go > svg:not(.pt-player__next-ring) { position: absolute; top: 50%; left: 15px; width: 18px; height: 18px; transform: translateY(-50%); }

@media (max-width: 1100px) {
	.pt-guide-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.pt-guide-grid, .pt-guide-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-guide-grid.pt-guide-grid--scroll { grid-template-columns: none; grid-auto-columns: calc((100% - 22px) / 2.15); }
	.pt-playlist-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.pt-playlist-hero { position: static; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 22px; align-items: start; }
	.pt-playlist-hero > * { grid-column: 2; }
	.pt-playlist-hero > .pt-video-back { grid-column: 1 / -1; }
	.pt-playlist-hero > .pt-playlist-hero__cover { grid-column: 1; grid-row: 2 / span 8; }
	.pt-playlist-hero__level { margin-top: 0; }
	/* Phones and tablets: the card goes under the player, More videos stays at the end. */
	.pt-watch-layout.has-playlist { grid-template-areas: "stage" "list" "main" "side"; }
	.pt-watch-sidebar--playlist { display: contents; }
	.pt-watch-playlist { grid-area: list; margin-top: 12px; }
	.pt-more-videos { grid-area: side; margin-top: 28px; }
	.pt-playlist-panel__list { max-height: 60vh; }
}
@media (max-width: 700px) {
	.pt-guides-row { padding-top: 26px; }
	.pt-guides-row__head { margin-bottom: 20px; }
	/* Swipe through the paths on phones. */
	.pt-guide-grid.pt-guide-grid--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; margin-inline: -16px; padding: 4px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
	.pt-guide-grid--row::-webkit-scrollbar { display: none; }
	.pt-guide-grid--row > * { scroll-snap-align: start; }
	.pt-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.pt-guide-grid.pt-guide-grid--scroll { grid-auto-columns: 84%; gap: 14px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.pt-playlists-body { gap: 36px; padding-block: 26px 40px; }
	.pt-playlist-layout { padding-block: 14px 32px; }
	.pt-playlist-hero { display: block; padding: 14px 14px 18px; }
	.pt-playlist-hero__level { margin-top: 16px; }
	.pt-playlist-item__link { grid-template-columns: 24px 120px minmax(0, 1fr); gap: 10px; }
	.pt-playlist-item__title { font-size: 0.9rem; }
	.pt-playlist-about { padding: 16px; }
	.pt-more-videos { margin-top: 22px; }
	.pt-player__next { gap: 10px; padding: 12px; }
	.pt-player__next-thumb { display: none; }
	.pt-player__next-title { font-size: 0.92rem; text-align: center; }
	.pt-player__next-cancel, .pt-player__next-go { height: 40px; font-size: 0.85rem; }
	.pt-player__next-go { padding-left: 46px; }
	.pt-player__next-ring { width: 32px; height: 32px; }
	.pt-player__next-go > svg:not(.pt-player__next-ring) { left: 13px; width: 16px; height: 16px; }
	.pt-player__btn--prev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pt-guide-card__link, .pt-guide-card__start span { transition: none; }
}
