/* ============================================================================
   VOD page — page-scoped styles
   ----------------------------------------------------------------------------
   File layout:
     1. Page shell
     2. Toolbar (title + count + buttons)
     3. Table head + rows (Pavadinimas column)
     4. Row pieces (chevron, name, switch, refresh, delete)
     5. Floating note button
     6. Responsive
   ============================================================================ */


/* ============================ 1. Page shell ============================ */
.app-shell[data-page="vod"] .content-shell {
  overflow: hidden;
}

.vod-page {
  height: 100%;
  min-height: 0;
}

.vod-list-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.vod-detail-view {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.vod-page.is-detail .vod-detail-view {
  display: grid;
}


/* ============================ 2. Toolbar ============================ */
.vod-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.vod-page.is-detail .vod-list-view {
  display: none;
}

.vod-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: var(--dark4txt);
}

.vod-breadcrumb-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.vod-breadcrumb-link:hover {
  text-decoration: none;
}

.vod-breadcrumb-sep {
  color: var(--grey4txt);
  font-weight: 400;
}

.vod-breadcrumb-current {
  color: var(--dark4txt);
  font-weight: 500;
}



.vod-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 42px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  flex: 1 1 280px;
  min-width: 0;
}

.vod-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--grey4txt);
  background: transparent;
  font: inherit;
}

.vod-search img {
  width: 24px;
  height: 24px;
}

.vod-detail-table .vod-detail-th-id,
.vod-detail-row td.vod-detail-id-cell {
  width: 1%;
  white-space: nowrap;
  padding: 0 18px;
  color: var(--grey4txt);
  font-size: 14px;
}

.vod-detail-th-id {
  text-align: center !important;
}

.vod-detail-table .vod-detail-th-name,
.vod-detail-row td.vod-detail-name-cell {
  padding: 8px 8px;
  width: auto;
  max-width: 0;
  overflow: hidden;
}

.vod-detail-table .vod-detail-th-switch,
.vod-detail-row td.vod-detail-switch-cell,
.vod-detail-table .vod-detail-th-delete,
.vod-detail-row td.vod-detail-delete-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding: 0 8px;
}

.vod-detail-row td {
  padding: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.vod-detail-row.is-alt td {
  background: rgba(255, 255, 255, 0.3);
}

.vod-detail-row:hover td {
  background: var(--white);
}

.vod-detail-row td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vod-detail-row td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.vod-detail-title {
  display: block;
  font-size: 14px;
  color: var(--dark4txt);
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-detail-meta {
  display: block;
  font-size: 12px;
  color: var(--grey4txt);
  line-height: 16px;
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.vod-detail-meta-sep {
  margin: 0 6px;
  color: var(--grey4txt);
  opacity: 0.6;
}

.vod-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: var(--dark4txt);
  flex: 0 0 auto;
}

.vod-toolbar-spacer {
  flex: 1 1 auto;
}

.vod-count {
  font-size: 14px;
  color: var(--grey4txt);
  white-space: nowrap;
}

.vod-count strong {
  color: var(--dark4txt);
  font-weight: 700;
}

.vod-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.vod-add-btn:hover {
  background: var(--white);
}


/* ============================ 3. Table — admin-page pattern ============================ */
.vod-table-wrap {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.vod-table-wrap::-webkit-scrollbar {
  display: none;
}

.vod-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px 2px;
}

.vod-table thead.vod-table-head th {
  padding: 12px 7px;
  color: var(--dark4txt);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: 2px 0 0 0 var(--white);
}

.vod-table thead.vod-table-head th:last-child {
  box-shadow: none;
}

.vod-table thead.vod-table-head th:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.vod-table thead.vod-table-head th:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.vod-th-chevron,
.vod-th-switch,
.vod-th-refresh,
.vod-th-delete {
  width: 1%;
  white-space: nowrap;
}

.vod-th-name {
  width: auto;
}

.vod-th-name {
  padding-left: 4px;
}

.vod-table-gap td {
  height: 8px;
  padding: 0;
  background: transparent !important;
  border-radius: 0 !important;
}

.vod-row {
  cursor: pointer;
}

.vod-row td {
  padding: 0;
  height: 44px;
  background: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.content-shell {
  padding-bottom: 10px;
}

.vod-row.is-alt td {
  background: rgba(255, 255, 255, 0.3);
}

.vod-row:hover td {
  background: var(--white);
}

.vod-row td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vod-row td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.vod-row td.vod-row-chevron-cell,
.vod-row td.vod-row-switch-cell,
.vod-row td.vod-row-refresh-cell,
.vod-row td.vod-row-delete-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding: 0 12px;
}

.vod-row td.vod-row-chevron-cell {
  padding: 0 4px;
}

.vod-row td.vod-row-name-cell {
  width: auto;
}

.vod-row-name-cell {
  padding: 0px 7px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--grey4txt);
}

.vod-row-chevron svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.vod-row.is-open .vod-row-chevron svg {
  transform: rotate(90deg);
}

.vod-row-name {
  font-size: 14px;
  color: var(--dark4txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 12px;
}

.vod-switch {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 22px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}

.vod-switch span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.15s ease;
}

.vod-switch.is-on {
  background: var(--accent-green-switch);
}

.vod-switch.is-on span {
  transform: translateX(18px);
}

.vod-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vod-row-refresh-cell .vod-icon-btn {
  background: var(--white);
  border-radius: 50%;
}

.vod-icon-btn img,
.vod-icon-btn svg {
  width: 18px;
  height: 18px;
}

.vod-icon-btn svg path:hover {
  fill: var(--accent-green);
}


/* ============================ 5. Footer row + note button ============================ */
.vod-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0px;
}

