/* =========================================================
   MOBILE LAYOUT RESET
   ========================================================= */

@media (max-width: 520px) {
  html,
  body {
    height: 100%;
    margin: 0;
  }

  body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  /* =========================================================
       HEADER
       ========================================================= */

  .bw-header {
    height: 60px;
    flex-shrink: 0;
  }

  /* =========================================================
       MAIN / HERO
       ========================================================= */

  main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero {
    flex: 1;
    min-height: calc(100dvh - 60px - 60px);
    max-height: calc(100dvh - 60px - 60px);
    overflow: hidden;
  }

  .hero-image-wrap {
    width: 100%;
    height: 100%;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* =========================================================
       FOOTER (PINNED)
       ========================================================= */

  footer {
    height: 60px;
    flex-shrink: 0;
    margin-top: auto;
  }

  /* =========================================================
       TOOLBAR / CONTROLS
       ========================================================= */

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar input[type='text'] {
    min-width: 120px;
    flex: 1;
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  #playerControlsRow {
    flex-direction: row;
  }
}
