@charset "UTF-8";
/* ========================================
   COMBO PLAYER STYLES №3
   ======================================== */
/* Импорт основных стилей  */
/* Стили для placeholder */
.dictionary-search-input::placeholder {
  font-size: 15px;
}

.game-logo {
  height: 36px;
  width: auto;
  filter: opacity(0.4);
}

.game-header {
  position: absolute;
  left: 50%;
  top: 50%; /* Добавляем вертикальное центрирование */
  transform: translate(-50%, -50%); /* Центрирование по обоим осям */
  margin: 0;
  color: rgb(75, 75, 75);
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap; /* Запрет переноса текста */
}

.game-top-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10001;
  pointer-events: none;
  background-color: #131313;
}

.dictionary-excercise-button {
  margin-top: 20px;
  font-size: 16px;
  background: transparent;
  border: 1px solid #6e6e6e;
  border-top: 1px solid #6e6e6e;
  border-bottom: 1px solid #6e6e6e;
  border-radius: 8px;
  padding: 8px 18px;
  color: #8c8c8c;
}

.dictionary-excercise-button:hover {
  color: #ff8000;
}

/* Импорт для настроек субтитров */
/* ========================================
   SUBTITLE SETTINGS - CSS VARIABLES #3
   ======================================== */
:root {
  /* Colors */
  --subtitle-primary: #f97316;
  --subtitle-white: #ffffff;
  --subtitle-black: #000000;
  --subtitle-gray-100: #f3f4f6;
  --subtitle-gray-200: #e5e7eb;
  --subtitle-gray-300: #d1d5db;
  --subtitle-gray-400: #9ca3af;
  --subtitle-gray-500: #6b7280;
  --subtitle-gray-600: #4b5563;
  --subtitle-gray-700: #626262;
  --subtitle-gray-800: #1f2937;
  --subtitle-gray-900: #757575;
  /* Spacing */
  --subtitle-spacing-xs: 4px;
  --subtitle-spacing-sm: 8px;
  --subtitle-spacing-md: 12px;
  --subtitle-spacing-lg: 16px;
  --subtitle-spacing-xl: 20px;
  --subtitle-spacing-2xl: 24px;
  --subtitle-after-rowl: 20px;
  /* Border radius */
  --subtitle-radius-sm: 4px;
  --subtitle-radius-md: 8px;
  --subtitle-radius-lg: 12px;
  --subtitle-radius-full: 50%;
  /* Border widths */
  --subtitle-border-thin: 1px;
  --subtitle-border-medium: 2px;
  --subtitle-border-thick: 3px;
  /* Shadows */
  --subtitle-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --subtitle-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --subtitle-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --subtitle-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* Z-index */
  --subtitle-z-overlay: 1000000;
  --subtitle-z-popup: 1000001;
  --subtitle-z-videojs-overlay: 1000000;
  --subtitle-z-videojs-popup: 1000001;
  /* Transitions */
  --subtitle-transition-fast: 0.15s ease;
  --subtitle-transition-normal: 0.2s ease;
  --subtitle-transition-slow: 0.3s ease;
  /* Button sizes */
  --subtitle-button-size-sm: 20px;
  --subtitle-button-size-md: 24px;
  --subtitle-button-size-lg: 32px;
  --subtitle-button-size-xl: 36px;
  /* Font sizes */
  --subtitle-text-xs: 10px;
  --subtitle-text-sm: 12px;
  --subtitle-text-base: 14px;
  --subtitle-text-lg: 14px;
  --subtitle-text-xl: 18px;
}

/* ========================================
   BASE STYLES
   ======================================== */
/* Menu content */
.subtitle-settings-menu-content {
  padding: var(--subtitle-spacing-xl);
}

.subtitle-settings-popup button {
  flex: none;
}

/* ========================================
   OVERLAY STYLES
   ======================================== */
.subtitle-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--subtitle-z-overlay);
}

.subtitle-settings-overlay--transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--subtitle-z-overlay);
}

/* Video.js portal overlay */
.video-js .subtitle-settings-overlay {
  position: absolute;
  z-index: var(--subtitle-z-videojs-overlay);
}

/* Video.js portal overlay in fullscreen mode */
.video-js.vjs-fullscreen .subtitle-settings-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--subtitle-z-videojs-overlay);
}

/* ========================================
   POPUP STYLES
   ======================================== */
.subtitle-settings-popup {
  background: var(--subtitle-white);
  border-radius: var(--subtitle-radius-lg);
  box-shadow: var(--subtitle-shadow-xl);
  max-width: 300px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--subtitle-z-popup);
  animation: fadeIn 0.2s ease-out;
}

/* Video.js portal popup */
.video-js .subtitle-settings-popup {
  position: absolute;
  width: 100%;
  max-width: 300px;
  z-index: var(--subtitle-z-videojs-popup);
  right: 8px;
}

/* Video.js portal popup in fullscreen mode - center it */
.video-js.vjs-fullscreen .subtitle-settings-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  width: 100%;
  max-width: 300px;
  z-index: var(--subtitle-z-videojs-popup);
  opacity: 1;
  visibility: visible;
}

/* Prevent popup from showing in wrong position initially */
.subtitle-settings-popup {
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

.subtitle-settings-popup.visible {
  opacity: 1;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.subtitle-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--subtitle-spacing-md);
  cursor: move;
  user-select: none;
  background-color: #f5f5f5;
  padding: 10px 14px !important;
  text-align: center;
}

.subtitle-settings-header:active {
  cursor: grabbing;
}

.subtitle-settings-header__icon {
  color: var(--subtitle-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--subtitle-transition-normal);
  font-size: 30px;
}

.subtitle-settings-header:hover .subtitle-settings-header__icon {
  color: var(--subtitle-gray-700);
}

.subtitle-settings-header__title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--subtitle-gray-900);
}

.subtitle-settings-header__close {
  background: none;
  border: none;
  color: var(--subtitle-gray-500);
  cursor: pointer;
  padding: var(--subtitle-spacing-sm);
  border-radius: var(--subtitle-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--subtitle-transition-normal);
  width: var(--subtitle-button-size-xl);
  height: var(--subtitle-button-size-xl);
}

.subtitle-settings-header__close:hover {
  background-color: var(--subtitle-gray-100);
  color: red;
}

.subtitle-settings-header__close svg {
  width: 26px;
  height: 26px;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.subtitle-settings-section {
  padding: var(--subtitle-spacing-xl) var(--subtitle-spacing-2xl);
}

.subtitle-settings-section:last-child {
  border-bottom: none;
}

.subtitle-settings-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 0;
}

.video-setting-popup__content .subtitle-settings-section__header {
  margin-right: var(--subtitle-spacing-md);
}

.subtitle-settings-section__title {
  margin: 0;
  font-size: var(--subtitle-text-lg);
  font-weight: 600;
  color: #707070;
  display: none;
}

.subtitle-settings-section__reset {
  background: none;
  border: none;
  color: #ababab !important;
  font-size: var(--subtitle-text-base);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  border-radius: var(--subtitle-radius-sm);
  transition: all var(--subtitle-transition-normal);
  margin-left: auto;
  white-space: nowrap;
  min-width: fit-content;
  flex-shrink: 0;
  margin-right: 0;
}

.video-setting-popup__content .subtitle-settings-section__reset {
  padding: var(--subtitle-spacing-xs) var(--subtitle-spacing-sm);
}

.subtitle-settings-section__reset:hover {
  color: var(--subtitle-primary) !important;
}

.video-setting-popup .subtitle-settings-section__OK {
  background: none;
  border: none;
  color: #afafaf !important;
  font-size: var(--subtitle-text-base);
  cursor: pointer;
  padding: var(--subtitle-spacing-lg) var(--subtitle-spacing-lg) !important;
  margin: var(--subtitle-spacing-xs) !important;
  border-radius: var(--subtitle-radius-sm);
  transition: all var(--subtitle-transition-normal);
  white-space: nowrap;
  min-width: fit-content;
  flex-shrink: 0;
  margin-right: 0;
}

.video-setting-popup .subtitle-settings-section__OK:hover {
  color: var(--subtitle-primary) !important;
}

@media (max-width: 640px) {
  .video-setting-popup-button.video-setting-popup-hot-buttons {
    display: none !important;
  }
}
/* ========================================
   CONTROLS STYLES
   ======================================== */
.subtitle-settings-controls {
  display: flex;
  flex-direction: column;
  gap: var(--subtitle-spacing-2xl);
}

/* ========================================
   SLIDER STYLES
   ======================================== */
.subtitle-settings-slider {
  display: flex;
  flex-direction: column;
  gap: var(--subtitle-spacing-sm);
  padding-bottom: var(--subtitle-after-rowl);
}

.subtitle-settings-slider__label {
  font-size: var(--subtitle-text-base);
  font-weight: 500;
  color: var(--subtitle-gray-700);
}

.subtitle-settings-slider__container {
  display: flex;
  align-items: center;
  gap: var(--subtitle-spacing-sm);
}

.subtitle-settings-slider__min,
.subtitle-settings-slider__max {
  font-size: var(--subtitle-text-xs);
  color: var(--subtitle-gray-500);
  text-align: center;
  padding-bottom: 2px;
}

.subtitle-settings-slider__input {
  flex: 1;
  height: 4px;
  background: var(--subtitle-gray-200);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.subtitle-settings-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: var(--subtitle-radius-full);
  cursor: pointer;
  border: var(--subtitle-border-medium) solid var(--subtitle-primary) !important;
  box-shadow: 0 0 0 var(--subtitle-border-medium) var(--subtitle-white) !important;
  transform: scale(1.1) !important;
}

.subtitle-settings-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--subtitle-shadow-md);
}

.subtitle-settings-slider__input::-moz-range-thumb {
  width: var(--subtitle-button-size-md);
  height: var(--subtitle-button-size-md);
  background: var(--subtitle-primary);
  border-radius: var(--subtitle-radius-full);
  cursor: pointer;
  border: none;
  box-shadow: var(--subtitle-shadow-sm);
  transition: all var(--subtitle-transition-normal);
}

