/* Vlotube - YouTube-style channel and watch layouts for the Studio and Next themes.
   Colours come from each theme's own variables, so light and night modes follow. */

html.vt-studio, html.vt-next {
  --y-fg: var(--vt-ink, var(--vt-text, #0f0f0f));
  --y-fg2: var(--vt-ink-2, var(--vt-text-2, #606060));
  --y-bg: var(--vt-surface, var(--vt-bg, #fff));
  --y-soft: var(--vt-hover, rgba(0, 0, 0, .05));
  --y-soft2: var(--vt-press, rgba(0, 0, 0, .1));
  --y-line: var(--vt-line, rgba(0, 0, 0, .1));
  --y-accent: var(--vt-tally, var(--vt-brand, #ff0033));
  --y-chip-on-bg: var(--vt-chip-on-bg, var(--vt-ink, #0f0f0f));
  --y-chip-on-fg: var(--vt-chip-on-fg, var(--vt-surface, #fff));
  --y-radius: 12px;
  --y-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =============================== CHANNEL =============================== */
.vtc-channel { max-width: 1284px; margin: 0 auto; padding: 0 24px 48px; color: var(--y-fg); }
@media (max-width: 640px) { .vtc-channel { padding: 0 12px 40px; } }
.vtc-channel .yp_profile { background: none !important; box-shadow: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.vtc-channel .card-container { margin: 8px 0 0; border-radius: 16px; overflow: hidden; }
.vtc-channel .cover-container { position: relative; height: auto !important; aspect-ratio: 6.2 / 1; min-height: 90px; max-height: 210px; border-radius: 16px; overflow: hidden; background: var(--y-soft); }
.vtc-channel .cover-container img#yp_cover { width: 100%; height: 100%; object-fit: cover; position: static !important; transform: none !important; }
.vtc-channel .page-container { background: none !important; box-shadow: none !important; padding: 0 !important; }
.vtc-channel .page-container .container-home { max-width: none; width: auto; padding: 0; margin: 0; }
.vtc-channel a { text-decoration: none; }

.vtc-head { padding: 16px 0 0; }
.vtc-head__main { display: flex; gap: 24px; align-items: center; }
.vtc-head__avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; background: var(--y-soft); }
@media (max-width: 860px) { .vtc-head__avatar { width: 104px; height: 104px; } .vtc-head__main { gap: 16px; } }
@media (max-width: 520px) { .vtc-head__main { align-items: flex-start; } .vtc-head__avatar { width: 72px; height: 72px; } }
.vtc-head__info { min-width: 0; flex: 1; }
.vtc-head__name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; color: var(--y-fg); letter-spacing: -.01em; overflow-wrap: anywhere; }
.vtc-verified { width: 20px; height: 20px; flex: none; fill: var(--y-fg2); }
.vtc-verified__tick { fill: none; stroke: var(--y-bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vtc-head__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--y-fg2); }
.vtc-head__facts i { font-style: normal; }
.vtc-handle { color: var(--y-fg); font-weight: 500; }
.vtc-head__about { display: flex; gap: 4px; max-width: 640px; margin-top: 8px; font-size: 14px; color: var(--y-fg2) !important; }
.vtc-head__about span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtc-head__about b { color: var(--y-fg); font-weight: 600; white-space: nowrap; }
.vtc-head__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.vtc-head__buttons > div:empty { display: none; }
.vtc-extra { display: flex; gap: 8px; }
.vtc-extra:empty { display: none; }

/* PlayTube's subscribe / notify / message buttons, reshaped as YouTube pills */
html.vt-studio .vtc-head__buttons .btn, html.vt-next .vtc-head__buttons .btn,
html.vt-studio .vtw-owner__buttons .btn, html.vt-next .vtw-owner__buttons .btn {
  height: 36px; padding: 0 16px; border-radius: 999px !important; border: 0 !important; font-size: 14px; font-weight: 600; line-height: 36px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: none !important; text-transform: none; white-space: nowrap; margin: 0 !important;
}
html.vt-studio .vtc-head__buttons .btn svg, html.vt-next .vtc-head__buttons .btn svg,
html.vt-studio .vtw-owner__buttons .btn svg, html.vt-next .vtw-owner__buttons .btn svg { width: 18px; height: 18px; }
html.vt-studio .vtc-head__buttons .subs-amount, html.vt-next .vtc-head__buttons .subs-amount,
html.vt-studio .vtw-owner__buttons .subs-amount, html.vt-next .vtw-owner__buttons .subs-amount { display: none !important; }
html.vt-studio .vtc-head__buttons .btn.subscribe, html.vt-next .vtc-head__buttons .btn.subscribe,
html.vt-studio .vtw-owner__buttons .btn.subscribe, html.vt-next .vtw-owner__buttons .btn.subscribe { background: var(--y-fg) !important; color: var(--y-bg) !important; }
html.vt-studio .vtc-head__buttons .btn.subscribed, html.vt-next .vtc-head__buttons .btn.subscribed,
html.vt-studio .vtw-owner__buttons .btn.subscribed, html.vt-next .vtw-owner__buttons .btn.subscribed,
html.vt-studio .vtw-owner__buttons .btn:not(.subscribe), html.vt-next .vtw-owner__buttons .btn:not(.subscribe),
html.vt-studio .vtc-head__buttons .btn:not(.subscribe), html.vt-next .vtc-head__buttons .btn:not(.subscribe) { background: var(--y-soft) !important; color: var(--y-fg) !important; }
html.vt-studio .vtw-owner__buttons .btn:hover, html.vt-next .vtw-owner__buttons .btn:hover,
html.vt-studio .vtc-head__buttons .btn:hover, html.vt-next .vtc-head__buttons .btn:hover { filter: brightness(.94); }

.vtc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--y-soft); color: var(--y-fg) !important; font-size: 14px; font-weight: 600; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s; }
.vtc-btn:hover { background: var(--y-soft2); }
.vtc-btn--primary { background: var(--y-fg); color: var(--y-bg) !important; }
.vtc-btn--primary:hover { background: var(--y-fg); opacity: .88; }

.vtc-tabs { position: sticky; top: var(--vt-header-h, 56px); z-index: 20; margin: 12px 0 0; background: var(--vt-ground, var(--vt-bg, var(--y-bg))); border-bottom: 1px solid var(--y-line); }
.vtc-tabs__track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vtc-tabs__track::-webkit-scrollbar { display: none; }
.vtc-tab { position: relative; flex: none; padding: 0 12px; height: 48px; display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--y-fg2) !important; }
.vtc-tab:hover { color: var(--y-fg) !important; }
.vtc-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--y-fg2); transform: scaleX(0); transition: transform .2s var(--y-ease); }
.vtc-tab:hover::after { transform: scaleX(1); }
.vtc-tab.is-on { color: var(--y-fg) !important; }
.vtc-tab.is-on::after { background: var(--y-fg); transform: scaleX(1); height: 3px; }

.vtc-channel .page-container { margin-top: 20px; }
.vtc-sortbar { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.vtc-chip { height: 32px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; background: var(--y-soft); color: var(--y-fg) !important; font-size: 14px; font-weight: 500; transition: background .15s; }
.vtc-chip:hover { background: var(--y-soft2); }
.vtc-chip.is-on { background: var(--y-chip-on-bg); color: var(--y-chip-on-fg) !important; }

.vtc-grid { display: grid; gap: 40px 16px; }
.vtc-grid--videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.vtc-grid--shorts { grid-template-columns: repeat(auto-fill, minmax(min(46%, 176px), 1fr)); gap: 24px 8px; }
.vtc-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vtc-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--y-radius); overflow: hidden; background: var(--y-soft); }
.vtc-card--short .vtc-card__thumb { aspect-ratio: 9 / 16; }
.vtc-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--y-ease); }
.vtc-card:hover .vtc-card__thumb img { transform: scale(1.03); }
.vtc-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 5px; border-radius: 4px; line-height: 18px; display: inline-flex; align-items: center; gap: 4px; }
.vtc-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vtc-badge--live { background: #cc0000; }
.vtc-badge--list { left: 0; right: 0; bottom: 0; border-radius: 0; justify-content: flex-end; padding: 4px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.vtc-stack { overflow: visible; }
.vtc-stack::before { content: ""; position: absolute; left: 12px; right: 12px; top: -6px; height: 10px; border-radius: 10px 10px 0 0; background: var(--y-soft2); }
.vtc-stack img { border-radius: var(--y-radius); }
.vtc-stack__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .2s; border-radius: var(--y-radius); }
.vtc-card:hover .vtc-stack__play { opacity: 1; }
.vtc-card__body { min-width: 0; padding-right: 8px; }
.vtc-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--y-fg) !important; margin: 0 0 4px; }
.vtc-card--short .vtc-card__title { font-size: 15px; }
.vtc-card__meta { font-size: 14px; line-height: 20px; color: var(--y-fg2); }
.vtc-flag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 12px; border-radius: 4px; background: var(--y-soft); color: var(--y-fg2); }

.vtc-more-wrap { display: flex; justify-content: center; margin: 32px 0 0; }
.vtc-more { height: 36px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--y-line); background: transparent; color: var(--y-fg); font-weight: 600; font-size: 14px; cursor: pointer; }
.vtc-more:hover { background: var(--y-soft); }
.vtc-more[disabled] { opacity: .6; cursor: progress; }

