/*
Theme Name: AdultEmbed Tube
Theme URI: https://adultembed.com/wordpress/
Author: AdultEmbed
Author URI: https://adultembed.com/
Description: Free, fast tube theme for AdultEmbed Studio. Videos first, phone-first layout, crawlable category/tag/performer hubs and an A-Z index, ad zones everywhere a tube needs them. Also shows videos imported by WP-Script.
Version: 0.7.18
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: adultembed-tube
Tags: dark, grid-layout, one-column, custom-logo, custom-colors
*/

:root {
  --accent: #e11d48;
  --bg: #0e0e12;
  --bg2: #17171e;
  --line: #2a2a34;
  --text: #ececf1;
  --muted: #9a9aa8;
  --radius: 10px;
  --wrap: 1480px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 8px 12px; background: #fff; color: #000; z-index: 9999; left: 8px; top: 8px; }
.aet-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* header */
.aet-header { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.aet-header__row { display: flex; align-items: center; gap: 14px; height: 60px; }
.aet-brand { font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.aet-brand img { max-height: 40px; width: auto; display: block; }
.aet-search { flex: 1; max-width: 560px; margin-left: auto; }
.aet-search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 16px; font-size: 15px; }
.aet-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
/* WordPress's own search block / classic search widget in the sidebars and footer (2026-10-20: it rendered as a plain white
   box with a grey button on the dark theme) -- same look as the header search */
.wp-block-search__inside-wrapper, .search-form { display: flex; gap: 8px; }
.wp-block-search__label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.wp-block-search__input, .search-form .search-field { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); padding: 0 16px; font: inherit; font-size: 15px; }
.wp-block-search__input:focus, .search-form .search-field:focus { outline: 2px solid var(--accent); border-color: transparent; }
.wp-block-search__button, .search-form .search-submit { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; margin: 0;
  background: var(--accent); color: var(--on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.aet-menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.aet-menu-btn span:first-child, .aet-menu-btn span:first-child::before, .aet-menu-btn span:first-child::after { content: ""; position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); }
.aet-menu-btn span:first-child { top: 19px; } .aet-menu-btn span:first-child::before { left: 0; top: -7px; } .aet-menu-btn span:first-child::after { left: 0; top: 7px; }
.aet-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 10px 0; overflow-x: auto; }
.aet-nav a { color: var(--muted); font-weight: 600; white-space: nowrap; }
.aet-nav a:hover, .aet-nav .current-menu-item a { color: var(--text); }

/* main */
.aet-main { padding-top: 18px; padding-bottom: 30px; min-height: 60vh; }
.aet-h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
.aet-sub { color: var(--muted); margin: -4px 0 12px; }
.aet-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.aet-tabs { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; }
.aet-tabs a { padding: 7px 14px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.aet-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }

/* grid + cards */
.aet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 14px; }
.aet-grid__ad { grid-column: 1 / -1; }
.aet-card__link, .aet-card--term { display: block; }
.aet-card__thumb { position: relative; display: block; aspect-ratio: var(--ratio, 16 / 9); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.aet-card__thumb img { width: 100%; height: 100%; object-fit: var(--fit, cover); display: block; transition: transform .25s; }
.aet-card:hover .aet-card__thumb img { transform: scale(1.04); }
.aet-card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--fit, cover); opacity: 0; transition: opacity .2s; pointer-events: none; background: #000; }
.aet-card__preview.is-on { opacity: 1; }
.aet-card__dur, .aet-card__over { z-index: 1; }
.aet-card__dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.aet-card__title { display: -webkit-box; -webkit-line-clamp: var(--lines, 2); -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.aet-card__title small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* pagination */
.aet-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 8px; }
.aet-pages .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-weight: 600; }
.aet-pages .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }

