/* ============================================================
   3QYYDS 主题 · module.css — 卡片 / 模块 / 幻灯片 / 周表 / 推荐块
   ============================================================ */

/* —— 视频卡片（海报网格通用，固定 6 列，尺寸自适应）—— */
.qy-grid { display: grid; gap: var(--qy-gap); }
.qy-grid--vod { grid-template-columns: repeat(6, 1fr); }
.qy-grid--vod-lg { grid-template-columns: repeat(6, 1fr); }

.qy-card {
  display: block; position: relative; border-radius: var(--qy-r); overflow: hidden;
  background: var(--qy-bg-1); border: 1px solid var(--qy-line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.qy-card:hover {
  transform: translateY(-4px); border-color: var(--qy-line-strong);
  box-shadow: var(--qy-shadow-card), 0 0 22px rgba(0,229,255,0.18);
}
.qy-card__cover { position: relative; aspect-ratio: 2 / 3; background: var(--qy-bg-2); overflow: hidden; }
.qy-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.qy-card:hover .qy-card__cover img { transform: scale(1.06); }
.qy-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,8,18,0.9));
}
.qy-card__tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--qy-grad); color: #04101a;
}
.qy-card__score {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--qy-lime); background: rgba(4,8,18,0.6); border: 1px solid var(--qy-line-strong);
}
.qy-card__body { padding: 8px 10px 11px; }
.qy-card__title {
  font-size: 14px; font-weight: 600; color: var(--qy-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qy-card:hover .qy-card__title { color: var(--qy-cyan); }
.qy-card__sub { margin-top: 3px; font-size: 12px; color: var(--qy-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* —— 横版海报（16:9，智能裁剪）—— */
.qy-card--land { }
.qy-card--land .qy-card__cover { aspect-ratio: 16 / 9; }
.qy-card--land .qy-card__cover img { object-position: center 18%; }

/* —— 模块容器 —— */
.qy-module { margin: 24px 0; }
.qy-module__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.qy-module__more { font-size: 13px; color: var(--qy-text-3); display: inline-flex; align-items: center; gap: 4px; }
.qy-module__more:hover { color: var(--qy-cyan); }

/* —— Hero 全屏幻灯片（MXPRO风格：背景大图 + 缩略图条 + 右侧文字）—— */
.qy-hero {
  position: relative; width: 100%; height: 520px;
  overflow: hidden; background: var(--qy-bg);
}
/* 背景轮播层 */
.qy-hero__bg { position: absolute; inset: 0; }
.qy-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.qy-hero__slide.is-active { opacity: 1; z-index: 1; }
.qy-hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  transition: transform 6s ease;
}
.qy-hero__slide.is-active .qy-hero__img { transform: scale(1.04); }
/* 渐变遮罩（从底部到中间，确保文字可读） */
.qy-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,18,0.92) 0%, rgba(4,8,18,0.45) 50%, transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(4,8,18,0.85) 100%);
  z-index: 2;
}