.vtc-empty { text-align: center; padding: 64px 16px; color: var(--y-fg2); }
.vtc-empty svg { width: 120px; height: 120px; fill: none; stroke: var(--y-soft2); stroke-width: 1.2; }
.vtc-empty p { margin: 12px 0 16px; font-size: 16px; }

/* Home */
.vtc-spotlight { display: grid; grid-template-columns: minmax(0, 424px) minmax(0, 1fr); gap: 24px; padding: 0 0 24px; border-bottom: 1px solid var(--y-line); margin-bottom: 24px; }
@media (max-width: 760px) { .vtc-spotlight { grid-template-columns: 1fr; } }
.vtc-spotlight__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--y-radius); overflow: hidden; background: #000; }
.vtc-spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.vtc-spotlight__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .2); opacity: 0; transition: opacity .2s; }
.vtc-spotlight__play svg { width: 64px; height: 64px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.vtc-spotlight__media:hover .vtc-spotlight__play { opacity: 1; }
.vtc-spotlight__title { display: block; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--y-fg) !important; margin: 0 0 6px; }
.vtc-spotlight__desc { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--y-fg2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.vtc-shelf { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--y-line); }
.vtc-shelf:last-child { border-bottom: 0; }
.vtc-shelf__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.vtc-shelf__head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--y-fg); }
.vtc-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--y-fg) !important; padding: 6px 14px; border-radius: 999px; }
.vtc-link:hover { background: var(--y-soft); }
.vtc-shelf__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.vtc-shelf__track > * { scroll-snap-align: start; }
.vtc-shelf__track--shorts { grid-auto-columns: minmax(150px, calc((100% - 80px) / 6)); }
@media (max-width: 640px) { .vtc-shelf__track { grid-auto-columns: 72%; } .vtc-shelf__track--shorts { grid-auto-columns: 42%; } }