/* video page */
.aet-video { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.aet-video__title { font-size: 21px; line-height: 1.3; margin: 14px 0 6px; }
.aet-video__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.aet-video__desc { color: #cfcfd8; }
.aet-video__side:empty { display: none; }
.aet-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.aet-chips span { color: var(--muted); font-size: 13px; margin-right: 4px; }
.aet-chips a { padding: 4px 11px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.aet-chips a:hover { border-color: var(--accent); }
.aet-related { margin-top: 28px; }
.aet-related h2, .aet-intro h2 { font-size: 18px; margin: 0 0 12px; }
.aet-intro { margin-top: 30px; padding: 18px 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); color: #cfcfd8; max-width: 900px; }
.aet-prose { max-width: 820px; }
.aet-prose p { margin: 0 0 1em; }

/* hubs */
.aet-az { columns: 3 260px; column-gap: 24px; padding-left: 18px; }
.aet-az li { margin-bottom: 4px; break-inside: avoid; }
.aet-az-terms h2 { font-size: 16px; color: var(--accent); margin: 18px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.aet-az-terms ul { list-style: none; padding: 0; margin: 0; columns: 4 200px; column-gap: 20px; }
.aet-az-terms li { margin-bottom: 4px; break-inside: avoid; }
.aet-az-terms small { color: var(--muted); }

/* footer */
.aet-footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 22px 0 16px; color: var(--muted); font-size: 13px; text-align: center; }
.aet-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; }
.aet-footer__links li { list-style: none; }
.aet-footer p { margin: 6px 0; }

/* phones */
@media (max-width: 900px) {
  .aet-video { grid-template-columns: minmax(0, 1fr); }
  /* 2026-10-20: on a phone the sidebar's blog widgets (search, recent posts, recent comments...) sat between the video and
     its related videos, pushing "Related videos" a screen down. The page's column becomes one flex list here so those
     widgets can move to the end; the sidebar's AD zones keep their place (before related videos). */
  body.single-video main.aet-main { display: flex; flex-direction: column; }
  body.single-video main.aet-main > *, body.single-video .aet-video__main { min-width: 0; }
  body.single-video .aet-video, body.single-video .aet-video__side { display: contents; }
  body.single-video .aet-video__side > section[id] { order: 9; }
}
@media (max-width: 680px) {
  .aet-header__row { height: auto; flex-wrap: wrap; gap: 4px 8px; padding: 8px 16px 10px; }
  .aet-brand { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .aet-search { flex: 1 1 100%; order: 3; margin-left: 0; }
  .aet-menu-btn { display: block; flex: none; }
  .aet-brand { font-size: 18px; }
  .aet-search input { height: 38px; }
  .aet-nav { display: none; }
  .aet-nav.is-open { display: block; }
  .aet-nav ul { flex-direction: column; gap: 0; padding: 4px 0 10px; }
  .aet-nav li a { display: block; padding: 10px 0; }
  .aet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .aet-card__title { font-size: 13px; }
  .aet-h1 { font-size: 19px; }
  .aet-video__title { font-size: 18px; }
}

/* ---- customization variants (inc/customizer.php) ---- */
.aet-brand__tag { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.aet-card__meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 3px; }
.aet-card__rate { color: var(--good, #2fbf71); font-weight: 600; }
.aet-card__meta > span { white-space: nowrap; }
.aet-video__side .aet-card__date, .aet-list__side .aet-card__date, .aet-wa--side .aet-card__date { display: none; }   /* narrow columns: rating + views on one line */
.aet-card__rate::before { content: '\25B2'; font-size: 9px; margin-right: 3px; vertical-align: 1px; }
/* card: title on the thumbnail */
.aet-card-overlay .aet-card__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.88)); z-index: 1; }
.aet-card-overlay .aet-card__over .aet-card__title { margin: 0; color: #fff; }
.aet-card-overlay .aet-card__dur { top: 6px; bottom: auto; }
/* card: compact */
@media (min-width: 681px) { .aet-card-compact .aet-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 10px; } }
.aet-card-compact .aet-card__title { -webkit-line-clamp: 1; font-size: 13px; }
/* header: centred */
@media (min-width: 681px) {   /* logo on its own centred row; search and account buttons together on the next */
  .aet-h-centered .aet-header__row { flex-wrap: wrap; justify-content: center; height: auto; padding-top: 14px; padding-bottom: 10px; gap: 10px; }
  .aet-h-centered .aet-brand { flex: 1 1 100%; text-align: center; }
  .aet-h-centered .aet-search { flex: 0 1 560px; margin: 0; }
}
.aet-h-centered .aet-nav ul { justify-content: center; }
/* header: compact single row */
.aet-nav--inline ul { padding: 0; gap: 18px; }
@media (min-width: 761px) { .aet-h-compact .aet-search { max-width: 340px; } }
/* compact header whose menu does not fit beside logo and search (theme.js measures): the menu gets its own row */
.aet-h-compact .aet-header.is-navrow .aet-header__row { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 6px; }
.aet-h-compact .aet-header.is-navrow .aet-nav--inline { order: 9; flex: 1 1 100%; padding-bottom: 8px; }   /* phones: the search has its own full row */
/* video page sidebar */
.aet-video--side-left { grid-template-columns: 320px minmax(0, 1fr); }
.aet-video--side-left .aet-video__side { order: -1; }
.aet-video--side-none { grid-template-columns: minmax(0, 1fr); }
/* share row */
.aet-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; }
.aet-share span { color: var(--muted); font-size: 13px; margin-right: 4px; }
.aet-share a, .aet-share button { padding: 5px 11px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.aet-share a:hover, .aet-share button:hover { border-color: var(--accent); color: var(--text); }
/* read more */
.is-collapsible { max-height: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.aet-more { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
/* homepage categories row */
.aet-cats-row { margin-top: 26px; }
.aet-cats-row h2 { font-size: 18px; margin: 0 0 10px; }
.aet-chips small { color: var(--muted); margin-left: 3px; }
.aet-chips__all { border-color: var(--accent) !important; }
.aet-comments { margin-top: 28px; max-width: 820px; }
@media (max-width: 900px) { .aet-video--side-left { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .aet-nav--inline { display: none; } .aet-nav--inline.is-open { display: block; flex-basis: 100%; order: 4; } .aet-nav--inline ul { flex-direction: column; } }

/* carousel, blocks, widgets, tracking button, HD */
.aet-carousel { position: relative; margin: 6px 0 18px; }
.aet-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 3 * 14px) / 4)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.aet-carousel__track::-webkit-scrollbar { display: none; }
.aet-carousel__track > * { scroll-snap-align: start; }
@media (max-width: 767px) { .aet-carousel__track { grid-auto-columns: 78%; } .aet-carousel__btn { display: none; } }
.aet-carousel__btn { position: absolute; top: 34%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.aet-carousel__btn--prev { left: -10px; } .aet-carousel__btn--next { right: -10px; }
.aet-block { margin: 28px 0; }
.aet-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.aet-block__head h2, .aet-wa__title { font-size: 1.15rem; margin: 0 0 10px; }
.aet-block__head a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.aet-wa { margin: 22px 0; }
.aet-video__side .aet-wa .aet-grid { grid-template-columns: 1fr 1fr; }
.aet-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 18px; text-align: left; }
.aet-track { display: inline-block; margin: 8px 0 4px; padding: 10px 18px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; text-decoration: none; }
.aet-track:hover { filter: brightness(1.1); }
.aet-card__hd { position: absolute; left: 6px; top: 6px; z-index: 1; background: var(--accent); color: var(--on-accent, #fff); font-size: 11px; font-weight: 800; padding: 2px 5px; border-radius: 4px; }

/* text logo, social, breadcrumbs, list sidebar, term header */
.aet-brand__words { font-weight: 800; letter-spacing: -.01em; }
.aet-brand__w2 { color: var(--accent); }
.aet-social { display: flex; flex-wrap: wrap; gap: 6px; }
.aet-social a { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.aet-social a:hover { color: var(--text); border-color: var(--muted); }
.aet-social--header { margin-left: 10px; }
@media (max-width: 900px) { .aet-social--header { display: none; } }
.aet-social--footer { justify-content: center; margin: 10px 0; }
.aet-crumbs ol { list-style: none; display: flex; flex-wrap: nowrap; gap: 4px; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); min-width: 0; }   /* one line: the last item shortens */
.aet-crumbs li { flex: none; white-space: nowrap; }
.aet-crumbs li:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aet-crumbs li + li::before { content: '\203A'; margin-right: 4px; }
.aet-crumbs a { color: var(--muted); text-decoration: none; }
.aet-crumbs a:hover { color: var(--text); }
.aet-crumbs [aria-current] { color: var(--text); }
.aet-list--right, .aet-list--left { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.aet-list--left { grid-template-columns: 300px minmax(0, 1fr); }
.aet-list--left .aet-list__side { order: -1; }
.aet-list__side .aet-grid { grid-template-columns: 1fr 1fr; }
.aet-list__side > :first-child, .aet-video__side > :first-child, .aet-video__side > .aet-wa:first-of-type { margin-top: 0; }   /* level with the video grid / player */
@media (max-width: 1000px) { .aet-list--right, .aet-list--left { grid-template-columns: minmax(0, 1fr); } .aet-list--left .aet-list__side { order: 0; } }
.aet-term-head.has-img { display: flex; gap: 14px; align-items: center; }
.aet-term-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.aet-intro--above { margin: 0 0 14px; }
.aet-account-link { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.aet-account-link:hover { border-color: var(--accent); }
.aet-video .aes-vote { display: inline-flex; margin-right: 8px; }
.aet-video .aes-fav { vertical-align: middle; }

/* photo galleries, lightbox, blog */
.aet-grid--photos .aet-card__thumb { aspect-ratio: 4 / 5; }
.aet-gallery__body .wp-block-gallery, .aet-gallery__body .gallery { gap: 8px; }
.aet-gallery__body img { border-radius: calc(var(--radius) / 2); }
.aet-lb { position: fixed; inset: 0; z-index: 2147483100; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; }
.aet-lb[hidden] { display: none; }
.aet-lb img { max-width: 96vw; max-height: 90vh; object-fit: contain; }
.aet-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.aet-lb__x { top: 12px; right: 12px; } .aet-lb__prev { left: 12px; top: 50%; } .aet-lb__next { right: 12px; top: 50%; }
.aet-lb__n { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 13px; }
.aet-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.aet-post a { color: var(--text); text-decoration: none; }
.aet-post img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.aet-post h2 { font-size: 1.1rem; margin: 8px 0 2px; }
.aet-article--wide { max-width: none; }
.aet-spot { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin: 6px 0 22px; }
.aet-spot > .aet-card:first-child { grid-row: 1 / span 2; }
.aet-spot > .aet-card:first-child, .aet-spot > .aet-card:first-child .aet-card__link { display: flex; flex-direction: column; height: 100%; }
.aet-spot > .aet-card:first-child .aet-card__thumb { aspect-ratio: auto; flex: 1; min-height: 220px; }   /* fills its side: bottoms line up */
.aet-spot > .aet-card:first-child .aet-card__title { font-size: 18px; -webkit-line-clamp: 2; }
.aet-spot--few { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aet-spot--few > .aet-card:first-child { grid-row: auto; height: auto; }
.aet-spot--few > .aet-card:first-child .aet-card__link { height: auto; }
.aet-spot--few > .aet-card:first-child .aet-card__thumb { flex: none; }
.aet-spot--few > .aet-card:first-child .aet-card__thumb { aspect-ratio: var(--ratio, 16 / 9); height: auto; min-height: 0; }
@media (max-width: 760px) {
  .aet-spot { grid-template-columns: 1fr 1fr; }
  .aet-spot > .aet-card:first-child { grid-column: 1 / -1; grid-row: auto; height: auto; }
  .aet-spot > .aet-card:first-child .aet-card__link { height: auto; }
  .aet-spot > .aet-card:first-child .aet-card__thumb { flex: none; }
  .aet-spot > .aet-card:first-child .aet-card__thumb { aspect-ratio: var(--ratio, 16 / 9); height: auto; min-height: 0; }
}
.aet-carousel--notitles .aet-card__title, .aet-carousel--notitles .aet-card__meta { display: none; }
.aet-termlist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 14px; }
.aet-termlist li { break-inside: avoid; padding: 2px 0; font-size: 14px; }
.aet-termlist a { color: var(--text); text-decoration: none; } .aet-termlist small { color: var(--muted); }
.aet-termlist__all { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.aet-footer__logo { margin: 0 0 14px; }
.aet-account-link--submit { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }

/* member channel, comments, 404 search */
.aet-channel { display: flex; gap: 16px; align-items: center; margin: 10px 0 18px; }
.aet-channel__avatar { border-radius: 50%; flex: none; }
.aet-channel__bio { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.aet-comments { margin: 28px 0; max-width: 820px; }
.aet-comments h2 { font-size: 1.1rem; }
.aet-comments__list { list-style: none; padding: 0; margin: 0 0 18px; }
.aet-comments__list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.aet-comments__list .children { list-style: none; margin: 10px 0 0 17px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.aet-comments__list .children li { padding: 8px 0; }
.aet-comments__list .comment-author { display: flex; align-items: center; gap: 0; font-size: 14px; }
.aet-comments__list .comment-author .fn { font-style: normal; font-weight: 700; }
.aet-comments__list .comment-author .fn a { color: inherit; }
.aet-comments__list .says { display: none; }
.aet-comments__list .comment-metadata { margin: 2px 0 0 44px; }
.aet-comments__list .comment-content { margin: 6px 0 0 44px; }
.aet-comments__list .comment-content p { margin: 0 0 6px; }
.aet-comments__list .reply { display: flex; align-items: center; margin: 4px 0 0 44px; }
.aet-comments__list .comment-reply-link, .aet-comments__list .comment-reply-login { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: inherit; font-size: 13px; text-decoration: none; }
.aet-comments__list .comment-reply-link:hover { border-color: currentColor; }
.aet-comments__list .comment-respond { margin: 10px 0 0 44px; }
@media (max-width: 600px) { .aet-comments__list .children { margin-left: 8px; padding-left: 12px; } .aet-comments__list .comment-metadata, .aet-comments__list .comment-content, .aet-comments__list .reply, .aet-comments__list .comment-respond { margin-left: 0; } }
.aet-comments__list .comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.aet-comments__list .comment-meta a { color: var(--muted); font-size: 12px; text-decoration: none; }
.aet-comments__form textarea, .aet-comments__form input:not([type=submit]):not([type=checkbox]) { width: 100%; box-sizing: border-box; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.aet-btn { background: var(--accent); color: var(--on-accent, #fff); border: 0; border-radius: var(--radius); padding: 10px 18px; font-weight: 700; cursor: pointer; }
.aet-search--page { max-width: 520px; margin: 0 0 18px; }
.aet-search--page input { width: 100%; }

/* Sort as a drop-down (aet_sort_ui = menu): a <details> of plain links, no JavaScript */
.aet-sortmenu { position: relative; width: max-content; float: right; margin: 0 0 8px 12px; z-index: 5; }   /* on the filters' line, at its right end */
.aet-sortmenu + :not(.aes-filters) { clear: both; }
.aet-list, .aet-grid { clear: both; }
.aet-sortmenu summary { list-style: none; cursor: pointer; padding: 7px 12px; line-height: 1.6; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.aet-sortmenu summary::-webkit-details-marker { display: none; }
.aet-sortmenu summary::after { content: ''; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; vertical-align: -2px; }
.aet-tabs--menu { position: absolute; right: 0; top: calc(100% + 4px); flex-direction: column; gap: 0; margin: 0; padding: 4px; min-width: 170px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); overflow: visible; }
.aet-tabs--menu a { border: 0; border-radius: 6px; background: none; padding: 8px 10px; }
.aet-tabs--menu a[aria-current] { background: var(--accent); }

/* Headings as a bar with an accent edge (aet_heading = bar) */
.aet-heading-bar .aet-h1, .aet-heading-bar .aet-block__head h2, .aet-heading-bar .aet-related h2 { background: var(--bg2); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0; font-size: 18px; }
.aet-heading-bar .aet-block__head { align-items: center; }
.aet-heading-bar .aet-block__head h2 { flex: 1; }

/* Video length under the title (aet_dur_pos = meta) */
.aet-card__len { padding: 0 5px; border-radius: 4px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }

/* Title above the player (aet_title_pos = above) */
.aet-video__title--above { margin: 2px 0 10px; }

/* App-like page changes: a quick cross-fade between pages, the header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.aet-header { view-transition-name: aet-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* report button on the video page */
.aet-report { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.aet-report:hover { color: var(--text); border-color: var(--muted); }
.aet-report svg { width: 15px; height: 15px; }
.aet-term-head .aes-follow, .aet-channel .aes-follow { margin: 6px 0; }
@media (max-width: 560px) { .aet-account-link--channel { display: none; } }   /* phones: the channel is one tap away in the account */
/* Studio theater mode: the player across the page, the side column under it */
html.aes-theater .aet-video { grid-template-columns: minmax(0, 1fr) !important; }
html.aes-theater .aet-video__side { display: none; }
.aet-card__sponsor { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
/* rows that scroll sideways on phones (sort tabs): a fade at the right edge says "more", instead of a word cut off */
@media (max-width: 680px) {
  .aet-tabs:not(.aet-tabs--menu) { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 28px; }
}

/* Series (Studio 0.43): the episode number in front of the title on a series page */
.aet-card__ep { display: inline-block; margin: 0 6px 0 0; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: var(--on-accent, #fff); font-size: 11px; font-weight: 800; line-height: 1.5; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.aet-comments__form input[type=checkbox] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--accent); }