.vod-note-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0E0A1D 0%, #902C93 100%);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(14, 10, 29, 0.35);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vod-note-btn:hover {
  background: linear-gradient(180deg, #902C93 0%, #0E0A1D 100%);
}

.vod-note-btn svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}


/* ============================ VOD Edit modal (full-screen) ============================ */
.vod-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  padding: 0;
  font-family: var(--font-body);
}

.vod-edit-modal.is-open {
  display: block;
}

.vod-edit-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.72);
}

.vod-edit-modal-card {
  position: relative;
  display: grid;
  grid-template-rows: 94px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0 24px 38px;
  border-radius: 0;
  /* edge-to-edge full screen */
  overflow: hidden;
  color: var(--white);
  background:

    var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 52px rgba(0, 0, 0, 0.55);
}

/* Fixed modal header */
.vod-edit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 94px;
  padding: 18px 24px 10px;
}

.vod-edit-modal-title-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.vod-edit-modal-eyebrow {
  flex: 0 0 auto;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
}

.vod-edit-modal-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 27px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-edit-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 42px;
}

.vod-edit-modal-close img {
  width: 18px;
  height: 18px;
}

.vod-edit-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 307px;
  gap: 16px;
  min-height: 0;
  padding: 16px 14px 0;
}

.vod-edit-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 86px;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark4txt);
}

.vod-edit-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px;
  scrollbar-width: none;
}

.vod-edit-scroll::-webkit-scrollbar,
.vod-edit-sidebar::-webkit-scrollbar {
  display: none;
}

.vod-edit-section {
  margin: 0;
  padding: 24px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.96);
}

.vod-edit-scroll>.vod-edit-section:first-child {
  border-top: 0;
}

.vod-edit-section-title {
  margin: 0 0 12px;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.vod-edit-info {
  padding: 22px 24px 26px;
  border-top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.2);
}

.vod-edit-info-grid {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
}

.vod-edit-info-grid .vod-edit-field-wide {
  grid-column: 2;
  grid-row: 1;
}

.vod-edit-info-rightcol {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.vod-edit-info-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px 10px;
  color: var(--dark4txt);
  font-size: 12px;
  line-height: 16px;
}

.vod-edit-info-label {
  color: var(--dark4txt);
  font-weight: 600;
}

.vod-edit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--white);
  color: #111111;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.vod-edit-chip-track::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 7px;
  border-radius: 999px;
  background: url("../../assets/icons/green-check.svg") center / contain no-repeat;
}

.vod-edit-chip-track::before {
  content: "";
  order: 2;
  width: 12px;
  height: 13px;
  margin-left: 6px;
  background: url("../../assets/icons/delete_dark.svg") center / contain no-repeat;
  opacity: 0.78;
}

