@charset "UTF-8";
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 Here we are getting some Peertube variables (see _variables.scss in Peertube source code):
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
.peertube-plugin-livechat-experimental,
.peertube-plugin-livechat-warning {
  color: orange;
}

.peertube-plugin-livechat-error {
  color: red;
}

.peertube-plugin-livechat-error-message {
  /* display an error block (page not found, ...) */
  display: block;
  font-size: 20px;
  padding-top: 50px;
  text-align: center;
  width: 100%;
}

.peertube-plugin-livechat-container .peertube-plugin-livechat-error-message {
  max-width: 30vw;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* We are disabling stylelint-disable custom-property-pattern so we can use Peertube var without warnings. */
/* stylelint-disable custom-property-pattern */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* We are disabling stylelint-disable custom-property-pattern so we can use Peertube var without warnings. */
/* stylelint-disable custom-property-pattern */
/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* We are disabling stylelint-disable custom-property-pattern so we can use Peertube var without warnings. */
/* stylelint-disable custom-property-pattern */
livechat-dynamic-table-form {
  display: block;
  margin-bottom: 3rem;
}
livechat-dynamic-table-form table {
  table-layout: fixed;
  text-align: center;
}
livechat-dynamic-table-form table tr {
  border: 1px var(--bg-secondary-400, var(--greyBackgroundColor)) solid;
}
livechat-dynamic-table-form table td,
livechat-dynamic-table-form table th {
  word-wrap: break-word;
  vertical-align: top;
  padding: 5px 7px;
}
livechat-dynamic-table-form table td:last-child {
  vertical-align: middle;
  min-width: 28px;
}
livechat-dynamic-table-form table td:last-child > input:not([type=checkbox]),
livechat-dynamic-table-form table td:last-child textarea {
  min-width: 150px;
}
livechat-dynamic-table-form table tbody tr:nth-child(odd) {
  background-color: var(--bg-secondary-300, var(--greySecondaryBackgroundColor));
}
livechat-dynamic-table-form table .livechat-dynamic-table-form-description-header {
  font-size: small;
  font-weight: lighter;
}
livechat-dynamic-table-form .dynamic-table-add-row-cell {
  text-align: left;
}
livechat-dynamic-table-form .dynamic-table-add-row {
  line-height: 19px;
  padding: 4px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  background-color: var(--bs-green);
}
livechat-dynamic-table-form .dynamic-table-add-row, livechat-dynamic-table-form .dynamic-table-add-row:active, livechat-dynamic-table-form .dynamic-table-add-row:focus {
  color: #fff;
  background-color: rgb(63.7604651163, 228.1953488372, 12.3046511628);
}
livechat-dynamic-table-form .dynamic-table-add-row:focus, livechat-dynamic-table-form .dynamic-table-add-row.focus-visible {
  box-shadow: 0 0 0 0.2rem rgb(113.1674418605, 245.1255813953, 71.8744186047);
}
livechat-dynamic-table-form .dynamic-table-add-row:hover {
  color: #fff;
  background-color: rgb(75.688372093, 242.5162790698, 23.4837209302);
}
livechat-dynamic-table-form .dynamic-table-add-row[disabled], livechat-dynamic-table-form .dynamic-table-add-row.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}
livechat-dynamic-table-form .dynamic-table-remove-row {
  line-height: 19px;
  padding: 4px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  background-color: var(--bs-orange);
}
livechat-dynamic-table-form .dynamic-table-remove-row, livechat-dynamic-table-form .dynamic-table-remove-row:active, livechat-dynamic-table-form .dynamic-table-remove-row:focus {
  color: #fff;
  background-color: var(--primary, var(--mainColor));
}
livechat-dynamic-table-form .dynamic-table-remove-row:focus, livechat-dynamic-table-form .dynamic-table-remove-row.focus-visible {
  box-shadow: 0 0 0 0.2rem var(--mainHoverColor);
}
livechat-dynamic-table-form .dynamic-table-remove-row:hover {
  color: #fff;
  background-color: var(--fg-400, var(--mainHoverColor));
}
livechat-dynamic-table-form .dynamic-table-remove-row[disabled], livechat-dynamic-table-form .dynamic-table-remove-row.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-error {
  color: red;
  display: block;
  padding: 50px;
  text-align: center;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-help-button a {
  height: 18px !important;
  margin: 2px !important;
  padding: 1px !important;
  vertical-align: middle;
}
livechat-help-button svg {
  display: block;
  height: auto;
}

/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* stylelint-disable custom-property-pattern */
livechat-image-file-input img {
  cursor: pointer;
  max-height: 3em !important;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-share-chat {
  display: block;
  text-align: start;
}
livechat-share-chat > * {
  margin-top: 10px;
}
livechat-share-chat .sub-menu-entry {
  cursor: pointer;
}
livechat-share-chat .livechat-shareurl-copy {
  display: flex;
  flex-wrap: wrap;
}
livechat-share-chat .livechat-shareurl-copy button {
  white-space: nowrap;
}
livechat-share-chat .livechat-shareurl-copy input {
  flex-grow: 2;
  width: auto !important;
}
livechat-share-chat .livechat-shareurl-block {
  height: 300px;
  overflow-y: scroll;
}
livechat-share-chat .livechat-shareurl-options input[type=checkbox],
livechat-share-chat .livechat-shareurl-options input[type=radio] {
  margin-right: 20px;
}
livechat-share-chat .livechat-shareurl-options label {
  display: block;
}
livechat-share-chat .livechat-shareurl-options .livechat-shareurl-suboptions {
  margin-left: 40px;
}
livechat-share-chat .livechat-shareurl-options .livechat-shareurl-suboptions > * {
  display: block;
}
livechat-share-chat .livechat-shareurl-options .livechat-shareurl-suboptions.livechat-shareurl-suboptions-disabled label {
  /* stylelint-disable-next-line custom-property-pattern */
  color: var(--fg-400, var(--greyForegroundColor));
}
livechat-share-chat .livechat-shareurl-protocol {
  display: flex;
  flex-flow: row wrap;
  column-gap: 30px;
}
livechat-share-chat .livechat-shareurl-protocol input[type=radio] {
  margin-right: 10px;
}
livechat-share-chat .livechat-shareurl-tips {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-spinner,
.livechat-spinner {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
livechat-spinner div,
.livechat-spinner div {
  width: 48px;
  height: 48px;
  margin: 20px;
  /* stylelint-disable-next-line custom-property-pattern */
  border: 5px solid var(--bg-secondary-400, var(--greyBackgroundColor)) !important;
  /* stylelint-disable-next-line custom-property-pattern */
  border-bottom-color: var(--primary, var(--mainColor)) !important;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: livechatrotating 1s linear infinite;
}
@keyframes livechatrotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* stylelint-disable custom-property-pattern */
livechat-tags-input {
  --tag-padding-vertical: 3px;
  --tag-padding-horizontal: 6px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 320px;
  /* stylelint-disable-next-line no-descending-specificity */
}
livechat-tags-input .livechat-tags-container {
  align-items: center;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}
livechat-tags-input input {
  flex: 1;
  border: none;
  padding: 0;
  color: inherit;
  background-color: inherit;
  width: 100%;
  /* stylelint-disable-next-line no-descending-specificity */
}
livechat-tags-input input:focus {
  outline: transparent;
}
livechat-tags-input .livechat-tags,
livechat-tags-input .livechat-tags-searched {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: var(--tag-padding-vertical) 0;
  max-height: 150px;
  overflow-y: auto;
  transition-property: height, margin;
  transition-duration: 0.3s;
}
@supports (scrollbar-width: auto) {
  livechat-tags-input .livechat-tags,
  livechat-tags-input .livechat-tags-searched {
    scrollbar-color: var(--fg-400, var(--greyForegroundColor)) transparent;
    scrollbar-width: thin;
  }
}
livechat-tags-input .livechat-tags-container,
livechat-tags-input .livechat-tags-searched {
  border-bottom: 1px dashed var(--fg-400, var(--greyForegroundColor));
}
livechat-tags-input .livechat-tags-container.livechat-empty,
livechat-tags-input .livechat-tags-searched.livechat-empty {
  height: 0;
  margin: 0;
  border: none;
}
livechat-tags-input .livechat-tags-searched::after {
  content: "🔍";
  flex-grow: 1;
  text-align: right;
}
livechat-tags-input .livechat-tags-searched.livechat-empty::after {
  display: none;
}
livechat-tags-input .livechat-tag,
livechat-tags-input .livechat-tag-searched {
  width: auto;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 var(--tag-padding-horizontal);
  font-size: 14px;
  list-style: none;
  border-radius: 3px;
  margin: 0 3px 3px 0;
  transition: 0.3s filter;
}
livechat-tags-input .livechat-tag .livechat-tag-close,
livechat-tags-input .livechat-tag-searched .livechat-tag-close {
  display: block;
  width: 12px;
  height: 12px;
  line-height: 12px;
  text-align: center;
  font-size: 10px;
  margin-left: var(--tag-padding-horizontal);
  color: var(--primary, var(--mainColor));
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
livechat-tags-input .livechat-tag .livechat-tag-close::before,
livechat-tags-input .livechat-tag-searched .livechat-tag-close::before {
  content: "✕";
}
livechat-tags-input .livechat-tag, livechat-tags-input .livechat-tag:active, livechat-tags-input .livechat-tag:focus,
livechat-tags-input .livechat-tag-searched,
livechat-tags-input .livechat-tag-searched:active,
livechat-tags-input .livechat-tag-searched:focus {
  color: #fff;
  background-color: var(--primary, var(--mainColor));
}
livechat-tags-input .livechat-tag .livechat-tag-close, livechat-tags-input .livechat-tag:active .livechat-tag-close, livechat-tags-input .livechat-tag:focus .livechat-tag-close,
livechat-tags-input .livechat-tag-searched .livechat-tag-close,
livechat-tags-input .livechat-tag-searched:active .livechat-tag-close,
livechat-tags-input .livechat-tag-searched:focus .livechat-tag-close {
  color: var(--primary, var(--mainColor));
}
livechat-tags-input .livechat-tag:hover,
livechat-tags-input .livechat-tag-searched:hover {
  color: #fff;
  background-color: var(--fg-400, var(--mainHoverColor));
}
livechat-tags-input .livechat-tag:hover .livechat-tag-close,
livechat-tags-input .livechat-tag-searched:hover .livechat-tag-close {
  color: var(--fg-400, var(--mainHoverColor));
}
livechat-tags-input .livechat-tag[disabled], livechat-tags-input .livechat-tag.disabled,
livechat-tags-input .livechat-tag-searched[disabled],
livechat-tags-input .livechat-tag-searched.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}
livechat-tags-input .livechat-tag[disabled] .livechat-tag-close, livechat-tags-input .livechat-tag.disabled .livechat-tag-close,
livechat-tags-input .livechat-tag-searched[disabled] .livechat-tag-close,
livechat-tags-input .livechat-tag-searched.disabled .livechat-tag-close {
  color: var(--input-border-color, var(--inputBorderColor));
}
livechat-tags-input .livechat-tag .livechat-tag-name,
livechat-tags-input .livechat-tag-searched .livechat-tag-name {
  margin-top: 3px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 250px;
}
livechat-tags-input .livechat-tags.livechat-unfocused .livechat-tag {
  filter: opacity(50%) grayscale(80%);
}

/*
 * SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* We are disabling stylelint-disable custom-property-pattern so we can use Peertube var without warnings. */
/* stylelint-disable custom-property-pattern */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-token-list table {
  width: 100%;
  table-layout: fixed;
  text-align: center;
}
livechat-token-list table tr {
  border: 1px var(--bg-secondary-400, var(--greyBackgroundColor)) solid;
}
livechat-token-list table td,
livechat-token-list table th {
  word-wrap: break-word;
  vertical-align: top;
  padding: 5px 7px;
}
livechat-token-list table td:last-child {
  vertical-align: middle;
  min-width: 28px;
}
livechat-token-list table td:last-child > input:not([type=checkbox]),
livechat-token-list table td:last-child textarea {
  min-width: 150px;
}
livechat-token-list table tbody tr:nth-child(odd) {
  background-color: var(--bg-secondary-300, var(--greySecondaryBackgroundColor));
}
livechat-token-list table tr th:first-child,
livechat-token-list table tr th:last-child {
  width: 50px;
}
livechat-token-list table label {
  font-weight: inherit;
}
livechat-token-list .livechat-create-token {
  line-height: 19px;
  padding: 4px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  background-color: var(--bs-green);
}
livechat-token-list .livechat-create-token, livechat-token-list .livechat-create-token:active, livechat-token-list .livechat-create-token:focus {
  color: #fff;
  background-color: rgb(63.7604651163, 228.1953488372, 12.3046511628);
}
livechat-token-list .livechat-create-token:focus, livechat-token-list .livechat-create-token.focus-visible {
  box-shadow: 0 0 0 0.2rem rgb(113.1674418605, 245.1255813953, 71.8744186047);
}
livechat-token-list .livechat-create-token:hover {
  color: #fff;
  background-color: rgb(75.688372093, 242.5162790698, 23.4837209302);
}
livechat-token-list .livechat-create-token[disabled], livechat-token-list .livechat-create-token.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}
livechat-token-list .livechat-revoke-token {
  line-height: 19px;
  padding: 4px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  background-color: var(--bs-orange);
}
livechat-token-list .livechat-revoke-token, livechat-token-list .livechat-revoke-token:active, livechat-token-list .livechat-revoke-token:focus {
  color: #fff;
  background-color: var(--primary, var(--mainColor));
}
livechat-token-list .livechat-revoke-token:focus, livechat-token-list .livechat-revoke-token.focus-visible {
  box-shadow: 0 0 0 0.2rem var(--mainHoverColor);
}
livechat-token-list .livechat-revoke-token:hover {
  color: #fff;
  background-color: var(--fg-400, var(--mainHoverColor));
}
livechat-token-list .livechat-revoke-token[disabled], livechat-token-list .livechat-revoke-token.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
#peertube-plugin-livechat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#peertube-plugin-livechat-container .chatroom .box-flyout .chatroom-body .occupants {
  min-width: min(200px, 50%);
}

/* Note: livechat-viewer-mode-content (the form where anonymous users can
    choose nickname or log in with external account), can be something like
    ~180px height (at time of writing).
    We must ensure that the px height limit for converse-muc and converse-root is
    always higher than livechat-viewer-mode-content max size.
  Note: We also must ensure that when the user has choosen its nickname, and there is an
    ongoing poll, the user can see the chat when the poll is folded.
*/
#peertube-plugin-livechat-container converse-root {
  display: block;
  border: 1px solid black;
  min-height: max(30vh, 300px);
  height: 100%;
  min-width: min(400px, 25vw);
}
#peertube-plugin-livechat-container converse-root converse-muc {
  min-height: max(30vh, 300px);
}
@media screen and (orientation: portrait) and (width <= 767px) {
  #peertube-plugin-livechat-container converse-root {
    /* On small screen, and when portrait mode, we are giving the chat more vertical space.
        It should go under the video.
     */
    min-height: max(50vh, 300px);
  }
  #peertube-plugin-livechat-container converse-root converse-muc {
    min-height: max(50vh, 300px);
  }
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
.peertube-plugin-livechat-buttons,
.livechat-mini-muc-bar-buttons {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  padding-right: 12px !important;
}

