.source-player {
  width: 100%;
  margin: 20px auto;
  padding: 0;
  font-family: Arial, "Noto Sans TC", sans-serif;
}

.source-player,
.source-player * {
  box-sizing: border-box;
}



.source-player .source-player__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.source-player .source-player__frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.source-player .source-player__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #ccc;
  text-align: center;
  font-size: 16px;
}



.source-player .source-player__buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}


.source-player .source-player__buttons > br,
.source-player .source-player__buttons > p > br,
.source-player .source-player__buttons > p:empty {
  display: none;
}

.source-player .source-player__buttons > p:has(> .source-player__button) {
  display: contents;
}


.source-player .source-player__button {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 4px;

  border: 2px solid transparent;
  border-radius: 10px;

  background: #2a2a2a;
  color: #fff;
  -webkit-text-fill-color: currentColor;

  font: 700 16px / 1.25 Arial, sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;

  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
}

.source-player .source-player__button:not(:disabled):hover {
  background: #383838;
}


.source-player .source-player__button[aria-pressed="true"]:not(:disabled) {
  background: #e64946;
  color: #fff;
}

.source-player .source-player__button[aria-pressed="true"]:not(:disabled):hover {
  background: #cc3e3b;
}


.source-player .source-player__button:focus-visible {
  outline: 3px solid #e64946;
  outline-offset: 3px;
}


.source-player .source-player__button:disabled,
.source-player .source-player__button:disabled:hover {
  background: #454545;
  color: #a6a6a6;
  border-color: transparent;

  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;


  pointer-events: auto;
}



@media (max-width: 480px) {
  .source-player .source-player__buttons {
    gap: 6px;
  }

  .source-player .source-player__button {
    min-height: 44px;
    padding: 8px 2px;
    border-radius: 8px;
    font-size: 12px;
  }

  .source-player .source-player__screen {
    border-radius: 10px;
  }
}



@media (forced-colors: active) {
  .source-player .source-player__button {
    border-color: ButtonText;
  }

  .source-player .source-player__button[aria-pressed="true"]:not(:disabled) {
    border-color: Highlight;
  }

  .source-player .source-player__button:disabled {
    color: GrayText;
    border-color: GrayText;
  }

  .source-player .source-player__button:focus-visible {
    outline-color: Highlight;
  }
}