/* —— 右侧文字信息卡 —— */
.qy-hero__info {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  z-index: 5; max-width: 320px;
  animation: qyHeroInfoIn .5s ease .3s both;
}
@keyframes qyHeroInfoIn { from{opacity:0;transform:translateY(-50%) translateX(30px)} to{opacity:1;transform:translateY(-50%) translateX(0)} }
.qy-hero__link { text-decoration: none; color: inherit; display: block; }
.qy-hero__title {
  font-family: var(--qy-font-display); font-size: 26px; font-weight: 700;
  margin: 0 0 10px; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.qy-hero__meta {
  margin: 0 0 12px; color: var(--qy-lime); font-size: 14px; font-weight: 600;
}
.qy-hero__desc {
  margin: 0 0 16px; color: var(--qy-text-2); font-size: 13.5px;
  line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
/* —— 左下角竖版海报缩略图横滑条（一屏显示6个）—— */
.qy-hero__thumbs {
  position: absolute; left: 24px; bottom: 22px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  max-width: 700px; /* 约 6×100px + 5×10px gap + 2×28px arrow */
}
.qy-hero__thumb-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px;
  -ms-overflow-style: none;
  /* 限制可视宽度为恰好容纳 6 个缩略图 */
  max-width: calc(6 * 100px + 5 * 10px); /* 6张图 + 5个gap */
}
.qy-hero__thumb-track::-webkit-scrollbar { display: none; }

.qy-hero__thumb {
  flex: 0 0 100px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; cursor: pointer;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; transition: border-color .2s ease, transform .2s ease;
  background: var(--qy-bg-1);
}
.qy-hero__thumb:hover { border-color: var(--qy-cyan); transform: translateY(-3px); }
.qy-hero__thumb.is-active { border-color: var(--qy-cyan); box-shadow: 0 0 14px rgba(0,229,255,.35); }
.qy-hero__thumb img {
  width: 100px; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 6px; display: block;
}
.qy-hero__thumb-label {
  font-size: 12px; color: var(--qy-lime); font-weight: 700;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
}
.qy-hero__thumb-name {
  font-size: 12.5px; color: var(--qy-text-2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
}
/* 缩略图左右箭头 */
.qy-hero__thumb-arrow {
  flex: 0 0 32px; width: 32px; height: 44px;
  display: grid; place-items: center;
  background: rgba(4,8,18,.55); border: 1px solid var(--qy-line);
  border-radius: 8px; color: #fff; font-size: 20px;
  cursor: pointer; transition: background .15s;
  backdrop-filter: blur(4px);
}
.qy-hero__thumb-arrow:hover { background: var(--qy-cyan); color: #04101a; }

/* 圆点指示器（右下角） */
.qy-hero__dots {
  position: absolute; right: 24px; bottom: 16px; z-index: 6;
  display: flex; gap: 7px;
}
.qy-hero__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s;
}
.qy-hero__dot.active { width: 26px; background: var(--qy-grad); }

/* —— 追剧周表（Tab切换 + 海报卡片）—— */
.qy-module--week { margin: 28px 0; }
.qy-module--week .qy-module__head {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--qy-line);
}
.qy-module--week .qy-section-title {
  font-size: 18px; margin: 0; white-space: nowrap;
}

/* Tab 按钮 */
.qy-week__tabs {
  display: flex; gap: 2px; flex: 1; justify-content: flex-end;
}
.qy-week__tab {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--qy-line);
  background: transparent; color: var(--qy-text-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
  font-family: inherit;
}
.qy-week__tab:hover {
  border-color: var(--qy-cyan); color: var(--qy-cyan);
  background: rgba(0,229,255,0.06);
}
.qy-week__tab.is-active {
  background: var(--qy-grad); color: #04101a;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0,229,255,0.3);
}

/* 面板：默认隐藏，is-active 显示 */
.qy-week__panels { position: relative; min-height: 180px; }
.qy-week__panel { display: none; }
.qy-week__panel.is-active { display: block; animation: qyFadeIn .3s ease; }

@keyframes qyFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* 周表小卡片 */
.qy-card--sm .qy-card__cover { aspect-ratio: 2 / 3; }
.qy-card--sm .qy-card__body { padding: 6px 8px 9px; }
.qy-card--sm .qy-card__title { font-size: 13px; }

.qy-week__empty {
  grid-column: 1 / -1; padding: 36px; text-align: center;
  color: var(--qy-text-3); background: var(--qy-bg-1); border-radius: var(--qy-r);
}

/* —— 推荐块（block1-4）—— */
.qy-block__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--qy-gap); }

/* —— 加载更多 / 空态 —— */
.qy-empty { padding: 40px; text-align: center; color: var(--qy-text-3); }

/* ============================================================
   详情页 / 播放页
   ============================================================ */
/* 面包屑 */
.qy-crumb { font-size: 13px; color: var(--qy-text-3); margin: 4px 0 18px; }
.qy-crumb a:hover { color: var(--qy-cyan); }

/* ================================================================
   详情页（vod/detail）—— 对标 mxpro desc+playlist+like 结构
   ================================================================ */

/* 外层容器：海报 + 信息 + 背景模糊 */
.qy-detail-box {
  position: relative; display: flex; gap: 28px; flex-wrap: wrap;
  padding: 24px; border-radius: var(--qy-r-lg);
  background: var(--qy-bg-1); border: 1px solid var(--qy-line);
  box-shadow: var(--qy-shadow-card); overflow: hidden; margin-bottom: 20px;
}
/* 背景模糊大图 */
.qy-detail-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  filter: blur(40px) brightness(.25) saturate(0.6); transform: scale(1.15);
}
.qy-detail-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }

