/*
 *  Acting Craft, 2026.
 *
 *  This file replaces the layout half of style.css, which is a bought video
 *  template ("Progression Studios") whose dashboard demo was never finished:
 *  the sidebar linked to five dashboard-*.html files that do not exist, the
 *  filter panel offered Movies / Genres / Country / Average Rating for a site
 *  that has none of those, and the hero played a surfing trailer from Plyr's
 *  CDN behind whichever video was marked featured.
 *
 *  style.css is still loaded for the handful of pieces kept from the theme.
 *  Everything laid out below is scoped under .ac- so the two cannot fight.
 *
 *  Written mobile first. The old page had no working breakpoint at all: the
 *  category strip overflowed the viewport at any width under about 1900px and
 *  took the whole document with it.
 */

:root {
    --ac-ink:        #16181d;
    --ac-ink-soft:   #565b66;
    --ac-ink-faint:  #8b909c;
    --ac-line:       #e4e6eb;
    --ac-line-soft:  #f0f1f4;
    --ac-bg:         #ffffff;
    --ac-bg-soft:    #f7f8fa;
    --ac-accent:     #c4302b;
    --ac-accent-dk:  #9d2622;
    --ac-radius:     10px;
    --ac-shadow:     0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px rgba(22, 24, 29, .07);
    --ac-shadow-lg:  0 2px 4px rgba(22, 24, 29, .06), 0 18px 44px rgba(22, 24, 29, .12);
    --ac-max:        1240px;
}

/*  The theme sets a page font at 14px and a line-height of 1.4. Neither is
 *  readable for the amount of prose these pages now carry.  */
.ac-body {
    margin: 0;
    background: var(--ac-bg);
    color: var(--ac-ink);
    font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.ac-body * { box-sizing: border-box; }

.ac-body h1, .ac-body h2, .ac-body h3, .ac-body h4, .ac-body h5 {
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ac-ink);
    line-height: 1.25;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ac-body a { color: inherit; text-decoration: none; }
.ac-body a:hover { color: var(--ac-accent); }
.ac-body img { max-width: 100%; display: block; }

.ac-wrap {
    max-width: var(--ac-max);
    margin: 0 auto;
    padding: 0 20px;
}

.ac-icon {
    width: 1em;
    height: 1em;
    vertical-align: -.14em;
    flex: none;
}

.ac-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---------------------------------------------------------------- header  */

.ac-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ac-line);
}

.ac-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 66px;
}

.ac-logo { flex: none; display: flex; align-items: center; }
.ac-logo img { height: 30px; width: auto; }

/*  The search box is the primary control on this site now that it reaches into
 *  transcripts, so it gets the space the fake genre filter used to take.  */
.ac-search {
    flex: 1 1 auto;
    max-width: 560px;
    position: relative;
    display: flex;
    align-items: center;
}

.ac-search .ac-icon {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: var(--ac-ink-faint);
    pointer-events: none;
}

.ac-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    font: inherit;
    font-size: 15px;
    color: var(--ac-ink);
    background: var(--ac-bg-soft);
    border: 1px solid transparent;
    border-radius: 21px;
    outline: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.ac-search input::placeholder { color: var(--ac-ink-faint); }

.ac-search input:focus {
    background: #fff;
    border-color: var(--ac-line);
    box-shadow: 0 0 0 4px rgba(196, 48, 43, .10);
}

.ac-header-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    flex: none;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ac-ink-soft);
}

.ac-header-links a.is-on { color: var(--ac-accent); }

@media (max-width: 860px) {
    .ac-header-links { display: none; }
    .ac-header-inner { height: 60px; gap: 12px; }
    .ac-logo img { height: 26px; }
}


/* ------------------------------------------------------------- category  */

/*  A horizontally scrolling strip, with the overflow contained here rather
 *  than escaping onto <body>. The old markup was a plain <ul> of nine
 *  fixed-width tiles inside a container with no overflow rule, so the ninth
 *  tile pushed the document wider than the viewport and every page scrolled
 *  sideways.  */
.ac-cats {
    border-bottom: 1px solid var(--ac-line);
    background: #fff;
}

.ac-cats-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.ac-cats-scroll::-webkit-scrollbar { display: none; }

