:root {
  --mdc-theme-primary: #de6224;
  --mdc-theme-secondary: #de6224;
  font-family: Roboto, sans-serif;
  --mdc-theme-text-disabled-on-light: #717171;
}

ul {
  padding-left: 0px;
  list-style-type: none;
  text-transform: capitalize;
}

ul > * {
  display: list-item;
  margin-right: 0.2rem;
  padding: 0.2rem;
  border-bottom: 1px solid #bdbdbd;
}

ul > *:after {
  content: "";
}

body {
  margin: 10rem;
  color: black !important;
}

.mdc-select,
.mdc-text-field {
  width: 100%;
  margin-right: 10px;
  margin-bottom: 10px;
}

.mdc-button {
  width: 100%;
}

.my-card {
  height: 80%;
  width: 100%;
}

.mdc-card__actions {
  flex-wrap: wrap;
}

.mdc-card__action-icons {
  flex-grow: 0;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.8);
}

.mdc-card {
  padding: 1rem;
}

.material-icons {
  font-size: 28px;
}

.mdc-icon-button {
  height: 46px;
  width: 45px;
  padding: 0px;
}

@media screen and (max-width: 280px) {
  .mdc-icon-button {
    width: 20px;
  }

  .material-icons {
    font-size: 20px;
  }
}

@media screen and (min-width: 281px) and (max-width: 350px) {
  .mdc-icon-button {
    width: 26px;
  }
}

@media screen and (min-width: 351px) and (max-width: 700px) {
  .mdc-icon-button {
    width: 32px;
  }
}

.accordion {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  border-radius: 5px;
  margin: 0.3rem 0rem;
}

.accordion:disabled {
  background-color: #9e9e9e;
}

.active,
.accordion:hover {
  background-color: #555;
}

.accordion:after {
  content: "\002B";
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.accordion__content {
  padding: 0rem 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.mdc-select__selected-text {
  width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* video::-webkit-media-controls-enclosure {
  display: none !important;
} */

.player-card__header {
  display: flex;
  flex-flow: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.player-card__status {
  justify-content: flex-end;
  text-align: right;
  font-weight: bold;
  text-shadow: 1px 1px #ffffff;
  color: Coral;
}

.player-card__title {
  width: 55%;
}

.player-card__header div {
  width: 30%;
}

.container {
  max-width: 1400px;
}

#castbutton {
  float: right;
  margin: 10px 6px 14px 0px;
  width: 40px;
  height: 32px;
  opacity: 0.7;
  border: none;
  outline: none;
  fill: #fff;
  cursor: pointer;
}

#castbutton:hover {
  --disconnected-color: white;
  --connected-color: white;
}

.mv-container {
  margin-top: 20px;
}

.mv-player--show {
  display: inline;
}

.mv-player--hidden {
  display: none;
}

.mv-player-close_btn {
  color: white;
  position: absolute;
  right: 0;
}

.controls-overlay--hidden {
  display: none;
}

#ad-info-container {
  overflow: auto;
  height: 300px;
  top: 30px;
  left: 30px;
  background-color: rgba(77, 76, 76, 0.5);
  color: white;
  display: none;
  font-family: "Work Sans", sans-serif;
}

#ad-tag-container {
  position: absolute;
  top: 95px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 3px solid #fff;
  padding: 10px;
  border-radius: 5px;
  color: white;
  display: none;
}

.enabled {
  color: #28a745;
  cursor: pointer;
}

.disabled {
  cursor: not-allowed;
  color: red;
}

.skip-promo {
  position: absolute;
  bottom: 100px;
  right: 35px;
  width: 120px;
  padding: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  cursor: pointer;
  justify-content: center;
}

.skip-promo:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(0, 0, 0, 0.8);
}

.adtimer-show {
  display: block;
}

.adtimer-hide {
  display: hide;
}

.skip-ad {
  position: absolute;
  bottom: 100px;
  width: 120px;
  right: 35px;
  padding: 10px;
  color: #ffffff;
  font-size: 18px;
  background-color: #000000;
  align-items: center;
  cursor: pointer;
  justify-content: center;
}

.skip-ad:focus,
.skip-ad:hover {
  outline: 2px solid rgb(201, 228, 171);
  color: #ffffff;
  background-color: #de6224;
}

#videoElement,
#adContainer {
  width: 100%;
  height: 100%;
}

.clock {
  background-color: #00000080;
  padding: 5px 10px;
  color: #fff;
  position: absolute;
}
.non-mobile-cast {
  display: block !important;
}
.mobile-cast {
  display: none;
}

.shaka-text-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 75px;
  color: white;
  font-size: 25px;
  z-index: 10;
  font-weight: 900;
}

/* Override individual cue positioning */
.shaka-text-container > div {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  text-align: center !important;
  width: 80% !important;
}

/* Hide old cues (previous duplicate rule removed) */
.shaka-text-container > div:not(:last-child) {
  display: none !important;
}

.shaka-text-container div span {
  background-color: rgba(0, 0, 0, 0.35) !important;
}

@media screen and (max-width: 480px) {
  .mdc-typography--subtitle1 {
    margin: 0;
  }
  .mdc-layout-grid__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-card__title {
    width: 100%;
    font-size: 16px;
  }
  .player-card__header {
    flex-direction: column;
  }
  .non-mobile-cast {
    display: none !important;
  }
  .mobile-cast {
    display: block !important;
    margin-top: 0;
  }
}

.version-card {
  width: 350px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

.title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: bold;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #444;
}

.text-input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.text-input:focus {
  outline: none;
  border-color: var(--mdc-theme-primary);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-selected {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-selected::after {
  content: "▼";
  font-size: 12px;
  color: #666;
}

.custom-dropdown.open .dropdown-selected::after {
  content: "▲";
}

.custom-dropdown.open .dropdown-selected {
  border-color: var(--mdc-theme-primary);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

.dropdown-option {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-option:hover {
  background-color: var(--mdc-theme-primary);
}

.dropdown-option.selected {
  background-color: #e3f2fd;
  color: var(--mdc-theme-primary);
  font-weight: 500;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.apply-btn {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  color: white;
  background: #de6224d4;
  cursor: pointer;
}

.apply-btn:hover {
  background: var(--mdc-theme-primary);
}

/* Disabled state for apply button */
.apply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Shaka Version Overlay */
.shaka-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.versions:focus {
  background-color: red !important;
}

.shaka-overlay.active {
  display: flex !important;
  background-color: #5555559c;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-header .title {
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.close-btn .material-icons {
  font-size: 24px;
}

/* Playback Charts Styles */
#chartsContainer {
  margin-top: 20px;
  width: 100%;
}

#chartsContainer canvas {
  width: 100% !important;
}

@media screen and (max-width: 768px) {
  #chartsContainer canvas {
    height: 100px !important;
  }
}