/* 海报 */
.qy-detail-poster { position: relative; z-index: 1; flex: 0 0 220px; }
.qy-detail-poster__img {
  aspect-ratio: 2/3; border-radius: var(--qy-r); overflow: hidden;
  border: 2px solid rgba(0,255,255,.15); box-shadow:
    0 0 18px rgba(0,200,255,.12), 0 8px 32px rgba(0,0,0,.45);
}
.qy-detail-poster__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.qy-detail-poster__img:hover img { transform: scale(1.04); }

/* 信息区 */
.qy-detail-body { position: relative; z-index: 1; flex: 1 1 340px; min-width: 0; }

/* 标题行 */
.qy-detail-head { margin-bottom: 14px; }
.qy-detail-title {
  font-family: var(--qy-font-display); font-size: 26px; font-weight: 800;
  line-height: 1.25; margin: 0 0 10px; letter-spacing: .5px;
}
/* 标签组 */
.qy-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qy-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; color: var(--qy-cyan); background: rgba(0,255,255,.07);
  border: 1px solid rgba(0,255,255,.12); text-decoration: none; transition: all .2s;
}
.qy-tag:hover { background: rgba(0,255,255,.15); border-color: var(--qy-cyan); color: #fff; }

/* 操作按钮行 */
.qy-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.qy-btn--primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: 10px; font-size: 14px; font-weight: 700;
  background: var(--qy-grad); color: #031018; border: none;
  cursor: pointer; transition: all .2s; text-decoration: none;
  box-shadow: 0 0 16px rgba(0,210,255,.25);
}
.qy-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(0,210,255,.4); }
.qy-btn--outline {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: 10px; font-size: 13px;
  background: transparent; color: var(--qy-text-2); border: 1px solid var(--qy-line);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.qy-btn--outline:hover { border-color: var(--qy-cyan); color: var(--qy-cyan); }

/* 详细信息网格（对标 mxpro module-info-items） */
.qydetail-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 20px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.05);
}
.qydi-row { font-size: 13px; color: var(--qy-text-2); line-height: 1.7; }
.qydi-row b { color: var(--qy-text-3); font-weight: 500; margin-right: 4px; }
.qydi-highlight { color: var(--qy-cyan); font-weight: 600; }
.qydi-score { color: var(--qy-lime); font-weight: 700; }

/* 简介 */
.qy-detail-intro { margin-top: 16px; }
.qy-subtitle { font-size: 15px; font-weight: 700; color: var(--qy-text); margin: 0 0 8px; }
.qy-detail-intro__text {
  font-size: 13.5px; color: var(--qy-text-2); line-height: 1.85;
  max-width: 800px; white-space: pre-wrap;
}


/* —— 选集播放区 —— */
.qy-play-section { padding: 20px; }
.qy-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.qy-section-title { font-family: var(--qy-font-display); font-size: 17px; font-weight: 700; color: var(--qy-text); margin: 0; }

