* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 56px 20px;
  font-family: sans-serif;
  background: #ffffff;
  color: #111111;
}

main {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

header {
  margin-bottom: 40px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1;
}

header p {
  max-width: 620px;
  margin: 14px auto 0;
  color: #666666;
  font-size: 18px;
  line-height: 1.35;
}

.check-form,
.sources-section,
.podcast-player {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.check-form {
  margin-top: 0;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid #cccccc;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 150px 0 56px;
  border: 0;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.scan-btn,
.clear-input-btn,
.submit-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scan-btn {
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.scan-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.72;
}

.clear-input-btn {
  right: 106px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #999999;
  font-size: 24px;
}

.submit-btn {
  right: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f3f3f3;
  color: #222222;
  font-size: 15px;
}

.submit-btn:hover,
.scan-btn:hover,
.clear-input-btn:hover {
  background: #f3f3f3;
}

#message {
  margin-top: 18px;
  min-height: 24px;
  text-align: center;
  color: #444444;
  font-size: 15px;
}

.sources-section {
  margin-top: 48px;
}

.sources-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-card,
.podcast-player {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dddddd;
  border-radius: 18px;
  background: #ffffff;
}

.source-card {
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.source-card:hover {
  transform: translateY(-1px);
  border-color: #111111;
}

.source-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.podcast-cover {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 14px;
  background: #f3f3f3;
  color: #999999;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.podcast-cover.large {
  width: 112px;
  height: 112px;
  flex-basis: 112px;
  border-radius: 22px;
}

.podcast-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.source-content {
  min-width: 0;
  flex: 1;
}

.source-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  word-break: break-word;
}

.episode-title {
  margin-top: 6px;
  color: #444444;
  font-size: 14px;
  line-height: 1.35;
}

.source-meta {
  margin-top: 8px;
  color: #666666;
  font-size: 14px;
}

.source-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.text-btn,
.play-btn,
.player-back-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 14px;
  cursor: pointer;
}

.play-btn {
  padding: 8px 13px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

.text-btn:hover,
.player-back-btn:hover {
  color: #111111;
  text-decoration: underline;
}

.play-btn:hover {
  background: #333333;
}

.follow-status {
  color: #666666;
  font-size: 14px;
}

.unfollow-btn {
  display: none;
}

.source-card:hover .followed-label {
  display: none;
}

.source-card:hover .unfollow-btn {
  display: inline;
}

.empty-state {
  margin-top: 12px;
  color: #777777;
  font-size: 15px;
}

.podcast-player {
  margin-top: 34px;
}

.player-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.player-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.player-description {
  margin: 10px 0 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
}

.player-link {
  display: inline-block;
  margin-top: 12px;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.player-link:hover {
  text-decoration: underline;
}

.player-section-title {
  margin: 22px 0 12px;
  font-size: 16px;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  background: #fafafa;
}

.episode-row-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.episode-row-date {
  margin-top: 4px;
  color: #777777;
  font-size: 12px;
}

.player-audio {
  margin-top: 16px;
}

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

.more-episodes-note {
  margin: 4px 0 0;
  color: #777777;
  font-size: 14px;
  text-align: center;
}

.more-episodes-note a {
  color: #666666;
  text-decoration: none;
}

.more-episodes-note a:hover {
  color: #111111;
  text-decoration: underline;
}

.site-footer {
  margin-top: 80px;
  padding-bottom: 24px;
  color: #888888;
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: #888888;
  text-decoration: none;
}

.site-footer a:hover {
  color: #888888;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.qrx-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.qrx-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: #111111;
  color: #ffffff;
}

.qrx-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.qrx-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.qrx-card h2 {
  margin: 18px 0 8px;
  font-size: 38px;
  line-height: 1;
}

.qrx-card p {
  margin: 12px 0;
  color: #cccccc;
  line-height: 1.5;
}

.qrx-card a {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
  font-weight: 700;
}

.qrx-main-btn,
.qrx-secondary-btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.qrx-main-btn {
  background: #ffffff;
  color: #111111;
}

.qrx-secondary-btn {
  background: #2b2b2b;
  color: #ffffff;
}

#qrxReader {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

#qrxReader video {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.qrx-status,
.qrx-error {
  margin-top: 18px;
  color: #cccccc;
}

.qrx-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qrx-brand-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.qrx-brand-text a {
  color: inherit;
  text-decoration: underline;
}



.custom-player-controls {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.seek-btn,
.big-play-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #f3f3f3;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.big-play-btn {
  background: #111111;
  color: #ffffff;
}

.seek-btn:hover {
  background: #e9e9e9;
}

.big-play-btn:hover {
  background: #333333;
}

@media (max-width: 700px) {
  .seek-btn,
  .big-play-btn {
    min-height: 52px;
    font-size: 17px;
  }
}





@media (max-width: 700px) {
  body {
    padding: 36px 20px;
  }

  h1 {
    font-size: 40px;
  }

  header p {
    font-size: 18px;
  }

  .check-form,
  .sources-section,
  .podcast-player {
    max-width: 100%;
  }

  .input-wrap input {
    padding-right: 138px;
  }

  .submit-btn {
    padding: 0 14px;
    font-size: 14px;
  }

  .clear-input-btn {
    right: 96px;
  }

  .source-card,
  .podcast-player {
    padding: 15px;
    border-radius: 16px;
  }

  .source-main {
    gap: 12px;
  }

  .podcast-cover {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 12px;
  }

  .podcast-cover.large {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    border-radius: 18px;
  }

  .source-title {
    font-size: 16px;
  }

  .player-title {
    font-size: 21px;
  }

  .episode-title,
  .source-meta,
  .follow-status,
  .text-btn,
  .play-btn {
    font-size: 13px;
  }

  .play-btn {
    padding: 7px 11px;
  }

  .player-top {
    gap: 14px;
  }
}

.player-media {
  margin-top: 16px;
}

.player-media audio,
.player-media video {
  width: 100%;
  display: block;
}

.player-media video {
  border-radius: 16px;
  background: #000000;
}

.custom-player-controls {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.seek-btn,
.big-play-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #f3f3f3;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.big-play-btn {
  background: #111111;
  color: #ffffff;
}

.seek-btn:hover {
  background: #e9e9e9;
}

.big-play-btn:hover {
  background: #333333;
}

@media (max-width: 700px) {
  .seek-btn,
  .big-play-btn {
    min-height: 52px;
    font-size: 17px;
  }

  .player-media video {
    border-radius: 14px;
  }
}

.player-links {
  margin-top: 10px;
}