:root {
  --telly-text: #ffcaa0;
}

telly-player {
  svg {
    -webkit-filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));

    > path, rect {
      fill: url(#telly-gradient);
      //fill: rgba(255, 255, 255, 0.9);
    }
  }

  *[tip]:hover:after {
    content: attr(tip);
    position: absolute;
    top: 0;
    bottom: unset;
    transition: all .2s ease-in-out;
    padding: .3rem;
    border: 1px solid rgba(54, 54, 54, 0.05);
    box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
    background-color: rgba(80, 80, 80, 0.5);
    backdrop-filter: blur(20px);
    background-blend-mode: overlay;
    border-radius: 5px;
    text-align: center;
  }

  telly-controls, telly-volume-button {
    > *:not(telly-scrub-bar) {
      color: var(--telly-text);
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      padding-inline: 4px;
    }

    telly-scrub-bar {
      margin-inline: 0.5rem;
    }
  }

  .telly-element::before {
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    position: absolute;
    border-radius: 12px;
    border: 1px solid rgba(54, 54, 54, 0.05);
    box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
    background-color: rgba(80, 80, 80, 0.5);
    backdrop-filter: blur(20px);
    background-blend-mode: overlay;
    z-index: -1;
  }

  .telly-menu {
    transition: all .1s ease-in .1s;
    position: absolute;
    bottom: 30px;
    right: -30px;
    border-radius: 12px;
    border: 1px solid rgba(54, 54, 54, 0.05);
    animation: blur-in 200ms 500ms forwards;

    ul {
      list-style-type: none;
      padding: 1rem;
      margin-inline: 0;
      margin-block: 0;
    }

    li {
      white-space: nowrap;
    }
  }

  @keyframes blur-in {
    from {
      backdrop-filter: blur(0px);
      transform: scale(0%);
    }
    to {
      backdrop-filter: blur(20px);
      transform: scale(100%);
    }
  }

  .enabled {
    color: #F24C13;
  }
}

telly-player {
  &:fullscreen {
    .telly-container {
      telly-controls {
        position: absolute;
      }
    }
  }

  .telly-container {
    flex-direction: column;

    telly-controls {
      width: 100%;
      height: 70px;
      position: relative;
      margin-bottom: 0;
      flex-wrap: wrap;
      padding: .5rem;

      telly-play, telly-forward, telly-rewind, telly-step-back, telly-step-forward {
        padding: 0.2rem;
      }

      telly-jump-back {
        padding-left: 0.5rem;
      }

      telly-scrub-bar {
        width: 100%;
        margin: .3rem;
      }

      &:before {
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(80, 80, 80, 1);
      }
    }
  }
}
