/* PothikTV 5.0.6. Targeted cosmetics only. No global component overrides. */
/* Keep the three-column grid, individual cards, and all media within the central column. */
body.ptv505-community .ptv-community-layout,
body.ptv505-community .ptv-community-center,
body.ptv505-community .ptv-community-stream,
body.ptv505-community #community-post-stream {min-width:0;max-width:100%;box-sizing:border-box}
body.ptv505-community .ptv-community-stream {gap:8px!important;max-width:100%;width:100%}
body.ptv505-community #community-post-stream > * {margin-top:0!important;margin-bottom:0!important}
body.ptv505-community .ptv-social-feed-card {width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin-left:0!important;margin-right:0!important;margin-bottom:0!important}
body.ptv505-community .ptv-social-feed-card .ptv-feed-media,
body.ptv505-community .ptv-social-feed-card .pathik-feed-media,
body.ptv505-community .ptv-social-feed-card .ptv-feed-media-reel {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;margin-left:0!important;margin-right:0!important;overflow:hidden}
body.ptv505-community .ptv-social-feed-card .ptv-feed-image,
body.ptv505-community .ptv-social-feed-card .ptv-feed-video,
body.ptv505-community .ptv-social-feed-card .ptv-feed-media iframe,
body.ptv505-community .ptv-social-feed-card .ptv-feed-media img {max-width:100%!important;box-sizing:border-box}
body.ptv505-community .ptv-social-feed-card .ptv-feed-media iframe {display:block;width:100%;aspect-ratio:16/9}
body.ptv505-community .ptv-social-feed-card .ptv-social-card-copy,
body.ptv505-community .ptv-social-feed-card .ptv-social-card-text {min-width:0;max-width:100%;overflow-wrap:anywhere}
body.ptv505-community .ptv504-people {width:100%;max-width:100%;box-sizing:border-box;margin:1px 0}
/* Profile: bring the cover directly beneath the header. Preserve users' uploaded images and crop settings. */
body.ptv505-profile #pathik-profile-root {padding-top:0!important;margin-top:0!important;row-gap:15px!important}
body.ptv505-profile #profile-overview {margin-top:0!important;overflow:hidden;border-radius:18px}
body.ptv505-profile .ptv-profile-cover-stage {background:linear-gradient(125deg,#162c56 0%,#246f8e 46%,#078c65 100%);height:clamp(195px,23vw,300px);box-shadow:inset 0 -32px 54px rgba(2,14,38,.16)}
body.ptv505-profile .ptv-profile-cover-stage::after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(5,30,60,.04) 5%,transparent 47%,rgba(3,19,43,.25) 100%)}
body.ptv505-profile .ptv-profile-cover-image {width:100%;height:100%;object-fit:cover;filter:saturate(1.07) contrast(1.025)}
/* Only remove duplicate Overview furniture. Original composer, post stream and friend request TAB remain. */
body.ptv505-profile #pathik-profile-root .ptv-profile-compose-card > .ptv-incoming-requests,
body.ptv505-profile #pathik-profile-root .ptv-profile-compose-card > .ptv-profile-viewbar {display:none!important}
body.ptv505-profile #pathik-profile-root .ptv-profile-inline-stream {gap:7px!important;margin-top:10px!important;padding-top:9px!important}
body.ptv505-profile #pathik-profile-root .ptv-profile-inline-stream > *,
body.ptv505-profile #pathik-profile-root .ptv-profile-community-list > * {margin-top:0!important;margin-bottom:0!important}
body.ptv505-profile #pathik-profile-root .ptv-profile-community-list {gap:7px!important}
body.ptv505-profile #pathik-profile-root .ptv-profile-social-card {min-width:0;max-width:100%;box-sizing:border-box;margin-bottom:0!important}
body.ptv505-profile #pathik-profile-root .ptv-profile-social-card .ptv-feed-media {max-width:100%;box-sizing:border-box}
body.ptv505-profile .ptv-profile-media-item,
body.ptv505-profile .ptv-profile-media-grid {min-width:0;max-width:100%}
body.ptv505-profile .ptv-profile-media-item iframe,
body.ptv505-profile .ptv-profile-media-item video {display:block;width:100%;max-width:100%;aspect-ratio:16/9;object-fit:contain;background:#050505}
/* Video discovery: username, actual views, and publication age on a single tidy byline. */
body.home .ptv506-video-byline {display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;min-width:0;margin-top:3px;color:#64748b}
body.home .ptv506-video-byline .ptv-youtube-channel {display:inline;max-width:100%;margin:0;font-size:12px;text-decoration:none}
body.home .ptv506-video-byline small {display:inline;color:#64748b;font-size:11px;white-space:normal}
body.home .ptv506-video-byline small::before {content:"·";margin-right:7px;color:#94a3b8}
@media(max-width:767px){
 body.ptv505-community .ptv-community-stream {margin-inline:0!important;padding-inline:0!important;gap:7px!important}
 body.ptv505-community .ptv-social-feed-card {border-radius:12px!important;padding:12px!important}
 body.ptv505-profile .ptv-profile-cover-stage {height:190px}
 body.ptv505-profile #pathik-profile-root {padding-top:0!important}
 body.ptv505-profile #pathik-profile-root .ptv-profile-inline-stream {gap:7px!important}
}

/* v5.0.7: collapse the unused zero-comments placeholder, not the comment composer.
   When the first comment posts, existing JS removes .pathik-comment-empty, and the list reappears. */
body.ptv505-community .ptv-social-feed-card .pathik-comment-panel:not([hidden]) .pathik-comment-empty {display:none!important}
body.ptv505-community .ptv-social-feed-card .pathik-comment-panel:not([hidden]) .pathik-comment-list:has(>.pathik-comment-empty) {display:none!important;padding:0!important;margin:0!important}
body.ptv505-community .ptv-social-feed-card .pathik-comment-panel:not([hidden]):has(.pathik-comment-empty) .pathik-inline-comment-form {padding-top:0!important;margin-top:0!important;border-top:0!important}
