@property --stop1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

@property --stop2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 60%;
}

@property --brand-primary {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(245, 97, 97, 0.8);
}

@property --brand-secondary {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(112, 122, 255, 0.8);
}

@property --text-color-dark-mode {
    syntax: "<color>";
    inherits: false;
    initial-value: #fff;
}

/* general styles */

a, p, h1 {
    color: var(--text-color-dark-mode);
}


body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* centers horizontally */
    align-items: center;
    /* optional: centers vertically */
    min-height: 100vh;
    /* optional: full-height centering */
    font-family: sans-serif;

    /* background: linear-gradient(72deg,
            var(--brand-primary) var(--stop1),
            var(--brand-secondary) var(--stop2)); */

    /* animation: shiftStops 15s ease-in-out infinite; */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  background: black;
  object-position: 90% center;
}

@supports (height: 100dvh) {
  #bg-video {
    height: 100dvh;
  }
}

#overlay {
  position: fixed;
  height: 100vh;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

@supports (height: 100dvh) {
  #overlay {
    height: 100dvh;
  }
}


button {
    background: #222;
    color: white;
    opacity: 0.7;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

button:hover {
    opacity: 1;
}

button:active {
    opacity: 0.5;
}

.play-button {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: none;
    /* background: #222; */
    /* color: white; */
    /* font-size: 4rem; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* opacity: 0.7; */
    transition: opacity 0.2s ease;
    margin-top: 1rem;
}

.player,
.player-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centers horizontally */
    align-items: center;
    /* centers vertically if needed */
    width: 100%;
}

.player-wrapper {
    flex: 1;
    /* takes remaining space */
    display: flex;
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    margin-top: -3rem;
    /* to offset the fixed header height for the ticker and keep everything centered */
}

/* .play-button:active {
    background: #555;
} */

.play-button svg {
    border-radius: 4px !important;
    width: 50%;
    height: 50%;
}

.container {
    width: fit-content;
    /* shrink to content */
    text-align: center;
    /* center text inside */
    padding: 2rem;
}

.help-button {
    display: flex;
    justify-content: center;
    align-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #222;
    color: var(--text-color-dark-mode);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.help-button svg {
    fill: var(--text-color-dark-mode);
    stroke: var(--text-color-dark-mode);
}

/* .help-button:hover {
    opacity: 1;
} */

.help-panel {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 260px;
    padding: 12px 14px;
    background: #111;
    color: var(--text-color-dark-mode);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.help-panel p {
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

@keyframes shiftStops {
    0% {
        --stop1: 0%;
        --stop2: 60%;
    }

    50% {
        --stop1: 10%;
        --stop2: 80%;
    }

    100% {
        --stop1: 0%;
        --stop2: 60%;
    }
}

/* offline styles */
/* body.stream-offline {
    background: linear-gradient(72deg,
            #FFFFFF var(--stop1),
            rgba(112, 122, 255, 0.8) var(--stop2));
} */

body.stream-offline .player,
body.stream-offline .tagline-online {
    display: none;
}

/* online styles */
body.stream-live .tagline-offline {
    display: none;
}

.ticker-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 3rem;
    width: 100vw;
    overflow: hidden;
    background-color: #222;
    transition: opacity 1s;
}

.ticker-hidden {
    opacity: 0;
}

#ticker {
    font-style: italic;
    font-weight: 100;
    white-space: nowrap;
    overflow: visible;
    color: white;
    font-size: 1rem;
    padding-right: 1rem;
}

