/* PothikTV 5.0.5: additive community, comment and profile layout repairs. */
body.ptv505-community .ptv-community-beatbar{display:none!important}
body.ptv505-community .ptv-community-tabs{width:100%;max-width:100%;min-width:0;overflow:hidden}
body.ptv505-community #pathik-format-filters{display:flex;min-width:0;max-width:100%;width:100%;overflow-x:auto!important;flex-wrap:nowrap!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;scroll-snap-type:x proximity}
body.ptv505-community #pathik-format-filters>*{flex:0 0 auto;scroll-snap-align:start}
body.ptv505-community #pathik-format-filters>[data-format="all"]{position:sticky;left:0;z-index:2;box-shadow:3px 0 7px #fff8}
/* Turn the narrow counted icon row into a clear Facebook-style comment/engagement toolbar. */
body.ptv505-community.ptv504-compact .ptv-social-feed-card .pothiktv-post-actions-row{justify-content:space-around!important;gap:5px!important;width:100%;min-height:48px;border-top:1px solid #eef0f3!important;border-bottom:1px solid #eef0f3!important;padding:3px 2px!important}
body.ptv505-community.ptv504-compact .ptv-social-feed-card .ptv504-counted{flex:1 1 0!important;justify-content:center!important;min-height:39px!important;border-radius:7px!important;color:#65676b!important;font-size:13px!important;gap:9px!important}
body.ptv505-community.ptv504-compact .ptv-social-feed-card .ptv504-counted:hover{background:#f0f2f5!important}
body.ptv505-community.ptv504-compact .ptv-social-feed-card .ptv504-reaction-dot{display:none!important}
body.ptv505-community .ptv-social-feed-card .pathik-comment-panel:not([hidden]){display:block!important;margin:0!important;padding:9px 5px 8px!important;border-top:0!important}
body.ptv505-community .ptv-fb-comments .pathik-comment-bubble{background:#f0f2f5!important;border:0!important;border-radius:18px!important}
body.ptv505-community .ptv-fb-comments .pathik-comment-avatar{border-radius:50%!important}
body.ptv505-community .ptv-fb-comments .pathik-comment-compose{background:#f0f2f5!important;border-radius:24px!important}
body.ptv505-community .ptv-fb-comments .pathik-comment-send{color:#0866ff!important}
/* Profile: no extra margin below the top header; leave the cover and original profile actions intact. */
body.ptv505-profile #pathik-profile-root{padding-top:8px!important}
.ptv505-friend-panel{padding:14px 18px;border:1px solid #e4e9ef;background:#fff;border-radius:15px}
.ptv505-friend-panel .ptv-discovery-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ptv505-friend-panel .ptv-discovery-row>a{display:flex;align-items:center;gap:10px;text-decoration:none}
.ptv505-shorts-panel{padding:20px;background:#fff;border-radius:15px;border:1px solid #e4e9ef}
.ptv505-shorts-panel h2{font-size:18px;font-weight:800;margin:0 0 14px}
.ptv505-shorts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:14px}
.ptv505-short-item{display:block;position:relative;text-decoration:none;color:inherit;min-width:0;overflow:hidden;border:1px solid #e5eaf0;border-radius:12px;background:#f8fafc;padding-bottom:12px}
.ptv505-short-item img,.ptv505-short-placeholder{width:100%;aspect-ratio:9/14;max-height:250px;object-fit:cover;display:grid;place-items:center;background:#112c27;color:#fff;font-size:44px}
.ptv505-short-item b{position:absolute;top:10px;left:10px;color:white;background:#ed1745;border-radius:5px;padding:3px 7px;font-size:10px}
.ptv505-short-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px 9px 0;font-size:13px}
.ptv-profile-video-wrap,.ptv-profile-oembed,.ptv-profile-media-item{min-width:0;max-width:100%}
.ptv-profile-oembed,.ptv-profile-media-item iframe{width:100%;aspect-ratio:16/9;overflow:hidden;background:#000;border-radius:12px}
.ptv-profile-oembed iframe{width:100%;height:100%;aspect-ratio:16/9;border:0;display:block}
.ptv-profile-media-item iframe{display:block;width:100%;height:auto;min-height:230px;border:0}
.ptv-profile-video{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;background:#000}
@media(max-width:767px){body.ptv505-community .ptv-community-tabs .pathik-feed-mode{display:none!important}body.ptv505-community .ptv-community-tabs>div:first-child>div:first-child{display:none!important}body.ptv505-community .ptv-community-tabs{padding:8px!important}body.ptv505-community #pathik-format-filters{padding:5px 2px!important}body.ptv505-community #pathik-format-filters>[data-format="all"]{left:0}body.ptv505-community .ptv-social-feed-card .pothiktv-post-actions-row{gap:0!important}body.ptv505-profile #pathik-profile-root{padding-top:4px!important}.ptv505-shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ptv505-friend-panel{padding:10px}.ptv-profile-media-item iframe{min-height:195px}}

.ptv-profile-media-item .ptv225-embed-shell iframe,.ptv-profile-oembed .ptv225-embed-shell iframe{height:100%!important;min-height:0!important;aspect-ratio:auto!important}