.subtitle-settings-slider__input::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--subtitle-shadow-md);
}

/* ========================================
   LANGUAGE STYLES
   ======================================== */
.subtitle-settings-language {
  display: flex;
  flex-direction: column;
  gap: var(--subtitle-spacing-sm);
}

.subtitle-settings-language__label {
  font-size: var(--subtitle-text-base);
  font-weight: 500;
  color: var(--subtitle-gray-700);
}

.subtitle-settings-language__options {
  display: flex;
  gap: var(--subtitle-spacing-sm);
}

.subtitle-settings-language__button {
  flex: 1;
  padding: var(--subtitle-spacing-sm) var(--subtitle-spacing-lg);
  border: var(--subtitle-border-thin) solid var(--subtitle-gray-300);
  background: var(--subtitle-white);
  border-radius: var(--subtitle-radius-md);
  font-size: var(--subtitle-text-base);
  font-weight: 500;
  color: var(--subtitle-gray-700);
  cursor: pointer;
  transition: all var(--subtitle-transition-normal);
}

.subtitle-settings-language__button:hover {
  border-color: var(--subtitle-gray-400);
  background-color: var(--subtitle-gray-100);
}

.subtitle-settings-language__button.active {
  background-color: var(--subtitle-gray-200);
  border-color: var(--subtitle-gray-200);
  color: var(--subtitle-gray-900);
}

/* ========================================
   COLOR PICKER STYLES
   ======================================== */
.subtitle-settings-colors {
  display: flex;
  flex-direction: column;
  gap: var(--subtitle-spacing-sm);
  padding-bottom: var(--subtitle-after-rowl);
}

.subtitle-settings-colors__label {
  font-size: var(--subtitle-text-base);
  font-weight: 500;
  color: var(--subtitle-gray-700);
}

.subtitle-settings-colors__options {
  display: flex;
  gap: var(--subtitle-spacing-sm);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.subtitle-settings-colors__button {
  width: var(--subtitle-button-size-md);
  height: var(--subtitle-button-size-md);
  min-width: var(--subtitle-button-size-md);
  min-height: var(--subtitle-button-size-md);
  max-width: var(--subtitle-button-size-md);
  max-height: var(--subtitle-button-size-md);
  border: var(--subtitle-border-medium) solid;
  border-radius: var(--subtitle-radius-full);
  cursor: pointer;
  position: relative;
  transition: all var(--subtitle-transition-normal);
  flex-shrink: 0;
  flex-grow: 0;
  background: none;
  padding: 0;
  margin: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle-settings-colors__button:hover {
  transform: scale(1.1);
  box-shadow: var(--subtitle-shadow-md);
}

.subtitle-settings-colors__button.active,
.subtitle-settings-active {
  border: var(--subtitle-border-medium) solid var(--subtitle-white) !important;
  box-shadow: 0 0 0 var(--subtitle-border-medium) var(--subtitle-primary) !important;
  transform: scale(1.1) !important;
}

.subtitle-settings-colors__button--custom {
  border-radius: var(--subtitle-radius-full) !important;
  width: var(--subtitle-button-size-md) !important;
  height: var(--subtitle-button-size-md) !important;
  min-width: var(--subtitle-button-size-md) !important;
  min-height: var(--subtitle-button-size-md) !important;
  max-width: var(--subtitle-button-size-md) !important;
  max-height: var(--subtitle-button-size-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  background: transparent !important;
  border: var(--subtitle-border-medium) solid !important;
  box-shadow: none !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.subtitle-settings-colors__button--custom.active,
.subtitle-settings-colors__button--custom.subtitle-settings-active {
  background: transparent !important;
  border: var(--subtitle-border-thick) solid var(--subtitle-white) !important;
  box-shadow: 0 0 0 var(--subtitle-border-medium) var(--subtitle-primary) !important;
  transform: scale(1.1) !important;
}

.subtitle-settings-colors__button--custom:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.1) !important;
}

.subtitle-settings-colors__color-picker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--subtitle-radius-full);
  cursor: pointer;
  opacity: 0;
}

