/* Player shell only. Scoped to this page. No site header, footer, or app bar. */
body[data-page="player"] {
  background: #111218;
  color: #fff;
}
body[data-page="player"] .floating-shortcuts { display: none; }

.sm-player {
  position: relative;
  min-height: 100vh;
  background: #111218;
  color: #fff;
  font-family: Montserrat, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}
.sm-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}
.sm-crumb a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}
.sm-crumb a:hover { color: #fff; text-decoration: underline; }
.sm-crumb [aria-current="page"] { color: #fff; }
.sm-sep { margin: 0 4px; color: rgba(255, 255, 255, .6); }
.sm-crumb-top { display: none; }
.sm-back {
  position: absolute;
  left: 40px;
  top: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 48px;
  padding: 14px 20px;
  border-radius: 137.5px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  backdrop-filter: blur(27.5px);
  -webkit-backdrop-filter: blur(27.5px);
}
.sm-back svg { width: 20px; height: 20px; display: block; }
.sm-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.sm-frame {
  position: relative;
  width: min(calc(98vh * 9 / 16), calc(100% - 48px));
  max-height: 98vh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
}
.sm-frame .picture,
.sm-frame img,
.sm-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.sm-frame video { object-fit: contain; background: #000; z-index: 1; }
.sm-frame.is-on .picture { visibility: hidden; }
.sm-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
}
.sm-play svg { width: 70px; height: 70px; }
.sm-app-retry svg { width: 24px; height: 24px; }
.sm-play[hidden], .sm-video[hidden] { display: none; }
.sm-frame.is-on .sm-play { display: none; }
.sm-player-notice {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #000a;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.sm-app-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: #000c;
  text-align: center;
}
.sm-app-gate[hidden], .sm-app-retry[hidden],
.sm-frame.is-unavailable :is(.sm-play, .sm-video, .sm-controls) { display: none; }
.sm-frame.is-unavailable .picture { visibility: visible; }
.sm-app-gate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  padding: 30px;
}
.sm-app-gate-content p { margin: 0; color: #fffc; font-size: 16px; }
.sm-app-download {
  display: inline-block;
  padding: 10px 40px;
  border-radius: 30px;
  background: #fc6f03;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.sm-app-download:hover { background: #f83; }
.sm-app-retry { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff2; color: #fff; cursor: pointer; }
.sm-app-gate :focus-visible, .sm-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sm-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  box-sizing: border-box;
}
.sm-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sm-update { margin: 0; color: rgba(255, 255, 255, .6); font-size: 14px; }
.sm-plot { align-self: stretch; }
.sm-player-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sm-desc + .sm-player-tags { margin-top: 20px; }
.sm-player-tags span {
  padding: 4px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
}
.sm-plot h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}
.sm-desc {
  position: relative;
  padding-right: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
.sm-desc p {
  margin: 0;
  opacity: .6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}
.sm-desc.is-open p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.sm-expand {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.sm-expand svg { width: 16px; height: 16px; display: block; }
.sm-desc.is-open .sm-expand svg { transform: rotate(180deg); }
.sm-episodes { align-self: stretch; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sm-ep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.sm-tabs { display: flex; align-items: flex-start; gap: 30px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sm-tabs::-webkit-scrollbar { display: none; }
.sm-tab, .sm-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 400 14px/1.2 "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  opacity: .6;
  cursor: pointer;
}
.sm-tab { flex: none; white-space: nowrap; text-align: left; }
.sm-tab[aria-selected="true"], .sm-all[aria-pressed="true"] { opacity: 1; }
.sm-all { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; text-decoration: none; }
.sm-all::after { content: "›"; font-size: 16px; line-height: 1; }
.sm-ep-list { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.sm-ep {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(20% - 3.2px);
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
}
.sm-ep:hover { background: rgba(255, 255, 255, .16); }
.sm-ep[aria-current="true"] {
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .08);
}
.sm-ep[aria-current="true"]::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 10px;
  border-radius: 50%;
  background: #ff8020;
  filter: blur(8px);
  opacity: .85;
}
.sm-bars { position: relative; z-index: 1; display: flex; width: 17px; height: 17px; }
.sm-bars svg { width: 17px; height: 17px; fill: #ff8020; }
.sm-bars .bar { transform-box: fill-box; transform-origin: center; animation: sm-wave 1.2s ease-in-out infinite; }
.sm-bars .bar-2 { animation-delay: .2s; }
.sm-bars .bar-3 { animation-delay: .4s; }
@keyframes sm-wave { 0%, 100% { opacity: .7; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sm-bars .bar { animation: none; } }
.sm-ep.is-locked { background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .1); }
.sm-lock { position: absolute; right: 1px; top: 1px; z-index: 2; display: flex; width: 20px; height: 20px; padding: 4px; box-sizing: border-box; border-radius: 6px; background: rgba(0, 0, 0, .4); }
.sm-lock svg { width: 12px; height: 12px; fill: none; stroke: #ff8020; stroke-linecap: square; }
.sm-stats { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); width: 100%; cursor: auto; }
.sm-stat { display: flex; align-items: center; gap: 6px; margin: 0; cursor: auto; }
.sm-stat-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 12px; height: 12px; padding: 6px; box-sizing: content-box; border-radius: 100px; background: rgba(255, 255, 255, .1); }
.sm-stat-icon svg { width: 12px; height: 12px; fill: #fff; }
.sm-stat-text { color: #fff; font-size: 12px; font-weight: 400; line-height: normal; }
.sm-ep[hidden] { display: none; }
.sm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1025px) {
  .sm-stage { margin-right: clamp(320px, 30vw, 480px); }
  .sm-panel {
    position: fixed;
    top: 12px;
    right: 0;
    width: clamp(320px, 30vw, 480px);
    height: 98vh;
    padding: 30px 20px;
    border-radius: 28px;
    background: #191b21;
    overflow-y: auto;
  }
  .sm-crumb-panel { margin: 20px 0; }
  .sm-title, .sm-plot, .sm-episodes { align-self: stretch; }
}

@media (max-width: 1024px) {
  body[data-page="player"] { background: #141516; }
  .sm-player { background: #141516; padding-bottom: 60px; }
  .sm-crumb-top { display: flex; margin: 16px; }
  .sm-crumb-panel, .sm-back { display: none; }
  .sm-stage { min-height: 0; height: 45vh; }
  .sm-frame { width: 100%; height: 100%; max-height: none; border-radius: 28px; }
  .sm-panel {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 28px;
    background: #141516;
    overflow: visible;
  }
  .sm-title { font-size: 16px; }
  .sm-tab, .sm-all { font-size: 12px; }
  .sm-desc + .sm-player-tags { margin-top: 12px; }
  .sm-player-tags span { font-size: 12px; line-height: 15px; }
  .sm-stats { order: 2; justify-content: space-evenly; gap: 30px; padding: 12px 0; border-top: 1px solid rgba(217, 217, 217, .12); border-bottom: 1px solid rgba(217, 217, 217, .12); }
  .sm-stat { flex-direction: column; gap: 4px; padding: 4px; }
  .sm-stat-icon { width: 24px; height: 24px; padding: 0; background: transparent; }
  .sm-stat-icon svg { width: 24px; height: 24px; }
  .sm-plot { order: 3; }
  .sm-episodes { order: 1; gap: 12px; }
  .sm-desc p { -webkit-line-clamp: 2; }
  .sm-ep-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sm-ep-list::-webkit-scrollbar { display: none; }
  .sm-ep { flex: none; width: 60px; min-width: 60px; }
}
body[data-sm-device="mobile"] .sm-play {
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: transparent;
}
body[data-sm-device="mobile"] .sm-play svg { width: 50px; height: 50px; }
