﻿* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding-top: 130px;
  background: #000;
  color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ff8800;
  text-decoration: none;
}

a:hover {
  color: #ff8800;
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1000px, calc(100% - 30px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  margin: 0;
  border: 0;
  background: #323232;
}

.navbar-main {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.logo-box {
  display: inline-grid;
  width: 55px;
  height: 34px;
  place-items: center;
  color: #111;
  background: #ff8800;
  border-radius: 2px;
  font-size: 22px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
}

.navbar-nav a {
  display: block;
  padding: 15px 12px;
  color: #ababab;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  width: 44px;
  height: 34px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
}

.navbar-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.submenu {
  background: #232323;
}

.submenu-nav {
  justify-content: flex-end;
  overflow-x: auto;
}

.submenu-nav a {
  flex: 0 0 auto;
  padding: 10px;
  color: #ff8800;
  font-size: 14px;
}

.submenu-nav a:hover,
.submenu-nav a.active {
  color: #fff;
  text-decoration: none;
}

.ad-wrap {
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.ad-img {
  display: block;
  width: 100%;
  height: 58px;
  margin-bottom: 5px;
  color: #fff;
  background: linear-gradient(90deg, #9e1616, #e75b20, #9e1616);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 20px;
  font-weight: 700;
  line-height: 58px;
  text-decoration: none;
}

.ad-img.alt {
  background: linear-gradient(90deg, #223c88, #6c51d6, #223c88);
}

.ad-img.green {
  background: linear-gradient(90deg, #16713d, #22a86a, #16713d);
}

#wrapper {
  position: relative;
}

.container-minheight {
  min-height: 400px;
}

.form-inline {
  margin-top: 15px;
}

.input-group {
  display: flex;
  width: min(600px, 100%);
  margin-bottom: 20px;
}

.form-control {
  height: 34px;
  padding: 6px 12px;
  color: #555;
  background: #fbfbfb;
  border: 1px solid #aaa;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.input-group > input {
  width: 100%;
  min-width: 0;
  border-right: 0;
}

.search-select {
  flex: 0 0 auto;
}

.search-select select {
  width: 160px;
  border-radius: 0;
}

.input-group-btn {
  flex: 0 0 auto;
}

.btn {
  height: 34px;
  padding: 6px 12px;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  min-width: 58px;
  color: #fff;
  background: #ff8800;
}

.well {
  margin-bottom: 15px;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.well-sm {
  padding: 9px;
}

.well-filters {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login_register_header {
  margin: 0;
  padding: 10px 0;
  color: #fff;
  background: #ff8800;
  text-align: center;
}

.login_register_header h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 38px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.video-card {
  width: 25%;
  padding-right: 15px;
  padding-left: 15px;
}

.videos-text-align {
  color: #777;
  text-align: left;
}

.video-link {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.thumb-overlay {
  position: relative;
  height: 135px;
  overflow: hidden;
  background: #000;
}

.img-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 135px;
  object-fit: cover;
  margin-right: auto;
  margin-left: auto;
}

.title-truncate {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-t-5 {
  margin-top: 5px;
}

.video-title {
  padding-left: 5px;
  color: #ff8800;
  font-size: 16px;
  line-height: 1.35;
}

.info {
  display: inline-block;
  padding-left: 5px;
  color: #555;
  font-weight: 700;
}

.video-stats {
  padding: 6px 5px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  font-size: 12px;
}

.hd-text-icon,
.original-text-icon {
  position: absolute;
  top: 5px;
  padding: 1px 3px 0;
  color: #000;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.hd-text-icon {
  right: 5px;
  background: #ff8800;
}

.original-text-icon {
  left: 5px;
  background: #5dc4f5;
}

#paging {
  padding: 5px 0 24px;
  text-align: center;
}

.pagingnav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pagingnav a,
.pagingnav span,
.pagingnav em {
  min-width: 31px;
  height: 30px;
  padding: 0 10px;
  color: #333;
  background: #d8d8d8;
  font-style: normal;
  line-height: 30px;
  text-align: center;
}

.pagingnav span {
  color: #fff;
  background: #ff8800;
}

.page_number {
  width: 52px;
  height: 30px;
  margin-left: 4px;
  color: #555;
  background: #fbfbfb;
  border: 1px solid #aaa;
  text-align: center;
}

.footer-container {
  background: #232323;
}

.footer-links {
  padding: 25px 0;
  color: #999;
  background: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.footer-row {
  padding-right: 20px;
  padding-left: 20px;
}

.player-modal[hidden] {
  display: none;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 44px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #f5f5f5;
  background: #151515;
  border: 1px solid rgba(255, 136, 0, 0.38);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 32px;
  cursor: pointer;
}

.modal-close:hover {
  background: #ff8800;
}

.modal-dialog h2 {
  min-height: 54px;
  margin: 0;
  padding: 16px 58px 14px 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #242424, #181818);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-dialog p {
  margin: 0 40px 12px 0;
  color: #777;
  word-break: break-all;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-top: 1px solid rgba(255, 136, 0, 0.2);
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.74);
  border-radius: 3px;
  font-size: 12px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .navbar-main {
    min-height: 50px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
  }

  .submenu {
    display: none;
  }

  .ad-wrap {
    margin-top: 0;
  }

  .video-card {
    width: 50%;
  }

  .input-group {
    flex-wrap: nowrap;
  }

  .input-group > input {
    flex: 1 1 auto;
    width: auto;
  }

  .search-select {
    flex: 0 0 112px;
    min-width: 0;
  }

  .search-select select {
    width: 112px;
    padding-right: 4px;
    padding-left: 6px;
  }

  .input-group-btn {
    flex: 0 0 44px;
  }

  .btn-primary {
    min-width: 44px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .player-modal {
    padding: 12px;
  }

  .modal-dialog {
    width: min(94vw, 560px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 8px;
  }

  .modal-dialog h2 {
    min-height: 48px;
    padding: 13px 52px 12px 14px;
    font-size: 16px;
    white-space: normal;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 20px);
  }

  .ad-img {
    height: 44px;
    font-size: 15px;
    line-height: 44px;
  }

  .video-card {
    width: 100%;
  }

  .search-select {
    flex-basis: 92px;
  }

  .search-select select {
    width: 92px;
    font-size: 12px;
  }

  .player-modal {
    padding: 10px;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .video-stage {
    max-height: 58dvh;
  }
}
