:root {
  --zk-black: #1c1c1c;
  --zk-red: #c93838;
  --zk-muted: #d1d1d1;
  --zk-text: #111;
  --zk-white: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--zk-white);
  color: var(--zk-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.zk-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 4px;
}

.zk-header {
  height: 80px;
  display: flex;
  align-items: center;
}

.zk-logo {
  display: block;
  width: 300px;
  height: 60px;
  background: url(../images/logo.svg) no-repeat 0 50% / 80% auto;
}

.zk-nav,
.zk-link-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.zk-nav a,
.zk-link-grid a {
  min-width: 0;
  height: 32px;
  padding: 0 5px;
  overflow: hidden;
  background: var(--zk-black);
  color: var(--zk-white);
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zk-nav a:hover,
.zk-link-grid a:hover {
  background: var(--zk-red);
}

.zk-block-title {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.zk-search-band {
  margin-top: 10px;
  padding: 20px 12px;
  background: #cecece;
}

.zk-search {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  border: 1px solid var(--zk-black);
  background: var(--zk-white);
}

.zk-search input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: var(--zk-white);
  font-size: 14px;
}

.zk-search button {
  width: 46px;
  height: 34px;
  border: 0;
  background: var(--zk-white);
  cursor: pointer;
}

.zk-search svg {
  width: 20px;
  height: 20px;
  fill: var(--zk-black);
}

.zk-main {
  width: 100%;
}

.zk-tag-block {
  margin-top: 14px;
}

.zk-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 40px;
  padding: 7px;
  background: var(--zk-muted);
}

.zk-tag-list a {
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 3px;
  background: #e8e8e8;
  color: #111;
  font-size: 14px;
  line-height: 19px;
}

.zk-tag-list a:hover {
  background: var(--zk-black);
  color: var(--zk-white);
}

.zk-content-title {
  margin: 14px 4px 8px;
  font-size: 18px;
  font-weight: 400;
}

.zk-content-title h1,
.zk-content-title strong {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.zk-vods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
  width: 100%;
  align-items: start;
}

.zk-vod {
  min-width: 0;
}

.zk-vods > .zk-vod:nth-last-child(2):nth-child(4n + 1),
.zk-vods > .zk-vod:last-child:nth-child(4n + 2) {
  grid-column: span 2;
}

.zk-vod-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2 url(../images/lazy.svg) no-repeat center / 42px 42px;
}

.zk-vod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.zk-vod:hover img {
  transform: scale(1.04);
}

.zk-vod-title {
  display: block;
  height: 35px;
  padding: 0 2px;
  overflow: hidden;
  font-size: 14px;
  line-height: 35px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zk-vod-title:hover {
  color: #d16239;
}

.zk-pager {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.zk-pager a,
.zk-pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  background: var(--zk-black);
  color: var(--zk-white);
  line-height: 34px;
  text-align: center;
}

.zk-empty {
  margin: 30px 0;
  text-align: center;
}

.zk-detail-title {
  margin: 14px 0 10px;
  font-size: 18px;
  font-weight: 400;
}

.zk-cover-links {
  width: min(100%, 920px);
}

.zk-cover-link {
  position: relative;
  display: none;
  width: 100%;
  overflow: hidden;
}

.zk-cover-link:first-child {
  display: block;
}

.zk-cover-link img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #000;
}

.zk-play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.zk-play-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 34px solid transparent;
  border-bottom: 34px solid transparent;
  border-left: 54px solid rgba(255, 255, 255, .88);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}

.zk-playlists {
  margin-top: 14px;
}

.zk-line-title {
  margin: 10px 0 6px;
  font-size: 16px;
}

.zk-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zk-episodes a {
  min-width: 62px;
  padding: 8px 12px;
  background: var(--zk-black);
  color: var(--zk-white);
  font-size: 14px;
  text-align: center;
}

.zk-episodes a:hover,
.zk-episodes a.is-current {
  background: var(--zk-red);
}

.zk-player {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.zk-player iframe,
.zk-player video,
.zk-player object,
.zk-player embed,
.zk-player > div {
  width: 100% !important;
  height: 100% !important;
}

.zk-description {
  margin: 12px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.zk-footer-area {
  margin-top: 14px;
}

.zk-source-footer {
  min-height: 80px;
  margin-top: 14px;
  padding: 16px 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.zk-source-footer p {
  margin: 8px auto 0;
  max-width: 1120px;
}

@media (max-width: 900px) {
  .zk-nav,
  .zk-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zk-vods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-vods > .zk-vod:nth-last-child(2):nth-child(4n + 1),
  .zk-vods > .zk-vod:last-child:nth-child(4n + 2) {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .zk-shell {
    padding: 0 3px;
  }

  .zk-header {
    height: 64px;
  }

  .zk-logo {
    width: 220px;
    height: 50px;
    background-size: 92% auto;
  }

  .zk-nav a,
  .zk-link-grid a {
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }

  .zk-search-band {
    padding: 12px 8px;
  }

  .zk-tag-list {
    gap: 4px;
    padding: 5px;
  }

  .zk-tag-list a {
    padding: 3px 7px;
    font-size: 13px;
  }

  .zk-vods {
    gap: 8px 4px;
  }

  .zk-vod-title {
    height: 34px;
    font-size: 13px;
    line-height: 34px;
  }

  .zk-player {
    min-height: 210px;
  }
}

@media (max-width: 390px) {
  .zk-nav,
  .zk-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