.ac-cat {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ac-ink-soft);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.ac-cat .ac-icon { font-size: 17px; }

.ac-cat:hover {
    background: var(--ac-bg-soft);
    color: var(--ac-ink);
}

.ac-cat.is-on {
    background: var(--ac-accent);
    border-color: var(--ac-accent);
    color: #fff;
}

.ac-cat.is-on:hover { color: #fff; background: var(--ac-accent-dk); }

.ac-cat-count {
    font-size: 12px;
    font-weight: 700;
    opacity: .55;
}


/* ------------------------------------------------------------------ hero  */

.ac-hero {
    background: var(--ac-bg-soft);
    border-bottom: 1px solid var(--ac-line);
    padding: 34px 0 38px;
}

.ac-hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .ac-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
}

.ac-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ac-accent);
    margin-bottom: 12px;
}

.ac-hero h1 {
    font-size: 28px;
    margin-bottom: 14px;
}

@media (min-width: 700px)  { .ac-hero h1 { font-size: 36px; } }
@media (min-width: 1100px) { .ac-hero h1 { font-size: 42px; } }

.ac-hero p {
    color: var(--ac-ink-soft);
    font-size: 16.5px;
    margin: 0 0 20px;
    max-width: 56ch;
}

/*  A padded box rather than a fixed height, so the poster keeps its aspect
 *  ratio at every width instead of being cropped by a background-size rule
 *  that assumed a desktop viewport.  */
.ac-hero-media {
    position: relative;
    display: block;
    border-radius: var(--ac-radius);
    overflow: hidden;
    box-shadow: var(--ac-shadow-lg);
    background: #0d0e11;
    aspect-ratio: 16 / 9;
}

.ac-hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .3s;
}

.ac-hero-media:hover img { transform: scale(1.03); opacity: .88; }

.ac-play-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--ac-accent);
    font-size: 26px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
    transition: transform .2s;
}

.ac-hero-media:hover .ac-play-badge { transform: scale(1.08); }


/* ----------------------------------------------------------------- button */

.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--ac-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.ac-btn:hover { background: var(--ac-accent-dk); transform: translateY(-1px); }

.ac-btn-ghost {
    background: transparent;
    color: var(--ac-ink) !important;
    border: 1px solid var(--ac-line);
}

.ac-btn-ghost:hover { background: var(--ac-bg-soft); color: var(--ac-ink) !important; }


/* ------------------------------------------------------------------ grid  */

.ac-section { padding: 40px 0 56px; }

.ac-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.ac-section-head h2 { font-size: 25px; margin: 0; }

.ac-section-intro {
    color: var(--ac-ink-soft);
    max-width: 74ch;
    margin: 0 0 26px;
    font-size: 16.5px;
}

.ac-grid {
    display: grid;
    gap: 26px 22px;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.ac-card { display: flex; flex-direction: column; }

.ac-card-media {
    position: relative;
    display: block;
    border-radius: var(--ac-radius);
    overflow: hidden;
    background: #eceef1;
    aspect-ratio: 16 / 9;
    box-shadow: var(--ac-shadow);
}

.ac-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ac-card:hover .ac-card-media img { transform: scale(1.04); }

.ac-card-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 42%);
    opacity: 0;
    transition: opacity .25s;
}

.ac-card:hover .ac-card-media::after { opacity: 1; }

.ac-duration {
    position: absolute;
    right: 8px; bottom: 8px;
    background: rgba(9, 10, 12, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .02em;
}

.ac-card-body { padding: 13px 2px 0; }

.ac-card h3 {
    font-size: 16.5px;
    line-height: 1.35;
    margin: 0 0 7px;
    /*  Two lines, then ellipsis. Titles from YouTube run to 100 characters
     *  and a card that grows to fit one breaks the row it is in.  */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--ac-ink-faint);
}

.ac-card-excerpt {
    margin: 8px 0 0;
    font-size: 14.5px;
    color: var(--ac-ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--ac-line-soft);
    color: var(--ac-ink-soft);
}

.ac-tag-takeaways {
    background: rgba(196, 48, 43, .09);
    color: var(--ac-accent);
}

.ac-tag-archive {
    background: #fdf3d8;
    color: #6b5314;
}


/* ------------------------------------------------------------- pagination */