/* Shared field controls */
.vod-edit-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--dark4txt);
  font-size: 13px;
  line-height: 18px;
}

.vod-edit-field>span,
.vod-edit-rating>span:first-child {
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 18px;
}

.vod-edit-field input[type="text"],
.vod-edit-field textarea,
.vod-edit-input,
.vod-edit-select,
.vod-edit-pill,
.vod-edit-stepper {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  outline: 0;
}

.vod-edit-field input[type="text"],
.vod-edit-field textarea,
.vod-edit-input {
  width: 100%;
  min-width: 0;
  padding: 10px 16px;
}

.vod-edit-field textarea {
  min-height: 104px;
  resize: vertical;
}

.vod-edit-form-right .vod-edit-field {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
}

.vod-edit-form-right .vod-edit-field>span {
  padding-top: 10px;
}

.vod-edit-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  min-height: 42px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.vod-edit-file-row input {
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  outline: 0;
}

.vod-edit-file-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  place-self: center;
  border: 1px solid rgba(3, 5, 34, 0.18);
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--grey4txt);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vod-edit-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  cursor: pointer;
}

.vod-edit-select img {
  width: 14px;
  height: 14px;
}

.vod-edit-stepper {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  min-width: 128px;
  padding: 4px 8px;
}

.vod-edit-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #dedede;
  color: #111111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vod-edit-stepper output {
  color: var(--dark4txt);
  font-weight: 500;
  text-align: center;
}

.vod-edit-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.vod-edit-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 110px;
  color: var(--grey4txt);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.vod-edit-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vod-edit-check-box {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--white);
}

.vod-edit-check input:checked+.vod-edit-check-box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 13px;
  border: solid var(--dark4txt);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vod-edit-form-grid {
  display: grid;
  grid-template-columns: 394px minmax(0, 1fr);
  gap: 0 24px;
}

.vod-edit-form-left,
.vod-edit-form-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vod-edit-form-left {
  padding-right: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.96);
}

.vod-edit-ratings {
  display: grid;
  grid-template-columns: 394px minmax(0, 1fr);
  gap: 10px 24px;
}

.vod-edit-rating {
  display: grid;
  grid-template-columns: 110px 200px auto;
  align-items: center;
  gap: 10px;
}

.vod-edit-rating-suffix {
  color: var(--dark4txt);
  font-size: 13px;
}

.vod-edit-inline-title {
  margin-top: 14px;
  margin-bottom: 4px;
}

.vod-edit-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vod-edit-stepper-row .vod-edit-stepper {
  flex: 1 1 auto;
  min-width: 0;
}

.vod-edit-stepper-row .vod-edit-rating-suffix {
  flex: 0 0 36px;
  color: var(--grey4txt);
  text-align: left;
}

.vod-edit-preview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(280px, 1fr);
  gap: 24px;
}

.vod-edit-video {
  width: 100%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.vod-edit-video-frame {
  position: relative;
  aspect-ratio: 622 / 314;
  background-position: center;
  background-size: cover;
}

.vod-edit-video-loader {
  display: none;
}

.vod-edit-video-controls {
  display: grid;
  grid-template-columns: 22px minmax(40px, 1fr) auto 40px 22px;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 7px;
  color: #111111;
  font-size: 12px;
  line-height: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(235, 235, 235, 0.78));
}

.vod-edit-video-volume {
  position: relative;
  width: 20px;
  height: 17px;
}

.vod-edit-video-volume::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 8px;
  background: #d8d8d8;
  border: 1px solid #111111;
}

.vod-edit-video-volume::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 10px;
  height: 14px;
  border: 1px solid #111111;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.vod-edit-video-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(3, 5, 34, 0.16);
}

.vod-edit-video-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #9b4be6;
}

.vod-edit-video-duration {
  white-space: nowrap;
}

.vod-edit-video-quality {
  height: 20px;
  min-width: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  color: #8a8a8a;
  font: inherit;
  cursor: pointer;
}

