@font-face {
  src: url("../../fonts/inter.ttf");
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #f7ebde;
  padding-top: 50px;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  font-size: 1.1rem;
  padding: 8px;
  background-color: #f7ebde;
  z-index: 10;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  font-weight: 500;
}

nav a.root {
  font-weight: 800;
  font-size: 1.2rem;
}

nav input {
  width: 300px;
  border: 1px solid transparent;
  margin-left: 16px;
  background-color: #fdf5ec;
  padding: 8px 10px;
  outline: none;
}

nav input:focus {
  border-color: #dedede;
}

nav .space {
  flex-grow: 1;
}

label {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

label svg {
  color: red;
}

input, select, button {
  padding: 8px;
  background-color: #fff6eb;
  border: 1px solid #e1d7cc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.08s ease-in-out;
}

button:hover,
input:focus,
select:focus {
  border-color: #d7c6b3;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

button[type=submit] {
  font-weight: 500;
}

main {
  min-height: 100vh;
}

footer {
  background-color: #eed7be;
  padding: 24px;
}

footer b {
  font-weight: 500;
}

#player {
  width: 100%;
  position: fixed;
  bottom: -20%;
  left: 0;
  background-color: #eed7be;
  padding: 8px;
  transition: bottom 0.1s ease-in-out;
}

#player.visible {
  bottom: 0%;
}

#player .limiter {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

#player .controls {
  display: flex;
  gap: 2px;
}

#player button {
  background-color: transparent;
  padding: 4px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

#player button:hover {
  background-color: #0000000a;
}

#player button:disabled {
  color: #aaa;
}

#player img {
  object-fit: cover;
}

#player .title-plus-controls {
  flex-grow: 1;
}

#player .title {
  font-weight: bold;
}

#player .timeline {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  background-color: #dbc4aa;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
}

#player .timeline .progress {
  height: 4px;
  width: 0%;
  background-color: #ae7639;
  transition: width 0.05s ease-in-out;
  position: absolute;
  top: 0px;
  left: 0%;
  border-radius: 10px;
  pointer-events: none;
}

#player .timeline .cnob {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ae7639;
  position: absolute;
  top: -2px;
  left: 0%;
  transition: left 0.05s ease-in-out;
}

#player .time {
  min-width: 95px;
  font-size: 0.9rem;
  display: flex;
  gap: 2px;
}

#player .time .passed,
#player .time .total {
  min-width: 41px;
}

#player .time .passed {
  text-align: right;
}