.ac-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.ac-pager a, .ac-pager span {
    min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--ac-line);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ac-ink-soft);
}

.ac-pager a:hover { border-color: var(--ac-ink-faint); color: var(--ac-ink); }

.ac-pager .is-on {
    background: var(--ac-accent);
    border-color: var(--ac-accent);
    color: #fff;
}

.ac-pager .is-off { opacity: .4; }


/* ------------------------------------------------------------------ watch */

.ac-watch { padding: 26px 0 60px; }

.ac-watch-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 1fr;
}

@media (min-width: 1040px) {
    .ac-watch-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; }
}

.ac-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--ac-radius);
    overflow: hidden;
    box-shadow: var(--ac-shadow-lg);
}

.ac-player iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

.ac-gone {
    position: absolute; inset: 0;
    display: grid; place-content: center; justify-items: center;
    gap: 12px;
    color: #b8bcc4;
    text-align: center;
    padding: 24px;
}

.ac-gone .ac-icon { font-size: 34px; }

.ac-crumbs {
    font-size: 13.5px;
    color: var(--ac-ink-faint);
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ac-watch h1 { font-size: 26px; margin: 22px 0 12px; }
@media (min-width: 760px) { .ac-watch h1 { font-size: 32px; } }

.ac-watch-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14.5px;
    color: var(--ac-ink-soft);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ac-line);
}

.ac-note {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    margin-top: 16px;
    line-height: 1.55;
}

.ac-note .ac-icon { font-size: 18px; margin-top: 2px; }
.ac-note-warn { background: #fdf3d8; color: #6b5314; border: 1px solid #f0dca8; }
.ac-note-dead { background: #fbe9e9; color: #7a2222; border: 1px solid #f0c0c0; }


/* -------------------------------------------------------------- takeaways */

/*  The "N things actors should know" deck. Cards rather than a list because
 *  the point is that each one is a separate, quotable claim: that is what
 *  makes the block worth anything to a search engine reading the page and to
 *  somebody skimming it in ten seconds.  */
.ac-takeaways { margin: 40px 0 0; }

.ac-takeaways h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

@media (min-width: 760px) { .ac-takeaways h2 { font-size: 29px; } }

.ac-takeaways-sub {
    color: var(--ac-ink-faint);
    font-size: 14.5px;
    margin: 0 0 24px;
}

/*  The one contextual link out to Web For Actors, below the key points.
    Quiet on purpose: it sits between the notes and the comments, and it is a
    credit line rather than a call to action. Same faint ink and size as
    .ac-takeaways-sub so it reads as part of the furniture.  */
.ac-wfa-aside {
    color: var(--ac-ink-faint);
    font-size: 14.5px;
    margin: 28px 0 0;
}

.ac-take-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    counter-reset: ac-take;
}

@media (min-width: 680px)  { .ac-take-grid { grid-template-columns: repeat(2, 1fr); } }

.ac-take {
    position: relative;
    background: #fff;
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    padding: 22px 22px 22px 62px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.ac-take:hover {
    border-color: transparent;
    box-shadow: var(--ac-shadow);
    transform: translateY(-2px);
}

.ac-take::before {
    counter-increment: ac-take;
    content: counter(ac-take);
    position: absolute;
    left: 20px; top: 21px;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 7px;
    background: var(--ac-accent);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.ac-take h3 {
    font-size: 17px;
    margin: 0 0 7px;
    line-height: 1.35;
}

.ac-take p {
    margin: 0;
    font-size: 15px;
    color: var(--ac-ink-soft);
    line-height: 1.6;
}


/* ------------------------------------------------------------- transcript */

.ac-transcript {
    margin-top: 38px;
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    background: var(--ac-bg-soft);
}

.ac-transcript summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.ac-transcript summary::-webkit-details-marker { display: none; }

.ac-transcript summary .ac-icon { color: var(--ac-ink-faint); }

.ac-transcript-body {
    padding: 4px 20px 22px;
    max-height: 460px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ac-ink-soft);
    white-space: pre-line;
}


/* ------------------------------------------------------------------ aside */

.ac-aside-block { margin-bottom: 34px; }

.ac-aside-block h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ac-ink-faint);
    margin-bottom: 14px;
}