.vod-edit-video-fullscreen {
  position: relative;
  width: 21px;
  height: 21px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vod-edit-video-fullscreen::before,
.vod-edit-video-fullscreen::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #111111;
}

.vod-edit-video-fullscreen::after {
  inset: 6px;
  border-color: transparent;
  background:
    linear-gradient(#111111, #111111) left top / 5px 1px no-repeat,
    linear-gradient(#111111, #111111) left top / 1px 5px no-repeat,
    linear-gradient(#111111, #111111) right top / 5px 1px no-repeat,
    linear-gradient(#111111, #111111) right top / 1px 5px no-repeat,
    linear-gradient(#111111, #111111) left bottom / 5px 1px no-repeat,
    linear-gradient(#111111, #111111) left bottom / 1px 5px no-repeat,
    linear-gradient(#111111, #111111) right bottom / 5px 1px no-repeat,
    linear-gradient(#111111, #111111) right bottom / 1px 5px no-repeat;
}

.vod-edit-trim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 622px;
  margin-top: 14px;
  /* sits directly under the video player */
}

.vod-edit-trim-field {
  grid-template-columns: 78px 130px;
}

.vod-edit-trim-row .vod-edit-trim-field:nth-child(2) {
  margin-left: auto;
}



/* Fixed footer */
.vod-edit-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
}

.vod-edit-save,
.vod-edit-gallery-pick {
  height: 41px;
  border: 2px solid var(--white);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.26);
  color: var(--grey4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.vod-edit-save {
  min-width: 101px;
  padding: 0 22px;
}

.vod-edit-save:hover,
.vod-edit-gallery-pick:hover {
  background: var(--white);
}

/* Right gallery sidebar */
.vod-edit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark4txt);
  scrollbar-width: none;
}

.vod-edit-sidebar .vod-edit-section-title {
  margin-bottom: 2px;
}

.vod-edit-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.vod-edit-gallery-img {
  width: 100%;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
}

.vod-edit-gallery-card--cover .vod-edit-gallery-img {
  aspect-ratio: 2 / 3;
  /* portrait poster */
}

.vod-edit-gallery-card--backdrop .vod-edit-gallery-img {
  aspect-ratio: 16 / 9;
  /* landscape backdrop */
}

.vod-edit-gallery-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vod-edit-gallery-pick {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================ Themed single-select dropdown popup ============================ */
.vod-edit-field {
  position: relative;
  /* anchor for [data-vod-dropdown-popup] */
}

.vod-edit-dropdown-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 12, 45, 0.18);
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: none;
}

.vod-edit-dropdown-popup::-webkit-scrollbar {
  display: none;
}

.vod-edit-dropdown-opt {
  text-align: left;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.vod-edit-dropdown-opt:hover {
  background: rgba(123, 85, 203, 0.12);
}

.vod-edit-dropdown-opt.is-selected {
  background: rgba(123, 85, 203, 0.22);
  font-weight: 600;
}

.vod-edit-select {
  cursor: pointer;
}


/* ============================ Kategorija multi-select popup ============================ */
.vod-edit-category-field {
  position: relative;
}

.vod-edit-category-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 5;
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 14px 16px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 12, 45, 0.18);
}

.vod-edit-category-popup[hidden] {
  display: none;
}

.vod-edit-category-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--grey4txt);
}

.vod-edit-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}

.vod-edit-cat-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark4txt);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.vod-edit-cat-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vod-edit-cat-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  position: relative;
  flex: 0 0 18px;
}

.vod-edit-cat-opt:has(input:checked) .vod-edit-cat-box {
  background: var(--accent-green);
  box-shadow: inset 0 0 0 1px var(--accent-green);
}

.vod-edit-cat-opt:has(input:checked) .vod-edit-cat-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}



.vod-edit-gallery-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: var(--panel-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: 0 0 32px;
}

.vod-edit-gallery-del svg {
  width: 18px;
  height: 18px;
}

.vod-edit-gallery-del svg path:hover {
  fill: var(--accent-green);
}

.vod-edit-sidebar-mobile-slot {
  display: none;
}



/* ============================ Delete confirm modal ============================ */
.vod-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.vod-confirm-modal.is-open {
  display: flex;
}

.vod-confirm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.45);
}