.subtitle-settings-colors__custom-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: var(--subtitle-radius-full);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.subtitle-settings-colors__custom-ring svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.subtitle-settings-colors__custom-label {
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 640px) {
  .subtitle-settings-popup {
    width: 100%;
    margin: var(--subtitle-spacing-md);
    margin-top: auto;
  }
  .subtitle-settings-header {
    /*padding: var(--subtitle-spacing-lg) var(--subtitle-spacing-xl) var(--subtitle-spacing-md);*/
    padding-top: 8px !important;
  }
  .subtitle-settings-section {
    padding: var(--subtitle-spacing-xl) var(--subtitle-spacing-xl);
  }
  .subtitle-settings-language__options {
    flex-direction: column;
  }
}
/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.subtitle-settings-popup.dragging {
  transition: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.subtitle-settings-hidden {
  display: none !important;
}

.subtitle-settings-visible {
  display: block !important;
}

.subtitle-settings-flex {
  display: flex !important;
}

.subtitle-settings-flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.subtitle-settings-text-center {
  text-align: center !important;
}

.subtitle-settings-text-left {
  text-align: left !important;
}

.subtitle-settings-text-right {
  text-align: right !important;
}

/* Скрытие элементов для скрин-ридеров */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Импорт стилей плеера */
/* ============================================
   Переменные
   ============================================ */
.vjs-control-bar .vjs-icon-placeholder.vjs-svg-icon {
  width: 24px !important;
  height: 24px !important;
}

.cc-control-2sub__button, .vjs-button, .cc-control-2sub {
  z-index: 100 !important;
}

/* ============================================
   Стили панели управления плеером
   ============================================ */
.video-2sub.video-js .vjs-control-bar {
  overflow: visible !important;
  height: 55px !important;
  bottom: 4px;
}
@media (min-width: 1410px) {
  .video-2sub.video-js .vjs-control-bar {
    height: 55px !important;
    bottom: 12px;
  }
}

/* ============================================
   1. Базовые настройки и z-index
   ============================================ */
/* Повышаем z-index control bar и всех его элементов */
.video-js .vjs-control-bar {
  z-index: 1002 !important;
}

.video-js .vjs-volume-control.vjs-control.vjs-volume-vertical {
  z-index: 1003 !important;
}

.video-js .vjs-volume-panel {
  z-index: 1003 !important;
}

.video-js .vjs-volume-panel .vjs-volume-vertical {
  z-index: 1003 !important;
}

/* ============================================
   2. Основная структура control-bar
   ============================================ */
.video-2sub .vjs-control-bar {
  height: 76px;
}

.video-2sub .vjs-control-bar .vjs-quality-button {
  width: auto !important;
}

/* vjs-custom-control-spacer больше не используется - элементы добавляются напрямую в control-bar */
/* ============================================
   3. Общие стили для контролов
   ============================================ */
.vjs-icon-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Скрываем SVG иконки VideoJS (используем свои) */
.vjs-rewind-control svg,
.vjs-play-control svg,
.vjs-forward-control svg,
.vjs-mute-control svg,
.vjs-fullscreen-control svg,
.vjs-chromecast-button svg {
  display: none !important;
}

.vjs-cog-menu-button {
  display: none !important;
}

.vjs-quality-button {
  display: flex;
}

.quality-span {
  align-self: center;
}

.vjs-rewind-control, .vjs-forward-control {
  display: block !important;
}

/* Переопределяем стили Video.js для focus-visible */
.video-js:not(.vjs-touch-enabled) .vjs-control-bar .vjs-control:focus-visible,
.video-js:not(.vjs-touch-enabled) .vjs-control-bar .vjs-progress-control:focus-visible {
  font-size: 18px !important;
  border: 1px solid #545454 !important;
}

/* ============================================
   4. Позиционирование контролов воспроизведения (центр)
   ============================================ */
.vjs-control-bar .vjs-rewind-control,
.vjs-control-bar .vjs-play-control,
.vjs-control-bar .vjs-forward-control,
.vjs-control-bar .vjs-mute-control,
.vjs-control-bar .vjs-fullscreen-control {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vjs-480 .vjs-control-bar .vjs-rewind-control,
.vjs-480 .vjs-control-bar .vjs-play-control,
.vjs-480 .vjs-control-bar .vjs-forward-control,
.vjs-480 .vjs-control-bar .vjs-mute-control,
.vjs-480 .vjs-control-bar .vjs-fullscreen-control {
  width: 40px !important;
}

.vjs-control-bar .vjs-rewind-control,
.vjs-control-bar .vjs-play-control,
.vjs-control-bar .vjs-forward-control {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

.vjs-control-bar .vjs-play-control {
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
}

.vjs-control-bar .vjs-rewind-control {
  left: calc(50% - 60px) !important;
}

.vjs-control-bar .vjs-forward-control {
  left: calc(50% + 16px + 5px) !important;
}

@media (min-width: 920px) {
  .vjs-control-bar .vjs-play-control {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  .vjs-control-bar .vjs-rewind-control {
    left: calc(50% - 83px) !important;
  }
  .vjs-control-bar .vjs-forward-control {
    left: calc(50% + 44px) !important;
  }
}
/* ============================================
   5. Volume Panel (громкость) - слева
   ============================================ */
.video-js .vjs-volume-panel {
  position: absolute !important;
  left: calc(63px + 16px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
@media (min-width: 920px) {
  .video-js .vjs-volume-panel {
    left: calc(66px + 53px) !important;
  }
}

.video-js .vjs-volume-panel .vjs-volume-vertical:before {
  bottom: -60px;
  left: 7px;
  height: 150px;
}

.video-js .vjs-volume-bar.vjs-slider-vertical {
  left: 7px;
  bottom: -30px;
  transform-origin: top;
  background: rgba(255, 255, 255, 0.74);
  width: 5px;
  height: 80px;
  margin: 0 auto 12px;
  position: relative;
}

@media (max-width: 500px) {
  .video-js .vjs-volume-panel {
    display: none !important;
  }
}
/* ============================================
   6. Progress Control (прогресс-бар)
   ============================================ */
.video-2sub .vjs-progress-control .vjs-slider::before {
  height: 4px;
}

.video-2sub .vjs-progress-control .vjs-load-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 32px;
}

.video-2sub .vjs-progress-control .vjs-play-progress {
  z-index: 2;
  height: 4px;
  background-color: #ff8000;
}

.video-2sub .vjs-progress-control .vjs-play-progress::before {
  z-index: 3;
  display: block;
  background-color: #ff8000;
  border: 2px solid #000005;
}

/* ============================================
   7. Time Controls (время) - над прогресс-баром
   ============================================ */
.vjs-time-control.vjs-time-divider {
  display: none !important;
}

.vjs-control-bar .yo-film-time {
  position: absolute !important;
  left: 1% !important;
  top: -26px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: flex-start !important;
  font-size: 11px !important;
  line-height: 16px !important;
}
@media (min-width: 1410px) {
  .vjs-control-bar .yo-film-time {
    top: -36px !important;
  }
}

/* Rest Time Control (оставшееся время) */
.vjs-control-bar .yo-rest-time {
  position: absolute !important;
  right: 1% !important;
  top: -26px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: flex-end !important;
  font-size: 11px !important;
  line-height: 16px !important;
  color: #969696;
}
@media (min-width: 1410px) {
  .vjs-control-bar .yo-rest-time {
    top: -36px !important;
  }
}

.vjs-control-bar .vjs-current-time, .vjs-control-bar .vjs-duration {
  display: none !important;
}

.video-js .vjs-duration-display {
  margin-right: 0 !important;
}

/* ============================================
   8. Специальные контролы - слева
   ============================================ */
/* CC Control (выбор субтитров) */
.cc-control-2sub {
  display: flex;
  height: 28px;
  margin-left: 0 !important;
  align-self: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1215686275);
  border-radius: 16px !important;
  column-gap: 4px;
  align-items: center;
  position: absolute !important;
  left: 1% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.cc-control-2sub__button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px !important;
  height: 26px !important;
  border-radius: 14px !important;
  font-family: "Sofia Sans Extra Condensed", monospace, "Arial Narrow", Arial, sans-serif !important;
  font-weight: 800;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
  text-align: center !important;
  line-height: 1 !important;
  border-style: solid !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.48) !important;
}

@media (min-width: 920px) {
  .cc-control-2sub {
    height: 32px !important;
  }
  .cc-control-2sub__button {
    height: 28px !important;
    width: 42px !important;
    font-size: 16px !important;
  }
}
.cc-control-2sub__button.active {
  background-color: #000000 !important;
  color: white !important;
}

.cc-control-2sub__button:hover {
  border-color: #545454 !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.cc-control-2sub__button:focus,
.cc-control-2sub__button:active,
.cc-control-2sub__button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Дополнительные стили для исправления выравнивания кнопок */
.cc-control-2sub__button.vjs-control {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.cc-control-2sub__button.vjs-control::before,
.cc-control-2sub__button.vjs-control::after {
  display: none !important;
}

/* ============================================
   9. Специальные контролы - справа
   ============================================ */
/* Setting Control (настройки) */
.setting-control-2sub {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 100%;
  margin-left: 0 !important;
  position: absolute !important;
  right: calc(38px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
@media (min-width: 920px) {
  .setting-control-2sub {
    right: calc(113px) !important;
  }
}

button.setting-control-2sub__button {
  display: flex;
  justify-content: center;
  width: 48px;
  height: 100%;
  padding: 0;
  align-items: center;
}

button.setting-control-2sub__button:focus,
button.setting-control-2sub__button:active,
button.setting-control-2sub__button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.setting-control-2sub__button::before {
  display: flex;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/setting.svg");
  content: "" !important;
}
@media (min-width: 768px) {
  .setting-control-2sub__button::before {
    width: 24px;
    height: 24px;
  }
}

.setting-control-2sub__button.vjs-control {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Восстанавливаем иконку для кнопки настроек */
.setting-control-2sub__button.vjs-control::before {
  display: flex !important;
  width: 20px;
  height: 20px;
  background-image: url(/wp-content/themes/2sub/images/icons/setting.svg);
  background-size: contain;
  content: "" !important;
}
@media (min-width: 768px) {
  .setting-control-2sub__button.vjs-control::before {
    width: 24px;
    height: 24px;
  }
}

.setting-control-2sub__button.vjs-control::after {
  display: none !important;
}

/* Fullscreen Control */
.vjs-control-bar .vjs-fullscreen-control {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
@media (min-width: 920px) {
  .vjs-control-bar .vjs-fullscreen-control {
    right: calc(53px) !important;
  }
}

/* Dialog Button */
.dialogButton.vjs-control,
.dialogButton.vjs-button {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dialogButton.vjs-control:hover,
.dialogButton.vjs-button:hover {
  border: none !important;
  background: transparent !important;
}

.dialogButton svg {
  display: block;
}

.dialogButton.active svg path {
  fill: #aed3be !important; /* green */
}

.vjs-control-bar .dialogButton {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 6px;
  z-index: 1002;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* ============================================
   10. Иконки контролов
   ============================================ */
/* Play/Pause */
.video-2sub .vjs-play-control.vjs-paused .vjs-icon-placeholder::before,
.video-2sub .vjs-play-control .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/play-fill.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-play-control.vjs-paused .vjs-icon-placeholder::before,
  .video-2sub .vjs-play-control .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub .vjs-play-control.vjs-playing .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/pause.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-play-control.vjs-playing .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

/* Rewind/Forward */
.video-2sub .vjs-rewind-control .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/rewind-5.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-rewind-control .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub .vjs-forward-control .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/forward-5.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-forward-control .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

/* Volume */
.video-2sub .vjs-mute-control .vjs-icon-placeholder::before,
.video-2sub .vjs-mute-control.vjs-vol-3 .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/volume.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-mute-control .vjs-icon-placeholder::before,
  .video-2sub .vjs-mute-control.vjs-vol-3 .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/volume-slash.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/vol-1.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/vol-2.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

/* Fullscreen */
.video-2sub .vjs-fullscreen-control .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/fullscreen.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-fullscreen-control .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

.video-2sub.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/minimize.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .vjs-info {
    display: none !important;
  }
}
/* Chromecast */
.video-2sub .vjs-chromecast-button .vjs-icon-placeholder::before {
  display: block !important;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/2sub/images/icons/chromecast.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  content: "" !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  .video-2sub .vjs-chromecast-button .vjs-icon-placeholder::before {
    width: 24px;
    height: 24px;
  }
}

/* Позиционирование кнопки Chromecast в правом верхнем углу плеера */
/* Убеждаемся, что video-js имеет position: relative для абсолютного позиционирования */
.video-2sub.video-js {
  position: relative !important;
}

/* Позиционирование кнопки относительно video-js (не control-bar) */
/* Позиционирование кнопки chromecast - видимостью управляет VideoJS */
.video-2sub.video-js .vjs-chromecast-button {
  position: absolute !important;
  right: 0 !important;
  z-index: 1004 !important;
  margin: 0 !important;
  /* display управляется VideoJS, не переопределяем через !important */
  align-items: center !important;
  justify-content: center !important;
}

/* Когда кнопка видима (VideoJS показал её, нет класса vjs-hidden), применяем flex */
/* Не используем !important, чтобы inline стили VideoJS имели приоритет */
.video-2sub.video-js .vjs-chromecast-button:not(.vjs-hidden) {
  display: flex;
}

/* Позиционирование кнопки chromecast в правом верхнем углу через отрицательный top */
/* Кнопка остается в control-bar, но поднимается вверх через отрицательный top */
.video-2sub.video-js .vjs-control-bar {
  overflow: visible !important;
}

/* ============================================
   11. Tooltips и подсказки
   ============================================ */
.vjs-control-text {
  font-family: "Inter", monospace, "Arial Narrow", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: normal !important;
  z-index: 2147483647 !important;
  top: -25px !important;
}

.vjs-has-mouse .vjs-control-text {
  font-family: "Inter", monospace, "Arial Narrow", Arial, sans-serif !important;
}

/* Показываем подсказки при наведении */
.cc-control-2sub__button:hover .vjs-control-text,
.setting-control-2sub__button:hover .vjs-control-text,
.vjs-control:hover .vjs-control-text {
  opacity: 1 !important;
}

/* ============================================
   Позиционирование tooltips для крайних контролов
   (смещены к центру, стрелка у края)
   ============================================ */
/* Крайняя левая кнопка - cc-control-2sub */
.cc-control-2sub__button .vjs-control-text,
.subtitleButtonEn.vjs-control.vjs-button .vjs-control-text {
  left: 100% !important;
  right: auto !important;
  top: -25px !important;
  transform: translateX(calc(-20% - 14px)) !important;
}

.cc-control-2sub__button .vjs-control-text:after,
.subtitleButtonEn.vjs-control.vjs-button .vjs-control-text:after {
  left: 16px !important;
  right: auto !important;
  transform: translate(0, -50%) rotate(45deg) !important;
}

/* Крайняя правая кнопка - dialogButton */
.dialogButton .vjs-control-text {
  left: auto !important;
  right: 100% !important;
  transform: translateX(calc(20% + 14px)) !important;
}

.dialogButton .vjs-control-text:after {
  left: auto !important;
  right: 16px !important;
  transform: translate(0, -50%) rotate(45deg) !important;
}

/* ============================================
   Позиционирование tooltips для центральных контролов
   (по центру, стрелка по центру)
   ============================================ */
/* Контролы воспроизведения (центр) */
.video-js .vjs-control-bar .vjs-rewind-control .vjs-control-text,
.video-js .vjs-control-bar .vjs-play-control .vjs-control-text,
.video-js .vjs-control-bar .vjs-forward-control .vjs-control-text {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.video-js .vjs-control-bar .vjs-rewind-control .vjs-control-text:after,
.video-js .vjs-control-bar .vjs-play-control .vjs-control-text:after,
.video-js .vjs-control-bar .vjs-forward-control .vjs-control-text:after {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Контрол громкости */
.video-js .vjs-control-bar .vjs-mute-control .vjs-control-text {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.video-js .vjs-control-bar .vjs-mute-control .vjs-control-text:after {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Контролы справа (но не крайние) */
.setting-control-2sub__button .vjs-control-text,
.video-js .vjs-control-bar .vjs-fullscreen-control .vjs-control-text {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.setting-control-2sub__button .vjs-control-text:after,
.video-js .vjs-control-bar .vjs-fullscreen-control .vjs-control-text:after {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

:root {
  --skip-button-bottom: 90px;
}

/* Для нативных субтитров */
.vjs-touch-nav, .vjs-big-play-button {
  display: none !important;
}

.button-get-server {
  padding: 8px 16px;
  margin: 5px;
  border-radius: 4px;
  font-size: 14px;
  background-color: rgba(125, 125, 125, 0.4901960784) !important;
  width: auto !important;
  border: 2px solid white !important;
  cursor: pointer !important;
}

.button-get-server:hover {
  background-color: rgba(0, 0, 0, 0.49) !important;
  transform: scale(1.02);
}

.button-get-server.active {
  border: 2px solid #ff8000 !important;
}

.yo-nowrap {
  white-space: nowrap;
}

.dialogue-item .dialogue__original > span:hover,
.dialogue-item .origin_word {
  z-index: 999;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'><polygon points='3,2 3,14 12,10' fill='white'/><text x='13' y='26' font-family='Arial' font-size='14' fill='white' font-weight='900'>RU</text></svg>") 3 2, default !important;
}
.dialogue-item .dialogue__original > span:hover::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  bottom: -2px;
  border-radius: 8px;
  background-color: rgba(54, 54, 54, 0.85);
  z-index: -1;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'><polygon points='3,2 3,14 12,10' fill='white'/><text x='13' y='26' font-family='Arial' font-size='14' fill='white' font-weight='900'>RU</text></svg>") 3 2, default !important;
}
.dialogue-item--active .dialogue__original > span:hover::before {
  background-color: rgba(91, 91, 91, 0.85);
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'><polygon points='3,2 3,14 12,10' fill='black'/><text x='13' y='26' font-family='Arial' font-size='14' fill='black' font-weight='900'>RU</text></svg>") 3 2, default !important;
}

.small_help_string {
  position: relative;
  display: inline-block;
}
.small_help_string .small_help_string_text {
  position: relative;
  top: 0;
  left: 0;
  min-width: 25px;
  font-size: 12px;
  background-color: #7e7e7e;
  color: #fff;
  text-align: center;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 0 6px;
  white-space: nowrap;
  z-index: 1;
  display: block;
  margin-bottom: 2px;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><line x1="6" y1="6" x2="18" y2="18" stroke="black" stroke-width="2" stroke-linecap="round"/><line x1="6" y1="6" x2="18" y2="18" stroke="white" stroke-width="1.4" stroke-linecap="round"/><line x1="18" y1="6" x2="6" y2="18" stroke="black" stroke-width="2" stroke-linecap="round"/><line x1="18" y1="6" x2="6" y2="18" stroke="white" stroke-width="1.4" stroke-linecap="round"/></svg>') 12 12, not-allowed;
}
.dialogue-item .small_help_string .small_help_string_text:hover {
  z-index: 9999999 !important;
  background-color: #ff2828 !important;
  color: white !important;
}
.small_help_string:hover .tooltiptext {
  visibility: visible;
}

.origin_word {
  cursor: pointer;
  display: block;
}

/* Если нужен фон/декор, используем ::before, но без курсора */
.centered {
  text-align: center;
}

.playback-report {
  z-index: 2147483647 !important;
}

/* Скрыть PiP */
.vjs-picture-in-picture-control {
  display: none !important;
}

/*setting-popup__content*/
.video-setting-popup-sub-slider input {
  margin-left: 36px;
}

input[type=range] {
  width: 70%;
  accent-color: #666; /* работает в Chrome/Edge/Safari */
}

/* Firefox */
input[type=range]::-moz-range-progress {
  background: #666;
  height: 4px;
}

input[type=range]::-moz-range-track {
  background: #ddd;
  height: 4px;
}

.video-setting-button-bar {
  background-color: #efefef;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.video-setting-button-bar.hotkey-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.video-setting-button-bar.hotkey-clickable:hover {
  background-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.video-setting-button-bar.hotkey-clickable:active {
  background-color: #b8b8b8;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.speed-preset-buttons {
  margin-top: 0;
  padding: 0 20px 50px;
}

.speed-preset-buttons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 100%;
}

.speed-preset-buttons__grid .speed-preset-button {
  background-color: transparent;
  border: 1px solid #ffffff !important;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px !important;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center !important;
  min-height: 32px;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}
.speed-preset-buttons__grid .speed-preset-button:hover {
  border: 1px solid var(--subtitle-primary) !important;
}
.speed-preset-buttons__grid .speed-preset-button:active {
  border: 1px solid var(--subtitle-primary) !important;
  background-color: red;
}
.speed-preset-buttons__grid .speed-preset-button.active {
  background-color: var(--subtitle-primary);
  border-color: var(--subtitle-primary);
  color: white !important;
  font-weight: 600;
}
.speed-preset-buttons__grid .speed-preset-button.active:hover {
  background-color: var(--subtitle-primary);
  border-color: var(--subtitle-primary);
  opacity: 0.9;
}

/*!
Theme Name: 2sub
Theme URI: http://2sub.moovie
Author: Soft24
Description: 2sub theme
Version: 0.22
License: commercial
*/
/*  global variables */
/* Variables */
/* Breakpoints */
/* Font */
/* Palette color */
/* Color */
/* Breakpoints */
.vjs-poster {
  display: none !important;
}

.bn-close-subtitle {
  width: 25px !important;
  height: 25px !important;
  right: 15px !important;
  top: 5px !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

@media (max-width: 920px) and (orientation: portrait) {
  .bn-close-subtitle {
    display: none !important;
  }
}
@media (max-width: 920px) {
  .layout-dialog__resize-zone {
    background-color: #2c2c2c;
  }
}
.video-2sub {
  height: revert-layer;
}

.layout-dialog {
  display: block;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
}

@media (min-width: 920px) {
  .layout-dialog {
    display: flex;
  }
}
@media (orientation: landscape) {
  .layout-dialog {
    display: flex;
  }
}
.layout-dialog__left-side {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
}

.layout-dialog__actions {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 2;
  display: none;
  align-items: center;
  height: 40px;
  opacity: 1;
  transition: opacity 0.2s, top 0.2s;
}

@media (min-width: 768px) {
  .layout-dialog__actions {
    display: flex;
  }
}
@media (orientation: landscape) {
  .layout-dialog__actions {
    display: flex;
  }
}
.vjs-has-started.vjs-user-inactive.vjs-playing + .layout-dialog__actions {
  top: -80px;
  opacity: 0;
}

.layout-dialog__resize-zone {
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 9;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.layout-dialog__resize-zone:hover {
  background: #606060;
}

.layout-dialog__button {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  font-family: "Sofia Sans Extra Condensed", monospace, "Arial Narrow", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  column-gap: 12px;
}

.hide {
  display: none;
}

.layout-dialog__right-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  flex-grow: 1;
  width: 0;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  text-wrap: balance;
}

.layout-dialog__right-side.hide {
  /* stylelint-disable-next-line declaration-no-important */
  width: 0 !important;
}

.layout-dialog__right-side.open {
  width: 100%;
}

@media (orientation: landscape) {
  .layout-dialog__right-side.open {
    width: 35%;
    min-width: 200px;
    max-width: 850px;
  }
}
@media (min-width: 920px) {
  .layout-dialog__right-side.open {
    width: calc(150px + 12vw);
    min-width: 150px;
    max-width: 650px;
  }
}
/* video-2sub */
.video-top-controls {
  font-size: 20px;
}

@media (min-width: 920px) {
  .video-top-controls {
    font-size: 28px;
  }
}
.video-episode-info {
  font-size: 16px;
  margin-top: 6px;
}

.video-episode-info button {
  font-size: 16px;
}

@media (min-width: 920px) {
  .video-episode-info {
    top: 50px;
    font-size: 18px;
  }
}
@media (min-width: 1920px) {
  .video-episode-info {
    top: 60px;
  }
}
.video-2sub {
  width: 100%;
  height: calc(60vw + 150px);
}

@media (min-width: 920px) {
  .video-2sub {
    height: 100%;
  }
}
@media (orientation: landscape) {
  .video-2sub {
    height: 100%;
  }
}
.video-2sub .vjs-info {
  display: flex;
  background: transparent;
}

@media (min-width: 768px) {
  .video-2sub .vjs-info {
    display: flex;
  }
}
@media (orientation: landscape) {
  .video-2sub .vjs-info {
    display: flex;
  }
}
/* Убираем outline для всех элементов в vjs-control-bar при любом фокусе */
/* Переопределяем стили Video.js, которые добавляют пунктирную рамку */
.playerErrorMessage {
  background-color: rgba(0, 0, 0, 0.73);
  color: yellow;
  margin-top: 60px;
  padding-top: 12px;
  padding-bottom: 20px;
  text-align: center;
  width: 100%;
  font-size: 14px;
  pointer-events: auto;
  z-index: 10000;
  position: relative;
}

.playerErrorMessageTitle {
  color: #ff7724;
}

.playerErrorMessageText {
  color: white;
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}

.playerErrorMessage h6 {
  font-size: 14px !important;
}

@media (min-width: 600px) {
  .playerErrorMessage {
    margin-top: 120px;
    font-size: 16px;
  }
}
@media (min-width: 920px) {
  .playerErrorMessage {
    margin-top: 150px;
    font-size: 16px;
  }
  .playerErrorMessageText {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 20px;
  }
  .playerErrorMessage h6 {
    font-size: 16px !important;
  }
}
.video-setting-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000000 !important;
  display: none;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

/* Стили для портала в .video-js */
.video-js .video-setting-popup {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000 !important;
  display: none;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.video-setting-popup.active {
  display: flex;
}

.video-setting-popup__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  background-color: transparent;
}

/* Стили для overlay в портале .video-js */
.video-js .video-setting-popup__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  background-color: transparent;
}

@media (min-width: 920px) {
  .video-js .video-setting-popup__overlay {
    background-color: transparent;
  }
}
@media (min-width: 920px) {
  .video-setting-popup__overlay {
    background-color: transparent;
  }
}
/* Общие стили для popup content */
.video-setting-popup__content {
  /* Общие свойства */
  display: flex;
  max-width: 420px;
  overflow: hidden;
  overflow-y: auto;
  font-size: 16px;
  /* Стили для обычного режима */
  position: fixed;
  bottom: 20px;
  z-index: 2147483647 !important;
  min-width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: auto;
  left: 6px;
  right: 6px;
}

@media (min-width: 460px) {
  .video-setting-popup__content {
    left: auto;
    right: 20px;
    width: 430px;
  }
}
@media (min-width: 920px) {
  .video-setting-popup__content {
    position: absolute;
    right: 25px;
    width: 450px;
    bottom: 90px;
  }
}
@media (min-width: 1400px) {
  .video-setting-popup__content {
    bottom: 110px;
  }
}
@media (min-width: 1920px) {
  .video-setting-popup__content {
    width: 450px;
    right: 30px;
  }
}
/* Общие стили для кнопок в попапе */
.video-setting-popup button {
  /* Общие свойства для всех кнопок */
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: none !important;
  background: transparent;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  box-sizing: border-box !important;
  /* Стили для обычного режима */
  justify-content: flex-start !important;
}

.video-setting-popup-button,
.video-setting-popup-checkbox,
.video-setting-popup-radio {
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 1 !important;
  box-sizing: border-box !important;
  padding: 8px 20px !important;
  transition: background-color 0.2s ease !important;
}

@media (min-width: 600px) {
  .video-setting-popup-button,
  .video-setting-popup-checkbox,
  .video-setting-popup-radio {
    padding: 12px 20px !important;
  }
}
.video-setting-popup-button:hover,
.video-setting-popup-checkbox:hover,
.video-setting-popup-radio:hover {
  background-color: #f3f4f6 !important;
}

.video-setting-popup-button:active,
.video-setting-popup-checkbox:active,
.video-setting-popup-radio:active {
  background-color: #e5e7eb !important;
}

.video-setting-popup-button__label,
.video-setting-popup-checkbox__label,
.video-setting-popup-radio__label {
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  pointer-events: none !important;
}

.video-setting-popup-button__icon,
.video-setting-popup-checkbox__icon,
.video-setting-popup-radio__icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.video-setting-popup-button:hover .video-setting-popup-button__icon,
.video-setting-popup-checkbox:hover .video-setting-popup-checkbox__icon,
.video-setting-popup-radio:hover .video-setting-popup-radio__icon {
  opacity: 0.8 !important;
}

/* Стили для input элементов */
.video-setting-popup input[type=checkbox],
.video-setting-popup input[type=radio] {
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* Стили для sub-radio (компактные опции) */
.video-setting-popup-sub-radio {
  padding: 8px 12px !important;
}

.video-setting-popup-sub-radio__icon {
  width: 16px !important;
  height: 16px !important;
  color: green;
}

.video-setting-popup-sub-radio:hover {
  background-color: #f3f4f6 !important;
  transition: background-color 0.2s ease !important;
}

/* Стили для sub-меню в обычном режиме */
.video-setting-popup-sub {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-setting-popup-sub-slider {
  padding: 12px 16px;
}

.video-setting-popup-sub-slider__value {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  width: 70px;
}

.video-setting-popup-sub-slider__value__speed {
  width: 75px;
}

/* Стили для content в портале .video-js */
.video-js .video-setting-popup__content {
  /* Переопределяем только специфичные для портала свойства */
  position: absolute;
  z-index: 2147483647 !important;
  bottom: 70px; /* Позиционируем над .vjs-progress-control на мобильных */
  right: 5px;
  left: 5px;
  /* Убираем свойства, которые не нужны в портале */
  min-width: unset;
  background: unset;
  border-radius: unset;
  box-shadow: unset;
}

@media (min-width: 600px) {
  .video-js .video-setting-popup__content {
    left: auto;
    right: 10px;
    bottom: 90px; /* Позиционируем над .vjs-progress-control */
  }
}
/* Стили для полноэкранного режима */
.video-js.vjs-fullscreen .video-setting-popup__content {
  bottom: 90px; /* Больше отступ в полноэкранном режиме */
  right: 30px;
}

/* Переопределяем VideoJS стили для кнопок в попапе */
.video-js .video-setting-popup button {
  /* Переопределяем только специфичные для портала свойства */
  padding: 10px 16px !important;
}

/* Специфичные стили для разных типов кнопок в попапе */
.video-js .video-setting-popup-button {
  width: 100% !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.video-js .video-setting-popup-checkbox {
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 1 !important;
}

.video-js .video-setting-popup-radio {
  width: 100% !important;
  padding: 6px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Медиа-запросы для кнопок в попапе */
@media (min-width: 920px) {
  .video-js .video-setting-popup button {
    padding: 10px 24px !important;
  }
  .video-js .video-setting-popup-checkbox {
    padding: 10px 24px !important;
  }
  .video-js .video-setting-popup-radio {
    padding: 10px 24px !important;
  }
}
@media (min-width: 1920px) {
  .video-js .video-setting-popup button {
    padding: 14px 1.25vw !important;
  }
  .video-js .video-setting-popup-checkbox {
    padding: 14px 1.25vw !important;
  }
  .video-js .video-setting-popup-radio {
    padding: 14px 1.25vw !important;
  }
}
/* Стили для элементов внутри кнопок попапа */
.video-js .video-setting-popup-button__label {
  flex: 1 !important;
  text-align: left !important;
  margin-right: 8px !important;
}

.video-js .video-setting-popup-button__icon {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
}

.video-js .video-setting-popup-checkbox__icon {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
}

.video-js .video-setting-popup-checkbox__label {
  flex: 1 !important;
  text-align: left !important;
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  pointer-events: none !important;
}

.video-js .video-setting-popup-radio__label {
  flex: 1 !important;
  text-align: left !important;
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  pointer-events: none !important;
}

/* Hover эффекты для кнопок в портале */
.video-js .video-setting-popup-button {
  transition: background-color 0.2s ease !important;
}

.video-js .video-setting-popup-button:hover {
  background-color: rgba(0, 0, 5, 0.1215686275) !important;
}

.video-js .video-setting-popup-checkbox {
  transition: background-color 0.2s ease !important;
}

.video-js .video-setting-popup-checkbox:hover {
  background-color: rgba(0, 0, 5, 0.1215686275) !important;
}

.video-js .video-setting-popup-radio {
  transition: background-color 0.2s ease !important;
}

.video-js .video-setting-popup-radio:hover {
  background-color: rgba(0, 0, 5, 0.1215686275) !important;
}

/* Hover эффекты для элементов внутри кнопок */
.video-js .video-setting-popup-button:hover .video-setting-popup-button__icon {
  opacity: 0.8 !important;
}

.video-js .video-setting-popup-checkbox:hover .video-setting-popup-checkbox__icon {
  opacity: 0.8 !important;
}

.video-js .video-setting-popup-button:hover .video-setting-popup-button__label {
  color: #333 !important;
}

.video-js .video-setting-popup-checkbox:hover .video-setting-popup-checkbox__label {
  color: #333 !important;
}

.video-js .video-setting-popup-radio:hover .video-setting-popup-radio__label {
  color: #333 !important;
}

/* Активные состояния кнопок */
.video-js .video-setting-popup-button:active {
  background-color: rgba(0, 0, 5, 0.2) !important;
  transform: translateY(1px) !important;
}

.video-js .video-setting-popup-checkbox:active {
  background-color: rgba(0, 0, 5, 0.2) !important;
  transform: translateY(1px) !important;
}

.video-js .video-setting-popup-radio:active {
  background-color: rgba(0, 0, 5, 0.2) !important;
  transform: translateY(1px) !important;
}

/* Дополнительные стили для предотвращения конфликтов с VideoJS */
.video-js .video-setting-popup * {
  box-sizing: border-box !important;
}

.video-js .video-setting-popup input[type=checkbox],
.video-js .video-setting-popup input[type=radio] {
  width: auto !important;
  height: auto !important;
  margin: 0 8px 0 0 !important;
  flex-shrink: 0 !important;
}

.video-js .video-setting-popup svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.video-js .video-setting-popup .video-setting-popup-items {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Уменьшенные отступы для sub-radio элементов в портале */
.video-js .video-setting-popup-sub-radio {
  padding-block: 8px !important;
  padding-inline: 16px !important;
  transition: background-color 0.2s ease !important;
}

.video-js .video-setting-popup-sub-radio:hover {
  background-color: rgba(0, 0, 5, 0.1215686275) !important;
}

@media (min-width: 920px) {
  .video-js .video-setting-popup-sub-radio {
    padding-block: 10px !important;
    padding-inline: 20px !important;
  }
}
@media (min-width: 1920px) {
  .video-js .video-setting-popup-sub-radio {
    padding-block: 0.5vw !important;
    padding-inline: 1vw !important;
  }
}
/* Стили для иконок sub-radio элементов в портале */
.video-js .video-setting-popup-sub-radio__icon {
  width: 20px !important;
  height: 20px !important;
}

/* Стили для значения ползунка в подменю */
.video-setting-popup-sub-slider__value {
  font-weight: 500 !important;
  color: #374151 !important;
  min-width: 70px !important;
  text-align: center !important;
  padding: 4px 8px !important;
  background-color: #f3f4f6 !important;
  border-radius: 6px !important;
  border: 1px solid #d1d5db !important;
}

@media (min-width: 920px) {
  .video-js .video-setting-popup-sub-radio__icon {
    width: 22px !important;
    height: 22px !important;
  }
}
@media (min-width: 1920px) {
  .video-js .video-setting-popup-sub-radio__icon {
    width: 1.1vw !important;
    height: 1.1vw !important;
  }
}
.video-setting-popup-items {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 14px;
  color: #000005;
  padding-block: 16px;
}

.video-setting-popup-items.shift-left {
  transform: translateX(-100%);
}

.video-setting-popup-checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 16px;
  background-color: transparent;
  border: none;
  font-family: "Inter", monospace, "Arial Narrow", Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
}

@media (min-width: 920px) {
  .video-setting-popup-checkbox {
    padding: 10px 16px;
    padding-inline: 24px;
    padding-block: 14px;
  }
}
@media (min-width: 920px) {
  .video-setting-popup-checkbox {
    padding-inline: 24px;
  }
}
.video-setting-popup-checkbox:hover {
  background-color: rgba(0, 0, 5, 0.1215686275);
}

.video-setting-popup-checkbox:first-of-type {
  border-top: 1px solid rgba(0, 0, 5, 0.1215686275);
}

.video-setting-popup-checkbox__label {
  display: flex;
  align-items: center;
  flex-grow: 1;
  pointer-events: none;
}

.video-setting-popup-checkbox__toggle {
  position: relative;
  display: flex;
  width: 40px;
  height: 24px;
  background: rgba(0, 0, 5, 0.1215686275);
  border-radius: 47px;
}

.video-setting-popup-checkbox__toggle::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 20px;
  height: 20px;
  background-color: rgb(0, 0, 0);
  border-radius: 50%;
  content: "";
  transition: transform 0.3s;
  transform: translateY(2px) translateX(2px);
}

.video-setting-popup-checkbox__input:checked + .video-setting-popup-checkbox__toggle::before {
  display: none;
}

.video-setting-popup-checkbox__toggle-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.3s;
  transform: translateY(0) translateX(0);
  display: none;
}

.video-setting-popup-checkbox__toggle-icon.active {
  display: block;
}

.video-setting-popup-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 16px;
  background-color: transparent;
  border: none;
  font-family: "Inter", monospace, "Arial Narrow", Arial, sans-serif;
  font-weight: 500;
  transition: background-color 0.3s;
  cursor: pointer;
}

@media (min-width: 920px) {
  .video-setting-popup-button {
    padding: 10px 16px;
    padding-inline: 24px;
    padding-block: 14px;
  }
}
@media (min-width: 920px) {
  .video-setting-popup-button {
    padding-inline: 24px;
  }
}
.video-setting-popup-button:hover {
  background-color: rgba(0, 0, 5, 0.1215686275);
}

.video-setting-popup-button:first-of-type {
  border-top: 1px solid rgba(0, 0, 5, 0.1215686275);
}

.video-setting-popup-button__icon {
  width: 24px;
  height: 24px;
}

.video-setting-popup-button__label {
  display: flex;
  align-items: center;
  flex-grow: 1;
  pointer-events: none;
}

.video-setting-popup-button__value {
  display: flex;
  align-items: center;
  margin-right: 12px;
  margin-left: auto;
  font-size: 12px;
  color: rgba(0, 0, 5, 0.4784313725);
  column-gap: 8px;
}

.video-setting-popup-button__value-icon {
  width: 24px;
  height: 24px;
}

.video-setting-popup-subs {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  width: 100%;
  color: #000005;
}

.video-setting-popup-subs.shift-left {
  transform: translateX(-100%);
}

.video-setting-popup-sub {
  z-index: 1;
  color: #000005;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  padding-block: 12px;
}

.video-setting-popup-sub.active {
  display: flex;
}

.video-setting-popup-sub__button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: none;
  font-family: "Inter", monospace, "Arial Narrow", Arial, sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 5, 0.4784313725);
  transition: background-color 0.3s;
  cursor: pointer;
  column-gap: 12px;
  padding-block: 14px;
  padding-inline: 16px;
}

.video-setting-popup-sub__button:hover {
  color: rgb(0, 0, 0) !important;
}

.video-setting-popup-sub__button-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.video-setting-popup-sub__items {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-setting-popup-sub-radio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px !important;
  cursor: pointer;
}

.video-setting-info {
  display: block;
  align-items: center;
  padding: 8px 20px !important;
  cursor: pointer;
  color: #7c7c7c;
  font-size: 12px;
}

.video-setting-popup-sub-radio__label-icon {
  width: 24px;
  height: 24px;
}

.video-setting-popup-sub-radio__icon {
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-setting-popup-sub-radio__label {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.video-setting-popup-sub-radio__input:checked + .video-setting-popup-sub-radio__icon {
  opacity: 1;
}

.video-setting-popup-sub-radio-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

@media (min-width: 920px) {
  .video-setting-popup-sub-radio-info {
    padding-block: 14px;
    padding-inline: 24px;
  }
}
.video-setting-popup-sub-radio-info__label {
  color: rgba(0, 0, 5, 0.4784313725);
  white-space: nowrap;
}

.dialogue-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  row-gap: 8px;
  cursor: pointer;
}

@media (min-width: 920px) {
  .dialogue-item {
    padding: 16px 20px;
  }
}
.playerjs .dialogue-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dialogue-item .small_help_string {
  padding-top: 0;
}

.dialogue-item .small_help_string .small_help_string_text {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 10px;
  color: #d2d2d2 !important;
  background-color: #3d3d3d !important;
  border: 1px solid #545454 !important;
}

@media (min-width: 920px) {
  .dialogue-item .small_help_string .small_help_string_text {
    font-size: 11px;
  }
}
.dialogue-item.dialogue-item--active {
  border-left: 4px solid var(--brand, rgb(255, 128, 0));
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-bottom: 1px solid transparent;
  padding-left: 18px;
}
@media (max-width: 920px) {
  .dialogue-item.dialogue-item--active {
    padding-left: 9px !important;
  }
}

.dialogue-item__header {
  display: flex;
  column-gap: 8px;
  align-items: center;
  pointer-events: none;
}

.dialogue-item__label {
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  text-align: left;
}

.dialogue-item__content {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.dialogue-item__time {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

.dialogue-item--active .dialogue-item__time {
  color: var(--brand, rgb(255, 128, 0));
}

.dialogue-item__original {
  font-size: 14px;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 60px) {
  .dialogue-item__original {
    font-size: clamp(10px, 10px + 0.4vw, 20px);
  }
}
.dialogue-item__translation {
  font-size: clamp(8px, 8px + 0.3vw, 18px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
}

.dialogue-item__actions {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  column-gap: 0;
  margin-left: -12px;
}

@media (min-width: 920px) {
  .dialogue-item__actions {
    margin-top: 8px;
    margin-bottom: 0;
  }
}
.selected .dialogue-item__actions {
  display: flex;
}

.simple-dialogue-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  row-gap: 12px;
}

.dialogue-item__action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  row-gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  min-height: 38px;
  min-width: 38px;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}
.subtitle__actions .dialogue-item__action, .dialogue-item__actions .dialogue-item__action, .simple-dialogue-item__actions .dialogue-item__action {
  min-height: auto;
}
.dialogue-item__action:hover:not(:disabled) {
  transform: scale(1.1);
  opacity: 0.8;
}
.dialogue-item__action:active:not(:disabled) {
  transform: scale(0.95);
}
.dialogue-item__action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dialogue-item__icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 920px) {
  .dialogue-item__icon {
    width: 24px;
    height: 24px;
  }
}
.dialogue-item__label-action {
  font-size: 10px;
}

@media (min-width: 920px) {
  .dialogue-item__label-action {
    font-size: 12px;
  }
}
.dialogue-item__action-spinner {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dialogue-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes dialogue-spin {
  to {
    transform: rotate(360deg);
  }
}
.dialogue-item__action.adding {
  pointer-events: none;
}

.dialogue-item__action.in-dictionary {
  cursor: pointer;
  opacity: 1;
}
.dialogue-item__action.in-dictionary:hover {
  opacity: 0.8;
}
.dialogue-item__action.in-dictionary:active {
  transform: scale(0.95);
}

.dialogue__content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  flex-wrap: nowrap;
}

@media (max-width: 599px) {
  .dialogue__content-wrapper {
    flex-wrap: wrap;
  }
  .dialogue__content {
    width: 100%;
  }
}
.subtitle__actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  align-items: center;
  column-gap: 8px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  z-index: 10;
}
.subtitle__actions img {
  width: calc(20px + (100vw - 320px) * 0.01);
  height: calc(20px + (100vw - 320px) * 0.01);
  max-width: 30px;
  max-height: 30px;
  min-width: 18px;
  min-height: 18px;
}
@media (min-width: 920px) {
  .subtitle__actions img {
    width: calc(25px + (100vw - 920px) * 0.005);
    height: calc(25px + (100vw - 920px) * 0.005);
    max-width: 35px;
    max-height: 35px;
  }
}

.yo-subtitles.subtitle-replaying .subtitle__actions {
  opacity: 1 !important;
  visibility: visible !important;
}

.balloon {
  position: absolute;
  z-index: 99999;
  max-width: 500px;
}
@media (max-width: 460px) {
  .balloon {
    max-width: calc(100vw - 20px);
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.balloon__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 400px !important;
  max-width: 400px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.1607843137);
}
@media (max-width: 460px) {
  .balloon__wrap {
    padding: 12px 14px;
    box-sizing: border-box;
    width: calc(100vw - 20px) !important;
  }
}

.balloon__header {
  display: flex;
  flex-direction: column;
  min-height: 48px;
  padding-bottom: 16px;
  background-repeat: no-repeat;
  background-position: top right;
  border-bottom: 1px solid rgba(0, 0, 5, 0.12);
}

.balloon__status {
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: rgb(39, 39, 44);
  text-align: left;
}

.balloon__error {
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
  color: #000000;
  text-align: left;
}

.balloon__form {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #000000;
  text-align: left;
}

.balloon__form-pos {
  margin-left: 5px;
  font-weight: 200;
  color: rgba(0, 0, 5, 0.48);
}

.balloon__header-main {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.balloon__word {
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: #000005;
  text-align: left;
}

.balloon__transcription {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(0, 0, 5, 0.48);
  text-align: left;
  column-gap: 8px;
}

.balloon__translation {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: rgba(0, 0, 5, 0.48);
  text-align: left;
}

.balloon__body {
  padding: 16px 0;
}

.balloon__more-button {
  width: 100% !important;
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  column-gap: 4px;
}

.balloon__more-button-text {
  width: 100%;
}

.balloon_message_background {
  background-color: rgb(0, 0, 0);
  animation: fadeInOut 3s ease-in-out;
  border-radius: 20px;
  padding: 0 12px;
  position: relative;
  z-index: 2147483647;
}

.balloon_message {
  color: white;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.balloon__more-button-icon {
  display: flex;
  align-items: center;
  transform: scale(-1);
  align-self: anchor-center;
}

.balloon__more-button-icon {
  margin-right: -6px;
}

.balloon__more-button.active .balloon__more-button-icon {
  transform: scale(1);
  margin-right: -8px;
}

.balloon__more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease-in-out;
}

.balloon__more-items {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.balloon__more-item {
  display: flex;
  justify-content: space-between;
  column-gap: 16px;
}

.balloon__more-item-word {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: rgb(0, 0, 5);
  text-align: left;
}

.balloon__more-item-word::first-letter {
  text-transform: uppercase;
}

.balloon__more-item-part {
  flex-shrink: 0;
  padding-top: 0;
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(0, 0, 5, 0.49);
  text-align: left;
  align-self: anchor-center;
}

.balloon__footer {
  display: flex;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 5, 0.12);
  column-gap: 24px;
  margin-top: auto;
}

.balloon__button {
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  background-color: transparent !important;
  border: none !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: rgb(0, 0, 5) !important;
  text-align: left !important;
  transition: color 0.3s !important;
  cursor: pointer !important;
  column-gap: 4px !important;
}

.balloon__button:hover,
.balloon__button.active {
  color: rgb(255, 128, 0);
}

.balloon__button--setting {
  margin-left: auto;
}

.balloon__setting {
  position: relative;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  min-height: 254px;
  padding: 20px 24px;
  padding-left: calc(4% + 24px);
  background-color: #ffffff;
  border-radius: 0 16px 16px 0;
  visibility: hidden;
  transition: transform 0.3s;
}

.balloon__setting.active {
  visibility: visible;
  z-index: 11;
}

/* Main 488 + settings 488 */
@media (min-width: 976px) {
  .balloon__setting {
    width: 488px;
  }
  .balloon__setting.active {
    transform: translateX(94%);
    z-index: 1;
  }
}
.balloon__setting-title {
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: rgb(0, 0, 5);
  text-align: left;
}

.balloon__button--close {
  position: absolute;
  top: 22px;
  right: 24px;
}

.balloon__setting-content {
  padding: 16px 0;
}

.balloon-setting-items {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.balloon-setting-item {
  display: flex;
  column-gap: 12px;
  cursor: pointer;
}

.balloon-setting-item__box {
  display: flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 5, 0.12);
  border-radius: 8px;
}

.balloon-setting-item__box-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.balloon-setting-item__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(100%);
}

.balloon-setting-item__input:checked + .balloon-setting-item__box .balloon-setting-item__box-icon {
  opacity: 1;
}

.balloon-setting-item__title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: rgb(0, 0, 5);
  text-align: left;
}

.vjs-subs-caps-button {
  display: none;
}

.play-disable {
  background: rgba(121, 121, 121, 0.86);
  color: lightgray;
}

.next-button {
  width: auto !important;
  background-color: #262626 !important;
  color: #ababab !important;
  padding: 0 5px !important;
  border-radius: 3px !important;
}

.next-button:hover {
  background-color: #414141 !important;
  color: #ffffff !important;
}

.vjs-info img {
  padding: 0 10px;
  vertical-align: middle;
  max-height: 2em;
}

.player-message-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-message {
  width: auto;
  margin-top: 10px;
  padding: 8px 16px;
  white-space: normal;
  color: #cccccc;
  font-size: 0.6em;
  text-align: center;
  background-color: rgba(63, 63, 63, 0.75);
  border-radius: 16px;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-message-button {
  display: block;
  font-size: 1.2em;
}

.as-button {
  /* Основные стили кнопки */
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  /* Эффект наведения */
  /* Эффект нажатия */
  /* Состояние фокуса (для доступности) */
  /* Отключенное состояние */
}

.as-button:hover {
  background-color: rgba(83, 83, 83, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.as-button:active {
  background-color: rgba(43, 43, 43, 0.85);
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition-duration: 0.1s;
}

.as-button:focus {
  outline: 2px solid rgba(204, 204, 204, 0.5);
  outline-offset: 2px;
}

.as-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.vjs-info .vjs-text {
  margin-left: 35px;
  /* flex: auto; */
  /* overflow: hidden; */
  padding-right: 2px;
  /* margin-right: 10px; */
  /* text-align: end; */
  /* padding: 0 !important; */
  /*position: relative!important;*/
  /* top: 0; */
  /*display: inline-block!important;*/
  /* right: 0; */
  /*display: contents;*/
}

.layout-dialog__left-side-header {
  padding-top: 10px;
}

.layout-dialog__button {
  min-width: 150px;
  margin-right: 0px;
  text-align: end;
  right: 12px;
  top: 12px;
  display: block;
  position: absolute !important;
}

.layout-dialog__button-close {
  /*top: 16px!important;*/
  /*left: 16px!important;;*/
  /*z-index: 9;*/
  margin-right: auto;
  background-color: transparent;
  border: 0;
  /*position: sticky;*/
  position: absolute;
  /*right: 0;*/
  left: 0px !important;
  /*left: unset;*/
  top: 12px;
  width: 25px;
  display: block !important;
}

.vjs-icon {
  margin-left: 35px;
}

.video-js .vjs-touch-nav {
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.4s, opacity 0.4s;
  display: flex;
  position: absolute;
  top: 35% !important;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
  .video-setting-popup-button.video-setting-popup-hot-buttons {
    display: none !important;
  }
}
@media (min-width: 920px) {
  .video-js .vjs-touch-nav {
    top: 50% !important;
  }
}
.vjs-text-track-display {
  position: absolute;
  inset: 0 !important;
}

.yo-subtitles-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Прижимает дочерние элементы к низу */
  z-index: 1000;
}

.yo-subtitles {
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  direction: ltr;
  writing-mode: horizontal-tb;
  unicode-bidi: plaintext;
  text-align: center;
  white-space: pre-line;
  background-color: rgba(0, 0, 0, 0);
  position: relative;
  gap: 8px;
}

.inner-subtitles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#thePrevSubtitle {
  padding-bottom: 56px;
}

.yo-subtitles .en-subtitle {
  margin: 0;
  pointer-events: auto !important;
  color: rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
  inset: 0px;
  display: inline-block;
  writing-mode: horizontal-tb;
  unicode-bidi: plaintext;
  font-family: sans-serif;
  font-weight: 500;
  /* Плавные изменения */
  border-radius: 1.5vw;
  text-wrap: balance;
}

.yo-subtitles .en-subtitle .small_help_string {
  padding-top: 0;
  padding-bottom: 0;
  cursor: pointer;
}

.yo-subtitles .en-subtitle .small_help_string:hover {
  text-decoration: underline;
  text-decoration-color: #F2A130; /* Оранжевый цвет */
  text-decoration-thickness: 2px;
}

@media (min-width: 1440px) {
  .yo-subtitles .en-subtitle .small_help_string:hover {
    text-decoration-thickness: 3px;
  }
}
.yo-subtitles .en-subtitle .small_help_string_text {
  line-height: normal;
  height: auto;
  text-shadow: rgb(34, 34, 34) 2px 2px 3px, rgb(34, 34, 34) 2px 2px 4px, rgb(34, 34, 34) 2px 2px 5px;
  margin-bottom: 4px;
}

.yo-subtitles .ru-subtitle {
  margin: 0;
  color: #F2A130;
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
  inset: 0;
  display: inline-block;
  writing-mode: horizontal-tb;
  font-family: sans-serif;
  font-weight: 400;
  /* Плавные изменения */
  border-radius: 1.5vw;
  text-wrap: balance;
}

.vjs-poster {
  background-size: cover !important;
  top: unset !important;
}

#play-button-text {
  text-align: left;
}

/* fix player back arrow position */
.vjs-1600 .vjs-info .vjs-text {
  scale: none !important;
}

.vjs-480 .vjs-info .vjs-text {
  scale: none !important;
}

.vjs-info .vjs-text {
  scale: none !important;
}

/* video popup */
.vjs-info {
  cursor: auto !important;
}

.yo-player #nextHTML {
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.yo-player #nextEpisode {
  display: block;
}

.yo-player #nextHTML .time-end-modal__content::before {
  display: none;
}

.yo-player #nextHTML .time-end-modal {
  position: absolute;
  z-index: 9999;
  display: none;
  margin-top: 0;
  top: 50%;
}

.yo-player #nextHTML .time-end-modal__wrap {
  padding: 19px;
  justify-content: center;
  align-content: center;
}

.yo-player #nextHTML .time-end-modal__buy {
  margin-left: 0;
}

.yo-player #nextHTML .button--buy {
  padding: 10px 18px;
  font-size: 16px;
}

@media (min-width: 565px) {
  .yo-player #nextHTML .time-end-modal-inner {
    display: flex;
  }
}
@media (max-width: 565px) {
  .yo-player #nextHTML .time-end-modal {
    display: none;
    top: 65px;
  }
  .yo-player #nextHTML .time-end-modal__content {
    display: none;
  }
}
.yo-player .media-child {
  width: 100%;
  height: 100%;
  /*object-fit: contain  ;*/
}

.yo-player .inline-block {
  display: inline-block;
}

#playerjs_container {
  position: fixed !important;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  z-index: -999;
  opacity: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#playerjs_container.show {
  /*display: block;*/
  opacity: 1;
  z-index: 999;
  top: 0;
}

#playerjs_container.hideload {
  display: none;
  position: absolute;
  top: -9999px;
}

/* Стили для кнопки "пропустить заставку" */
.yo-skip-button {
  position: absolute;
  bottom: 120px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid rgb(210, 210, 210);
  transition: all 0.2s ease;
  user-select: none;
}
.yo-skip-button:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgb(255, 255, 255);
  transform: scale(1.03);
}
.yo-skip-button.vjs-hidden {
  display: none;
}
.yo-skip-button .yo-skip-button-text {
  margin: 0;
  padding: 0;
}
.yo-skip-button .yo-skip-button-small-text {
  padding-top: 6px;
  color: #8f8f8f;
  font-size: 12px;
}

/* Стили для toast-уведомлений */
.yo-toast-notification {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(0, 0, 0);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  z-index: 100001 !important;
  pointer-events: auto !important;
  animation: yo-toast-fade-in 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  border: 1px solid rgb(210, 210, 210);
  font-size: clamp(16px, 1.125rem + 0.33vw, 24px);
}
.yo-toast-notification a {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}
.yo-toast-notification.yo-toast-fade-out {
  animation: yo-toast-fade-out 0.3s ease;
  opacity: 0;
}

.yo-toast-notification-alert {
  color: #ff4343;
}

@keyframes yo-toast-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes yo-toast-fade-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}
.smart-back-button {
  display: none !important;
}