/* Posts */
.vtc-compose { display: flex; align-items: center; gap: 16px; max-width: 852px; padding: 16px; margin: 0 0 16px; border: 1px solid var(--y-line); border-radius: var(--y-radius); color: var(--y-fg2) !important; }
.vtc-compose:hover { background: var(--y-soft); }
.vtc-compose img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vtc-posts { display: flex; flex-direction: column; gap: 16px; max-width: 852px; }
.vtc-posts--row { flex-direction: row; max-width: none; overflow-x: auto; }
.vtc-posts--row .vtc-post { flex: 0 0 min(560px, 88%); }
.vtc-post { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--y-line); border-radius: var(--y-radius); background: var(--y-bg); }
.vtc-post__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.vtc-post__main { min-width: 0; flex: 1; }
.vtc-post__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.vtc-post__name { font-size: 13px; font-weight: 600; color: var(--y-fg) !important; }
.vtc-post__time { font-size: 12px; color: var(--y-fg2) !important; }
.vtc-post__menu { margin-left: auto; display: flex; gap: 2px; }
.vtc-post__text { font-size: 14px; line-height: 20px; color: var(--y-fg); white-space: normal; overflow-wrap: anywhere; }
.vtc-post__text a { color: var(--vt-link, #065fd4) !important; }
.vtc-post__image { display: block; margin-top: 12px; border-radius: var(--y-radius); overflow: hidden; max-width: 640px; }
.vtc-post__image img { width: 100%; display: block; }
.vtc-post__actions { display: flex; gap: 8px; margin-top: 8px; }
.vtc-pill, .vtc-iconbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; color: var(--y-fg) !important; font-size: 12px; cursor: pointer; }
.vtc-pill:hover, .vtc-iconbtn:hover { background: var(--y-soft); }
.vtc-pill svg, .vtc-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vtc-pill.is-on svg { fill: currentColor; }
.vtc-iconbtn { width: 32px; padding: 0; justify-content: center; }

/* ================================ WATCH ================================ */
html.vt-studio, html.vt-next { --vtw-side: clamp(320px, 27vw, 402px); }

/* Two-column layout that uses the whole screen (like YouTube: player grows, sidebar max 402px) */
html.vt-studio .video-player-page, html.vt-next .video-player-page { max-width: 1760px !important; width: 100% !important; margin: 0 auto !important; padding: 24px 24px 0 !important; box-sizing: border-box; }
html.vt-studio #main-container.container-full, html.vt-next #main-container.container-full { max-width: none; }
html.vt-studio .video-player-page > .row, html.vt-next .video-player-page > .row { margin: 0 !important; }
@media (min-width: 1017px) {
  html.vt-studio .video-player-page .col-md-8, html.vt-next .video-player-page .col-md-8 { width: calc(100% - var(--vtw-side) - 24px) !important; padding: 0 !important; float: left; }
  html.vt-studio .video-player-page .col-md-8.player-video.movie, html.vt-next .video-player-page .col-md-8.player-video.movie,
  html.vt-studio .video-player-page .col-md-12.player-video, html.vt-next .video-player-page .col-md-12.player-video { width: 100% !important; }
  html.vt-studio .video-player-page .col-md-4, html.vt-next .video-player-page .col-md-4 { width: var(--vtw-side) !important; padding: 0 !important; float: right; }
  html.vt-studio .video-player-page .col-md-4.mobile, html.vt-next .video-player-page .col-md-4.mobile { display: none !important; }
}
@media (max-width: 1016px) {
  html.vt-studio .video-player-page, html.vt-next .video-player-page { padding: 0 !important; }
  html.vt-studio .video-player-page .col-md-8, html.vt-next .video-player-page .col-md-8,
  html.vt-studio .video-player-page .col-md-4, html.vt-next .video-player-page .col-md-4 { width: 100% !important; float: none; padding: 0 12px !important; }
  html.vt-studio .video-player-page .player-video, html.vt-next .video-player-page .player-video { padding: 0 !important; }
  html.vt-studio .video-player-page .col-md-4.desktop, html.vt-next .video-player-page .col-md-4.desktop { display: none !important; }
}
/* Player never taller than the screen */
html.vt-studio .player-video .video-player, html.vt-next .player-video .video-player { border-radius: 12px; overflow: hidden; }
@media (min-width: 1017px) {
  html.vt-studio .player-video .video-player, html.vt-next .player-video .video-player { max-height: calc(100vh - 160px); }
  html.vt-studio .player-video video, html.vt-next .player-video video,
  html.vt-studio .player-video iframe, html.vt-next .player-video iframe { max-height: calc(100vh - 160px); }
}
@media (max-width: 1016px) { html.vt-studio .player-video .video-player, html.vt-next .player-video .video-player { border-radius: 0; } }

/* Info block */
.vtw { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 12px 0 0 !important; color: var(--y-fg); display: block !important; }
.vtw > * { order: initial !important; }
.vtw-title { margin: 0 0 12px !important; font-size: 20px !important; line-height: 28px !important; font-weight: 700 !important; color: var(--y-fg) !important; overflow-wrap: anywhere; font-family: inherit; letter-spacing: 0; }
.vtw-title .private-text { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--y-soft); color: var(--y-fg2); vertical-align: middle; }
.vtw-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 12px; }
.vtw-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vtw-owner__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.vtw-owner__text { display: flex; flex-direction: column; min-width: 0; margin-right: 12px; }
.vtw-owner__name { font-size: 16px; font-weight: 600; line-height: 22px; color: var(--y-fg) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.vtw-owner__name .verified { font-size: 13px; color: var(--y-fg2); }
.vtw-owner__subs { font-size: 12px; line-height: 18px; color: var(--y-fg2); white-space: nowrap; }
.vtw-owner__buttons { display: flex; align-items: center; gap: 8px; }
.vtw-owner__buttons > * { margin: 0 !important; }

.vtw-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
@media (max-width: 1016px) { .vtw-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .vtw-actions::-webkit-scrollbar { display: none; } }
.vtw-actions .video-likes { float: none !important; display: flex !important; align-items: center; height: 36px; margin: 0 !important; padding: 0 !important; border-radius: 999px; background: var(--y-soft) !important; overflow: hidden; flex: none; border: 0 !important; }
.vtw-actions .video-likes > .clear, .vtw-actions .video-info-element { display: none !important; }
.vtw-actions .like-btn { float: none !important; display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; margin: 0 !important; cursor: pointer; color: var(--y-fg) !important; font-weight: 600; font-size: 14px; background: transparent !important; border: 0 !important; }
.vtw-actions .like-btn:hover { background: var(--y-soft2) !important; }
.vtw-actions #likes-bar { border-right: 1px solid var(--y-line) !important; }
.vtw-actions .like-btn svg { width: 20px; height: 20px; }
.vtw-actions .like-btn.active svg, .vtw-actions .like-btn[liked] svg { color: var(--y-accent); }
.vtw-actions .like-btn .likes { color: inherit !important; font-size: 14px !important; margin: 0 !important; }
.vtw-options { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; flex-wrap: nowrap; }
.vtw-options br { display: none; }
.vtw-options .btn-share, .vtw-options a.btn-share { float: none !important; display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; margin: 0 !important; border-radius: 999px !important; border: 0 !important; background: var(--y-soft) !important; color: var(--y-fg) !important; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap; box-shadow: none !important; line-height: 1 !important; }
.vtw-options .btn-share:hover { background: var(--y-soft2) !important; }
.vtw-options .btn-share svg { width: 20px !important; height: 20px !important; margin: 0 !important; }
.vtw-options .btn-share.active { color: var(--y-accent) !important; }

.vtw-desc { position: relative; background: var(--y-soft) !important; border-radius: 12px; padding: 12px; margin: 0 0 24px; font-size: 14px; line-height: 20px; color: var(--y-fg); cursor: pointer; transition: background .15s; }
.vtw-desc:hover { background: var(--y-soft2) !important; }
.vtw-desc.is-open { cursor: default; }
.vtw-desc.is-open:hover { background: var(--y-soft) !important; }
.vtw-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-weight: 600; margin-bottom: 4px; }
.vtw-meta__long { display: none; }
.vtw-desc.is-open .vtw-meta__long { display: inline; }
.vtw-desc.is-open .vtw-meta__short { display: none; }
.vtw-tag { color: var(--vt-link, #065fd4) !important; font-weight: 500; }
.vtw-desc__body { max-height: 40px; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.vtw-desc__body br { content: ""; }
.vtw-desc__body a { color: var(--vt-link, #065fd4) !important; }
.vtw-desc.is-open .vtw-desc__body { max-height: none; }
.vtw-desc__cat { display: none; margin-top: 16px; color: var(--y-fg2); font-size: 14px; }
.vtw-desc__cat svg { vertical-align: -2px; }
.vtw-desc__cat a { color: var(--y-fg) !important; font-weight: 600; }
.vtw-desc.is-open .vtw-desc__cat { display: block; }
.vtw-desc__toggle { display: inline; border: 0; background: none; padding: 0; margin-top: 4px; font-weight: 600; color: var(--y-fg); cursor: pointer; font-size: 14px; }
.vtw-less, .vtw-desc.is-open .vtw-more { display: none; }
.vtw-desc.is-open .vtw-less { display: inline; }
.vtw-desc.is-open .vtw-desc__toggle { display: block; margin-top: 16px; }

/* Comment composer: avatar + underlined field, buttons below (no overlap) */
html.vt-studio .vtw-cbox, html.vt-next .vtw-cbox { display: flex !important; align-items: flex-start !important; gap: 16px !important; padding: 0 !important; margin: 0 0 32px !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; position: relative; }
.vtw-cbox__avatar { width: 40px !important; height: 40px !important; border-radius: 50% !important; object-fit: cover; flex: none; position: static !important; margin: 0 !important; }
.vtw-cbox__main { flex: 1; min-width: 0; }
html.vt-studio .vtw-cbox textarea, html.vt-next .vtw-cbox textarea { width: 100% !important; min-height: 24px !important; height: auto; padding: 4px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--y-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--y-fg) !important; font-size: 14px !important; line-height: 20px !important; resize: none; position: static !important; }
html.vt-studio .vtw-cbox textarea:focus, html.vt-next .vtw-cbox textarea:focus { border-bottom: 2px solid var(--y-fg) !important; outline: none; }
html.vt-studio .vtw-cbox:focus-within, html.vt-next .vtw-cbox:focus-within { box-shadow: none !important; }
.vtw-cbox__bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.vtw-cbox__spacer { flex: 1; }
html.vt-studio .vtw-cbox .add-emoticons, html.vt-next .vtw-cbox .add-emoticons { position: relative !important; top: auto !important; right: auto !important; left: auto !important; margin: 0 !important; }
.vtw-cbox .add-emoticons > a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--y-fg2) !important; }
.vtw-cbox .add-emoticons > a:hover { background: var(--y-soft); }
.vtw-cbox__cancel { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--y-fg); font-weight: 600; font-size: 14px; cursor: pointer; }
.vtw-cbox__cancel:hover { background: var(--y-soft); }
html.vt-studio .vtw-cbox .vtw-cbox__send, html.vt-next .vtw-cbox .vtw-cbox__send { position: static !important; height: 36px !important; padding: 0 16px !important; border-radius: 999px !important; border: 0 !important; background: var(--vt-link, #065fd4) !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important; line-height: 36px !important; margin: 0 !important; box-shadow: none !important; }
html.vt-studio .vtw-cbox .vtw-cbox__send:hover, html.vt-next .vtw-cbox .vtw-cbox__send:hover { filter: brightness(1.08); }
.vtw-cbox .vtw-cbox__cancel, .vtw-cbox .vtw-cbox__send { display: none; }
.vtw-cbox.is-active .vtw-cbox__cancel, .vtw-cbox.is-active .vtw-cbox__send, .vtw-cbox:focus-within .vtw-cbox__cancel, .vtw-cbox:focus-within .vtw-cbox__send { display: inline-block; }

/* Everything under the player stays in the left column, below the player */
@media (min-width: 1017px) {
  html.vt-studio .video-player-page .vtw-col, html.vt-next .video-player-page .vtw-col { clear: left; }
  html.vt-studio .video-player-page > .row > .comments-content, html.vt-next .video-player-page > .row > .comments-content,
  html.vt-studio .video-player-page > .row > .ads-placment, html.vt-next .video-player-page > .row > .ads-placment,
  html.vt-studio .video-player-page > .row > hr, html.vt-next .video-player-page > .row > hr { float: left; clear: left; width: calc(100% - var(--vtw-side) - 24px) !important; }
}
.pt_video_comments .comments-header { display: flex !important; align-items: center; gap: 24px; font-size: 20px !important; font-weight: 700 !important; }
.pt_video_comments .comments-header > svg { display: none; }
.pt_video_comments .comments-header .sort-comments-dropdown { margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; }

/* Owner's own video: "Manage" pill */
.vtw-owner__buttons .btn-subscribed, .vtc-head__buttons .btn-subscribed { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px !important; background: var(--y-soft) !important; color: var(--y-fg) !important; font-size: 14px; font-weight: 600; border: 0 !important; box-shadow: none !important; text-transform: none !important; }
.vtw-owner__buttons .btn-subscribed:hover { background: var(--y-soft2) !important; }
.vtw-owner__buttons .subs-amount { display: none !important; }
html.vt-studio .vtw-actions .video-likes, html.vt-next .vtw-actions .video-likes { position: static !important; width: auto !important; left: auto !important; right: auto !important; top: auto !important; }
html.vt-studio .vtw-actions .video-likes .like-btn, html.vt-next .vtw-actions .video-likes .like-btn { position: static !important; width: auto !important; }

/* PlayTube's real subscribe buttons are .btn-subscribe / .btn-subscribed */
html.vt-studio .vtc-head__buttons .btn-subscribe, html.vt-next .vtc-head__buttons .btn-subscribe,
html.vt-studio .vtw-owner__buttons .btn-subscribe, html.vt-next .vtw-owner__buttons .btn-subscribe,
html.vt-studio .vtc-head__buttons .btn-subscribed, html.vt-next .vtc-head__buttons .btn-subscribed,
html.vt-studio .vtw-owner__buttons .btn-subscribed, html.vt-next .vtw-owner__buttons .btn-subscribed,
html.vt-studio .vtc-head__buttons .btn-pay_subscribe, html.vt-next .vtc-head__buttons .btn-pay_subscribe {
  display: inline-flex !important; align-items: center; height: 36px !important; padding: 0 16px !important; margin: 0 !important;
  border-radius: 999px !important; border: 0 !important; box-shadow: none !important; font-size: 14px !important; font-weight: 600 !important;
  line-height: 36px !important; text-transform: none !important; white-space: nowrap; cursor: pointer; width: auto !important; min-width: 0 !important;
}
html.vt-studio .vtc-head__buttons .btn-subscribe, html.vt-next .vtc-head__buttons .btn-subscribe,
html.vt-studio .vtw-owner__buttons .btn-subscribe, html.vt-next .vtw-owner__buttons .btn-subscribe { background: var(--y-fg) !important; color: var(--y-bg) !important; }
html.vt-studio .vtc-head__buttons .btn-subscribed, html.vt-next .vtc-head__buttons .btn-subscribed,
html.vt-studio .vtw-owner__buttons .btn-subscribed, html.vt-next .vtw-owner__buttons .btn-subscribed { background: var(--y-soft) !important; color: var(--y-fg) !important; }
.vtc-head__buttons .subs-amount, .vtw-owner__buttons .subs-amount { display: none !important; }
html.vt-studio .vtw-owner__buttons .prof_blck_btn, html.vt-next .vtw-owner__buttons .prof_blck_btn,
html.vt-studio .vtc-bell .prof_blck_btn, html.vt-next .vtc-bell .prof_blck_btn { width: 36px !important; padding: 0 !important; justify-content: center; }
.vtc-sub, .vtc-bell { display: flex; }

/* Theme base CSS pins every comment-box button to the right edge (position:absolute) -
   put Cancel and Publish back in the row, and open the emoji panel under its icon. */
html.vt-studio .vtw-cbox button, html.vt-next .vtw-cbox button { position: static !important; right: auto !important; bottom: auto !important; transform: none !important; }
html.vt-studio .vtw-cbox .vtw-cbox__cancel, html.vt-next .vtw-cbox .vtw-cbox__cancel { background: transparent !important; color: var(--y-fg) !important; height: 36px !important; line-height: 36px !important; padding: 0 16px !important; border-radius: 999px !important; font-weight: 600 !important; font-size: 14px !important; margin: 0 !important; }
html.vt-studio .vtw-cbox .vtw-cbox__cancel:hover, html.vt-next .vtw-cbox .vtw-cbox__cancel:hover { background: var(--y-soft) !important; }
html.vt-studio .vtw-cbox .add-emoticons .dropdown-menu, html.vt-next .vtw-cbox .add-emoticons .dropdown-menu { left: 0 !important; right: auto !important; top: 100% !important; bottom: auto !important; margin-top: 4px; transform: none !important; background: var(--vt-raised, var(--y-bg)) !important; border: 1px solid var(--y-line) !important; border-radius: 12px !important; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .35) !important; padding: 8px !important; z-index: 60; }

/* Likes + Share / Embed / ... stay on one line (scroll sideways if the column is narrow) */
.vtw-row { flex-wrap: wrap; }
.vtw-actions { flex: 1 1 auto; justify-content: flex-start; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
.vtw-actions::-webkit-scrollbar { display: none; }
.vtw-options { flex: none; }
.vtw-actions > :first-child { margin-left: auto !important; }
@media (max-width: 1300px) { .vtw-actions { flex-basis: 100%; } .vtw-actions > :first-child { margin-left: 0 !important; } }
