/* Review 16: centered feed tabs, public author page and mobile-style sign-in. */
.md-mobile-feed-header { justify-content: center; padding-inline: 0; }
.md-mobile-feed-header nav { justify-content: center; }
.md-series-preview { cursor: pointer; }
#md-watch-header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
  font-size: 32px;
}
#md-watch-header button svg { display: block; width: 22px; height: 22px; pointer-events: none; }#md-feature-layer:has(.md-public-author) { align-items: stretch; background: #15161d; }
#md-feature-layer .md-public-author {
  max-width: 1520px;
  max-height: none;
  border-radius: 0;
  background: #15161d;
  padding: 16px clamp(16px, 4vw, 64px) 32px;
  text-align: left;
}
.md-public-author-header {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px clamp(12px, 3vw, 36px);
  margin: 12px 0 22px;
  border-radius: 12px;
  background: linear-gradient(125deg, #2c354a, #1b1d26 65%);
}
.md-public-author-header .md-author-big { flex: none; }
.md-public-author-info { min-width: 0; overflow-wrap: anywhere; }
.md-public-author-info h2 { margin-top: 0; }
.md-public-author-info .md-author-stats { justify-content: flex-start; gap: 16px; }
.md-public-author .md-author-works { grid-template-columns: repeat(3,minmax(0,1fr)); }
.md-public-author .md-author-work span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) {
  .md-public-author .md-author-works { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .md-public-author .md-author-works { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
#md-shell[data-view="auth"] .md-auth {
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: 20px 24px 50px;
  background: #03050a url('/h5/static/app/login_bg.png') center top / 100% auto no-repeat;
}
.md-auth .md-auth-logo { width: 70px; height: 70px; border-radius: 8px; margin: 42px auto 12px; }
.md-auth h1 { font-size: 17px; letter-spacing: .12em; }
.md-auth input { background: #24262c; border-color: #343741; border-radius: 6px; }
.md-auth .md-primary { background: #efc46b; color: #211a0d; border-radius: 999px; }
.md-auth .md-forgot-password { margin-top: 18px; }

.md-public-author .md-author-status:empty { display: none; }
.md-public-author .md-author-works-heading {
  border-bottom: 1px solid #ffffff1c;
  padding-bottom: 12px;
  margin: 0 0 14px;
}
@media (min-width: 768px) {
  .md-public-author .md-public-author-header {
    margin: 10px 0 20px;
    padding-block: 18px;
    background: linear-gradient(100deg, #272a3a, #191a23 72%);
  }
  .md-public-author .md-author-big { width: 88px; height: 88px; }
}

.md-mobile-download { display: none; }
@media (max-width: 767px) {
  .md-mobile-download {
    display: block;
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: #263b44;
    background: #eef3f6;
    text-decoration: none;
  }
}

#md-episode-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #f6f6f7;
  font: 16px/1.45 system-ui, sans-serif;
}
#md-episode-dialog::backdrop { background: #000a; }
.md-episode-drawer {
  display: flex;
  flex-direction: column;
  width: clamp(360px, 31.5vw, 566px);
  height: 100%;
  padding: 12px 25px 24px;
  box-sizing: border-box;
  border: 1px solid #ffffff24;
  border-radius: 16px;
  background: linear-gradient(140deg, #131313, #151519);
}
.md-episode-drawer button, .md-episode-drawer a {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.md-episode-back {
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  background: transparent;
  font-size: 30px !important;
  line-height: 1 !important;
}
.md-episode-drawer > header {
  display: grid;
  grid-template-columns: clamp(72px, 6vw, 108px) minmax(0, 1fr);
  gap: 16px;
  margin: clamp(12px, 3vh, 32px) 0 20px;
}
.md-episode-drawer > header img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 9px; }
.md-episode-drawer h2 { margin: 4px 0 16px; font-size: clamp(17px, 1.35vw, 24px); overflow-wrap: anywhere; }
.md-episode-rating, .md-episode-drawer nav button { padding: 0; border: 0; background: transparent; }
.md-episode-drawer nav { display: flex; gap: 24px; padding-bottom: 10px; }
.md-episode-drawer nav button { padding: 6px 0; color: #a8a8ad; font-weight: 650; }
.md-episode-drawer nav button[aria-pressed=true] { color: #fff; border-bottom: 2px solid #ff3463; }
.md-episode-list, .md-episode-intro { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.md-episode-count { margin: 6px 0 15px; color: #c6c6ca; }
.md-episode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 3px 6px 0; }
.md-episode-cell {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 4px; border: 0; border-radius: 9px; background: #29292f; text-decoration: none;
}
.md-episode-cell:hover { background: #393941; }
.md-episode-cell[aria-current=true], .md-episode-drawer footer a { background: linear-gradient(105deg, #ed5558, #ee2157); }
.md-episode-cell small { font-size: 11px; color: #ffe8ed; }
.md-episode-cell svg { width: 17px; height: 17px; }
.md-episode-intro { color: #ccc; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-episode-drawer footer { padding-top: 14px; }
.md-episode-drawer footer a { display: block; text-align: center; padding: 12px; border-radius: 999px; font-weight: 650; text-decoration: none; }
@media (max-width: 767px) {
  .md-episode-drawer { position: absolute; bottom: 0; width: 100%; height: min(78dvh, 720px); padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .md-episode-drawer > header { grid-template-columns: 60px minmax(0, 1fr); margin: 10px 0; }
  .md-episode-back { width: 36px; height: 36px; }
}

#md-coin-unlock {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 34px 28px 22px;
  border: 1px solid #38313c;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0, #3a2533, #1d1b24 68%);
  color: #fff;
  box-shadow: 0 20px 70px #0009;
  text-align: center;
}
#md-coin-unlock::backdrop { background: #08060bd4; }
#md-coin-unlock h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; }
#md-coin-unlock h2::before {
  content: "◇";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 1px solid #e8b98170;
  border-radius: 50%;
  color: #f9d6a5;
  background: #ac75442c;
}
#md-coin-unlock [role=status] { margin: 0; color: #d4cbd5; font-size: 14px; line-height: 1.65; }
.md-coin-actions { display: grid; gap: 6px; margin-top: 22px; }
.md-coin-actions button { border: 0; background: transparent; color: #e2d6e2; cursor: pointer; font: inherit; }
.md-coin-actions button:first-child { position: absolute; top: 12px; right: 12px; padding: 8px 10px; border-radius: 8px; }
.md-coin-actions button:nth-child(2) {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #a52b59;
  color: white;
  font-weight: 650;
}
.md-coin-actions button:nth-child(2):hover { background: #b83464; }
.md-coin-actions button:nth-child(3) { min-height: 40px; color: #e5bfcc; }
.md-coin-actions button:focus-visible { outline: 2px solid #f2b6cd; outline-offset: 2px; }
.md-coin-actions button:disabled { opacity: .55; cursor: wait; }

body.md-native-player .video-player .poster-image {
  left: 50% !important;
  transform: translateX(-50%);
}
