@charset "UTF-8";

@keyframes dyntube_loading {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.dyntube-skeleton {
  background-color: #e0e0e0;
  background-image: linear-gradient(90deg, rgba(224, 224, 224, 0.6) 0%, rgba(245, 245, 245, 0.8) 50%, rgba(224, 224, 224, 0.6) 100%);
  background-size: 200% 100%;
  animation: dyntube_loading 1.5s infinite;
  border-radius: 4px;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 50px;
}

.dyntube-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.dyntube-embed>* {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dyntube-embed iframe {
  border: none;
}

.dyntube-embed h3 {
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
}

.dyntube-embed.dyntube-embed-16-9:before {
  content: "";
  display: block;
  padding-top: calc(9 / 16 * 100%);
}

.dyntube-display-none {
  display: none;
}

.dyntube-spinner {
  float: none;
  margin: 0 .5rem 0 0;
}

.dyntube-help-list {
  background: #efefef;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  list-style: decimal;
}

.dyntube-help-list li {
  margin-left: 20px;
}

.dyntube-progress-bar-container {
  width: 100%;
  background: #fff;
  height: 30px;
  margin: 1rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.dyntube-progress-bar-container .dyntube-progress-bar {
  width: 0%;
  background: #4caf50;
  height: 100%;
  transition: width 0.6s ease;
  line-height: 30px;
  padding: 0 1rem;
  color: #fff;
}

/* Base styling for the live streams list */
.dyntube-video-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 20px;
  /* Responsive columns: auto-fit to available space */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  /* Style each list item */
}

.dyntube-video-list li {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.dyntube-video-list li:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.dyntube-video-list li h3 {
  word-wrap: break-word;
  font-size: 0.9rem;
  padding: 0 0.5rem;
  margin: 0.5rem 0;
}

.dyntube-video-list li img {
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.dyntube-video-list li a {
  text-decoration: none;
}

.dyntube-video-list li .attachment-thumbnail {
  background-color: #ddd;
  border-bottom: 1px solid #ddd;
}

.dyntube-video-list li .attachment-meta {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #555;
}

.dyntube-video-import-list {
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  padding: 1rem;
}

.dyntube-video-import-list img {
  max-width: 100px;
  height: auto;
}

.dyntube-video-import-list h3 {
  font-size: 1rem;
  display: block;
  margin: 0.5rem 0;
}

.dyntube-video-import-list h3 a {
  text-decoration: none;
  color: inherit;
}

.dyntube-video-import-list h3 a:hover {
  text-decoration: underline;
}

.dyntube-video-import-list label {
  cursor: pointer;
}

.dyntube-video-import-list .count {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.dyntube-video-import-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #eee;
  position: relative;
  padding: 0.5rem 0;
  transition: background-color 0.2s ease;
}

.dyntube-video-import-list li:last-child {
  border-bottom: none;
}

.dyntube-video-import-list li .ajax-error {
  color: red;
  position: absolute;
  top: 1rem;
  right: 0;
  font-size: 0.8rem;
}

.dyntube-video-import-list li .spinner {
  display: none;
  margin: 0;
  padding: 0;
}

.dyntube-video-import-list li.item-error:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 4px;
  top: 0;
  left: -1rem;
  background: red;
}

.dyntube-video-import-list li.importing {
  background: #d3f1ff;
  margin: -0.5rem -1rem;
  padding: 1rem;
}

.dyntube-video-import-list li.importing input[type="checkbox"] {
  display: none;
}

.dyntube-video-import-list li.importing .spinner {
  display: inline-block;
  visibility: visible;
}

.dyntube-video-import-list li:hover {
  background-color: #f9f9f9;
}

#dyntube-video-import-wrapper {
  display: none;
}

#dyntube-video-import-wrapper>button {
  margin-right: 1rem !important;
}

#dyntube-video-import-wrapper>button:last-child {
  margin-right: 0;
}

#dyntube-video-import-wrapper .settings-wrapper {
  margin: 1rem 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div {
  flex: 1 1 100%;
}

#dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div label,
#dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div .regular-text {
  width: 100%;
  display: block;
}

#dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

@media (min-width: 600px) {
  #dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (min-width: 900px) {
  #dyntube-video-import-wrapper .settings-wrapper .settings-wrapper__fields>div {
    flex: 1;
  }
}

#dyntube-video-import-wrapper.active {
  display: block;
}

/* For desktop: 5 columns */
@media screen and (min-width: 1024px) {
  .dyntube-video-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

#dyntube-import-from-sources button[type=submit] {
  display: none;
}

#dyntube-import-from-sources .field-group-projectid {
  display: none;
}

#dyntube-import-from-sources.has-content button[type=submit],
#dyntube-import-from-sources.has-content .field-group-projectid {
  display: block;
}