/* 播放源 Tab 切换 */
.qy-play-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qy-tab {
  padding: 5px 14px; border-radius: 8px; font-size: 13px;
  background: var(--qy-bg-2); color: var(--qy-text-2);
  border: 1px solid var(--qy-line); cursor: pointer; transition: all .2s;
}
.qy-tab:hover { border-color: rgba(0,255,255,.35); color: var(--qy-cyan); }
.qy-tab.is-active { background: var(--qy-grad); color: #031018; border-color: transparent; font-weight: 600; }
.qy-tab-count { opacity: .65; font-size: 11px; margin-left: 3px; }

/* 选集列表 */
.qy-ep-wrap.is-hidden { display: none !important; }
.qy-ep-wrap.is-open { display: block; }
.qy-ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qy-ep {
  display: inline-block; padding: 7px 15px; border-radius: 8px;
  background: var(--qy-bg-2); border: 1px solid var(--qy-line);
  font-size: 13px; color: var(--qy-text-2); text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.qy-ep:hover { color: var(--qy-cyan); border-color: var(--qy-line-strong); background: rgba(0,255,255,.04); }
.qy-ep.is-active { background: var(--qy-grad); color: #04101a; font-weight: 700; border-color: transparent; }

/* —— 播放页（双栏：左播放器 + 右信息） —— */

/* 双栏容器 */
.qy-play-layout {
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 18px;
}

/* 左侧：播放器（加大） */
.qy-play-left {
  flex: 1 1 0; min-width: 0;
}
.qy-play__box {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--qy-r-lg); overflow: hidden;
  border: 1px solid var(--qy-line); box-shadow: var(--qy-glow);
}
.qy-play__main { position: absolute; inset: 0; }
.qy-play__main iframe,
.qy-play__main .MacPlayer { width: 100%; height: 100%; border: 0; display: block; }

/* 右侧：海报+信息面板（固定宽度，播放器自适应填满剩余空间） */
.qy-play-right {
  flex: 0 0 320px; width: 320px;
  background: var(--qy-bg-1);
  border: 1px solid var(--qy-line);
  border-radius: var(--qy-r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - 140px); overflow-y: auto;
  /* 细滚动条：默认隐藏，悬停显示 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
.qy-play-right::-webkit-scrollbar { display: none; }
.qy-play-right:hover { scrollbar-width: thin; }
.qy-play-right:hover::-webkit-scrollbar { display: block; width: 4px; }
.qy-play-right:hover::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,.25); border-radius: 4px;
}

/* 海报 */
.qy-pi-poster {
  width: 100%; aspect-ratio: 2/3; border-radius: var(--qy-r); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.qy-pi-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 标题 */
.qy-pi-title {
  font-family: var(--qy-font-display); font-size: 19px; font-weight: 800;
  line-height: 1.3; margin: 0; color: var(--qy-text);
  letter-spacing: .3px;
}

/* 标签行 */
.qy-pi-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qy-pi-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; color: var(--qy-cyan);
  background: rgba(0,255,255,.07); border: 1px solid rgba(0,255,255,.12);
}

/* 简介（放大，可滚动） */
.qy-pi-intro {
  font-size: 13px; color: var(--qy-text-2); line-height: 1.8;
  /* 不再截断，让整个面板滚动 */
}

/* 信息行（放大字号 + 更好间距） */
.qy-pi-rows { display: flex; flex-direction: column; gap: 4px; }
.qy-pir {
  font-size: 13px; color: var(--qy-text-2); line-height: 1.7;
  display: flex; flex-wrap: wrap;
}
.qy-pir b { color: var(--qy-text-3); font-weight: 500; margin-right: 4px; flex-shrink: 0; }
.qy-pir span { word-break: break-all; }

/* 按钮组 */
.qy-pi-btns { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.qy-pi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: all .2s;
  border: none; flex: 1;
}
.qy-pi-btn--play {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #031018;
  box-shadow: 0 2px 14px rgba(0,212,255,.35);
}
.qy-pi-btn--play:hover {
  transform: translateY(-1px); box-shadow: 0 4px 22px rgba(0,212,255,.5);
}
.qy-pi-btn--fav {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 12px rgba(168,85,247,.35);
}
.qy-pi-btn--fav:hover {
  transform: translateY(-1px); box-shadow: 0 4px 18px rgba(168,85,247,.5);
}

/* 右侧底部功能工具栏（对标 mxpro） */
.qy-pi-toolbar {
  display: flex; gap: 0; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.05);
}
.qy-pt-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: 12px; color: var(--qy-text-2);
  text-decoration: none; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; border-radius: 6px;
}
.qy-pt-item:hover {
  color: var(--qy-cyan); background: rgba(0,229,255,.07);
}
.qy-pt-item svg {
  width: 15px; height: 15px; stroke-width: 2;
}

/* 广告 BANNER */
.qy-ad-banner {
  margin-bottom: 20px; border-radius: var(--qy-r-lg); overflow: hidden;
  min-height: 80px; background: var(--qy-bg-1); border: 1px dashed var(--qy-line);
  display: flex; align-items: center; justify-content: center;
}
.qy-ad-banner img { width: 100%; display: block; }
