* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #000;
  color: #eee;
  font: 16px Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
header {
  height: 80px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 48px;
  background: #000;
  position: relative;
  z-index: 3;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  letter-spacing: -.8px;
}
.brand-icon {
  background:
    linear-gradient(
      135deg,
      #fb188b,
      #ff3037);
  border-radius: 9px;
  font-size: 31px;
  font-weight: 900;
  width: 39px;
  height: 39px;
  text-align: center;
  line-height: 39px;
  color: white;
  font-style: italic;
}
nav {
  display: flex;
  gap: 48px;
  font-weight: bold;
  font-size: 18px;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 23px;
}
.avatar {
  border-radius: 50%;
  background: #252525;
  color: #666;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}
.top-up {
  background: #e8212b;
  border-radius: 24px;
  padding: 9px 24px;
  font-size: 18px;
  font-weight: bold;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  min-height: calc(100vh - 80px);
}
.stage {
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-width: 0;
}
video {
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9/16;
  object-fit: contain;
  background: #090909;
}
.back {
  position: absolute;
  top: 30px;
  left: 30px;
  background: #1b1b1bc9;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  text-align: center;
  font-size: 39px;
  line-height: 60px;
  z-index: 2;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #0009;
  font-size: 32px;
  border: 1px solid #ffffff55;
}
.play[hidden] {
  display: none;
}
.status {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  background: #171717eb;
  padding: 14px 20px;
  border-radius: 8px;
  max-width: 85%;
  text-align: center;
  font-size: 14px;
}
.status[hidden] {
  display: none;
}
aside {
  padding: 32px 32px 30px 0;
  max-height: calc(100vh - 80px);
  overflow: auto;
}
.breadcrumb {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 24px;
}
h1 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 26px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 10px;
}
.description {
  color: #888;
  position: relative;
  line-height: 22px;
}
.description p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 8px;
}
.description.expanded p {
  display: block;
}
.description button {
  float: right;
  color: #ccc;
  background: #000;
  margin-top: -22px;
  position: relative;
  padding-left: 8px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.tags span {
  font-size: 14px;
  color: #bbb;
  background: #1b1b1b;
  padding: 8px 16px;
  border-radius: 20px;
}
.social {
  display: flex;
  justify-content: space-around;
  border-block: 1px solid #303030;
  padding: 16px 0;
  color: #aaa;
}
.social span,
.social button {
  text-align: center;
  font-size: 29px;
  width: 33%;
}
.social small {
  display: block;
  font-size: 16px;
  margin-top: 8px;
}
.ranges {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 26px 0 16px;
  color: #888;
}
.ranges button {
  padding: 0;
  font-size: 14px;
}
.ranges .chosen {
  color: #ddd;
  font-weight: bold;
}
.ranges #all {
  margin-left: auto;
}
.episodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.episodes button {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  height: 46px;
  font-size: 14px;
  color: #ccc;
}
.episodes button.selected {
  background:
    linear-gradient(
      125deg,
      #262626,
      #50212a);
  color: #fff;
}
.episodes button.selected:after {
  content: "\25a5";
  position: absolute;
  bottom: 0;
  right: 3px;
  font-size: 11px;
}
.lock {
  position: absolute;
  right: 3px;
  top: 2px;
  width: 12px;
  height: 12px;
  color: #777;
}
.about {
  display: flex;
  gap: 16px;
  border-top: 1px solid #292929;
  margin-top: 30px;
  padding-top: 24px;
  color: #888;
  font-size: 13px;
}
.about img {
  width: 84px;
  border-radius: 5px;
}
.about h3 {
  color: #ddd;
  font-weight: bold;
}
.about a {
  line-height: 1.5;
}
#notice {
  color: #aaa;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}
@media (max-width: 900px) {
  header {
    height: 46px;
    padding: 0 20px;
    gap: 0;
    justify-content: space-between;
    background: #151515;
  }
  .logo {
    font-size: 20px;
    margin: auto;
  }
  .brand-icon {
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 5px;
    font-size: 23px;
  }
  nav,
  .desktop {
    display: none;
  }
  .header-tools {
    margin-left: 0;
    gap: 16px;
    font-size: 25px;
  }
  .avatar {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 19px;
  }
  main {
    display: block;
  }
  .stage {
    position: relative;
    height: calc(100svh - 46px);
    width: 100%;
  }
  video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .back {
    left: 30px;
    top: 30px;
  }
  aside {
    max-height: none;
    overflow: visible;
    padding: 24px 20px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .episodes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  h1 {
    font-size: 20px;
  }
  .tags span {
    padding: 7px 13px;
  }
}
.brand-word {
  width: 120px;
  height: 18px;
  object-fit: contain;
}
.stage video {
  transform: translateX(-16px);
}
.social svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}
.social small {
  margin-top: 12px;
}
.social {
  padding: 19px 0 16px;
}
@media (max-width: 900px) {
  .stage video {
    transform: none;
  }
  .brand-word {
    width: 96px;
    height: auto;
  }
}
@media (max-width: 900px) {
  body {
    scrollbar-width: none;
  }
  body::-webkit-scrollbar {
    display: none;
  }
}
header .logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}
@media (max-width: 900px) {
  header .logo {
    margin: 0;
    font-size: 24px;
  }
}
#download-dialog {
  background: #181818;
  color: #fff;
  border: 1px solid #333;
  border-radius: 20px;
  width: 400px;
  max-width: calc(100vw - 36px);
  padding: 36px 28px 22px;
  text-align: center;
  box-shadow: 0 24px 80px #0009;
}
#download-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 28px;
  color: #999;
}
.download-icon {
  margin: 0 auto 18px;
  background:
    linear-gradient(
      135deg,
      #ff426d,
      #df1848);
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 36px;
  line-height: 54px;
}
#download-dialog h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
#download-dialog p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.download-link {
  display: block;
  background: #f52c59;
  border-radius: 12px;
  padding: 14px;
  font-weight: bold;
}
.download-link:hover {
  background: #ff4770;
}
.download-cancel {
  display: block;
  width: 100%;
  padding: 15px 0 0;
  color: #999;
  font-size: 14px;
}
.language-select {
  margin-left: auto;
  background: #191919;
  color: #ddd;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  max-width: 130px;
}
.language-select:focus-visible {
  outline: 2px solid #ff3159;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .language-select {
    padding: 6px 8px;
    font-size: 12px;
  }
}
.home header .language-select {
  background: #0008;
}
.home header .home-link {
  margin-left: 36px;
}
@media (max-width: 700px) {
  .home header .home-link {
    margin-left: auto;
    margin-right: 16px;
  }
  .home header .language-select {
    margin-left: 0;
  }
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #ff587e;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
.ranges {
  gap: 8px;
  margin: 16px 0;
}
.ranges button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #141416;
  color: #96969f;
  transition: background .15s, color .15s;
}
.ranges button.chosen {
  background: #30212a;
  color: #ff7999;
  border: 1px solid #653046;
}
.ranges #all {
  background: none;
  font-weight: 500;
}
.episodes {
  gap: 8px;
}
.episodes button {
  height: 48px;
  border-radius: 11px;
  background: #18181d;
  border: 1px solid #29292f;
  color: #c8c8d0;
  font-weight: 500;
  transition:
    background .15s,
    border-color .15s,
    transform .15s;
}
.episodes button.selected {
  background:
    linear-gradient(
      135deg,
      #ff416e,
      #d91c4d);
  border-color: #ff547b;
  color: #fff;
  box-shadow: 0 3px 14px #f52c5930;
}
.episodes button.selected:after {
  content: "";
}
.episodes button:active {
  transform: scale(.96);
}
.lock {
  right: 5px;
  top: 4px;
  width: 11px;
  height: 11px;
  color: #85858e;
}
.episodes button.selected .lock {
  color: #fff;
}
.episode-heading {
  font-size: 16px;
  margin: 4px 0 0;
  font-weight: 600;
  color: #ddd;
}
.episode-panel {
  scroll-margin-top: 16px;
}
.play {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding-left: 5px;
  font-size: 27px;
  background: #131318b3;
  border: 1px solid #ffffff65;
  box-shadow: 0 6px 30px #0006;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.play[hidden] {
  display: none;
}
.dialog-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  right: 5px;
  top: 5px;
}
.download-link {
  min-height: 48px;
  background:
    linear-gradient(
      135deg,
      #ff416e,
      #dc1b4a);
  box-shadow: 0 4px 18px #f52c5928;
}
.download-cancel {
  min-height: 44px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #25252b;
  color: #bdbdc5;
}
.status button {
  min-height: 44px;
  background: #f52c59;
  border-radius: 9px;
  margin-left: 10px;
  padding: 9px 14px;
  color: #fff;
}
.mobile-episode-bar {
  display: none;
}
@media (hover: hover) {
  .episodes button:hover {
    background: #27272f;
    border-color: #535360;
  }
  .episodes button.selected:hover {
    background: #e92c59;
  }
  .ranges button:hover {
    color: #fff;
    background: #25252c;
  }
  .dialog-close:hover {
    background: #29292f;
    color: white;
  }
  .download-cancel:hover {
    background: #33333b;
  }
}
@media (max-width: 900px) {
  .watch-page header {
    min-height: 54px;
    height: auto;
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .watch-page main {
    display: flex;
    flex-direction: column;
  }
  .watch-page .stage {
    height: 55vh;
    height: 55svh;
    min-height: 260px;
    max-height: 520px;
    flex: none;
  }
  .watch-page video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .watch-page .back {
    width: 42px;
    height: 42px;
    font-size: 27px;
    line-height: 40px;
    left: max(14px, env(safe-area-inset-left));
    top: 14px;
  }
  .mobile-episode-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111115;
    border-block: 1px solid #27272e;
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    flex: none;
  }
  .mobile-episode-bar label {
    font-size: 13px;
    color: #a9a9b3;
    white-space: nowrap;
  }
  .mobile-episode-bar select {
    appearance: auto;
    -webkit-appearance: menulist;
    min-height: 44px;
    min-width: 0;
    max-width: 160px;
    flex: 1;
    font: inherit;
    font-size: 16px;
    border: 1px solid #44444e;
    border-radius: 10px;
    background: #222229;
    color: #fff;
    padding: 8px 10px;
  }
  .mobile-episode-bar button {
    font-size: 13px;
    color: #ff7898;
    min-height: 44px;
    white-space: nowrap;
    padding: 8px 0 8px 4px;
    margin-left: auto;
  }
  .watch-page aside {
    display: flex;
    flex-direction: column;
    padding: 18px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    width: 100%;
    min-width: 0;
  }
  .watch-page .breadcrumb {
    margin-bottom: 12px;
  }
  .watch-page h1 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .watch-page .episode-panel {
    order: -1;
    padding-bottom: 22px;
    border-bottom: 1px solid #27272e;
    margin-bottom: 20px;
  }
  .watch-page .episodes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px;
  }
  .watch-page .episodes button {
    height: 46px;
    min-width: 0;
    font-size: 14px;
  }
  .watch-page .ranges {
    gap: 5px;
  }
  .watch-page .ranges button {
    padding: 9px 10px;
    font-size: 12px;
    min-height: 44px;
  }
  .watch-page .tags {
    margin-bottom: 4px;
  }
  .watch-page .language-select {
    font-size: 16px;
    padding: 6px 8px;
    max-width: 140px;
  }
  #download-dialog {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
  }
  .dialog-close,
  .download-link,
  .download-cancel {
    touch-action: manipulation;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .watch-page .stage {
    height: 72vh;
    height: 72svh;
    min-height: 190px;
    max-height: 420px;
  }
}
.logo {
  gap: 0;
  letter-spacing: -1.2px;
}
.logo span {
  color: #ff567e;
}
.watch-page .logo {
  font-weight: 800;
}
.language-trigger {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid #ffffff24;
  border-radius: 24px;
  background: #ffffff08;
  color: #eee;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.language-trigger:hover {
  background: #ffffff12;
  border-color: #ffffff55;
}
.locale-dialog {
  box-sizing: border-box;
  width: min(640px, calc(100% - 32px));
  max-height: 85svh;
  margin: auto;
  padding: 28px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: #16161c;
  color: #fafafa;
  box-shadow: 0 28px 100px #0009;
  overflow: auto;
}
.locale-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(8px);
}
.locale-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.locale-heading h2 {
  font-size: 22px;
  margin: 0;
}
.locale-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ffffff0c;
  color: #bbb;
  font-size: 26px;
  cursor: pointer;
}
.locale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.locale-option {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff04;
  color: #ddd;
  font: inherit;
  cursor: pointer;
  text-align: start;
}
.locale-option small {
  font-size: 11px;
  color: #85858f;
  letter-spacing: .04em;
}
.locale-option:hover {
  background: #ffffff0c;
  border-color: #ffffff40;
}
.locale-option[aria-current=true] {
  background: #ff287314;
  border-color: #ff2873;
  color: #ff70a2;
}
.locale-option:focus-visible,
.language-trigger:focus-visible,
.locale-close:focus-visible {
  outline: 2px solid #ff70a2;
  outline-offset: 3px;
}
[dir=rtl] .hero-content {
  left: auto;
  right: 5%;
}
[dir=rtl] .hero-thumbnails {
  right: auto;
  left: 5%;
}
[dir=rtl] .hero-shade {
  transform: scaleX(-1);
}
[dir=rtl] video {
  direction: ltr;
}
@media (max-width: 600px) {
  .language-trigger {
    padding: 8px 12px;
    font-size: 12px;
  }
  .locale-dialog {
    width: 100%;
    max-height: 88svh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .locale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .locale-option {
    min-height: 60px;
  }
  .locale-heading {
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  .locale-dialog {
    max-width: 100%;
    margin-inline: 0;
  }
  .home header .home-link {
    margin-inline: 12px;
    font-size: 12px;
  }
  .detail-page header {
    gap: 12px;
  }
  .language-trigger {
    flex-shrink: 0;
  }
  .detail-back {
    min-width: 0;
  }
}
.search-trigger {
  order: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffff24;
  background: #ffffff08;
  color: #eee;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.search-trigger:hover {
  background: #ffffff18;
}
.language-trigger {
  order: 2;
  margin-inline-start: 0;
}
header .search-trigger {
  margin-inline-start: auto;
}
.search-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100% - 32px));
  padding: 58px 24px 28px;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  background: #16161c;
  color: #fff;
  box-shadow: 0 24px 90px #0008;
}
.search-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(8px);
}
.search-dialog .locale-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
}
.search-form {
  display: flex;
  gap: 12px;
  width: 100%;
}
.search-form input {
  min-width: 0;
  flex: 1;
  height: 50px;
  border: 1px solid #ffffff28;
  border-radius: 12px;
  background: #ffffff06;
  color: #fff;
  font: inherit;
  padding: 0 16px;
  outline: none;
}
.search-form input:focus {
  border-color: #ff567e;
  box-shadow: 0 0 0 3px #ff567e15;
}
.search-submit {
  border: 0;
  border-radius: 12px;
  background: #ff3c72;
  color: #fff;
  min-height: 46px;
  padding: 12px 20px;
  font: inherit;
  cursor: pointer;
}
.search-submit:hover {
  background: #ff5887;
}
@media (max-width: 600px) {
  .home header {
    gap: 10px;
  }
  .language-trigger {
    max-width: 115px;
    overflow: hidden;
  }
  .search-form input {
    font-size: 16px;
  }
  .search-dialog {
    padding-inline: 16px;
  }
  .search-submit {
    padding-inline: 14px;
  }
  .search-trigger {
    width: 36px;
    height: 36px;
  }
}