.vod-confirm-modal-card {
  position: relative;
  width: min(460px, 100vw - 48px);
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.vod-confirm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.vod-confirm-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.vod-confirm-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.vod-confirm-modal-close img {
  width: 14px;
  height: 14px;
}

.vod-confirm-modal-panel {
  padding: 18px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.vod-confirm-modal-message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--dark4txt);
}

.vod-confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vod-confirm-modal-btn {
  height: 38px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vod-confirm-modal-btn--no {
  background: var(--button-bg-color);
  color: var(--dark4txt);
  border-color: var(--white);
}

.vod-confirm-modal-btn--no:hover {
  background: var(--white);
}

.vod-confirm-modal-btn--yes {
  background: var(--accent-pink);
  color: var(--white);
}

.vod-confirm-modal-btn--yes:hover {
  filter: brightness(0.95);
}




/* ============================ 6. Siųsti VOD pranešimą modal ============================ */
.vod-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.vod-msg-modal.is-open {
  display: flex;
}

.vod-msg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.45);
}

.vod-msg-modal-card {
  position: relative;
  width: min(640px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.vod-msg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
}

.vod-msg-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vod-msg-modal-eyebrow {
  font-size: 13px;
  opacity: 0.9;
}

.vod-msg-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
}

.vod-msg-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  flex: 0 0 36px;
}

.vod-msg-modal-close img {
  width: 16px;
  height: 16px;
}

.vod-msg-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.vod-msg-modal-body::-webkit-scrollbar {
  display: none;
}

.vod-msg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.vod-msg-label {
  font-size: 13px;
  color: var(--dark4txt);
}

.vod-msg-link {
  color: var(--blue4link);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

.vod-msg-link:hover {
  text-decoration: underline;
}

.vod-msg-readonly {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.08);
  color: var(--dark4txt);
  font-size: 14px;
}

.vod-msg-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  color: var(--dark4txt);
  outline: 0;
  resize: vertical;
  min-height: 90px;
}

.vod-msg-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.vod-msg-btn {
  min-width: 120px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vod-msg-btn:hover {
  background: var(--white);
}


/* ============================ 7. Reply modal (Atsakyti) ============================ */
.vod-reply-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.vod-reply-modal.is-open {
  display: flex;
}

.vod-reply-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.45);
}

.vod-reply-modal-card {
  position: relative;
  width: min(580px, 100vw - 48px);
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: #D9D9DA;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.vod-reply-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vod-reply-modal-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark4txt);
}

.vod-reply-modal-user-icon {
  color: var(--dark4txt);
}

.vod-reply-modal-username {
  font-size: 14px;
  font-weight: 500;
}

.vod-reply-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.vod-reply-modal-close img {
  width: 14px;
  height: 14px;
}

.vod-reply-modal-body {
  display: flex;
  flex-direction: column;
}


/* ============================================================================
   6. Responsive
   ============================================================================ */



@media (max-width: 1300px) {
  .vod-edit-modal {
    padding: 0;
  }

  .vod-edit-modal-card {
    border-radius: 0;
    padding: 0 16px 20px;
  }

  .vod-edit-modal-body {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .vod-edit-sidebar {
    display: none;
  }

  .vod-edit-sidebar-mobile-slot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
  }

  .vod-edit-sidebar-mobile-slot .vod-edit-sidebar {
    display: flex;
    width: 50%;
    max-height: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }
}

