:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #162333;
  --muted: #6b7b93;
  --line: #e5edf7;
  --brand: #0f86ff;
  --brand-2: #2ec8ff;
  --nav: #0f2f60;
  --hero: #0c2142;
  --shadow: 0 10px 28px rgba(12, 38, 72, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: PingFang SC, Microsoft YaHei, Helvetica Neue, Arial, sans-serif;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

.layui-main {
  max-width: 1280px !important;
}

.site-mobile-shade,
.layui-side {
  display: none !important;
}

.layui-header.header {
  background: linear-gradient(90deg, #0c2d5c, #174c88 48%, #0c2d5c) !important;
  box-shadow: 0 4px 18px rgba(6, 20, 41, 0.2);
}

.layui-header .layui-main {
  display: flex;
  align-items: center;
  height: 72px;
}

.jyk-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 170px;
}

.jyk-logo-main {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.jyk-logo-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #8fd5ff;
}

.jyk-search {
  flex: 1;
  margin: 0 22px;
}

.jyk-search form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jyk-search-input {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d7e3f5;
  background: #fff;
  padding: 0 18px;
  font-size: 14px;
}

.jyk-search-btn {
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.jyk-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.jyk-nav a {
  color: #e3eeff;
  font-size: 14px;
  font-weight: 600;
}

.jyk-nav a:hover,
.jyk-nav a.is-active {
  color: #fff;
}

.jyk-shell {
  padding: 18px 12px 28px;
}

.jyk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  margin-bottom: 16px;
}

.jyk-hero-main {
  min-height: 350px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d2447, #103869 58%, #0d4f8d);
  color: #fff;
  box-shadow: 0 16px 34px rgba(9, 31, 58, 0.24);
}

.jyk-hero-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: center;
}

.jyk-hero-poster {
  width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.jyk-hero-title {
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 10px;
}

.jyk-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.jyk-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.jyk-badge-hot {
  background: linear-gradient(90deg, #ff8f1f, #ff5a37);
}

.jyk-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-bottom: 14px;
}

.jyk-hero-meta-item {
  color: #d4e6ff;
  font-size: 14px;
  line-height: 1.6;
}

.jyk-hero-meta-item b {
  color: #fff;
  margin-right: 6px;
}

.jyk-hero-desc {
  color: #d9e8ff;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.jyk-hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(143, 213, 255, 0.14);
  color: #9fd8ff;
  font-size: 12px;
  font-weight: 700;
}

.jyk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jyk-btn-primary,
.jyk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.jyk-btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
}

.jyk-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-left: 10px;
}

.jyk-hero-side {
  padding: 12px;
  border-radius: 18px;
  background: #112f5a;
  box-shadow: 0 16px 34px rgba(9, 31, 58, 0.18);
}

.jyk-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.jyk-thumb {
  display: block;
}

.jyk-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.jyk-thumb-name {
  margin-top: 4px;
  color: #d6e8ff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jyk-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.jyk-channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.jyk-channel-strip a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #20466d;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.jyk-channel-strip a:hover {
  border-color: #b8d9ff;
  color: var(--brand);
}

.jyk-trust-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.jyk-trust-item b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.jyk-trust-item span {
  font-size: 13px;
  color: var(--muted);
}

.jyk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.jyk-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.jyk-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.jyk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.jyk-card-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.jyk-card-sub {
  color: var(--muted);
  font-size: 13px;
}

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

.jyk-vod {
  display: block;
}

.jyk-vod-pic {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf1fb;
}

.jyk-vod-pic img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.jyk-vod-mark {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ff6f2c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.jyk-vod-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 42px;
}

.jyk-vod-meta {
  color: var(--muted);
  font-size: 12px;
}

.jyk-side-list {
  padding: 0 16px 16px;
}

.jyk-rank-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.jyk-rank-item:last-child {
  border-bottom: 0;
}

.jyk-rank-num {
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #2c7cf0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.jyk-rank-item:nth-child(1) .jyk-rank-num {
  background: #ff5a44;
}

.jyk-rank-item:nth-child(2) .jyk-rank-num {
  background: #ff8922;
}

.jyk-rank-item:nth-child(3) .jyk-rank-num {
  background: #ffc11d;
  color: #573900;
}

.jyk-rank-name {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.jyk-rank-time {
  font-size: 12px;
  color: var(--muted);
}

.jyk-panel {
  margin-top: 16px;
}

.jyk-filter {
  padding: 16px 18px;
}

.jyk-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.jyk-filter-row:last-child {
  border-bottom: 0;
}

.jyk-filter-label {
  width: 64px;
  color: var(--muted);
  font-size: 14px;
  line-height: 32px;
  flex: 0 0 auto;
}

.jyk-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jyk-filter-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #305173;
  font-size: 13px;
  font-weight: 600;
}

.jyk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 18px;
}

.jyk-toolbar-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jyk-toolbar-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #365577;
  font-size: 13px;
  font-weight: 700;
}

.jyk-empty {
  padding: 42px 18px 54px;
  text-align: center;
  color: var(--muted);
}

.jyk-empty-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.jyk-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px;
}

.jyk-detail-poster {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(14, 34, 61, 0.14);
}

.jyk-detail-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.jyk-detail-desc {
  color: #516684;
  line-height: 1.9;
  font-size: 15px;
  margin-top: 14px;
}

.jyk-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.jyk-meta-item {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.jyk-meta-item b {
  color: var(--text);
  margin-right: 6px;
}

.jyk-actions {
  margin-top: 18px;
}

.jyk-source-tabs {
  padding: 0 20px 20px;
}

.jyk-source-title {
  padding: 16px 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.jyk-episode-wrap {
  margin-top: 12px;
}

.jyk-episode-title {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.jyk-episode-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.jyk-episode-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
}

.jyk-play-shell {
  padding: 18px;
}

.jyk-player-box {
  overflow: hidden;
  border-radius: 16px;
  background: #081521;
  box-shadow: 0 18px 34px rgba(4, 16, 31, 0.2);
}

.jyk-play-head {
  padding: 16px 18px 0;
}

.jyk-play-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.jyk-play-meta {
  color: var(--muted);
  font-size: 14px;
}

.jyk-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.jyk-related-grid--small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jyk-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.jyk-play-main,
.jyk-play-side {
  min-width: 0;
}

.jyk-player-wrap {
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #081521;
  box-shadow: 0 18px 34px rgba(4, 16, 31, 0.2);
}

.jyk-pages {
  padding: 0 18px 18px;
}

.jyk-pages .page-link,
.jyk-pages a,
.jyk-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

footer {
  margin-top: 26px;
  padding-top: 14px;
  background: #0f274a !important;
  color: #c0d4f0 !important;
}

footer a {
  color: #9fd7ff !important;
}

@media (max-width: 1100px) {
  .jyk-hero,
  .jyk-layout,
  .jyk-play-layout,
  .jyk-block-grid {
    grid-template-columns: 1fr;
  }

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

  .jyk-grid,
  .jyk-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jyk-episode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .layui-header .layui-main {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .jyk-search {
    order: 3;
    width: 100%;
    margin: 12px 0 0;
  }

  .jyk-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
  }

  .jyk-hero-inner,
  .jyk-detail {
    grid-template-columns: 1fr;
  }

  .jyk-hero-poster {
    width: 100%;
  }

  .jyk-channel-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .jyk-hero-title,
  .jyk-detail-title {
    font-size: 28px;
  }

  .jyk-trust {
    grid-template-columns: 1fr;
  }

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

  .jyk-episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jyk-meta-grid {
    grid-template-columns: 1fr;
  }
}