/* Smart back button styles */
.smart-back-button.vjs-control,
.smart-back-button.vjs-button {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-right: 0;
}

.video-2sub .smart-back-button {
  margin-right: 0 !important;
}

.smart-back-button.vjs-control:hover,
.smart-back-button.vjs-button:hover {
  border: none !important;
  background: transparent !important;
}

.smart-back-button img {
  align-self: anchor-center;
  display: block;
}

.vjs-control-bar .smart-back-button {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 6px;
}

.smart-back-button .vjs-control-text {
  left: 0 !important;
  right: auto !important;
  transform: translate(0, 0) !important;
}

.smart-back-button .vjs-control-text:after {
  left: 5px !important;
  right: auto !important;
  transform: translate(0, -50%) rotate(45deg) !important;
}

/* Fix tooltip position for subtitle button RU (EN handled in player-control-panel.scss) */
.subtitleButtonRu .vjs-control-text {
  top: -36px !important; /* lift a bit higher than global */
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 0) !important;
}

.subtitleButtonRu .vjs-control-text:after {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Лейбл REPLAY/SLOW REPLAY в верхнем правом углу видео */
.yo-player .media-child {
  position: relative;
}

.replay-label {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* В полноэкранном режиме */
.video-2sub.vjs-fullscreen .replay-label {
  top: 20px;
  right: 20px;
  font-size: 16px;
  padding: 10px 20px;
}

/* Скрываем спиннер загрузки во время проигрывания субтитра */
.video-js.subtitle-replaying .vjs-loading-spinner {
  display: none !important;
}

/* Импорт стилей мини-плеера */
/* Overlay - обертка для видео */
/* Базовые стили для десктопа и планшетов */
.phrase-miniplayer-overlay {
  position: fixed;
  width: 100%;
  max-width: 400px;
  height: auto;
  background: #000;
  border-radius: 8px;
  z-index: 2147483647 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Центрирование по горизонтали (опционально) */
}

/* Мобильные устройства */
/* Видео элемент */
.phrase-miniplayer-video {
  width: 100%;
  left: 4px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 4px solid #3a3a3a;
}

/* Информация о видео поверх плеера */
.phrase-miniplayer-info {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.47);
  color: #7c7c7c;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 5;
  max-width: calc(100% - 16px);
  word-break: break-word;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phrase-miniplayer-time {
  color: #7c7c7c;
  font-size: 10px;
}

.go-to-player {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
  color: #7c7c7c;
}
.go-to-player svg {
  display: block;
}

/* Индикатор загрузки */
.phrase-miniplayer-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 10;
  gap: 12px;
  border-radius: 8px;
  min-height: 100px;
}

/* Спиннер */
.phrase-miniplayer-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff8000;
  border-radius: 50%;
  animation: phrase-spin 1s linear infinite;
}