.peertube-plugin-livechat-button {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 36px !important;
  margin: 5px !important;
  padding: 2px !important;
}
.peertube-plugin-livechat-button svg {
  height: auto;
}

.peertube-plugin-livechat-buttons-open .peertube-plugin-livechat-button,
.livechat-mini-muc-bar-buttons .peertube-plugin-livechat-button {
  height: 18px !important;
  margin: 2px !important;
  padding: 1px !important;
}

.peertube-plugin-livechat-buttons-cloned {
  display: none;
}

[peertube-plugin-livechat-state=initializing] {
  display: none;
}

[peertube-plugin-livechat-state=open] .peertube-plugin-livechat-button-open {
  display: none;
}

[peertube-plugin-livechat-state=closed] .peertube-plugin-livechat-button-promote,
[peertube-plugin-livechat-state=closed] .peertube-plugin-livechat-button-close {
  display: none;
}

[peertube-plugin-livechat-state]:not([peertube-plugin-livechat-state=open]) .peertube-plugin-livechat-multi-button-main {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-right: 0 !important;
}
[peertube-plugin-livechat-state]:not([peertube-plugin-livechat-state=open]) .peertube-plugin-livechat-multi-button-secondary {
  border-radius: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  border-left: 1px solid currentcolor;
}
[peertube-plugin-livechat-state]:not([peertube-plugin-livechat-state=open]) .peertube-plugin-livechat-multi-button-last-secondary {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin-left: 0 !important;
  border-left: 1px solid currentcolor;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* stylelint-disable custom-property-pattern */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
livechat-channel-tabs {
  display: block;
  /* See Peertube sub-menu-h1 mixin */
  margin-bottom: 30px;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* stylelint-disable custom-property-pattern */
livechat-configuration-section-header {
  margin-top: 3rem;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
  These are styles to apply for the channel configuration pages.
*/
.peertube-plugin-livechat-configuration {
  /* Channel configuration page */
  /* Channel selection page */
}
.peertube-plugin-livechat-configuration h1 {
  padding-top: 40px;
  /* See Peertube sub-menu-h1 mixin */
  font-size: 1.3rem;
  border-bottom: 2px solid var(--bg-secondary-400, var(--greyBackgroundColor));
  padding-bottom: 15px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-channel-info {
  /* stylelint-disable-next-line value-keyword-case */
  color: var(--fg, var(--mainForegroundColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-channel-info span:first-child {
  /* See Peertube .video-channel-display-name */
  font-weight: 600;
  font-size: 18px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-channel-info span:not(:first-child) {
  /* See Peertube .video-channel-name */
  margin-left: 5px;
  font-size: 14px;
  color: #777272;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel h2 {
  text-transform: uppercase;
  color: var(--primary, var(--mainColor));
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy {
  line-height: 19px;
  padding: 4px 13px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit], .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit]:active, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit]:focus,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit]:active,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit]:focus,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button:active,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button:focus,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy:active,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy:focus {
  color: #fff;
  background-color: var(--primary, var(--mainColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit]:hover,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit]:hover,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button:hover,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy:hover {
  color: #fff;
  background-color: var(--fg-400, var(--mainHoverColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit][disabled], .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=submit].disabled,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit][disabled],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=submit].disabled,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button[disabled],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-configuration-actions button.disabled,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy[disabled],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel .peertube-plugin-livechat-tags-input-copy.disabled {
  cursor: default;
  color: #fff;
  background-color: var(--input-border-color, var(--inputBorderColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset] {
  background-color: var(--bg-secondary-400, var(--greyBackgroundColor));
  color: var(--fg-400, var(--greyForegroundColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset]:hover, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset]:active, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset]:focus, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset][disabled], .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset].disabled,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset]:hover,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset]:active,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset]:focus,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset][disabled],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset].disabled {
  color: var(--fg-400, var(--greyForegroundColor));
  background-color: var(--bg-secondary-300, var(--greySecondaryBackgroundColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset][disabled], .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel input[type=reset].disabled,
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset][disabled],
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-channel button[type=reset].disabled {
  cursor: default;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels {
  list-style-type: none;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li {
  align-items: center;
  gap: 15px;
  /* See Peertube row-blocks mixin, used in video-channel */
  display: flex;
  min-height: 130px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  /* stylelint-disable-next-line value-keyword-case */
  border-bottom: 1px solid var(--inputBorderColor);
}
@media screen and (max-width: 800px) {
  .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li {
    flex-direction: column;
    height: auto;
    align-items: center;
  }
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .avatar {
  /* See Peertube CSS, class avatar and avatar-80 */
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .avatar.channel {
  border-radius: 5px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .avatar.initial {
  /* See Peertube actor-avatar.component.scss */
  background-color: #3c2109;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--initialFontSize);
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .avatar.initial.gray {
  background-color: #939393;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info {
  flex-grow: 1;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a {
  /* See Peertube .video-channel-names */
  width: fit-content;
  display: flex;
  align-items: baseline;
  /* stylelint-disable-next-line value-keyword-case */
  color: var(--fg, var(--mainForegroundColor));
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a:hover, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a:focus, .peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a:active {
  text-decoration: none !important;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a:focus:not(.focus-visible) {
  outline: none !important;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a div:first-child {
  /* See Peertube .video-channel-display-name */
  font-weight: 600;
  font-size: 18px;
}
.peertube-plugin-livechat-configuration.peertube-plugin-livechat-configuration-home ul.peertube-plugin-livechat-configuration-home-channels li .peertube-plugin-livechat-configuration-home-info a div:not(:first-child) {
  /* See Peertube .video-channel-name */
  margin-left: 5px;
  font-size: 14px;
  color: #777272;
}
.peertube-plugin-livechat-configuration .peertube-livechat-emojis-col-sn {
  width: 30%;
}
.peertube-plugin-livechat-configuration .peertube-livechat-emojis-col-file {
  width: 65%;
}
.peertube-plugin-livechat-configuration .peertube-plugin-livechat-configuration-actions {
  margin-bottom: 1rem;
  text-align: right;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
/* stylelint-disable custom-property-pattern */
.peertube-plugin-livechat-admin-firewall h1 {
  padding-top: 40px;
  /* See Peertube sub-menu-h1 mixin */
  font-size: 1.3rem;
  border-bottom: 2px solid var(--bg-secondary-400, var(--greyBackgroundColor));
  padding-bottom: 15px;
}
.peertube-plugin-livechat-admin-firewall textarea[name^=_content_] {
  min-height: 10rem;
}
.peertube-plugin-livechat-admin-firewall input[type=submit],
.peertube-plugin-livechat-admin-firewall input[type=reset],
.peertube-plugin-livechat-admin-firewall button[type=submit],
.peertube-plugin-livechat-admin-firewall button[type=reset] {
  line-height: 19px;
  padding: 4px 13px;
  border: 0;
  font-weight: 600;
  border-radius: 3px !important;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
}
.peertube-plugin-livechat-admin-firewall input[type=submit], .peertube-plugin-livechat-admin-firewall input[type=submit]:active, .peertube-plugin-livechat-admin-firewall input[type=submit].active, .peertube-plugin-livechat-admin-firewall input[type=submit]:focus,
.peertube-plugin-livechat-admin-firewall button[type=submit],
.peertube-plugin-livechat-admin-firewall button[type=submit]:active,
.peertube-plugin-livechat-admin-firewall button[type=submit].active,
.peertube-plugin-livechat-admin-firewall button[type=submit]:focus {
  color: var(--on-primary, #fff);
  background-color: var(--primary, var(--mainColor));
  border: 1px solid var(--primary, var(--mainColor));
}
.peertube-plugin-livechat-admin-firewall input[type=submit]:hover,
.peertube-plugin-livechat-admin-firewall button[type=submit]:hover {
  color: var(--on-primary, #fff);
  background-color: var(--primary-400, var(--mainHoverColor));
}
.peertube-plugin-livechat-admin-firewall input[type=submit][disabled],
.peertube-plugin-livechat-admin-firewall button[type=submit][disabled] {
  pointer-events: none;
  opacity: 0.6;
}
.peertube-plugin-livechat-admin-firewall input[type=reset],
.peertube-plugin-livechat-admin-firewall button[type=reset] {
  color: var(--fg, var(--mainForegroundColor));
  background-color: transparent;
  border: 1px solid var(--bg-secondary-500, var(--inputBorderColor)) !important;
}
.peertube-plugin-livechat-admin-firewall input[type=reset]:active, .peertube-plugin-livechat-admin-firewall input[type=reset].active, .peertube-plugin-livechat-admin-firewall input[type=reset]:focus, .peertube-plugin-livechat-admin-firewall input[type=reset]:focus-visible,
.peertube-plugin-livechat-admin-firewall button[type=reset]:active,
.peertube-plugin-livechat-admin-firewall button[type=reset].active,
.peertube-plugin-livechat-admin-firewall button[type=reset]:focus,
.peertube-plugin-livechat-admin-firewall button[type=reset]:focus-visible {
  color: var(--fg, var(--mainForegroundColor));
  background-color: var(--bg-secondary-500, var(--inputBorderColor));
  border-color: var(--bg-secondary-500, var(--inputBorderColor));
}
.peertube-plugin-livechat-admin-firewall input[type=reset]:hover,
.peertube-plugin-livechat-admin-firewall button[type=reset]:hover {
  color: var(--fg, var(--mainForegroundColor));
  background-color: var(--bg-secondary-450, var(--inputBorderColor));
}
.peertube-plugin-livechat-admin-firewall input[type=reset][disabled],
.peertube-plugin-livechat-admin-firewall button[type=reset][disabled] {
  pointer-events: none;
  opacity: 0.8;
}
.peertube-plugin-livechat-admin-firewall .peertube-livechat-admin-firewall-col-name {
  width: 25%;
}
.peertube-plugin-livechat-admin-firewall .peertube-livechat-admin-firewall-col-content {
  width: 65%;
}

/*
 * SPDX-FileCopyrightText: 2024-2025 John Livingston <https://www.john-livingston.fr/>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */
table.peertube-plugin-livechat-prosody-list-rooms {
  border: 1px solid black;
  margin: 5px 0;
}

table.peertube-plugin-livechat-prosody-list-rooms tr:nth-child(odd) {
  background-color: #eee;
}

table.peertube-plugin-livechat-prosody-list-rooms tr:nth-child(even) {
  background-color: #fff;
}

table.peertube-plugin-livechat-prosody-list-rooms th {
  /* stylelint-disable-next-line custom-property-pattern */
  background-color: var(--fg-400, var(--mainHoverColor));
  border: 1px solid black;
  /* stylelint-disable-next-line custom-property-pattern */
  color: var(--mainBackgroundColor);
  padding: 4px 5px;
}

table.peertube-plugin-livechat-prosody-list-rooms td {
  border: 1px solid #555;
  color: black;
  padding: 4px 5px;
}


/* ===== HAUMY TV UI simplifications (plugin peertube-plugin-haumy-tv) ===== */

/* --- header upload button --- */
#haumy-upload-btn { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; padding: 7px 14px; border-radius: 20px;
  background: #E53935; color: #fff !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
#haumy-upload-btn:hover { background: #c62828; }
@media (max-width: 600px) { #haumy-upload-btn { padding: 7px 9px; margin-right: 6px; } #haumy-upload-btn span { display: none; } }
/* menu "Опубликовать" button: prominent */
#left-menu .publish-button { background: #E53935 !important; color: #fff !important; border-color: #E53935 !important; font-weight: 700; }

/* --- menu: hide rarely used entries --- */
a[href="/videos/overview"],                                      /* "Обзор" tab duplicates home */
a[href="/my-library/video-imports"],
a[href="/my-library/video-channel-syncs"],
a[href="/my-library/ownership"] { display: none !important; }
li:has(> a[href="/videos/overview"]) { display: none !important; }
/* livechat config: admins/moderators only */
body:not(.haumy-admin) #left-menu li:has(> a[href^="/p/livechat"]),
body:not(.haumy-admin) #left-menu a[href^="/p/livechat"] { display: none !important; }

/* --- upload: only "Загрузить файл" tab (imports & live are disabled) --- */
.video-add-nav .unavailable-nav-link { display: none !important; }
.video-add-nav { border-bottom: 0; }

/* --- upload/edit form: hide advanced fields unless "Дополнительно" is open --- */
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="label-tags"]),
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="support"]),
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="licence"]),
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="category"]),
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="language"]),
body.haumy-edit:not(.haumy-adv) my-peertube-checkbox[inputname="waitTranscoding"],
body.haumy-edit:not(.haumy-adv) .form-group:has(> label[for="description"]) > .form-group-description,
body.haumy-edit:not(.haumy-adv) .danger-zone .form-group:has(> label[for="deleteVideo"]),
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/customization"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/moderation"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/captions"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/chapters"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/live-settings"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/studio"],
body.haumy-edit:not(.haumy-adv) my-video-manage-menu a[href*="/replace-file"],
body.haumy-edit my-video-manage-menu li:has(.pt-badge),
body.haumy-edit my-video-manage-menu .ul-unstyle > :has(.pt-badge) { display: none !important; }
body.haumy-edit:not(.haumy-adv) my-video-manage-menu .separator,
body.haumy-edit:not(.haumy-adv) my-video-manage-menu hr { display: none !important; }
#haumy-adv-toggle { margin: 8px 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#haumy-adv-toggle .haumy-adv-hint { font-size: 13px; opacity: .7; }
body.haumy-adv #haumy-adv-toggle .haumy-adv-hint { display: none; }

/* --- one-screen signup (replaces the 5-step wizard) --- */
body.haumy-signup-page my-register { display: none !important; }
#haumy-signup-wrap { max-width: 440px; margin: 24px auto 48px; padding: 0 16px; }
#haumy-signup-wrap h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
#haumy-signup .hs-sub { opacity: .75; margin-bottom: 18px; }
#haumy-signup label { display: block; font-weight: 600; margin-bottom: 14px; }
#haumy-signup input:not([type=checkbox]), #haumy-signup textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.2); border-radius: 8px; font: inherit; font-weight: 400; background: var(--input-bg, #fff); color: inherit; }
#haumy-signup small { display: block; font-weight: 400; opacity: .65; margin-top: 4px; }
#haumy-signup .hs-reason { margin-bottom: 14px; }
#haumy-signup .hs-reason summary { cursor: pointer; opacity: .8; }
#haumy-signup .hs-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
#haumy-signup .hs-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
#haumy-signup .hs-error { color: #c62828; min-height: 1.2em; margin: 4px 0 10px; }
#haumy-signup button[type=submit], #haumy-signup-done .peertube-button { width: 100%; padding: 12px; font-size: 16px; font-weight: 700; text-align: center; display: block; }
#haumy-signup .hs-login { text-align: center; margin-top: 14px; }

/* --- Шортс page title --- */
#haumy-shorts-title { font-size: 24px; font-weight: 700; margin: 8px 0 12px; }
body.haumy-signup-page #haumy-app-banner { display: none !important; }

/* ===== Шортс feed (/p/shorts) ===== */
body.haumy-shorts-open { overflow: hidden !important; }
body.haumy-shorts-open #haumy-app-banner, body.haumy-shorts-open #haumy-bottom-nav { display: none !important; }
#haumy-shorts { position: fixed; inset: 0; z-index: 20000; background: #000; color: #fff; font-family: inherit; }
#haumy-shorts .hs-feed { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
#haumy-shorts .hs-feed::-webkit-scrollbar { display: none; }
#haumy-shorts .hs-slide { height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
#haumy-shorts .hs-stage { position: relative; height: 100%; width: 100%; background: #000; overflow: hidden; }
@media (min-width: 769px) {
  #haumy-shorts { background: #0f0f0f; }
  #haumy-shorts .hs-slide { padding: 16px 0; }
  #haumy-shorts .hs-stage { height: calc(100% - 0px); width: auto; aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 14px; }
}
#haumy-shorts video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#haumy-shorts .hs-tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
#haumy-shorts .hs-playicon { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2; pointer-events: none; opacity: .85; }
#haumy-shorts .hs-slide.hs-paused .hs-playicon { display: flex; }
#haumy-shorts .hs-mute { position: absolute; top: 64px; left: 12px; z-index: 3; display: none; align-items: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff;
  border: 0; border-radius: 18px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
#haumy-shorts .hs-mute { display: flex; }
#haumy-shorts:not(.hs-muted) .hs-mute { padding: 6px 8px; }
#haumy-shorts .hs-info { position: absolute; left: 0; right: 72px; bottom: 0; z-index: 3; padding: 60px 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
#haumy-shorts .hs-channel { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none !important; font-weight: 700; }
#haumy-shorts .hs-channel img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #333; }
#haumy-shorts .hs-title { margin-top: 8px; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#haumy-shorts .hs-actions { position: absolute; right: 6px; bottom: 24px; z-index: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; }
#haumy-shorts .hs-act { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff !important; text-decoration: none !important;
  font-size: 12px; font-weight: 600; min-width: 60px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); cursor: pointer; }
#haumy-shorts .hs-act svg { padding: 10px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); }
#haumy-shorts .hs-like.on svg { color: #fff; background: #E53935; }
#haumy-shorts .hs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 4; }
#haumy-shorts .hs-progress i { display: block; height: 100%; width: 0; background: #E53935; }
#haumy-shorts .hs-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 8px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
#haumy-shorts .hs-top > * { pointer-events: auto; }
#haumy-shorts .hs-back { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
#haumy-shorts .hs-brand { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
#haumy-shorts .hs-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 5; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 769px) { #haumy-shorts .hs-nav { display: flex; } }
#haumy-shorts .hs-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #272727; color: #fff; font-size: 16px; cursor: pointer; }
#haumy-shorts .hs-nav button:hover { background: #3f3f3f; }
#haumy-shorts .hs-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
#haumy-shorts .hs-btn { margin-top: 12px; background: #E53935; color: #fff !important; padding: 10px 22px; border-radius: 20px; font-weight: 700; text-decoration: none !important; }
#haumy-shorts .hs-toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 6; background: rgba(255,255,255,.92); color: #111; padding: 8px 16px; border-radius: 18px; font-weight: 600; }

/* ===================== YouTube-like look (HAUMY TV, original styling) ===================== */
/* palette: light by default, dark when the device prefers dark */
:root {
  --bg: #ffffff !important; --fg: #0f0f0f !important; --bg-secondary: #f2f2f2 !important;
  --on-primary: #ffffff !important;
  --menu-bg: #ffffff !important; --menu-fg: #0f0f0f !important;
  --header-bg: #ffffff !important; --header-fg: #0f0f0f !important;
  --input-bg: #f2f2f2 !important; --input-fg: #0f0f0f !important; --input-border-color: #d3d3d3 !important;
  --textarea-bg: #f2f2f2 !important; --textarea-fg: #0f0f0f !important;
  --border-secondary: #e5e5e5 !important;
  --menu-border-radius: 0px !important; --menu-margin-left: 0px !important;
  --hy-chip: #f2f2f2; --hy-chip-hover: #e5e5e5; --hy-chip-on: #0f0f0f; --hy-chip-on-fg: #fff; --hy-muted: #606060; --hy-line: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f !important; --fg: #f1f1f1 !important; --bg-secondary: #272727 !important; --is-dark: 1 !important;
    --menu-bg: #0f0f0f !important; --menu-fg: #f1f1f1 !important;
    --header-bg: #0f0f0f !important; --header-fg: #f1f1f1 !important;
    --input-bg: #121212 !important; --input-fg: #f1f1f1 !important; --input-border-color: #303030 !important;
    --input-placeholder-color: #888 !important; --input-bg-in-modal: #212121 !important;
    --textarea-bg: #121212 !important; --textarea-fg: #f1f1f1 !important;
    --border-secondary: #303030 !important;
    --hy-chip: #272727; --hy-chip-hover: #3f3f3f; --hy-chip-on: #f1f1f1; --hy-chip-on-fg: #0f0f0f; --hy-muted: #aaaaaa; --hy-line: #303030;
    color-scheme: dark;
  }
  #haumy-app-banner { background: #212121 !important; color: #f1f1f1 !important; }
}

/* header */
header.root-header { border-bottom: 0 !important; box-shadow: none !important; }
my-search-typeahead #search-video { border-radius: 40px !important; border: 1px solid var(--input-border-color) !important; padding-left: 44px !important; height: 40px; }
#haumy-search-btn { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; }
#haumy-search-btn:hover { background: var(--hy-chip); }

/* video cards grid */
my-videos-list .videos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; }
my-videos-list .videos .video-wrapper { width: auto !important; max-width: none !important; margin: 0 !important; }
my-video-miniature .video-thumbnail, my-video-miniature .video-thumbnail img, .video-thumbnail { border-radius: 12px !important; overflow: hidden; }
my-video-miniature .video-miniature:not(.display-as-row) { width: 100% !important; }
my-video-miniature .video-miniature:not(.display-as-row) my-video-thumbnail { width: 100% !important; }
my-video-miniature .video-miniature:not(.display-as-row) .video-thumbnail { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }
my-video-miniature .video-miniature:not(.display-as-row) .video-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info {
  display: grid !important; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; padding-top: 12px !important;
  grid-template-areas: "av title" "av ch" "av meta"; align-items: start; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info .owner { display: contents !important; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info my-actor-avatar { grid-area: av; --co-avatar-size: 36px !important; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info .owner-container { grid-area: ch; margin: 0 !important; min-width: 0; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info .video-name-container { grid-area: title; order: 0; margin: 0 !important; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info .date-and-views { grid-area: meta; margin: 0 !important; }
my-video-miniature .video-name { font-size: 16px !important; font-weight: 600 !important; line-height: 22px !important; color: var(--fg) !important; }
my-video-miniature .owner-label, my-video-miniature .date-and-views, my-video-miniature .date-and-views * { font-size: 14px !important; color: var(--hy-muted) !important; font-weight: 400 !important; }
my-video-miniature .duration-overlay { border-radius: 4px !important; background: rgba(0,0,0,.8) !important; font-weight: 600; font-size: 12px; }
my-video-miniature .play-overlay { display: none !important; }

/* chips row */
#haumy-chips { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; margin: 0 0 12px; position: sticky; top: var(--header-height); z-index: 10; background: var(--bg); }
#haumy-chips::-webkit-scrollbar { display: none; }
#haumy-chips a { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--hy-chip); color: var(--fg) !important;
  text-decoration: none !important; font-size: 14px; font-weight: 600; white-space: nowrap; }
#haumy-chips a svg { width: 18px; height: 18px; }
#haumy-chips a:hover { background: var(--hy-chip-hover); }
#haumy-chips a.on { background: var(--hy-chip-on); color: var(--hy-chip-on-fg) !important; }
body.haumy-home my-videos-list .videos-header,
body.haumy-home my-video-filters-header,
body.haumy-home my-videos-list .title-page { display: none !important; }

/* Шортс shelf on home */
#haumy-shelf { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 4px solid var(--hy-line); }
#haumy-shelf h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; margin: 0 0 14px; }
#haumy-shelf h2 svg { color: #E53935; width: 26px; height: 26px; }
#haumy-shelf .hsh-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
#haumy-shelf .hsh-row::-webkit-scrollbar { display: none; }
#haumy-shelf .hsh-item { flex: none; width: 210px; scroll-snap-align: start; color: var(--fg) !important; text-decoration: none !important; }
#haumy-shelf .hsh-thumb { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
#haumy-shelf .hsh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
#haumy-shelf .hsh-item:hover img { transform: scale(1.03); }
#haumy-shelf .hsh-title { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#haumy-shelf .hsh-views { font-size: 13px; color: var(--hy-muted); margin-top: 2px; }

/* left menu: flat like YouTube */
#left-menu .menu-container, .menu-container { box-shadow: none !important; }
#left-menu a.menu-link, #left-menu .menu-link { border-radius: 10px !important; }
#left-menu a.menu-link.active, #left-menu .menu-link.active { background: var(--hy-chip) !important; font-weight: 700; }

/* watch page */
my-video-watch .video-js, .player-margin-content .video-js { border-radius: 12px; overflow: hidden; }
.video-info-first-row .video-info-name, my-video-watch h1 { font-size: 20px !important; font-weight: 700 !important; line-height: 28px; }
my-subscribe-button .btn, my-subscribe-button button, my-subscribe-button .subscribe-button {
  border-radius: 20px !important; background: var(--fg) !important; color: var(--bg) !important; border: 0 !important; font-weight: 600 !important; padding: 8px 16px !important; }
my-subscribe-button .subscribed, my-subscribe-button button.subscribed { background: var(--hy-chip) !important; color: var(--fg) !important; }
.video-actions my-button button, .video-actions .action-button, my-video-rate .action-button, .video-actions .peertube-button {
  border-radius: 20px !important; background: var(--hy-chip) !important; color: var(--fg) !important; border: 0 !important; }
my-video-description .video-info-description { background: var(--hy-chip); border-radius: 12px; padding: 12px; }
my-recommended-videos .video-miniature.display-as-row .video-thumbnail { border-radius: 8px !important; }
my-privacy-concerns { display: none !important; }

/* buttons: pill shapes */
.peertube-button, .peertube-button-link { border-radius: 18px !important; }

/* bottom nav: mobile only */
#haumy-bottom-nav { display: none; }
@media (max-width: 768px) {
  body.haumy-bnav { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.haumy-bnav #haumy-app-banner { bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  #haumy-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 17600; height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--hy-line); justify-content: space-around; align-items: stretch; }
  #haumy-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--fg) !important;
    text-decoration: none !important; font-size: 10px; font-weight: 500; }
  #haumy-bottom-nav a svg { width: 24px; height: 24px; }
  #haumy-bottom-nav a.on svg { stroke-width: 2.6; }
  #haumy-bottom-nav a.on[data-k="home"] svg, #haumy-bottom-nav a.on[data-k="subs"] svg { fill: currentColor; }
  #haumy-bottom-nav a.on[data-k="subs"] svg path { stroke: var(--bg); }
  #haumy-bottom-nav a.on { font-weight: 700; }
  #haumy-bottom-nav .hb-add i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--hy-chip); border: 1px solid var(--hy-line); color: var(--fg); }
  #haumy-bottom-nav .hb-add.on i { background: #E53935; color: #fff; border-color: #E53935; }
  #haumy-bottom-nav .hb-av { display: flex; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; align-items: center; justify-content: center; }
  #haumy-bottom-nav .hb-av img { width: 100%; height: 100%; object-fit: cover; }
  #haumy-bottom-nav .hb-letter { width: 24px; height: 24px; border-radius: 50%; background: #E53935; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  #haumy-bottom-nav a.on .hb-av { outline: 2px solid var(--fg); outline-offset: 1px; }

  /* header: logo left, icons right; search opens on tap */
  my-header .settings-button, my-header .create-account-button, my-header .logged-in-container,
  my-header .toggle-menu, .toggle-menu-container, my-header #haumy-upload-btn { display: none !important; }
  #haumy-search-btn { display: inline-flex; }
  my-header .login-label a { padding: 4px 12px !important; border-radius: 18px !important; font-size: 14px; background: transparent !important; color: #065fd4 !important;
    border: 1px solid var(--hy-line) !important; }
  body:not(.haumy-search-open) my-header my-search-typeahead { display: none !important; }
  body.haumy-search-open my-header my-search-typeahead { display: block !important; position: fixed; left: 8px; right: 8px; top: 8px; z-index: 17700; }
  body.haumy-search-open my-header my-search-typeahead #search-video { width: 100% !important; background: var(--bg) !important; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
  :root { --header-height: 56px !important; --tmp-header-height: 56px !important; }
  header.root-header { height: 56px !important; }
  my-header .root { flex-wrap: nowrap !important; height: 56px; padding: 0 8px 0 12px !important; }
  my-header .peertube-title { margin-right: auto !important; }

  my-videos-list .videos { grid-template-columns: 1fr; gap: 24px; }
  my-videos-list .margin-content { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
  #haumy-chips { padding: 8px 12px; margin: 0 0 8px; top: 56px; }
  #haumy-shelf { padding: 0 12px 20px; border-bottom-width: 6px; }
  #haumy-shelf .hsh-item { width: calc((100vw - 36px) / 2); }
  my-video-miniature .video-thumbnail { border-radius: 0 !important; }
  my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info { padding: 12px 12px 0 !important; }
}
/* home: no "Подписки / Просмотр видео" tabs (sidebar/bottom nav cover it), no date group labels */
my-home-menu my-horizontal-menu { display: none !important; }
body.haumy-home my-date-group-label { display: none !important; }
my-videos-list .videos > my-date-group-label { grid-column: 1 / -1; }
@media (max-width: 768px) {
  my-header .menu-button { display: none !important; }
  my-home-menu > .margin-content { margin: 0 !important; padding: 0 !important; }
}
/* logo: icon from the wide logo + theme-aware wordmark (readable in dark mode) */
my-header .peertube-title { display: inline-flex !important; align-items: center; gap: 6px; text-decoration: none !important; color: var(--fg) !important; }
my-header .peertube-title img.logo { height: 30px !important; width: 30px !important; max-width: none !important; object-fit: cover; object-position: left center; }
my-header .peertube-title::after { content: 'HAUMY TV'; font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--fg); white-space: nowrap; }
/* home "Все": shorts live in the shelf, not in the main grid (like YouTube) */
body.haumy-home my-video-miniature.haumy-is-short { display: none !important; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info my-actor-avatar { position: static !important; transform: none !important; margin: 0 !important; width: 36px !important; height: 36px !important; }
my-video-miniature .video-miniature.has-avatar:not(.display-as-row) .video-info my-actor-avatar .avatar { width: 36px !important; height: 36px !important; }