.dyntube-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.dyntube-header h3,
.dyntube-header p {
  margin: 0;
  display: block;
  padding: 0;
}

.dyntube-logs ul,
.dyntube-logs pre {
  background: #fff;
  padding: 1rem;
  max-height: 500px;
  overflow-y: scroll;
  border: 1px solid #ccc;
}

.dyntube-logs ul li {
  border-bottom: 1px solid #eee;
  list-style: decimal;
  margin: 0 1rem;
}

.dyntube-logs ul li .log-date {
  font-weight: 600;
  margin-bottom: .5rem;
}

.dyntube-logs ul li .event-videoPublished {
  color: #258207;
}

.dyntube-logs ul li .event-streamStarted {
  color: #62b107;
}

.dyntube-logs ul li .event-streamStopped {
  color: #d4b104;
}

.dyntube-badge {
  font-size: 0.7rem !important;
}

.dyntube-bg {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin: 0 0.25rem;
}

.dyntube-bg-danger {
  background-color: #f44336;
  color: #fff;
}

.dyntube-bg-secondary {
  background-color: #9e9e9e;
  color: #fff;
}

.dyntube-badge-stopped {
  background-color: #d4b104;
  color: #fff;
}

.dyntube-badge-started {
  background-color: #62b107;
  color: #fff;
}

.dyntube-sync-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dyntube-alert {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
}

.dyntube-alert-error {
  background: #f8f2f2;
  border: 1px solid red;
  color: #a94442;
}

.dyntube-alert-success {
  background: #f1fce5;
  border: 1px solid #58a205;
  color: #3c763d;
}

.dyntube-alert-info {
  background: #f1fbfd;
  border: 1px solid #cdf8ff;
}

.dyntube-text-danger {
  color: red !important;
}

.dyntube-text-info {
  color: #00aeef !important;
}

.no-selected-videos {
  padding: 0 1rem;
  color: #ff5722;
  line-height: 0;
}

.dyntube-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
}

.dyntube-icon.dyntube-icon-youtube {
  color: #ff0000;
}

.dyntube-icon.dyntube-icon-vimeo {
  color: #1ab7ea;
}

.dyntube-icon.dyntube-icon-twitch {
  color: #6441a5;
}

.dyntube-icon.dyntube-icon-facebook {
  color: #1877f2;
}

.dyntube-icon.dyntube-icon-linkedin {
  color: #0077b5;
}

.dyntube-icon.dyntube-icon-twitter {
  color: #1da1f2;
}

.dyntube-icon.dyntube-icon-twitter:before {
  content: "" !important;
}

.dyntube-icon.dyntube-icon-tiktok {
  color: #000000;
}

.dyntube-icon.dyntube-icon-instagram {
  color: #e4405f;
}

.dyntube-icon.dyntube-icon-dlive {
  color: #5f36b3;
}

.dyntube-icon.dyntube-icon-trovo {
  color: #2a2725;
}

.dyntube-icon.dyntube-icon-mixcloud {
  color: #5000ff;
}

.dyntube-icon.dyntube-icon-kakaotv {
  color: #ffe812;
}

.dyntube-icon.dyntube-icon-navertv {
  color: #2db400;
}

.dyntube-icon.dyntube-icon-nimotv {
  color: #ff5e00;
}

.dyntube-icon.dyntube-icon-mobcrush {
  color: #00aeef;
}

.dyntube-icon.dyntube-icon-kick {
  color: #5d3aff;
}

.dyntube-icon.dyntube-icon-restream {
  color: #6441a5;
}

.dyntube-icon.dyntube-icon-streamyard {
  color: #4285f4;
}

.dyntube-icon.dyntube-icon-cloudflare {
  color: #f38020;
}

.dyntube-icon.dyntube-icon-bigo {
  color: #ff69b4;
}

.dyntube-icon.dyntube-icon-younow {
  color: #00bfff;
}

.dyntube-icon.dyntube-icon-livestream {
  color: #007bff;
}

.dyntube-icon.dyntube-icon-mixer {
  color: #1fbaed;
}

.dyntube-icon.dyntube-icon-smashcast {
  color: #6441a5;
}

.dyntube-icon.dyntube-icon-streamshark {
  color: #29abe2;
}

.dyntube-icon.dyntube-icon-ibmcloud {
  color: #3662e3;
}

.dyntube-icon.dyntube-icon-bambuser {
  color: #00b4ff;
}

.dyntube-icon.dyntube-icon-caffeine {
  color: #cd183a;
}

.dyntube-icon.dyntube-icon-brightcove {
  color: #222222;
}

.dyntube-icon.dyntube-icon-xsplit {
  color: #1a73e8;
}

