/**
 * watch-player-overlay
 */
.watch-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-modal-overlay);
}

@media (min-width: 640px) {
  .watch-player-overlay {
    display : block;
    position: absolute;
    background-color: transparent;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(255,255,255,0) 100%);
  }
}


/**
 * watch-player-container
 */
.watch-player-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--zindex-player-overlay);
  pointer-events: all;
}

.watch-player-container.-enter {
  opacity: 0;
}

.watch-player-container.-enter-active {
  opacity: 1;
  transition: 0.1s all ease;
}

.watch-player-container.-leave {
  opacity: 1;
}

.watch-player-container.-leave-active {
  opacity: 0;
  transition: 0.1s all ease;
}

.watch-player-contents {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--zindex-player-overlay-elements);
}

.watch-player-modal-card {
  padding: 16px;
  padding-bottom: 48px;
  background: var(--color-white);
}

.watch-player-modal-card > .meta {
  color: var(--color-black-5);
}

.watch-player-modal-card > .title {
  color: var(--color-black-2);
  margin-bottom: 8px;
}

.watch-player-modal-card > .summary {
  color: var(--color-black-1);
  font-size: var(--font-size-h4);
  line-height: 1.25;
}

.watch-player-controls {
  display: flex;
  align-items: center;
  padding: 16px;
}

@media (min-width: 640px) {
  .watch-player-controls {
    padding: 0 16px;
  }
}

@media (min-width: 992px) {
  .watch-player-controls {
    padding: 0 32px;
  }
}

.watch-player-controls > .slider {
  margin-right: 16px;
  width: 100%;
}

@media (min-width: 992px) {
  .watch-player-controls > .slider {
    margin-right: 32px;
  }
}

.watch-player-controls > .time {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: 16px;
}

.watch-player-controls > .time:not(:last-child) {
  margin-right: 16px;
}

@media (min-width: 992px) {
  .watch-player-controls > .time:not(:last-child) {
    margin-right: 32px;
  }
}

/**
 * watch-player-modal-actions
 */
.watch-player-modal-actions {
  display: none;
  padding: 16px;
}

@media (min-width: 640px) {
  .watch-player-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .watch-player-modal-actions {
    padding: 16px 32px;
  }
}

.watch-player-modal-actions > .section {
  display: flex;
  align-items: center;
}

.watch-player-modal-actions > .section:first-child {
  /**
   * Workaround to make text ellipsis work for PlayerModal title.
   */
  min-width: 0;
}

.watch-player-modal-actions > .section:last-child {
  flex-shrink: 0;
}

/**
 * watch-player-modal-action-item
 */
 .watch-player-modal-action-item {
  position: relative;
  margin-right: 32px;
  font-size: 20px;
  color: var(--color-white);
}

@media (min-width: 992px) {
  .watch-player-modal-action-item {
    font-size: 32px;
  }
}

.watch-player-modal-action-item.is-control {
  display: none;
}

@media (min-width: 992px) {
  .watch-player-modal-action-item.is-control {
    display: flex;
  }
}

.watch-player-modal-action-item.is-keyboard-icon {
  display: none;
}

@media (min-width: 992px) {
  .watch-player-modal-action-item.is-keyboard-icon {
    display: block;
  }
}

.watch-player-modal-action-item.is-subtitle-disabled {
  opacity: 0.5;
  transition: 200ms opacity ease;
}

.watch-player-modal-action-item.is-fs-icon {
  margin-right: 0;
}

@media (min-width: 640px) {
  .watch-player-modal-action-item.is-fs-icon {
    margin-right: 32px;
  }
}

.watch-player-modal-action-item.is-chat-icon {
  margin-right: 0;
  display: none;
}

@media (min-width: 640px) {
  .watch-player-modal-action-item.is-chat-icon {
    display: block;
  }
}


/**
 * watch-player-modal-title
 */

.watch-player-modal-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-right: 32px;
}

.watch-player-modal-title > .info {
  margin-left: 8px;
  opacity: 0.75;
}

/**
 * watch-player-browse
 */

.watch-player-browse {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
  .watch-player-browse {
    top: 16px;
    left: 16px;
    font-size: 20px;
  }
}

.watch-player-browse > .icon {
  margin-right: 16px;
}

/**
 * watch-player-mobile-actions
 */

.watch-player-mobile-actions {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.watch-player-mobile-actions > .toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  margin-right: 16px;
  height: 40px;
  width: 40px;
  font-size: 16px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: all;
}

.watch-player-mobile-actions > .toggle > .play {
  padding-left: 2px;
}

.watch-player-mobile-actions > .action {
  padding: 16px;
  font-size: 16px;
  pointer-events: all;
}

@media (min-width: 992px) {
  .watch-player-mobile-actions {
    display: none;
  }
}