:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background: #2b3a67;
  color: #111111;
}

* {
  box-sizing: border-box;
}

html {
  background: #2b3a67;
}

body {
  min-width: 320px;
  margin: 0;
  background: #2b3a67;
  color: #111111;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.mp-page {
  min-height: 100vh;
}

.mp-wrap {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.mp-header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(15, 41, 131, 0.1);
}

.mp-header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.mp-logo {
  display: inline-flex;
  width: 210px;
  height: 52px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.mp-logo-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 52px;
  place-items: center;
  border-radius: 5px;
  background: #17111f;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 2px 0 #00eff0, -2px 0 #ff176b;
}

.mp-logo-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: #ff176b;
  content: "";
}

.mp-logo-name {
  color: #111111;
  font-size: 24px;
  font-weight: 800;
}

.mp-search {
  display: grid;
  width: min(420px, 48vw);
  grid-template-columns: 1fr 72px;
}

.mp-search input {
  min-width: 0;
  height: 38px;
  border: 1px solid #d8d8d8;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  outline: 0;
  padding: 0 12px;
}

.mp-search input:focus {
  border-color: #9b1d64;
  box-shadow: 0 0 0 2px rgba(155, 29, 100, 0.12);
}

.mp-search button {
  height: 38px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #9b1d64;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.mp-category-map {
  margin: 8px 4px 0;
  overflow: hidden;
  background: #2b3a67;
}

.mp-category-row {
  display: grid;
  min-height: 52px;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
}

.mp-category-title {
  min-width: 110px;
  margin: 6px 10px;
  border-radius: 5px;
  background: #ebebeb;
  box-shadow: 1px 1px #9b1d64;
  color: #111111;
  padding: 7px 12px;
  text-align: center;
}

