@charset "utf-8";

/*
 * 精選影音內頁（video.php）專用樣式
 */

.and-video-layout {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* --- 上方說明 --- */
.and-video-intro {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
  letter-spacing: 0.3px;
  text-align: left;
}

/* --- 精選影音列表（內頁專用，不共用首頁 class）--- */
.and-video-list-section {
  padding: 0;
  background: transparent;
  margin-bottom: 56px;
}

.and-video-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 25px;
  margin-bottom: 30px;
  width: 100%;
}

.and-video-list-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.and-video-list-card:hover {
  text-decoration: none;
}

.and-video-list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #eeeeee;
  padding-bottom: 56.25%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.and-video-list-card:hover .and-video-list-thumb {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

.and-video-list-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.and-video-list-card:hover .and-video-list-thumb img {
  transform: scale(1.04);
}

.and-video-list-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.and-video-list-play i {
  line-height: 1;
  color: #ff0000;
  font-size: 50px;
}

.and-video-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 0 2px;
}

.and-video-list-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #222222;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* --- Podcast 單集卡片（中間區塊：兩欄一列）--- */
.and-video-podcast-cards {
  margin-bottom: 56px;
}

.and-podcast-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Apple Podcasts 的嵌入播放器（規格 §3.10：畫面由 Apple 渲染，本站只給一個容器）
   iframe 寬度撐滿格線的一欄，高度沿用 Apple 官方嵌入碼：單集 175、頻道 450 */
.and-podcast-embed {
  min-width: 0;
}

.and-podcast-embed iframe {
  display: block;
  width: 100%;
  max-width: 660px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
}

/* Podcast 專區（podcast.php）的頻道嵌入：高度 450，兩欄
   （Apple 的嵌入最大 660px，內容區 1200px 放得下兩欄；一列一個會讓右半邊整片空白） */
.and-podcast-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  margin-bottom: 32px;
}



.and-podcast-card {
  min-width: 0;
  background: #f8f8fa;
  /* border: 1px solid #e6e6e6; */
  border-radius: 8px;
  padding: 14px 16px 10px;
}

.and-podcast-card__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.and-video-podcast-cards .and-inner-head__part {
  font-weight: normal;
}

.and-podcast-card__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 15px;
  color: #6d6c73;
}

.and-podcast-card__brand-text {
  font-size: 13px;
  font-weight: normal;
  color: #6d6c73;
  letter-spacing: -0.2px;
}

.and-podcast-card__main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.and-podcast-card__thumb {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: #eeeeee;
}

.and-podcast-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.and-podcast-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.and-podcast-card__meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: #888888;
  line-height: 1.4;
}

.and-podcast-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: normal;
  color: #111111;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.and-podcast-card__author {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666666;
}

.and-podcast-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.and-podcast-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 70px;
  min-height: 33px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.and-podcast-card__btn--play {
  background: #6c2bd0;
  border: 1px solid #6c2bd0;
  color: #ffffff;
}

.and-podcast-card__btn--play:hover {
  background: #7a3b96;
  border-color: #7a3b96;
  color: #ffffff;
}

.and-podcast-card__btn--play i {
  font-size: 11px;
}

.and-podcast-card__btn--more {
  background: #ebe4f5;
  /* border: 1px solid #e2d8ef; */
  color: #6c2bd0;
}

.and-podcast-card__btn--more:hover {
  background: #dfd4ef;
  color: #6c3483;
}

.and-podcast-card__btn-ext {
  font-size: 14px;
  line-height: 1;
}

.and-podcast-card__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ece0f5;
  color: #6c2bd0;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.and-podcast-card__menu:hover {
  background: #dfd0ef;
}

.and-podcast-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.and-podcast-card__manage {
  font-size: 12px;
  color: #888888;
  line-height: 1.4;
  text-decoration: none;
}

.and-podcast-card__manage:hover {
  text-decoration: underline;
}

.and-podcast-cards-more-wrap {
  display: flex;
  justify-content: center;
}

.and-podcast-cards-more-wrap .and-ui-btn--more {
  gap: 30px;
  min-width: 180px;
  padding: 20px 20px;
  font-size: 16px;
  letter-spacing: 1.5px;
}

/* --- Podcast 播放器（下方全版區塊，含漸層）--- */
.and-video-podcast-players {
  margin-bottom: 16px;
}

.and-podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.and-podcast-player {
  min-width: 0;
  width: 100%;
  background: #f2f2f2;
  /* border: 1px solid #e6e6e6; */
  border-radius: 8px;
  overflow: hidden;
}

.and-podcast-player__body {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

/* 左欄：節目資訊 */
.and-podcast-player__sidebar {
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding: 16px 18px 18px;
  box-sizing: border-box;
  background: #f6f6f8;
}

.and-podcast-player__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.and-podcast-player__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 15px;
  color: #6d6c73;
}

.and-podcast-player__brand-text {
  font-size: 13px;
  font-weight: normal;
  color: #6d6c73;
  letter-spacing: -0.2px;
}

.and-podcast-player__sidebar-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.and-podcast-player__info {
  min-width: 0;
}

.and-podcast-player__cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 12px;
  background: #eeeeee;
}