.ac-mini {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ac-mini-media {
    flex: none;
    width: 116px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: #eceef1;
}

.ac-mini-media img { width: 100%; height: 100%; object-fit: cover; }

.ac-mini h3 {
    font-size: 14.5px;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-mini-meta { font-size: 12.5px; color: var(--ac-ink-faint); }

.ac-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.ac-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--ac-line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ac-ink-soft);
}

.ac-chip:hover { border-color: var(--ac-accent); color: var(--ac-accent); }


/* ----------------------------------------------------------------- search */

.ac-search-hero {
    background: var(--ac-bg-soft);
    border-bottom: 1px solid var(--ac-line);
    padding: 34px 0;
}

.ac-search-hero h1 { font-size: 27px; margin-bottom: 6px; }
.ac-search-hero p  { color: var(--ac-ink-soft); margin: 0; }

.ac-result {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 22px 0;
    border-bottom: 1px solid var(--ac-line-soft);
}

@media (min-width: 640px) {
    .ac-result { grid-template-columns: 240px minmax(0, 1fr); }
}

.ac-result-media {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #eceef1;
    position: relative;
}

.ac-result-media img { width: 100%; height: 100%; object-fit: cover; }
.ac-result h2 { font-size: 19px; margin: 0 0 6px; }

.ac-snippet {
    font-size: 14.5px;
    color: var(--ac-ink-soft);
    margin: 10px 0 0;
    padding-left: 13px;
    border-left: 3px solid var(--ac-line);
    font-style: italic;
}

.ac-snippet mark {
    background: rgba(196, 48, 43, .14);
    color: inherit;
    font-style: normal;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

.ac-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--ac-ink-soft);
}

.ac-empty .ac-icon { font-size: 40px; color: var(--ac-line); margin-bottom: 14px; }


/* ----------------------------------------------------------------- footer */

.ac-footer {
    border-top: 1px solid var(--ac-line);
    background: var(--ac-bg-soft);
    padding: 40px 0;
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--ac-ink-soft);
}

.ac-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 44px;
    align-items: flex-start;
    justify-content: space-between;
}

.ac-footer h2 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ac-ink-faint);
    margin-bottom: 10px;
}

.ac-footer ul { list-style: none; margin: 0; padding: 0; }
.ac-footer li { margin-bottom: 6px; }

.ac-footer-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ac-line);
    font-size: 13.5px;
    color: var(--ac-ink-faint);
}


/* ------------------------------------------------------------ admin badge */

.ac-admin {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16181d;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

.ac-admin:hover { background: var(--ac-accent); }


/* ------------------------------------------------------ member and sign in */

.ac-signin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--ac-line);
    color: var(--ac-ink) !important;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}

.ac-signin:hover {
    border-color: var(--ac-accent);
    color: var(--ac-accent) !important;
    background: rgba(196, 48, 43, .04);
}

.ac-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ac-ink);
    white-space: nowrap;
}

/*  An initial in a circle, not a photo. A member's Web For Actors headshot is
 *  their professional image and is not ours to reproduce beside a comment on a
 *  third party's video without being asked.  */
.ac-avatar {
    width: 30px; height: 30px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ac-accent);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


/* --------------------------------------------------- votes and comments --- */

.ac-engage {
    margin-top: 44px;
    padding-top: 34px;
    border-top: 1px solid var(--ac-line);
}

.ac-engage h2 { font-size: 20px; margin-bottom: 14px; }

.ac-helpful { margin-bottom: 40px; }

.ac-vote-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.ac-vote {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--ac-line);
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ac-ink-soft);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.ac-vote span {
    font-size: 13px;
    font-weight: 700;
    opacity: .6;
}

.ac-vote:hover { border-color: var(--ac-ink-faint); color: var(--ac-ink); }

.ac-vote.is-on {
    background: var(--ac-accent);
    border-color: var(--ac-accent);
    color: #fff;
}

.ac-vote.is-on span { opacity: .85; }

.ac-vote.is-on.is-down { background: var(--ac-ink); border-color: var(--ac-ink); }

/*  The signed-out rendering. Same shape so the counts read the same, but not a
 *  button: a control that looks clickable and is not is worse than no control. */
.ac-vote.is-static { cursor: default; background: var(--ac-bg-soft); }

