/* Shared SNS call lounge: one responsive surface for direct and PJAX visits. */
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge {
    --vp-call-ink: #302935;
    --vp-call-muted: #776d79;
    --vp-call-accent: #94385f;
    --vp-call-line: #e9e2e7;
    --vp-call-soft: #f8f1f5;
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--vp-call-ink);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voicepa-call-lounge-body, .voicepa-call-lounge-view, .voicepa-call-lounge-panel-inner) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive {
    position: relative !important;
    inset: auto !important;
    z-index: auto;
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* The real radio remains keyboard operable; its label carries the visible UI. */
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-switch {
    display: block;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab {
    position: relative;
    inset: auto;
    order: -1;
    flex: 1 1 calc(25% - 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 1px solid var(--vp-call-line);
    border-radius: 10px;
    background: #fff;
    color: var(--vp-call-muted);
    box-shadow: none;
    font: inherit;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    transform: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab:hover {
    background: #fbf8fa;
    border-color: #d8c7d1;
    color: var(--vp-call-ink);
    box-shadow: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-switch:checked + .voicepa-call-lounge-tab {
    background: var(--vp-call-soft);
    border-color: #d9b7c8;
    color: var(--vp-call-accent);
    box-shadow: inset 0 -2px 0 var(--vp-call-accent);
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab:active {
    transform: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab:focus-visible,
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-switch:focus-visible + .voicepa-call-lounge-tab {
    outline: 2px solid var(--vp-call-accent);
    outline-offset: 2px;
    box-shadow: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tab-main {
    overflow: visible;
    color: inherit;
    font-weight: 600;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tab-sub {
    flex: 0 0 auto;
    padding-left: 6px;
    border-left: 1px solid var(--vp-call-line);
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    opacity: 1;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-panel.tab-content {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    overflow: visible;
    transform: none;
    background: transparent !important;
    color: var(--vp-call-ink);
    border: 0;
    box-shadow: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-switch:checked + .voicepa-call-lounge-tab + .voicepa-call-lounge-panel { display: block; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-panel[hidden] { display: none !important; }

/* One column rule covers both server cards and cards refreshed by the shortcodes. */
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voicepa-call-lounge-grid, .soku-voice-call-container, .voice-call-list) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.vp-post-card, .soku-voice-call-post, .voicepa-voice-call-fallback-card) {
    position: relative;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: auto !important;
    max-height: none;
    margin: 0 !important;
    padding: 0;
    border: 1px solid var(--vp-call-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    color: var(--vp-call-ink);
    box-shadow: 0 2px 6px rgba(48, 41, 53, .035);
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.featured-thumbnail-frontmaintop, .featured-thumbnail-frontmaintop2) {
    position: relative;
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: #faf7f9;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .vp-post-media-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .vp-post-media-link > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
}

/* Place titles/metadata in the card flow, independent of legacy image measurements. */
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.overlay-info, .overlay-infosm, .overlay-info-live, .overlay-infosm-live) {
    position: relative !important;
    top: auto !important;
    right: auto;
    bottom: auto !important;
    left: auto;
    z-index: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 9px 10px;
    border-radius: 0;
    background: #fff;
    color: var(--vp-call-ink);
    transform: none;
    box-shadow: none;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .post-info {
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--vp-call-muted);
    line-height: 1.5;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .title-frontmain03 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.5;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .title-frontmain03 a {
    color: var(--vp-call-ink);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-shadow: none;
    overflow-wrap: anywhere;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .vp-post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--vp-call-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: left !important;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .theauthor {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .theauthor a { position: static; color: var(--vp-call-muted); font-size: 11px; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .vp-post-meta > img { flex: 0 0 13px; width: 13px; height: 13px; margin: 0; border-radius: 0; object-fit: contain; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .vp-post-meta > :is(.post-views, .liveviewers-archive) { flex: 0 0 auto; color: inherit; white-space: nowrap; font-variant-numeric: tabular-nums; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.title-frontmain03 a, .theauthor a):hover { color: var(--vp-call-accent); text-decoration: underline; text-underline-offset: 3px; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge a:focus-visible { outline: 2px solid var(--vp-call-accent); outline-offset: -2px; }

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.soku-voice-call-post, .voicepa-voice-call-fallback-card) { padding: 12px; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.soku-voice-call-post, .voicepa-voice-call-fallback-card) :is(h2, h3) { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.soku-voice-call-post, .voicepa-voice-call-fallback-card) a { color: var(--vp-call-ink); }

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voice-call-empty, .voice-call-loading, .voice-call-end),
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .soku-voice-call-container > p {
    grid-column: 1 / -1;
    min-height: 0;
    margin: 0 !important;
    padding: 20px 14px;
    border: 1px solid var(--vp-call-line);
    border-radius: 10px;
    background: #fbf8fa;
    color: var(--vp-call-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
}

.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voice-call-loading, .voice-call-end) { margin-top: 10px !important; padding: 10px; border: 0; background: transparent; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .voice-call-empty--error { border-color: #ecc5cb; background: #fff6f7; color: #9d394d; }
.voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voice-call-loading, .voice-call-end)[hidden] { display: none !important; }

@media (max-width: 900px) {
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive { gap: 6px; padding: 10px !important; }
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab { flex-basis: calc(50% - 3px); min-height: 44px; padding: 9px 8px !important; font-size: 13px !important; }
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.voicepa-call-lounge-grid, .soku-voice-call-container, .voice-call-list) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
}

@media (max-width: 420px) {
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge :is(.overlay-info, .overlay-infosm, .overlay-info-live, .overlay-infosm-live) { padding: 8px; }
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge .title-frontmain03 { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .voicepa-sns-tabs-wrap #content2 .voicepa-call-lounge-tabs--responsive > .voicepa-call-lounge-tab { transition: none; }
}
