/* === AUDIO PLAYER (responsiv med skugga) === */
.audio-player {
  background-color: #fff9f2;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.audio-player .artist {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.2rem;
}

.audio-player .title {
  font-style: italic;
  color: #666;
  margin-bottom: 0.8rem;
}

.audio-player audio {
  width: 100%;
  outline: none;
  display: block;
}

audio::-webkit-media-controls-download-button {
  display: none;
}

audio::-webkit-media-controls-enclosure {
  overflow: hidden;
}

audio::-webkit-media-controls-panel {
  width: 100%;
}

/* === LÖSENORDSSIDA CENTRERAD & MINIMALISTISK === */
body.post-password-required {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* start från toppen */
  min-height: 100vh;
  margin: 0;
  background: #fff;
  font-family: inherit;
  padding-top: 4rem; /* toppmarginal på desktop */
}

.post-password-form {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  background: #fff9f2;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  box-sizing: border-box;
}

/* Rubrik styling */
.post-password-form .password-title,
body.post-password-required .entry-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: #1A1A1A;
}

/* Lösenordsfält */
.post-password-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #1A1A1A;
  border-radius: 6px;
  background: #fff;
  color: #1A1A1A;
  box-sizing: border-box;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-password-form input[type="password"]:focus {
  border-color: #EE222E;
  box-shadow: 0 0 0 3px rgba(238,34,46,0.2);
}

/* Skicka-knapp */
.post-password-form input[type="submit"] {
  width: 100%;
  padding: 12px 24px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
  margin-bottom: 10px;
}

.post-password-form input[type="submit"]:hover {
  background: #c71b25;
}

.post-password-form input[type="submit"]:active {
  transform: scale(0.98);
}

/* === MOBILANPASSNING === */
@media (max-width: 480px) {
  body.post-password-required {
    padding-top: 2rem; /* mindre toppmarginal på mobilen */
  }

  .post-password-form .password-title,
  body.post-password-required .entry-title {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .post-password-form input[type="password"],
  .post-password-form input[type="submit"] {
    width: 100%;
    margin-bottom: 10px;
  }
}