.profilseite .videos-startbox .videos-page-content {
  box-sizing: border-box;
  display: block;
  min-height: 0;
  padding: 22px;
  text-align: left;
}

.videos-stream-status {
  margin: 0 0 14px;
  color: #ffe1a1;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 2px 2px 0 #151719;
}

.videos-stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.videos-stream-layout[hidden] {
  display: none !important;
}

@media (min-width: 1001px) {
  /* Keep the chain anchor area at the shared placeholder width while the video window overflows it. */
  .profilseite:has(.profil-bereich) .hangende-platzhalter.videos-startbox {
    width: min(900px, calc(100% - 250px));
  }

  .profilseite .hangende-platzhalter.videos-startbox > .profil-fenster {
    box-sizing: border-box;
    width: min(1100px, calc(100vw - 64px));
    max-width: none;
    margin-left: 0;
    transform: translateX(-10px);
  }
}

.videos-stream-player-stage {
  display: grid;
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(92, 75, 57, .38), transparent 70%),
    #171512;
}

.videos-stream-frame-scroll iframe[hidden] {
  display: none !important;
}

.videos-stream-preview[hidden] {
  display: none !important;
}

.videos-stream-preview {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 28px;
  color: #ffe1a1;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-shadow: 2px 2px 0 #151719;
  background:
    linear-gradient(rgba(33, 28, 23, .5), rgba(16, 15, 14, .88)),
    repeating-linear-gradient(135deg, #29231d 0 18px, #241f1a 18px 36px);
}

.videos-stream-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videos-chat-stage {
  position: relative;
  min-width: 0;
}

.videos-stream-chat.is-locked .videos-chat-stage iframe {
  pointer-events: none;
  filter: brightness(.48);
}

.videos-chat-lock {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(163, 115, 71, .85);
  background: rgba(25, 21, 18, .74);
  color: #ffe1a1;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-shadow: 2px 2px 0 #151719;
}

.videos-stream-chat:not(.is-locked) .videos-chat-lock {
  display: none;
}

.videos-stream-panel {
  box-sizing: border-box;
  min-width: 0;
  padding: 12px;
  border: 1px solid #a37347;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(63, 53, 44, .96), rgba(39, 34, 30, .98));
  box-shadow: inset 0 0 0 1px rgba(25, 15, 9, .8), 0 2px 5px rgba(0, 0, 0, .3);
}

.videos-stream-panel h2 {
  margin: 0 0 10px;
  color: #ffe1a1;
  font-size: 1rem;
  text-align: left;
  text-shadow: 2px 2px 0 #151719;
}

.videos-stream-frame-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #68472e;
  background: #111;
}

.videos-stream-frame-scroll iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 480px;
  border: 0;
  background: #111;
}

.videos-stream-player-stage iframe {
  height: 100%;
}

.videos-stream-chat .videos-stream-frame-scroll iframe {
  min-width: 280px;
}

@media (max-width: 820px) {
  .videos-stream-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .videos-stream-frame-scroll iframe {
    height: 460px;
  }

  .videos-stream-player-stage {
    align-self: stretch;
  }
}

@media (max-width: 680px) {
  .profilseite .videos-startbox .videos-page-content {
    padding: 14px 10px;
  }

  .videos-stream-panel {
    padding: 8px;
  }

  .videos-stream-frame-scroll iframe {
    height: 440px;
  }
}


/* A single Twitch embed keeps video and chat in the same signed-in session. */
.videos-stream-chat .videos-chat-stage {
  height: 480px;
  overflow: hidden;
  border: 1px solid #68472e;
  background: #171512;
}

.videos-chat-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(22, 19, 17, .38), rgba(22, 19, 17, .38)),
    repeating-linear-gradient(135deg, #29231d 0 18px, #241f1a 18px 36px);
}

.videos-stream-live-panel[hidden] {
  display: none !important;
}

.videos-stream-live-panel {
  grid-column: 1 / -1;
}

.videos-stream-live-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: 16px;
}

.videos-stream-live-labels h2 {
  margin: 0 0 10px;
  color: #ffe1a1;
  font-size: 1rem;
  text-shadow: 2px 2px 0 #151719;
}

.videos-stream-live-embed,
.videos-stream-live-embed > div {
  width: 100%;
  height: 560px;
  min-width: 0;
  background: #111;
}

.videos-stream-live-embed iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.videos-stream-live-mobile-heading {
  display: none;
}

@media (max-width: 820px) {
  .videos-stream-chat .videos-chat-stage {
    height: 460px;
  }

  .videos-stream-live-labels {
    display: none;
  }

  .videos-stream-live-mobile-heading {
    display: block;
  }

  .videos-stream-live-embed,
  .videos-stream-live-embed > div {
    height: 620px;
  }
}

