:root {
  --rtc-red: #ef473a;
  --rtc-red-dark: #cb2d3e;
  --rtc-red-ui: #de3b3c;
  --rtc-text: #303030;
  --rtc-muted: #888888;
  --rtc-line: #fbeaea;
  --rtc-soft: #fdfdfd;
  --rtc-card: #ffffff;
  --rtc-shadow: 0 14px 34px rgba(203, 45, 62, 0.12);
  --rtc-gradient: linear-gradient(180deg, #ef473a -18.38%, #cb2d3e 127.12%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--rtc-text);
  background: #ffffff;
  font-family: "Cera Round Pro Regular", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

button,
a,
input {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(239, 71, 58, 0.32);
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: #ffffff;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  margin: 0 18px;
  padding: calc(18px + env(safe-area-inset-top)) 22px 26px;
  color: #ffffff;
  background: var(--rtc-gradient);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 22px rgba(203, 45, 62, 0.18);
}

.brand-logo {
  display: block;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 74px;
  height: auto;
}

.audio-screen {
  display: flex;
  min-height: calc(100vh - 116px);
  min-height: calc(100svh - 116px);
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}

.audio-card {
  width: 100%;
  margin: auto 0 0;
  padding: 26px 20px 22px;
  background: var(--rtc-card);
  border: 1px solid var(--rtc-line);
  border-radius: 20px;
  box-shadow: var(--rtc-shadow);
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--rtc-red-ui);
  font-family: "Cera Round Pro Medium", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

h1 {
  margin: 0 0 16px;
  color: var(--rtc-text);
  font-family: "Cera Round Pro Bold", Arial, sans-serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro {
  margin: 0;
  color: var(--rtc-text);
  font-size: 16px;
  line-height: 1.48;
}

.player {
  margin-top: 24px;
  padding: 16px;
  background: var(--rtc-soft);
  border: 1px solid var(--rtc-line);
  border-radius: 16px;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.player-label {
  color: var(--rtc-muted);
  font-size: 13px;
  line-height: 1.2;
}

.player-status {
  min-height: 28px;
  max-width: 100%;
  padding: 7px 11px 6px;
  color: var(--rtc-red-ui);
  background: #ffffff;
  border: 1px solid var(--rtc-line);
  border-radius: 50px;
  font-family: "Cera Round Pro Medium", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--rtc-gradient);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(203, 45, 62, 0.23);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.play-button:active,
.home-button:active,
.icon-button:active {
  transform: translateY(1px) scale(0.99);
}

.play-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.play-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 20px;
  margin-right: 12px;
}

.play-icon::before {
  position: absolute;
  top: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
  content: "";
}

.is-playing .play-icon::before,
.is-playing .play-icon::after {
  position: absolute;
  top: 1px;
  width: 5px;
  height: 18px;
  background: #ffffff;
  border: 0;
  border-radius: 2px;
  content: "";
}

.is-playing .play-icon::before {
  left: 2px;
}

.is-playing .play-icon::after {
  right: 2px;
}

.play-text {
  font-family: "Cera Round Pro Bold", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.timeline {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}

.time {
  color: var(--rtc-muted);
  font-family: "Cera Round Pro Medium", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.progress::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(
      90deg,
      var(--rtc-red) var(--progress-percent, 0%),
      #ebebeb var(--progress-percent, 0%)
    );
  border-radius: 50px;
}

.progress::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  background: #ffffff;
  border: 5px solid var(--rtc-red-ui);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(203, 45, 62, 0.25);
  appearance: none;
  -webkit-appearance: none;
}

.progress::-moz-range-track {
  height: 6px;
  background: #ebebeb;
  border-radius: 50px;
}

.progress::-moz-range-progress {
  height: 6px;
  background: var(--rtc-red);
  border-radius: 50px;
}

.progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 5px solid var(--rtc-red-ui);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(203, 45, 62, 0.25);
}

.player-actions {
  margin-top: 14px;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--rtc-red-ui);
  background: #ffffff;
  border: 2px solid var(--rtc-red-ui);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.icon-button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--rtc-gradient);
}

.button-caption {
  font-family: "Cera Round Pro Bold", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--rtc-gradient);
  border-radius: 12px;
  font-family: "Cera Round Pro Bold", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(203, 45, 62, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

@media (max-width: 374px) {
  .mobile-header {
    margin-right: 14px;
    margin-left: 14px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .audio-screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .audio-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .intro {
    font-size: 15px;
  }
}