.ac-vote-note {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--ac-ink-faint);
}

.ac-comment {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ac-line-soft);
}

.ac-comment-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.ac-comment-head time { font-size: 13px; color: var(--ac-ink-faint); }

.ac-comment p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ac-ink-soft);
    /*  A comment is member-written and may contain a long unbroken URL. Without
     *  this it pushes the whole column wider than the page.  */
    overflow-wrap: anywhere;
}

.ac-comment-remove button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--ac-ink-faint);
    cursor: pointer;
    text-decoration: underline;
}

.ac-comment-remove button:hover { color: var(--ac-accent); }

.ac-comment-form { margin-top: 22px; }

.ac-comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ac-ink);
    background: var(--ac-bg-soft);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    outline: none;
    resize: vertical;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.ac-comment-form textarea:focus {
    background: #fff;
    border-color: var(--ac-ink-faint);
    box-shadow: 0 0 0 4px rgba(196, 48, 43, .09);
}

.ac-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--ac-ink-faint);
}

.ac-comment-signin { margin-top: 20px; }


/* ---------------------------------------------------------------- sharing */

/*  The menu is absolutely positioned inside a relative wrapper, so a card can
 *  hold one without the menu affecting the card's height when it opens.  */
.ac-share { position: relative; display: inline-block; }

.ac-share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--ac-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ac-ink-faint);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.ac-share-toggle:hover { border-color: var(--ac-accent); color: var(--ac-accent); }
.ac-share-toggle .ac-icon { font-size: 14px; }

.ac-share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 196px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ac-line);
    border-radius: 10px;
    box-shadow: var(--ac-shadow-lg);
}

.ac-share-to,
.ac-share-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--ac-ink) !important;
    text-align: left;
    cursor: pointer;
}

.ac-share-to:hover,
.ac-share-copy:hover { background: var(--ac-bg-soft); }

.ac-share-to .ac-icon,
.ac-share-copy .ac-icon { font-size: 17px; color: var(--ac-ink-faint); }

/*  Brand color only on hover. A menu of four saturated logos competes with the
 *  page for attention, and this control is never the point of the page.  */
.ac-share-x:hover        .ac-icon { color: #000; }
.ac-share-facebook:hover .ac-icon { color: #1877f2; }
.ac-share-linkedin:hover .ac-icon { color: #0a66c2; }
.ac-share-whatsapp:hover .ac-icon { color: #25d366; }

/*  On a card the control sits in the corner and stays quiet until the card is
 *  hovered or the button itself is focused. Focus matters as much as hover: a
 *  keyboard user has no hover and would otherwise never see it.  */
.ac-take { position: relative; }

.ac-take .ac-share {
    position: absolute;
    top: 14px;
    right: 14px;
    opacity: 0;
    transition: opacity .15s;
}

.ac-take:hover .ac-share,
.ac-take:focus-within .ac-share { opacity: 1; }

.ac-take .ac-share-word { display: none; }
.ac-take .ac-share-toggle { padding: 6px; border-radius: 50%; }

/*  A touch device has no hover, so the control would never appear. Always
 *  visible there instead.  */
@media (pointer: coarse) {
    .ac-take .ac-share { opacity: 1; }
}

/*  The card heading must not run under the share button.  */
.ac-take h3 { padding-right: 34px; }


/* -------------------------------------------------------------- favorites */

.ac-fav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--ac-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ac-ink-soft);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.ac-fav:hover { border-color: var(--ac-accent); color: var(--ac-accent); }

.ac-fav.is-on {
    border-color: var(--ac-accent);
    background: var(--ac-accent);
    color: #fff;
}

.ac-fav.is-on .ac-icon { fill: currentColor; }

/*  On a card: a heart over the thumbnail, top right.  */
.ac-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 10, 12, .55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, background .15s;
}

.ac-card:hover .ac-card-fav,
.ac-card-fav:focus,
.ac-card-fav.is-on { opacity: 1; }

.ac-card-fav:hover { background: var(--ac-accent); }
.ac-card-fav.is-on { background: var(--ac-accent); }
.ac-card-fav.is-on .ac-icon { fill: currentColor; }

@media (pointer: coarse) { .ac-card-fav { opacity: 1; } }

.ac-watch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