@keyframes phrase-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Сообщение об ошибке */
.phrase-miniplayer-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(150, 0, 0, 0.9);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 10;
  border-radius: 8px;
  font-size: 14px;
  min-height: 100px;
}

/* Импорт стилей словаря фраз */
.phrases-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 20px;
  margin-top: 20px;
  row-gap: 20px;
}

@media (min-width: 768px) {
  .phrases-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    margin-top: 30px;
    row-gap: 30px;
  }
}
@media (min-width: 1024px) {
  .phrases-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    margin-top: 40px;
    row-gap: 40px;
  }
}
@media (min-width: 1440px) {
  .phrases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1800px) {
  .phrases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  .phrase-container {
    padding: 0;
  }
}
.phrase-info {
  margin-top: 10px;
  margin-bottom: 20px;
}

.phrase-original {
  margin-bottom: 4px;
}

.phrase-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1e1e1f;
}

.phrase-buttons {
  margin-top: 12px;
  display: flex;
  position: relative;
  background-color: transparent;
}

.phrase-button {
  width: 50px !important;
  height: 50px !important;
}
.phrase-button.deleting {
  pointer-events: none;
  opacity: 0.7;
}
.phrase-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.delete-phrase {
  position: absolute;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.delete-phrase.visible {
  opacity: 1;
  visibility: visible;
}

/* Импорт стилей словаря встроенного перевода */
.inline-translation {
  margin: 4px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 8px);
  padding: 6px 6px;
  background-color: rgb(51, 51, 51);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #ffffff;
  row-gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 920px) {
  .inline-translation {
    padding: 8px 8px;
  }
}
.inline-translation--loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.inline-translation--error {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
}
.inline-translation--message {
  background-color: rgb(0, 0, 0);
  border-color: rgba(93, 93, 93, 0.3);
  position: relative;
  z-index: 2147483647;
}
.inline-translation__header {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}
.inline-translation__header-main {
  display: flex;
  align-items: center;
  column-gap: 8px;
  flex-wrap: wrap;
}
.inline-translation__form {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  line-height: 1.2;
}
.inline-translation__form-pos {
  margin-left: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}