@media (max-width: 680px) {
  .videos-stream-chat .videos-chat-stage {
    height: 440px;
  }

  .videos-stream-live-embed,
  .videos-stream-live-embed > div {
    height: 620px;
  }
}



.videos-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(163, 115, 71, .8);
}

.videos-source-tabs [role="tab"] {
  min-width: 112px;
  padding: 9px 18px;
  border: 1px solid #a37347;
  border-radius: 4px 4px 0 0;
  color: #f3d49d;
  font: inherit;
  font-weight: 800;
  text-shadow: 1px 1px 0 #15110e;
  background: linear-gradient(180deg, #62432d, #33271e);
  box-shadow: inset 0 0 0 1px rgba(25, 15, 9, .65);
  cursor: pointer;
}

.videos-source-tabs [role="tab"]:hover,
.videos-source-tabs [role="tab"]:focus-visible {
  border-color: #f1c27d;
  color: #fff0c8;
}

.videos-source-tabs [role="tab"][aria-selected="true"] {
  border-color: #d7a765;
  color: #fff0c8;
  background: linear-gradient(180deg, #765239, #493426);
  box-shadow: inset 0 2px 0 rgba(255, 225, 161, .32), 0 2px 4px rgba(0, 0, 0, .3);
}

.videos-source-tabs [role="tab"]:focus-visible {
  outline: 2px solid #ffe1a1;
  outline-offset: 2px;
}

.videos-source-panel[hidden] {
  display: none;
}

.videos-source-panel > .videos-vod-gallery {
  margin-top: 0;
}

.videos-vod-gallery {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #a37347;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(63, 53, 44, .96), rgba(39, 34, 30, .98));
  box-shadow: inset 0 0 0 1px rgba(25, 15, 9, .8), 0 2px 5px rgba(0, 0, 0, .3);
}

.videos-vod-gallery > h2 {
  margin: 0 0 8px;
  color: #ffe1a1;
  font-size: 1.15rem;
  text-shadow: 2px 2px 0 #151719;
}

.videos-vod-status {
  margin: 0 0 12px;
  color: #e8d4b5;
  font-size: .95rem;
}

.videos-vod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.videos-vod-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 8px;
  border: 1px solid #a37347;
  border-radius: 4px;
  color: #ffe1a1;
  text-align: left;
  background: rgba(25, 21, 18, .78);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.videos-vod-card:hover,
.videos-vod-card:focus-visible {
  border-color: #f1c27d;
  background: rgba(53, 42, 31, .96);
  transform: translateY(-2px);
}

.videos-vod-card:focus-visible,
.videos-vod-dialog__close:focus-visible {
  outline: 2px solid #ffe1a1;
  outline-offset: 3px;
}

.videos-vod-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #68472e;
  background: #111;
}

.videos-vod-card__title {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 8px 2px 4px;
  overflow: hidden;
  color: #fff0d2;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 1px 1px 0 #151719;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.videos-vod-card__time {
  margin: 0 2px 2px;
  color: #d8c2a0;
  font-size: .85rem;
}

.videos-vod-dialog {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  padding: 16px;
  overflow: auto;
  border: 2px solid #a37347;
  border-radius: 5px;
  color: #ffe1a1;
  background: linear-gradient(145deg, #42372c, #211d19);
  box-shadow: inset 0 0 0 4px #251a12, 0 10px 40px rgba(0, 0, 0, .75);
}

.videos-vod-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(2px);
}

.videos-vod-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.videos-vod-dialog__header h2 {
  min-width: 0;
  margin: 0;
  color: #ffe1a1;
  font-size: 1.15rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.videos-vod-dialog__close {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #a37347;
  border-radius: 3px;
  color: #ffe1a1;
  font: inherit;
  font-weight: 800;
  background: #30271f;
  cursor: pointer;
}

.videos-vod-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 120px);
  background: #050505;
}

.videos-vod-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 820px) {
  .videos-vod-grid {
    gap: 10px;
  }

  .videos-vod-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .videos-vod-gallery {
    padding: 10px;
  }

  .videos-vod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .videos-vod-card {
    padding: 6px;
  }

  .videos-vod-card__title {
    font-size: .92rem;
  }

  .videos-vod-card__time {
    font-size: .78rem;
  }

  .videos-vod-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 9px;
  }

  .videos-vod-dialog__header {
    gap: 8px;
  }

  .videos-vod-dialog__header h2 {
    font-size: 1rem;
  }
}
