/* Only opted-in reading surfaces. The existing .super-header remains the
   fixed artwork and its clipping controller remains the owner of both edges. */
#page .super-header[data-vp-single-hero] {
    --hero-player-width: 19rem;
    --hero-art-size: clamp(104px, min(40vw, 24svh), 180px);
    position: fixed;
    top: 0;
    width: var(--vp-hero-width, min(100%, 720px));
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--vp-hero-rail-top, calc(var(--vp-shell-header-bottom, 96px) + 8px)) 0 0;
    margin-top: 0;
    overflow: visible;
    color: #fff;
}
#page .super-header[data-vp-single-hero] > .header-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(5px, 1.5vw, 12px);
    width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 0 0 8px;
    box-sizing: border-box;
    text-align: start;
}
#page .super-header[data-vp-single-hero] :is(.super-midashi,.cast-info,.cast-info-content,.tag-info,.tag-info-content,.tag-info-content2,.vp-cast-display-name) {
    position: static;
    inset: auto;
    float: none;
    transform: none;
    box-sizing: border-box;
}
#page .super-header[data-vp-single-hero] .super-midashi {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 4px;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    line-height: 1.15;
    color: #fff;
}
#page .super-header[data-vp-single-hero] .super-midashi-back { flex: none; }
#page .super-header[data-vp-single-hero] .cast-info {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}
#page .super-header[data-vp-single-hero] .cast-info-content {min-width: 0; max-width: 100%;}
#page .super-header[data-vp-single-hero] .vp-cast-display-name {
    min-width: 0;
    padding: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
#page .super-header[data-vp-single-hero] .tag-info {
    display: block;
    flex: none;
    width: min(160px, 34%);
    margin: 0;
    padding: 0;
    height: auto;
    line-height: 0;
}
#page .super-header[data-vp-single-hero] :is(.tag-info-content,.tag-info-content2,.tag-info img) {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
#page .super-header[data-vp-single-hero] .tag-info img { width: 100% !important; }
#page .super-header[data-vp-single-hero] > .vp-header-media-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 4px 8px 0;
    box-sizing: border-box;
    text-align: center;
}
#page .super-header[data-vp-single-hero] .super-image-container {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
#page .super-header[data-vp-single-hero] .custom-thumbnail-container {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    width: var(--hero-art-size);
    height: var(--hero-art-size);
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0;
    overflow: hidden;
    background: #201c21;
    border-radius: 10px;
    box-shadow: 0 0 0 2px #fff9;
}
#page .super-header[data-vp-single-hero] .custom-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
}
#page .super-header[data-vp-single-hero] :is(.custom-audio-player,.vp-hero-player--unavailable,.ad-video-player) {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: min(var(--hero-player-width), 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    text-align: center;
}
#page .super-header[data-vp-single-hero] :is(.custom-audio-player,.vp-hero-player--unavailable) {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#page .super-header[data-vp-single-hero] :is(.play-pause-btn,.vp-hero-play) {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    margin: 0 auto;
    padding: 0;
    vertical-align: top;
    border: 1px solid #ffffff66;
    border-radius: 50%;
    color: #fff;
    background: #241720ba;
    box-shadow: 0 1px 4px #1c131b55;
    line-height: 1;
}
#page .super-header[data-vp-single-hero] :is(.play-pause-btn,.vp-hero-play) svg {width: 29px; height: 29px; grid-area: 1 / 1;}
#page .super-header[data-vp-single-hero] .vp-hero-play:disabled {cursor: default; opacity: 1;}
#page .super-header[data-vp-single-hero] :is(.play-pause-btn,.seek-bar):focus-visible {outline: 3px solid #fff; outline-offset: 2px;}
@media (hover: hover) {
    #page .super-header[data-vp-single-hero] .play-pause-btn:not(:disabled):hover { background: #7b284d; }
}
#page .super-header[data-vp-single-hero] :is(.seek-bar-container,.vp-hero-seek-group) {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
}
#page .super-header[data-vp-single-hero] :is(.seek-bar,.vp-hero-seek) {
    /* The interactive area spans 28px; the visible rail is only 6px tall. */
    position: relative;
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
#page .super-header[data-vp-single-hero] :is(.seek-bar,.vp-hero-seek)::before,
#page .super-header[data-vp-single-hero] .seek-played {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 3px);
    height: 6px;
    border-radius: 9px;
    pointer-events: none;
}
#page .super-header[data-vp-single-hero] :is(.seek-bar,.vp-hero-seek)::before {right: 0; background: #fffc; box-shadow: 0 1px 3px #21172088;}
#page .super-header[data-vp-single-hero] .seek-played {background: #d84f83;}
#page .super-header[data-vp-single-hero] .vp-hero-seek {cursor: default;}
#page .super-header[data-vp-single-hero] .vp-hero-seek::before {background: #d9cfd3ba;}
#page .super-header[data-vp-single-hero] :is(.time-info,.vp-hero-times) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin: -4px 0 0;
    color: white;
    font: 600 .8rem/1.3 system-ui,sans-serif;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px #1c151f, 0 0 3px #1c151f;
}
#page .super-header[data-vp-single-hero] .super-header-bottom {margin-bottom: 0 !important; max-width: 100%;}
#page.vp-single-page > #content.article[data-vp-background-owner]:has(> .post-cover > [data-vp-single-hero]) {
    padding-top: var(--vp-hero-content-clearance, 500px);
}
@media (max-height: 480px) and (orientation: landscape) {
    #page .super-header[data-vp-single-hero] {--hero-art-size: 84px;}
    #page .super-header[data-vp-single-hero] > .vp-header-media-stack {gap: 4px;}
}

@media (scripting: none) {
    #page .super-header[data-vp-single-hero] {
        height: auto;
        min-height: 0;
        padding: 6px 0 16px;
    }
}
#page .super-header[data-vp-single-hero] .vpp-single-player-status[hidden] {display: none;}
#page .super-header[data-vp-single-hero] .vpp-single-player-status:not([hidden]) {
    display: block;
    position: static;
    margin: 5px 0 0;
    padding: 4px 8px;
    border-radius: 5px;
    background: #211821e8;
    color: #fff;
    font: 500 .8rem/1.45 system-ui,sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}