.dyntube-icon.dyntube-icon-switchboard {
  color: #6441a5;
}

.dyntube-icon.dyntube-icon-customrtmp {
  color: #000;
}

.dyntube-platform {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  display: none;
}

.dyntube-platform:hover {
  transform: translateY(-5px);
}

.dyntube-platform h6 {
  margin-bottom: 1rem;
  font-size: 1em;
  position: relative;
}

.dyntube-platform .btn {
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.dyntube-platform .btn:hover {
  background-color: #0062cc;
}

.dyntube-platform .platform-settings {
  text-align: left;
}

.dyntube-platform .platform-settings label {
  cursor: pointer;
}

.dyntube-platform.platform-active {
  display: block;
}

.dyntube-platforms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .dyntube-platforms-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .dyntube-platform {
    padding: 15px;
  }

  .dyntube-platform h6 {
    font-size: 1em;
  }
}

.dyntube-stream .field-sources {
  width: 100%;
  height: 200px;
}

.dyntube-stream p.description {
  max-width: 600px;
}

.dyntube-stream .danger {
  background-color: #f44336;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.dyntube-stream .button .dashicons {
  font-size: 1rem;
  line-height: 1.7;
}

.dyntube-stream .submit {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
}

.dyntube-stream .section-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.dyntube-stream .project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dyntube-stream .project-list li {
  flex: 1 1 calc(10% - 10px);
  padding: 10px 15px;
  margin: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dyntube-stream .project-list li .region {
  background: #00bcd4;
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dyntube-stream .project-list li .region:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: scale(1.05);
}

.dyntube-stream .project-list li label {
  cursor: pointer;
  display: block;
}

.dyntube-stream .project-list li label input[type="radio"] {
  display: none;
}

.dyntube-stream .project-list li label input[type="radio"]:checked+h3 {
  color: green;
}

.dyntube-stream .project-list li label input[type="radio"]:checked+h3::after {
  content: "✔";
  margin-left: 5px;
  color: green;
  font-size: 0.9em;
}

.dyntube-stream .project-list li .manage-project {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.dyntube-stream .project-list li .manage-project .delete {
  color: red;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dyntube-stream .project-list li .manage-project .delete:hover {
  color: #cc0000;
}

.dyntube-stream .project-list li:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dyntube-stream .dyntube-list {
  max-height: 200px;
  overflow-y: auto;
  background-color: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.dyntube-stream .dyntube-list label {
  cursor: pointer;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.dyntube-stream .dyntube-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #eee;
}

.dyntube-stream .dyntube-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dyntube-stream .dyntube-list.is-empty {
  display: none;
}

.dyntube-stream .dyntube-webhook-urls {
  padding: 1rem 2rem;
  max-height: 500px;
}

.dyntube-stream .dyntube-webhook-urls li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  list-style: decimal;
}

.dyntube-stream .pagination-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.dyntube-stream .pagination-links .page-numbers {
  font-size: 1rem;
  background: #333;
  color: #fff;
  padding: 0.25rem 0.5rem;
  text-transform: capitalize;
  text-decoration: none;
  border-radius: 4px;
  margin: 0 0.25rem;
  transition: background-color 0.3s ease;
}

.dyntube-stream .pagination-links .page-numbers.current {
  background: #00bcd4;
  font-weight: bold;
}

.dyntube-stream .pagination-links .page-numbers:hover {
  background-color: #1a1a1a;
}

.dyntube-stream .stream-platform {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dyntube-stream .stream-platform table {
  width: 100%;
  border-collapse: collapse;
}

.dyntube-stream .stream-platform th,
.dyntube-stream .stream-platform td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.dyntube-stream .section-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d7d7d7;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.dyntube-stream .section-header form {
  margin-left: auto;
}

.dyntube-stream .section-header form input[type="search"] {
  max-width: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .dyntube-stream .project-list li {
    flex: 1 1 100%;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .dyntube-stream .project-list li {
    flex: 1 1 calc(50% - 10px);
  }
}

.dyntube-stream .wp-list-table .img-thumbnail {
  max-width: 100px;
  height: auto;
}

html[data-theme="dark"] .dyntube-skeleton {
  background-color: #121212;
  background-image: linear-gradient(90deg, rgba(50, 50, 50, 0.4) 0%, rgba(70, 70, 70, 0.6) 50%, rgba(50, 50, 50, 0.4) 100%);
  color: #eee;
}

html[data-theme="dark"] .dyntube-video-import-list {
  background-color: #333;
  color: #eee;
}

html[data-theme="dark"] .dyntube-video-import-list li {
  border-bottom-color: #555;
}

html[data-theme="dark"] .dyntube-stream .role-list {
  background-color: #333;
  border-color: #555;
  color: #eee;
}