@media (max-width: 1024px) {
  .vod-footer {
    display: none;
  }

  .vod-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .vod-edit-main {
    display: block;
    overflow-y: auto;
    border-radius: 12px;
  }

  .vod-edit-info {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    border-bottom: 0;
    margin: 0;
    padding: 18px 18px 8px;
  }

  .vod-edit-scroll {
    overflow: visible;
    min-height: 0;
    padding-top: 0;
  }

  .vod-edit-modal-foot {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .vod-edit-info-rightcol {
    gap: 17px;
  }
}

@media (max-width: 860px) {
  .vod-edit-modal-card {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .vod-edit-modal-head {
    min-height: auto;
    padding: 14px 8px 12px;
  }

  .vod-edit-modal-title-block {
    flex-direction: column;
    gap: 2px;
  }

  .vod-edit-modal-eyebrow {
    font-size: 15px;
    line-height: 20px;
  }

  .vod-edit-modal-title {
    font-size: 18px;
    line-height: 22px;
    white-space: normal;
  }

  .vod-edit-modal-body {
    padding: 0 0 0;
  }

  .vod-edit-main {
    grid-template-rows: auto minmax(0, 1fr) 74px;
    border-radius: 12px;
  }

  .vod-edit-info,
  .vod-edit-scroll,
  .vod-edit-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vod-edit-info-grid,
  .vod-edit-form-grid,
  .vod-edit-ratings,
  .vod-edit-preview-grid,
  .vod-edit-trim-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .vod-edit-info-grid .vod-edit-field-wide,
  .vod-edit-info-rightcol {
    grid-column: 1;
    grid-row: auto;
  }

  .vod-edit-info-rightcol,
  .vod-edit-info-line {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .vod-edit-field,
  .vod-edit-form-right .vod-edit-field,
  .vod-edit-rating,
  .vod-edit-trim-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .vod-edit-form-left {
    padding-right: 0;
    border-right: 0;
  }

  .vod-edit-check {
    padding-left: 0;
  }

  .vod-edit-preview-grid {
    gap: 18px;
  }

  .vod-edit-video-controls {
    grid-template-columns: 22px minmax(30px, 1fr) auto 36px 22px;
    font-size: 11px;
  }

  .vod-edit-gallery-card {
    min-height: 300px;
  }

  .vod-edit-trim-row .vod-edit-trim-field:nth-child(2) {
    margin-left: 0;
  }

  .vod-edit-sidebar-mobile-slot .vod-edit-sidebar {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .vod-detail-view .vod-breadcrumb {
    flex: 0 0 100%;
    order: 1;
  }

  .vod-detail-view .vod-search {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }

  .vod-detail-view .vod-add-btn {
    order: 3;
    flex: 0 0 42px;
    width: 42px;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }

  .vod-detail-view .vod-add-btn::before {
    content: "+";
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }

  .vod-detail-view .vod-count {
    order: 4;
    flex: 0 0 100%;
    text-align: right;
  }
}

@media (max-width: 600px) {
  .app-shell[data-page="vod"] .content-shell {
    overflow: auto;
  }

  .vod-page {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .vod-toolbar {
    gap: 8px;
  }

  /* 3-row layout: title | buttons | count */
  .vod-toolbar-spacer {
    display: none;
  }

  .vod-title {
    order: 1;
    flex: 0 0 100%;
  }

  .vod-add-btn {
    order: 2;
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 13px;
  }

  .vod-count {
    order: 3;
    flex: 0 0 100%;
  }

  .vod-table-head {
    padding: 0 16px;
  }

  .vod-row-actions {
    padding: 0 8px 0 4px;
    gap: 2px;
  }

  .vod-icon-btn {
    width: 28px;
    height: 28px;
  }

  .vod-table-wrap {
    overflow: visible;
  }

  .vod-note-btn {
    width: 46px;
    height: 46px;
  }

  .vod-row td.vod-row-chevron-cell,
  .vod-row td.vod-row-switch-cell,
  .vod-row td.vod-row-refresh-cell,
  .vod-row td.vod-row-delete-cell {
    padding: 0 8px;
  }

  .vod-row-chevron {
    width: 14px;
  }

  .vod-edit-sidebar-mobile-slot .vod-edit-sidebar {
    width: 65%;
  }

  .vod-edit-category-popup {
    width: calc(100vw - 32px);
  }

  .vod-edit-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vod-confirm-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .vod-confirm-modal-btn {
    width: 100%;
  }

  .vod-edit-sidebar-mobile-slot .vod-edit-sidebar {
    width: 100%;
  }
}

@media (max-width: 400px) {

  .vod-row td.vod-row-chevron-cell,
  .vod-row td.vod-row-switch-cell,
  .vod-row td.vod-row-refresh-cell,
  .vod-row td.vod-row-delete-cell {
    padding: 0 3px;
  }

  .vod-detail-id-cell {
    padding: 0px 7px !important;
  }
}