.mp-category-links {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.mp-category-links a {
  overflow: hidden;
  padding: 10px 4px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-category-links a:hover,
.mp-category-links a:focus-visible {
  color: #ff8f8f;
}

.mp-feature-strip {
  display: grid;
  margin: 8px 4px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mp-feature-strip a {
  min-height: 38px;
  border-radius: 4px;
  background: #9b1d64;
  color: #ffffff;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
}

.mp-top-tags,
.mp-footer-tag-grid {
  display: grid;
  padding: 8px 4px;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
}

.mp-top-tags a,
.mp-footer-tag-grid a {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #ebebeb;
  box-shadow: 1px 1px #9b1d64;
  color: #bf006c;
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-main {
  display: block;
}

.mp-video-section,
.mp-detail,
.mp-playlists,
.mp-player-section {
  margin: 0;
  background: #ffffff;
}

.mp-section-title {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.mp-section-title h1,
.mp-section-title h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #111111;
  font-size: 19px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-section-title a,
.mp-section-title span {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #4e5877;
  font-size: 13px;
}

.mp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 12px 16px;
  gap: 10px 0;
}

.mp-card {
  min-width: 0;
  padding: 3px 12px;
}

.mp-card-link {
  display: block;
}

.mp-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 239 / 150;
  overflow: hidden;
  border-radius: 5px;
  background: #d6d6d6;
}

.mp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-card-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 14px 8px 5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.64));
  color: #ffffff;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-card h2 {
  height: 38px;
  margin: 0;
  overflow: hidden;
  padding: 5px 1% 0;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.mp-card-link:hover h2,
.mp-card-link:focus-visible h2 {
  color: #9b1d64;
}

.mp-discovery {
  padding: 10px 4px 12px;
  background: #2b3a67;
}

.mp-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mp-portal-grid a {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #9b1d64;
  color: #ffffff;
  font-size: 13px;
  line-height: 36px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-phrase-tags {
  display: flex;
  flex-wrap: wrap;
  padding-top: 8px;
  gap: 4px;
}

.mp-phrase-tags a {
  border-radius: 5px;
  background: #ebebeb;
  box-shadow: 1px 1px #9b1d64;
  color: #bf006c;
  font-size: 13px;
  padding: 7px 10px;
}

.mp-list-page {
  min-height: 540px;
}

.mp-pagination {
  padding: 4px 12px 24px;
  text-align: center;
}

.mp-pagination a,
.mp-pagination span {
  display: inline-block;
  min-width: 34px;
  margin: 2px;
  border-radius: 3px;
  background: #f1f1f1;
  color: #626262;
  line-height: 34px;
}

.mp-pagination .current,
.mp-pagination a:hover {
  background: #9b1d64;
  color: #ffffff;
}

.mp-empty {
  margin: 0;
  padding: 40px 12px 70px;
  color: #777777;
  text-align: center;
}

.mp-detail {
  display: grid;
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
  padding: 24px;
  gap: 24px;
}

.mp-detail-cover img {
  width: 100%;
  max-height: 430px;
  border-radius: 5px;
  object-fit: cover;
}

.mp-detail-copy h1 {
  margin: 4px 0 18px;
  font-size: 26px;
  line-height: 1.4;
}

.mp-kicker {
  margin: 0;
  color: #9b1d64;
  font-size: 12px;
  font-weight: 800;
}

.mp-meta {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mp-meta div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  border-bottom: 1px solid #eeeeee;
  padding: 8px 0;
}

.mp-meta dt {
  color: #777777;
}

.mp-meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-description {
  margin: 18px 0 0;
  color: #555555;
  line-height: 1.8;
}

.mp-playlists {
  border-top: 8px solid #2b3a67;
  padding-bottom: 20px;
}

.mp-playline {
  padding: 0 12px 12px;
}

.mp-playline h3 {
  margin: 0 0 8px;
  color: #333333;
  font-size: 15px;
}

.mp-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-episodes a {
  min-width: 72px;
  border-radius: 4px;
  background: #ececec;
  color: #333333;
  line-height: 36px;
  padding: 0 12px;
  text-align: center;
}

.mp-episodes a:hover,
.mp-episodes a.is-current {
  background: #9b1d64;
  color: #ffffff;
}

.mp-player-section {
  padding-bottom: 16px;
}

.mp-player {
  position: relative;
  width: calc(100% - 24px);
  aspect-ratio: 16 / 9;
  margin: 0 12px;
  overflow: hidden;
  background: #000000;
}

.mp-player iframe,
.mp-player video {
  width: 100% !important;
  height: 100% !important;
}

.mp-footer-links {
  padding: 10px 4px 16px;
  background: #2b3a67;
}

.mp-footer-label {
  padding: 7px 5px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.mp-flinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mp-flinks a {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #9b1d64;
  color: #ffffff;
  font-size: 13px;
  line-height: 36px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-footer {
  width: min(100%, 1380px);
  min-height: 160px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #2b3a67;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.mp-footer p {
  margin: 7px 0;
}

@media (max-width: 900px) {
  .mp-top-tags,
  .mp-footer-tag-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .mp-portal-grid,
  .mp-flinks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 738px) {
  .mp-header-inner {
    min-height: 70px;
    padding: 7px 8px;
  }

  .mp-logo {
    width: 165px;
    height: 45px;
    gap: 7px;
  }

  .mp-logo-mark {
    width: 48px;
    height: 44px;
    font-size: 28px;
  }

  .mp-logo-name {
    font-size: 20px;
  }

  .mp-search {
    width: min(180px, 48vw);
    grid-template-columns: 1fr 54px;
  }

  .mp-search input,
  .mp-search button {
    height: 34px;
    font-size: 12px;
  }

  .mp-search input {
    padding: 0 8px;
  }

  .mp-category-row {
    grid-template-columns: 75px minmax(0, 1fr);
    align-items: start;
  }

  .mp-category-title {
    width: 66px;
    min-width: 0;
    min-height: 72px;
    margin: 9px 4px 4px;
    padding: 16px 4px;
    font-size: 13px;
  }

  .mp-category-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mp-category-links a {
    padding: 7px 2px;
    font-size: 13px;
  }

  .mp-feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 5px 12px;
  }

  .mp-card {
    padding: 4px 5px;
  }

  .mp-card-media {
    height: 120px;
    aspect-ratio: auto;
  }

  .mp-section-title {
    min-height: 52px;
    padding: 10px 8px 6px;
  }

  .mp-section-title h1,
  .mp-section-title h2 {
    font-size: 17px;
  }

  .mp-phrase-tags a {
    padding: 6px;
    font-size: 12px;
  }

  .mp-detail {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .mp-detail-copy h1 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .mp-meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mp-meta div:nth-child(n+5) {
    display: none;
  }

  .mp-description {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-size: 13px;
  }

  .mp-player {
    width: 100%;
    margin: 0;
  }

  .mp-footer {
    min-height: 154px;
    padding: 25px 20px;
    line-height: 1.9;
  }
}

@media (max-width: 430px) {
  .mp-logo {
    width: 145px;
  }

  .mp-logo-name {
    font-size: 18px;
  }

  .mp-search {
    width: 170px;
  }

  .mp-top-tags,
  .mp-footer-tag-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .mp-top-tags a,
  .mp-footer-tag-grid a {
    font-size: 11px;
    line-height: 29px;
  }

  .mp-portal-grid,
  .mp-flinks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-portal-grid a,
  .mp-flinks a {
    font-size: 12px;
    line-height: 33px;
  }
}
