/* PrivateFap: interaction-driven light. No timers, tracking or permanent animation. */
.pf-sort-trigger[hidden], .pf-sort-panel[hidden] { display: none !important; }
.pf-sort-trigger { display: none; }
.pf-sort-panel {
    position: fixed; z-index: 80; box-sizing: border-box; margin: 0; padding: 5px;
    overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border: 1px solid #c77b26; border-radius: 12px; background: #131211;
    box-shadow: 0 8px 24px #0008, 0 0 16px #ff990019;
    color: #e9e3db; font-size: 12px; scrollbar-width: thin; scrollbar-color: #875722 #171411;
    animation: pf-sort-enter 140ms ease-out;
}
.pf-sort-option { position: relative; display: flex; align-items: center; gap: 10px; justify-content: space-between; min-height: 40px; box-sizing: border-box; padding: 9px 10px; border-radius: 7px; cursor: pointer; touch-action: manipulation; }
.pf-sort-option[aria-selected="true"] { color: #ffb640; background: #ff990012; font-weight: 700; }
.pf-sort-option.is-active { outline: 1px solid #ffad406b; outline-offset: -1px; background: #302113; }
.pf-sort-check { visibility: hidden; color: #ffb640; font-size: 14px; }
.pf-sort-option[aria-selected="true"] .pf-sort-check { visibility: visible; }
@media (min-width:681px) and (hover:hover) {
    .pf-sort-option:hover { color:#ffc879; background:#3b2610; outline:1px solid #ffad40; outline-offset:-1px; }
}
@keyframes pf-sort-enter { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
    .pf-sort-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 1 auto; min-width: 120px; max-width: 43vw; min-height: 40px; padding: 9px 10px; box-sizing: border-box; border: 1px solid #765025; border-radius: 10px; background: linear-gradient(140deg,#221b12,#161411); color: #e8d8c1; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; touch-action: manipulation; }
    .pf-sort-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pf-sort-trigger > svg { flex-shrink: 0; transition: transform 140ms ease; }
    .pf-sort-trigger[aria-expanded="true"] { border-color: #ffab30; box-shadow: 0 0 0 2px #ff99000c; }
    .pf-sort-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
    .pf-sort-trigger:focus-visible { outline: 2px solid #ffb347; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .pf-sort-panel { animation: none; } .pf-sort-trigger > svg { transition: none; } }
/* Public header brand: preserve its original box and typography metrics. */
.header .brand { border-radius: 12px; }
.header .brand-symbol {
    position: relative;
    isolation: isolate;
    background: linear-gradient(145deg, #ffbc50, #ff9e09 60%, #ed8500);
    box-shadow: inset 0 1px 0 #ffe8bd80, inset 0 0 0 1px #ffce7d91, 0 4px 12px #0004, 0 0 16px #ff990021;
    transition: transform 180ms ease;
}
.header .brand-symbol::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 19px #ff99004d;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.header .brand-symbol .icon { fill: #171008; stroke: #171008; }
.header .brand-name { color: #f1f2f4; text-shadow: 0 1px 1px #0005; }
.header .brand-accent { color: #ffad2d; text-shadow: 0 0 12px #ff990021; }
.header .brand:focus-visible { outline: 2px solid #ffc471; outline-offset: 6px; }
.header .brand:focus-visible .brand-symbol::after,
.header .brand:active .brand-symbol::after,
.header .brand.is-brand-active .brand-symbol::after { opacity: 1; }
.header .brand:active .brand-symbol { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
    .header .brand:hover .brand-symbol { transform: translateY(-1px); }
    .header .brand:hover .brand-symbol::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .header .brand .brand-symbol, .header .brand:hover .brand-symbol,
    .header .brand:active .brand-symbol { transform: none; transition: none; }
    .header .brand-symbol::after { transition: none; }
}

.mobile-category-controls { display: none; }
@media (max-width: 680px) {
    .catalog-section.has-mobile-categories > .catalog-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(120px, max-content);
        column-gap: 10px;
        row-gap: 0;
        align-items: center;
    }
    .catalog-section.has-mobile-categories > .catalog-heading > h2 {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0;
        padding-bottom: 13px;
        min-width: 0;
    }
    .catalog-section.has-mobile-categories > .catalog-heading > .sort-form {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        justify-self: end;
    }
    .catalog-section.has-mobile-categories .sort-form label { display: none; }
    .catalog-section.has-mobile-categories .sort-form select { width: 100%; min-width: 120px; max-width: 43vw; height: 40px; }
    .mobile-category-controls { display: contents; }
    .mobile-category-selection { display: flex; gap: 6px; min-width: 0; grid-column: 1; grid-row: 2; }
    .mobile-category-current {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-width: 100%;
        min-height: 40px;
        padding: 8px 11px;
        border: 1px solid #ffbf60;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffb947, #ff9900 72%);
        color: #201200;
        font-size: 11px;
        font-weight: 700;
        box-shadow: inset 0 1px 0 #ffe5bc8c, 0 3px 15px #ff99001a;
    }
    .mobile-category-current span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mobile-category-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #9a6527;
        border-radius: 10px;
        color: #ffd08a;
        background: linear-gradient(135deg, #392715, #21190f);
        cursor: pointer;
        touch-action: manipulation;
    }
    .mobile-category-toggle .icon { width: 15px; height: 15px; transform: rotate(90deg); transition: transform 200ms ease; }
    .mobile-category-toggle[aria-expanded="true"] { border-color: #ffc06a; box-shadow: 0 0 12px #ff990025; }
    .mobile-category-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
    .mobile-category-current:focus-visible, .mobile-category-toggle:focus-visible { outline: 2px solid #ffd18b; outline-offset: 3px; }
    .mobile-category-toggle:active { transform: scale(.95); }
    .mobile-category-panel {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 220ms ease, opacity 180ms ease;
    }
    .mobile-category-panel.is-expanded { grid-template-rows: 1fr; opacity: 1; }
    .mobile-category-clip { overflow: hidden; min-height: 0; }
    .mobile-category-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
        padding: 11px;
        max-height: min(340px, 50vh);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #9b6a2e #17130f;
        background: #17130f;
        border: 1px solid #865b26;
        border-radius: 13px;
    }
    .mobile-category-menu .pill { min-width: 0; padding: 10px 7px; white-space: normal; overflow-wrap: anywhere; text-align: center; justify-content: center; font-size: 11px; }
    .catalog-section.has-mobile-categories > .home-category-filter, .catalog-controls.mobile-category-replaced { display: none; }
}
@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
    .mobile-category-panel, .mobile-category-toggle .icon { transition: none; }
    .mobile-category-toggle:active { transform: none; }
}
.header {
    background: radial-gradient(ellipse at 12% 0, #ff99000b, transparent 55%), #0d0d0dfa;
    border-bottom-color: #ff990021;
}
.header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, #ff990061 28%, #ffcc823d 64%, transparent 95%);
    pointer-events: none;
}
.header :is(.top-nav a, .saved-nav, .search-submit),
.main :is(.pill, .home-category-toggle, .sort-form select),
.watch-actions .button {
    position: relative;
    isolation: isolate;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.header :is(.top-nav a, .saved-nav), .main .pill, .home-category-toggle, .watch-actions .button {
    background: linear-gradient(145deg, #25221d, #171716 75%);
    border-color: #4a3c2a;
    color: #e0d9cf;
}
.header :is(.top-nav a, .saved-nav)::before,
.home-category-filter .pill::before, .home-category-toggle::before,
.watch-actions .button::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 0 0 1px #ffad405e, 0 0 19px #ff990025;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.header .top-nav a.active, .header .saved-nav.active, .main .pill.selected {
    color: #201200;
    background: linear-gradient(135deg, #ffb947, #ff9900 72%);
    border-color: #ffbf60;
    box-shadow: inset 0 1px 0 #ffe5bc8c, 0 3px 15px #ff99001a;
}
.header .top-nav a.active::after { display: block; left: 21px; right: 21px; bottom: 7px; height: 2px; border-radius: 2px; background: #3b2400a8; }
.main .pill.selected { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.header .search {
    background: linear-gradient(135deg, #1c1c1b, #151514);
    border-color: #3c352b;
    transition: border-color 180ms ease, background-color 180ms ease;
}
.header .search:focus-within { border-color: #f3a234; box-shadow: 0 0 0 3px #ff99000c; }
.header .search > .icon { transition: color 180ms ease, transform 180ms ease; }
.header .search:focus-within > .icon { color: #ffb957; transform: rotate(-8deg) scale(1.08); }
.header .search-submit { color: #e7b56e; background: #322718; }
.header .search-submit:active { transform: scale(.94); background: #513615; }
.sort-form select { border-color: #5d4526; background-color: #201a12; color: #e8d8c1; }
.sort-form select:focus-visible { outline: 2px solid #ffb347; outline-offset: 3px; }
.catalog-heading h2 { position: relative; }
.catalog-heading h2::before { content: ""; width: 3px; height: 18px; margin-right: 1px; background: #ffab30; border-radius: 3px; box-shadow: 0 0 12px #ff990045; }

/* Home filters: a compact part of the catalog, not a separate surrounding panel. */
#nuovi-video > .catalog-heading { padding-top: 0; padding-bottom: 17px; }
.home-category-filter { margin: 0 0 22px; padding: 0; border: 0; background: none; }
.home-category-primary, .home-category-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-category-filter .pill, .home-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #4c3b24;
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    touch-action: manipulation;
}
.home-category-filter .pill > .icon { width: 14px; height: 14px; }
.home-category-toggle { position: relative; overflow: hidden; color: #ffd08a; border-color: #9a6527; background: linear-gradient(135deg, #392715, #21190f); }
.home-category-toggle:disabled { cursor: default; }
.home-category-toggle > .icon { width: 13px; height: 13px; transform: rotate(90deg); transition: transform 220ms ease; }
.home-category-toggle[aria-expanded="true"] > .icon { transform: rotate(-90deg); }
.home-category-toggle[aria-expanded="true"] { border-color: #ffc06a; background: #38250f; }
.home-category-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, #ffc56d21 48%, transparent 72%);
    transform: translateX(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 380ms ease, opacity 120ms ease;
}
.home-category-extra { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms ease, opacity 180ms ease; }
.home-category-clip { min-height: 0; overflow: hidden; }
.home-category-links { padding: 10px 3px 3px; }
.home-category-filter.is-expanded .home-category-extra { grid-template-rows: 1fr; opacity: 1; }
.home-category-fallback { margin: 10px 0 0; font-size: 12px; color: #ffc16b; }

/* Same grid and image geometry. Light lives behind the card and cannot intercept clicks. */
.video-card { position: relative; isolation: isolate; transition: transform 200ms ease; }
.video-card::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid #ffad4052;
    border-radius: 19px;
    background: linear-gradient(145deg, #ff990009, #ff990003 60%);
    box-shadow: 0 0 20px #ff99001a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.video-card .cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px #ffb74cbd;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}
/* The native Video.js 10 play component and thumbnail decoration share a visual family. */
:is(.video-card .play-hover, .pf-native-play) {
    --pf-play-fill: #17120de8;
    --pf-play-edge: #ffb957b8;
    --pf-play-light: #ffbe5b;
    background: var(--pf-play-fill);
    border: 1px solid var(--pf-play-edge);
    border-radius: 50%;
    box-shadow: 0 0 18px #ff990025, inset 0 1px 0 #ffe2b51a;
    backdrop-filter: none;
    isolation: isolate;
}
:is(.video-card .play-hover, .pf-native-play) .icon { fill: var(--pf-play-light); stroke: var(--pf-play-light); }
.video-card .play-hover { pointer-events: none; }
.video-card .play-hover::before, .pf-native-play::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid #ffc97e36;
    border-radius: inherit;
    opacity: .7;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}
.video-card .play-hover::after, .pf-native-play::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 23px #ff990065, inset 0 0 9px #ffbd5526;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.pf-native-play {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    padding: 0;
    z-index: 20;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    width: 76px;
    height: 76px;
    scale: 1;
    transition: opacity 160ms ease, scale 160ms ease, visibility 160ms;
}
.pf-native-play .icon { width: 29px; height: 29px; }
.pf-native-play:focus-visible { outline: 2px solid #ffe0aa; outline-offset: 9px; }
.pf-native-play[data-started]:not([data-ended]) { opacity: 0; scale: .94; visibility: hidden; pointer-events: none; }
.pf-native-play:not(:defined) { visibility: hidden; }
.pf-native-play:active { scale: .95; }
.pf-native-play:active::after, .video-card .cover:active .play-hover::after { opacity: 1; transition-duration: 70ms; }
.pf-native-play:active::before { transform: scale(1.06); opacity: 1; }

.video-card .card-line h3 a { transition: color 180ms ease; }
.video-card:has(:focus-visible)::before, .video-card:active::before,
.video-card:has(:focus-visible) .cover::before, .video-card:active .cover::before { opacity: 1; }
.video-card:active { transform: translateY(1px) scale(.992); transition-duration: 80ms; }
.video-card .cover:focus-visible { outline: 2px solid #ffc06c; outline-offset: 4px; }
.video-card .cover.preview-playing .play-hover { opacity: 0; }
.save-card { border-radius: 7px; transition: color 160ms ease, background-color 160ms ease; }
.save-card[aria-pressed="true"] { background: #ff990017; }
.save-card[aria-pressed="true"] .icon { animation: pf-bookmark-feedback 240ms ease-out; }
.header .saved-nav .saved-count { background: #3a2810; color: #ffd08b; }
@keyframes pf-bookmark-feedback { 0%,100% { transform: scale(1); } 45% { transform: scale(1.2) rotate(-6deg); } }

@media (hover: hover) and (pointer: fine) {
    .header :is(.top-nav a, .saved-nav):hover, .main .pill:hover,
    .home-category-toggle:hover, .watch-actions .button:hover { transform: translateY(-2px); border-color: #e79d3b; }
    .header :is(.top-nav a, .saved-nav):hover::before,
    .home-category-filter .pill:hover::before, .home-category-toggle:hover::before,
    .watch-actions .button:hover::before { opacity: 1; }
    .home-category-toggle:hover::after { opacity: 1; transform: translateX(140%); }
    .header .search-submit:hover { transform: translateX(2px); color: #ffcf8d; }
    .video-card:hover { transform: translateY(-3px); }
    .video-card:hover::before, .video-card:hover .cover::before { opacity: 1; }
    .video-card:hover .card-line h3 a { color: #ffcc83; }
    .video-card .cover:not(.preview-playing):hover .play-hover { transform: translate(-50%,-50%) scale(1.06); }
    .video-card .cover:not(.preview-playing):hover .play-hover::after, .pf-native-play:hover::after { opacity: 1; }
    .pf-native-play:hover { scale: 1.045; }
    .pf-native-play:hover::before { opacity: 1; transform: scale(1.025); }
}
.header :is(.top-nav a, .saved-nav):active, .main .pill:active,
.home-category-toggle:active, .watch-actions .button:active { transform: translateY(1px) scale(.98); transition-duration: 80ms; }
.header :is(.top-nav a, .saved-nav):focus-visible::before,
.home-category-filter .pill:focus-visible::before, .home-category-toggle:focus-visible::before,
.watch-actions .button:focus-visible::before { opacity: 1; }

@media (hover: none), (pointer: coarse) {
    .video-card .cover:hover img { transform: none; filter: none; }
    .video-card .cover:hover .play-hover { opacity: 0; }
    .video-card .cover:focus-visible .play-hover { opacity: 1; transform: translate(-50%,-50%); }
    /* A swipe over a loaded card must not pulse its glow or shrink its image. */
    .video-card:active { transform: none; }
    .video-card:active:not(:has(:focus-visible))::before,
    .video-card:active:not(:has(:focus-visible)) .cover::before { opacity: 0; transition: none; }
    .video-card .cover:active:not(:focus-visible) .play-hover { opacity: 0; transition: none; }
    .video-card .cover img { transform: none; filter: none; transition: none; }
    .video-card::before { inset: -4px; border-radius: 16px; }
    .home-category-filter .pill, .home-category-toggle { min-height: 44px; }
}
@media (max-width: 680px) {
    #nuovi-video > .catalog-heading { padding-bottom: 14px; }
    .home-category-filter { margin-bottom: 18px; }
    .home-category-primary, .home-category-links { gap: 7px; }
    .home-category-filter .pill, .home-category-toggle { padding: 8px 11px; font-size: 10px; border-radius: 9px; }
    .catalog-heading h2::before { height: 15px; }
    .pf-native-play { width: 59px; height: 59px; }
    .pf-native-play .icon { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    .header :is(.top-nav a,.saved-nav,.search-submit), .main :is(.pill,.home-category-toggle,.sort-form select),
    .watch-actions .button, .video-card, .video-card::before, .video-card .cover::before,
    .header .search > .icon, .home-category-toggle::after, .home-category-toggle > .icon,
    .home-category-extra, .save-card, .video-card .card-line h3 a { transition: none; }
    .video-card, .video-card:hover, .video-card:active { transform: none; }
    .header :is(.top-nav a,.saved-nav,.search-submit):hover, .main .pill:hover,
    .home-category-toggle:hover, .watch-actions .button:hover { transform: none; }
    .home-category-toggle::after { display: none; }
    .save-card[aria-pressed="true"] .icon { animation: none; }
    .pf-native-play, .pf-native-play:hover, .pf-native-play:active { scale: 1; transition: none; }
    .video-card .play-hover::before, .video-card .play-hover::after,
    .pf-native-play::before, .pf-native-play::after { transition: none; transform: none; }
}

/* Same measured card lift for album covers and performer portraits. */
:is(.main .pf-performer-card,.pf-photo-card,.main .home-performer-card){transition:transform 200ms ease,border-color 200ms ease,box-shadow 200ms ease}
:is(.main .pf-performer-card,.pf-photo-card,.main .home-performer-card):focus-within{border-color:#e79d3b;box-shadow:0 0 18px #ff990018}
@media(hover:hover) and (pointer:fine){
 :is(.main .pf-performer-card,.pf-photo-card,.main .home-performer-card):hover{border-color:#e79d3b;box-shadow:0 0 18px #ff990018}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 :is(.main .pf-performer-card,.pf-photo-card,.main .home-performer-card):hover{transform:translateY(-3px)}
}
@media(prefers-reduced-motion:reduce){:is(.main .pf-performer-card,.pf-photo-card,.main .home-performer-card){transform:none;transition:none}}

.cm-people-list .cm-followed-performer-portrait{display:block;width:56px;height:70px;object-fit:cover;border-radius:10px}.cm-people-list article:has(.cm-followed-performer-portrait)>div{min-width:0;overflow-wrap:anywhere}.cm-people-list article:has(.cm-followed-performer-portrait)>.button{flex-shrink:0}
@media(max-width:380px){.cm-people-list article:has(.cm-followed-performer-portrait){flex-wrap:wrap}.cm-people-list article:has(.cm-followed-performer-portrait)>.button{margin-left:72px}}

/* Reveal: prepare position outside the viewport; never dim the image. */
@media(prefers-reduced-motion:no-preference){main .pf-reveal-primed{translate:0 14px}}
