/* The Portal Teen adapter is limited to pages containing the voting shortcode. */
.ptv-voting-page .site-content-wrapper.no-sidebar .site-main { max-width: none; }
.ptv-voting-page .page-container { padding: 0; background: #09091e; overflow: hidden; }
.ptv-voting-page .page-container > .page-header { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.ptv-voting { --ptv-purple: #a820fa; --ptv-pink: #ed34b8; --ptv-yellow: #ffc900; color: #f7f3ff; background: #09091e; font-family: inherit; font-size: 1rem; line-height: 1.5; width: 100%; min-width: 0; border-radius: 20px; overflow: hidden; isolation: isolate; }
.ptv-voting *, .ptv-voting *::before, .ptv-voting *::after { box-sizing: border-box; }
.ptv-voting [hidden] { display: none !important; }
.ptv-voting .ptv-artwork { padding: 0; margin: 0; background: #150525; }
.ptv-voting .ptv-banner-image { display: block; width: 100%; height: auto; object-fit: contain; }
.ptv-voting .ptv-hero { border-bottom: 1px solid #6638a8; }
.ptv-voting .ptv-start-banner { display: block; }
.ptv-voting .ptv-categories-bar h2 a { color: inherit; text-decoration: none; }
.ptv-voting .ptv-after-vote, .ptv-voting .ptv-finished { padding: 1.5rem; margin: 0 0 1.5rem; border: 1px solid #7634a8; border-radius: 14px; background: linear-gradient(135deg, #251236, #110d24); text-align: center; }
.ptv-voting .ptv-thanks { color: #ffe68b; margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
.ptv-voting .ptv-participation-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ptv-voting .ptv-finished h2 { color: #fff; font-size: 1.65rem; margin: 0 0 1rem; }
.ptv-voting .ptv-finished p { margin: 0 0 1.25rem; }
.ptv-voting .ptv-share { margin: 1.5rem 0 0; text-align: center; }
.ptv-voting .ptv-after-vote, .ptv-voting .ptv-finished, .ptv-voting .ptv-thanks { scroll-margin-top: 1.5rem; }
.ptv-voting .ptv-start-banner:focus-visible, .ptv-voting .ptv-categories-bar h2 a:focus-visible { outline: 3px solid var(--ptv-yellow); outline-offset: -3px; }
.ptv-voting .ptv-content { padding: 1.5rem; }
.ptv-voting .ptv-status-message { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--ptv-yellow); background: #251834; color: #ffe68b; font-size: .9rem; }
.ptv-voting .ptv-categories-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; max-width: 1000px; margin: 1.75rem auto 1rem; scroll-margin-top: 2rem; }
.ptv-voting .ptv-categories-bar h2 { margin: 0; color: #fff; font-size: 2rem; font-style: italic; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.ptv-voting .ptv-categories-bar h2 span { color: var(--ptv-yellow); }
.ptv-voting .ptv-filters { display: flex; flex: 1 1 360px; align-items: end; gap: .75rem; min-width: 0; }
.ptv-voting .ptv-category-picker { flex: 1; min-width: 0; }
.ptv-voting .ptv-category-picker label { display: block; margin: 0 0 .4rem; color: #d4c9e2; font-size: .85rem; font-weight: 700; }
.ptv-voting .ptv-category-picker select { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: .65rem 2.1rem .65rem .85rem; border: 1px solid #78608e; border-radius: 10px; background: #171026; color: #fff; font: inherit; font-size: 1rem; text-overflow: ellipsis; color-scheme: dark; cursor: pointer; }
.ptv-voting .ptv-category-picker option { background: #171026; color: #fff; }
.ptv-voting .ptv-category-picker select:disabled { opacity: .7; cursor: wait; }
.ptv-voting .ptv-filters .ptv-filter { flex-shrink: 0; min-height: 48px; }
.ptv-voting .ptv-category-picker select:focus-visible { outline: 3px solid var(--ptv-yellow); outline-offset: 3px; }
.ptv-voting .ptv-filter, .ptv-voting .ptv-nav-button { font: inherit; font-size: .78rem; font-weight: 700; background: #171026; border: 1px solid #665075; color: #e4ddef; border-radius: 30px; padding: .6rem .85rem; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; max-width: 100%; }
.ptv-voting .ptv-filter[aria-pressed="true"] { background: var(--ptv-yellow); color: #21102e; border-color: var(--ptv-yellow); }
.ptv-voting .ptv-category-navigation { max-width: 1000px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ptv-voting .ptv-category-counter { margin: 0; flex: 1; min-width: 0; text-align: center; color: #d7b0ef; font-size: .8rem; font-weight: 700; }
.ptv-voting .ptv-grid { display: block; }
.ptv-voting .ptv-category { max-width: 1000px; margin: 0 auto 2rem; min-width: 0; padding: .5rem 0 0; scroll-margin-top: 2rem; }
.ptv-voting .ptv-category-heading { text-align: center; margin-bottom: 1rem; }
.ptv-voting .ptv-category-heading h3 { display: inline-block; margin: 0; padding: .45rem 1rem; color: #21102e; background: var(--ptv-yellow); box-shadow: 7px 7px 0 #72129e; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 900; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; max-width: calc(100% - 8px); }
.ptv-voting .ptv-description { margin: 1rem 0 1.5rem; text-align: center; color: #d4c9e2; font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; }
.ptv-voting .ptv-nominees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ptv-voting .ptv-nominee { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-rows: 1fr auto; min-width: 0; min-height: 175px; gap: 0; margin: 0; padding: .55rem; overflow: hidden; border: 1px solid #6c328e; border-radius: 12px; background: linear-gradient(135deg, #1a102d, #0d0a1b); box-shadow: 0 7px 22px rgb(0 0 0 / 18%); }
.ptv-voting .ptv-photo { position: relative; grid-column: 1; grid-row: 1 / span 2; width: 100%; height: 100%; min-height: 150px; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg, #47215e, #16132d); }
.ptv-voting .ptv-photo img { display: block; width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.ptv-voting .ptv-nominee-copy { grid-column: 2; padding: .65rem .85rem; min-width: 0; }
.ptv-voting .ptv-nominee h4 { margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.2; text-transform: uppercase; font-weight: 900; overflow-wrap: anywhere; }
.ptv-voting .ptv-nominee-copy p { margin: .5rem 0 0; font-size: .8rem; line-height: 1.4; color: #d4c9e2; overflow-wrap: anywhere; }
.ptv-voting .ptv-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .7rem 1rem; background: linear-gradient(115deg, #8a13da, #9d159e); color: #fff; border: 1px solid #ad4bdc; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 800; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center; }
.ptv-voting .ptv-nominee .ptv-button { grid-column: 2; grid-row: 2; margin: 0 .65rem .35rem .85rem; padding: .6rem .4rem; text-transform: uppercase; }
.ptv-voting .ptv-button-yellow { background: var(--ptv-yellow); border-color: var(--ptv-yellow); color: #21102e; }
.ptv-voting .ptv-button:hover:not(:disabled), .ptv-voting .ptv-filter:hover, .ptv-voting .ptv-nav-button:hover { filter: brightness(1.15); }
.ptv-voting .ptv-button:disabled, .ptv-voting .ptv-nav-button:disabled { background: #292439; color: #c5bcd1; border-color: #514460; cursor: default; }
.ptv-voting .ptv-button.ptv-selected { background: var(--ptv-yellow); color: #21102e; border-color: var(--ptv-yellow); }
.ptv-voting .ptv-is-choice { border-color: var(--ptv-yellow); }
.ptv-voting .ptv-is-choice .ptv-photo::after { content: '✓ 👍'; position: absolute; bottom: .4rem; left: .4rem; padding: .15rem .5rem; border-radius: 5px; background: var(--ptv-yellow); color: #21102e; font-weight: 900; }
.ptv-voting .ptv-button:focus-visible, .ptv-voting .ptv-filter:focus-visible, .ptv-voting .ptv-nav-button:focus-visible, .ptv-voting summary:focus-visible { outline: 3px solid var(--ptv-yellow); outline-offset: 3px; }
.ptv-voting .ptv-feedback { margin: 0; }
.ptv-voting .ptv-feedback:not(:empty) { color: #fff; border-left: 3px solid var(--ptv-yellow); background: #251834; padding: .8rem; margin: 1rem 0; }
.ptv-voting .ptv-choice:empty { display: none; }
.ptv-voting .ptv-choice { color: #ffe68b; font-size: .85rem; margin: .75rem 0; text-align: center; }
.ptv-voting .ptv-recover { margin-bottom: 1rem; }
.ptv-voting .ptv-callout { max-width: 1000px; margin: 2rem auto 0; border-radius: 15px; overflow: hidden; }
.ptv-voting .ptv-results { margin-top: 1.5rem; }
.ptv-voting summary { color: #e2b5ff; cursor: pointer; padding: .9rem 0; min-height: 44px; font-weight: 600; }
.ptv-voting .ptv-table-scroll { overflow-x: auto; }
.ptv-voting table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.ptv-voting th, .ptv-voting td { text-align: left; padding: .5rem; border-bottom: 1px solid #514460; }
.ptv-voting .ptv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 599px) {
    .ptv-voting .ptv-nominees { grid-template-columns: minmax(0, 1fr); }
    .ptv-voting .ptv-content { padding: 1rem; }
    .ptv-voting .ptv-category-heading h3 { font-size: 1.4rem; }
    .ptv-voting .ptv-nominee h4 { font-size: 1rem; }
    .ptv-voting .ptv-category-navigation button { font-size: .72rem; padding: .5rem .65rem; }
    .ptv-voting .ptv-categories-bar { flex-direction: column; align-items: stretch; }
    .ptv-voting .ptv-categories-bar h2 { text-align: center; }
    .ptv-voting .ptv-filters { flex: none; width: 100%; flex-wrap: wrap; }
    .ptv-voting .ptv-category-picker { flex-basis: 100%; }
    .ptv-voting .ptv-filters .ptv-filter { width: 100%; }
    .ptv-voting .ptv-participation-actions { flex-direction: column; }
    .ptv-voting .ptv-participation-actions .ptv-button { width: 100%; min-height: 48px; }
    .ptv-voting .ptv-after-vote, .ptv-voting .ptv-finished { padding: 1rem; }
    .ptv-voting .ptv-thanks { font-size: 1rem; }
    .ptv-voting .ptv-nominee .ptv-button { min-height: 48px; }
}