.inline-translation__word {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}
@media (min-width: 920px) {
  .inline-translation__word {
    font-size: 15px;
  }
}
.inline-translation__transcription {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.2;
}
@media (min-width: 920px) {
  .inline-translation__transcription {
    font-size: 12px;
  }
}
.inline-translation__translation {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
  font-weight: 500;
}
@media (min-width: 920px) {
  .inline-translation__translation {
    font-size: 14px;
  }
}
.inline-translation__body {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}
.inline-translation__more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.inline-translation__more-items {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  padding-top: 4px;
}
.inline-translation__more-item {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
}
.inline-translation__more-item-word {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
}
@media (min-width: 920px) {
  .inline-translation__more-item-word {
    font-size: 13px;
  }
}
.inline-translation__more-item-part {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-transform: lowercase;
  line-height: 1.2;
}
.inline-translation__more-button {
  display: flex;
  width: 100%;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
  font-size: 11px;
}
.inline-translation__more-button:hover {
  color: #ffffff;
}
.inline-translation__more-button.active {
  background-color: transparent;
  border: none;
}
.inline-translation__more-button-content {
  width: 100%;
  align-items: center;
}
.inline-translation__more-button-text {
  flex: 1;
  display: flex;
  align-items: center;
}
.inline-translation__more-button.active .inline-translation__more-button-text {
  display: none;
}
.inline-translation__more-button.active .inline-translation__more-button-content {
  justify-content: flex-end;
  align-self: baseline;
}
.inline-translation__more-button-icon {
  opacity: 0.7;
  display: flex;
  align-self: baseline;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: transform 0.2s ease;
  transform: rotate(180deg);
  line-height: 1;
}
.inline-translation__more-button-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.inline-translation__more-button.active .inline-translation__more-button-icon {
  transform: rotate(0deg);
  margin-left: 0;
}
.inline-translation__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.inline-translation__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #ffffff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}
.inline-translation__button:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.inline-translation__button:active {
  transform: translateY(0);
  opacity: 0.6;
}
.inline-translation__button svg,
.inline-translation__button img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: block;
}
@media (min-width: 920px) {
  .inline-translation__button svg,
  .inline-translation__button img {
    width: 20px;
    height: 20px;
  }
}
.inline-translation__message {
  padding: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  text-align: center;
}
.inline-translation__message b {
  font-weight: 600;
  color: #ffffff;
}
@media (min-width: 920px) {
  .inline-translation__message {
    font-size: 13px;
    padding: 10px;
  }
}
.inline-translation__error {
  display: block;
  padding: 8px;
  font-size: 12px;
  color: rgba(255, 100, 100, 0.9);
  text-align: center;
  line-height: 1.3;
}
@media (min-width: 920px) {
  .inline-translation__error {
    font-size: 13px;
    padding: 10px;
  }
}

.translation__button_place {
  margin-left: auto;
}

.long-and-truncated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ (если потребуются)
   ======================================== */
/* Здесь можно добавить дополнительные стили, специфичные для комбо-плеера */

/*# sourceMappingURL=comboplayerstyle.css.map */