.and-podcast-player__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.and-podcast-player__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.and-podcast-player__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: normal;
  color: #111111;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.and-podcast-player__author {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: normal;
  color: #888888;
  line-height: 1.4;
}

.and-podcast-player__desc {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.65;
  color: #888888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.and-podcast-player__desc-more {
  color: #8e44ad;
  text-decoration: none;
  font-weight: normal;
}

.and-podcast-player__desc-more:hover {
  text-decoration: underline;
}

.and-podcast-player__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ece0f5;
  color: #7224d8;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.and-podcast-player__menu:hover {
  background: #dfd0ef;
}

.and-podcast-player__latest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 11px 16px;
  border: none;
  border-radius: 5PX;
  background: #7224d8;
  color: #ffffff;
  font-size: 15px;
  font-weight: normal;
  text-decoration: none;
  transition: background 0.2s ease;
}

.and-podcast-player__latest:hover {
  background: #7a3b96;
  color: #ffffff;
}

.and-podcast-player__latest i {
  font-size: 11px;
}

/* 右欄：單集列表 + 漸層 */
.and-podcast-player__episodes-panel {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ebebed;
}

.and-podcast-player__episodes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 20px 0 0 0px;
}

.and-podcast-player__episode {
  padding: 14px 22px;
  border-bottom: 1px solid #e5e5e7;
}

.and-podcast-player__episode-meta {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: normal;
  color: #999999;
  line-height: 1.4;
}

.and-podcast-player__episode-title {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  color: #222222;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.and-podcast-player__episodes-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 39px;
  height: 80px;
  background: linear-gradient(to bottom,
    rgba(235, 235, 237, 0) 0%,
    rgba(235, 235, 237, 0.75) 55%,
    rgba(235, 235, 237, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.and-podcast-player__episodes-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 22px 14px;
  background: #ebebed;
}

.and-podcast-player__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: normal;
  color: #7224d8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.and-podcast-player__more:hover {
  color: #6c3483;
}

.and-podcast-player__more-arrow {
  font-size: 15px;
  line-height: 1;
}

.and-podcast-player__manage {
  font-size: 11px;
  font-weight: normal;
  color: #636369;
  white-space: nowrap;
  text-decoration: none;
}

.and-podcast-player__manage:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1100px) {
  .and-video-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

@media screen and (max-width: 900px) {
  .and-podcast-player__body {
    flex-direction: column;
    min-height: 0;
  }

  .and-podcast-player__sidebar {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: none;
  }

  .and-podcast-player__episodes-panel {
    min-height: 0;
    border-top: 1px solid #e5e5e7;
  }

  .and-podcast-player__episodes {
    flex: none;
    max-height: none;
  }
}

@media screen and (max-width: 767px) {
  .and-video-intro {
    margin-bottom: 32px;
    font-size: 14px;
    text-align: left;
  }

  .and-video-list-section {
    margin-bottom: 40px;
  }

  .and-video-list-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 24px;
  }

  .and-video-list-meta {
    margin-top: 16px;
    padding: 0 4px;
  }

  .and-video-list-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.55;
  }

  .and-video-podcast-cards {
    margin-bottom: 40px;
  }

  .and-podcast-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  /* Podcast 專區的頻道嵌入：手機改一欄 */
  .and-podcast-channel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .and-podcast-card {
    padding: 14px 14px 10px;
  }

  .and-podcast-card__main {
    align-items: flex-start;
    gap: 12px;
  }

  .and-podcast-card__thumb {
    width: 96px;
    height: 96px;
  }

  .and-podcast-card__title {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }

  .and-podcast-card__author {
    margin-bottom: 12px;
  }

  .and-podcast-card__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }

  .and-podcast-card__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    gap: 4px;
    border-radius: 6px;
  }

  .and-podcast-card__btn--play i {
    font-size: 9px;
  }

  .and-podcast-card__btn-ext {
    font-size: 11px;
  }

  .and-podcast-card__menu {
    width: 32px;
    height: 32px;
    margin-top: 4px;
  }

  .and-podcast-player__sidebar {
    flex: none;
    width: 100%;
    padding: 14px 14px 16px;
  }

  .and-podcast-player__sidebar-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .and-podcast-player__cover {
    flex: 0 0 108px;
    width: 108px;
    max-width: 108px;
    margin: 0;
  }

  .and-podcast-player__title {
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .and-podcast-player__menu {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .and-podcast-player__author {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .and-podcast-player__desc {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
  }

  .and-podcast-player__latest {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    font-size: 14px;
  }

  .and-podcast-player__episodes {
    flex: none;
    max-height: 392px;
  }

  .and-podcast-player__episodes-fade {
    bottom: 36px;
    height: 64px;
  }

  .and-podcast-player__episode {
    padding: 12px 14px;
  }

  .and-podcast-player__episode-meta {
    font-size: 11px;
  }

  .and-podcast-player__episode-title {
    font-size: 13px;
    line-height: 1.45;
  }

  .and-podcast-player__episodes-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 14px 12px;
  }

  .and-podcast-player__more {
    font-size: 13px;
  }

  .and-podcast-player__manage {
    white-space: normal;
    font-size: 10px;
  }

  .and-podcast-cards-more-wrap .and-ui-btn--more {
    min-width: 180px;
    padding: 12px 26px;
    font-size: 15px;
    letter-spacing: 1px;
  }
}
