/* =====================================================
   Blog Page Styles - IBiZa TV
   Base: official site (main/css/) + blog-specific
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand-pink:    #DF4994;
  --brand-purple:  #473692;
  --brand-grad:    linear-gradient(135deg, #DF4994 0%, #473692 100%);
  --bg-page:       #F0F2F7;
  --bg-white:      #ffffff;
  --text-main:     #222222;
  --text-muted:    #756F77;
  --text-light:    #aaaaaa;
  --border-light:  #e8e8ee;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --shadow-card:   0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:  0 6px 24px rgba(0,0,0,.14);
  --transition:    all .22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.blog-card__img-wrap img,
.blog-card__img-ph,
.hero-featured__img,
.hero-featured__placeholder,
.hot-news-item__img,
.hot-news-item__img-ph,
.popular-card__img-wrap img,
.popular-card__img-ph,
.list-article__img,
.list-article__img-ph,
.sidebar-popular-item__img,
.sidebar-popular-item__img-ph { display: block; }

/* ---------- Body ---------- */
body {
  font-family: 'Noto Sans TC', "Microsoft JhengHei", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

/* ---------- Blog Wrapper ---------- */
.blog-wrap {
  padding: 36px 0 60px;
}

/* ======================================================
   CATEGORY TABS + TAG PILLS (top filter bar)
   ====================================================== */
.blog-filter-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.blog-cat-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-cat-tabs::-webkit-scrollbar { display: none; }

.blog-cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.blog-cat-tab:hover { color: var(--brand-pink); }
.blog-cat-tab.active {
  color: var(--brand-pink);
  border-color: var(--border-light);
  background: var(--bg-page);
}

.blog-tag-pills {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-tag-pills::-webkit-scrollbar { display: none; }

.blog-tag-pill {
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.blog-tag-pill:hover,
.blog-tag-pill.active {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* ======================================================
   HERO SECTION (big image + hot news sidebar)
   ====================================================== */
.blog-hero {
  margin-bottom: 16px;
}
.blog-hero > .row {
  display: flex !important;
  flex-wrap: wrap;
}
.blog-hero > .row > [class*="col-"] {
  display: flex !important;
  flex-direction: column;
}
.hero-col-featured,
.hero-col-hot {
  display: flex !important;
  flex-direction: column;
}
@media (min-width: 992px) {
  .blog-hero > .row {
    height: 520px;
  }
  .blog-hero > .row > [class*="col-"],
  .hero-col-featured,
  .hero-col-hot {
    height: 100%;
  }
}
@media (max-width: 991px) {
  .hero-col-featured {
    margin-bottom: 16px;
  }
  .hero-featured__img {
    height: auto;
    flex: none;
    max-height: 280px;
  }
}

/* Platform intro (SEO text) */
.blog-platform-intro {
  padding: 0;
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: .45;
  line-height: 1.4;
}

/* Left: featured post */
.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.hero-featured__img {
  width: 100%;
  height: 0;
  flex: 1;
  object-fit: cover;
  display: block;
}
.hero-featured__placeholder {
  width: 100%;
  flex: 1;
  min-height: 240px;
  background: linear-gradient(135deg, #c5c9d4 0%, #e0e3ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-featured__placeholder svg { opacity: .35; width: 80px; display: block; }

.hero-featured__info {
  padding: 20px;
  background: var(--bg-white);
}
.hero-featured__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-pink);
  margin-bottom: 8px;
}
.hero-featured__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-featured__intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right: hot news list */
.hot-news-panel {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hot-news-panel__head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hot-news-panel__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.hot-news-panel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-pink);
  flex-shrink: 0;
}

.hot-news-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.hot-news-item:last-child { border-bottom: none; }
.hot-news-item:hover { background: var(--bg-page); }

.hot-news-item__img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #ddd;
  display: block;
}
.hot-news-item__img-ph {
  width: 88px;
  height: 66px;
  background: linear-gradient(135deg, #d0d4de 0%, #e8eaf0 100%);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-news-item__img-ph svg { opacity: .3; width: 28px; display: block; }

.hot-news-item__body { flex: 1; min-width: 0; }
.hot-news-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.hot-news-item__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.hot-news-item__tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: var(--transition);
}
.hot-news-item__tag:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* ======================================================
   TAG SECTIONS (horizontal grid)
   ====================================================== */
.blog-section {
  margin-bottom: 36px;
}
.blog-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.blog-section__label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-main);
  position: relative;
}
.blog-section__label::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin-top: 3px;
}
.blog-section__more {
  margin-left: auto;
  font-size: 12px;
  color: var(--brand-pink);
  font-weight: 600;
  transition: var(--transition);
}
.blog-section__more:hover { opacity: .7; }

/* Article card (grid) */
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.blog-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 460/325;
  overflow: hidden;
  background: linear-gradient(135deg, #c5c9d4 0%, #e0e3ea 100%);
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card__img { transform: scale(1.05); }

/* placeholder SVG */
.blog-card__img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__img-ph svg { opacity: .3; width: 48px; }

.blog-card__body {
  padding: 8px 12px 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(13px * 1.55 * 2); /* 固定 2 行高度 */
}

/* ======================================================
   POPULAR TOPICS (bottom 3-col)
   ====================================================== */
.popular-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}
.popular-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.popular-card__img-wrap {
  width: 100%;
  aspect-ratio: 460/325;
  overflow: hidden;
  background: linear-gradient(135deg, #c5c9d4 0%, #e0e3ea 100%);
}
.popular-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.popular-card:hover .popular-card__img { transform: scale(1.05); }
.popular-card__img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popular-card__img-ph svg { opacity: .3; width: 48px; }
.popular-card__body { padding: 12px 14px 16px; }
.popular-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ======================================================
   BLOG LIST PAGE
   ====================================================== */
.blog-list-wrap {
  padding: 36px 0 60px;
}

/* List article row */
.list-article {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}
.list-article:hover { background: rgba(223,73,148,.03); }
.list-article:first-child { border-top: 1px solid var(--border-light); }

.list-article__img {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #ddd;
}
.list-article__img-ph {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  background: linear-gradient(135deg, #d0d4de 0%, #e8eaf0 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-article__img-ph svg { opacity: .3; width: 40px; }

.list-article__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-article__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-article__intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-article__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.list-article__tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: var(--transition);
}
.list-article__tag:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.blog-pagination .btn-pagination {
  padding: 10px 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.blog-pagination .btn-pagination:hover:not(:disabled) {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
.blog-pagination .btn-pagination:disabled {
  opacity: .4;
  cursor: default;
}
.pagination-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 10px;
}
.btn-pagination--num {
  min-width: 40px;
  padding: 8px 12px !important;
}
.btn-pagination--active {
  background: linear-gradient(135deg, #DF4994, #473692) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.pagination-dots {
  padding: 0 6px;
  color: var(--text-muted);
  font-size: 14px;
  user-select: none;
}

/* Sidebar */
.blog-sidebar { padding-left: 8px; }

.sidebar-panel {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-panel__head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-panel__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.sidebar-panel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-pink);
}

/* Popular news in sidebar: 2-col grid */
.sidebar-popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.sidebar-popular-item { cursor: pointer; }
.sidebar-popular-item__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #ddd;
  transition: var(--transition);
}
.sidebar-popular-item:hover .sidebar-popular-item__img { opacity: .85; }
.sidebar-popular-item__img-ph {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #d0d4de 0%, #e8eaf0 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-popular-item__img-ph svg { opacity: .3; width: 28px; }
.sidebar-popular-item__title {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hot tags in sidebar */
.sidebar-tags {
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-tag:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* Page breadcrumb */
.blog-breadcrumb {
  font-size: 13px;
  color: var(--brand-pink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-breadcrumb a { color: var(--brand-pink); }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-page-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.blog-page-title-divider {
  width: 40px;
  height: 4px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ======================================================
   HEADER TITLE BANNER (reuse official site pattern)
   ====================================================== */
.blog-header-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 48px 0 36px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  opacity: .12;
}
.blog-header-banner h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0;
  position: relative;
}

/* ---------- Footer override ---------- */
.footer_bg .footer_logo img {
  max-width: 120px !important;
  height: auto !important;
}

/* ======================================================
   RWD
   ====================================================== */
@media (max-width: 991px) {
  .blog-sidebar { padding-left: 0; margin-top: 32px; }
  .hero-featured__title { font-size: 15px; }
}

@media (max-width: 767px) {
  .blog-wrap { padding: 24px 0 40px; }
  .blog-header-banner { padding: 32px 0 24px; }
  .blog-header-banner h1 { font-size: 22px; }

  /* hero stacks */
  .hero-featured { margin-bottom: 20px; }

  /* tag sections: 2 col on mobile */
  .blog-section .row .col-6 { flex: 0 0 50%; max-width: 50%; }

  /* list: img shrink */
  .list-article { gap: 12px; }
  .list-article__img,
  .list-article__img-ph { width: 110px; height: 80px; }
  .list-article__title { font-size: 13px; }
  .list-article__intro { display: none; }
}

@media (max-width: 480px) {
  .blog-cat-tab { font-size: 13px; padding: 7px 14px; }
  .blog-section .row .col-6 { flex: 0 0 50%; max-width: 50%; }
  .popular-card__body { padding: 10px 12px 12px; }
}

/* ======================================================
   MEMBER-ONLY GATE  —  fade-truncate + lock CTA
   ====================================================== */

/* 外層：flex 直排，preview 在上、overlay 在下 */
.post-member-gate {
  position: relative;
  margin: 0 0 40px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

/* 假內文（模糊預覽）— 上方 180px */
.post-member-gate__preview {
  pointer-events: none;
  user-select: none;
  padding: 0;
  filter: blur(3.5px);
  opacity: .55;
  height: 800px;
  overflow: hidden;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.5) 70%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.5) 70%, rgba(0,0,0,0) 100%);
}
.post-member-gate__preview p,
.post-member-gate__preview h2 {
  color: var(--text-main) !important;
}
.post-member-gate__preview img {
  max-width: 100%;
  height: auto;
}

/* 遮罩層 — 覆蓋 preview 下半，卡片緊貼上方 */
.post-member-gate__overlay {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(240,242,247,0) 0%,
    rgba(240,242,247,.85) 60%,
    rgba(240,242,247,1) 80%,
    rgba(240,242,247,1) 100%
  );
  padding: 12px 24px 28px;
  margin-top: -700px;
  position: relative;
  z-index: 2;
}

/* CTA 卡片 */
.post-member-gate__cta {
  text-align: center;
  margin-top: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(71,54,146,.12);
  padding: 28px 32px 32px;
  max-width: 380px;
  width: 100%;
}
.post-member-gate__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  margin: 0 auto 14px;
}
.post-member-gate__text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.65;
}
.post-member-gate__btn {
  display: inline-block;
  padding: 11px 36px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(223,73,148,.3);
}
.post-member-gate__btn:hover {
  opacity: .88;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(223,73,148,.4);
}

/* ─── Vote Block ─── */
.article_vote {
  padding: 20px 0 10px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0 0 32px;
}
.time_row {
  text-align: right;
  margin-bottom: 8px;
}
.time_row .time_title {
  display: inline-block;
  vertical-align: middle;
  padding-right: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.time_style {
  display: inline-block;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-pink);
  background: rgba(223,73,148,.08);
  padding: 3px 10px;
  border-radius: 99px;
  cursor: default;
}
.vote_body {
  padding: 10px 0 0;
}
.vote_row {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 14px;
  margin: 0 0 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  gap: 12px;
}
.vote_img {
  flex: 0 0 72px;
}
.vote_img_row {
  border-radius: 50%;
  overflow: hidden;
  width: 72px;
  height: 72px;
}
.vote_img_row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote_content {
  flex: 1;
  padding: 0 8px;
}
.vote_content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}
.vote_content .progress {
  height: 8px;
  border-radius: 99px;
  background: var(--border-light);
  margin-bottom: 8px;
  overflow: hidden;
}
.vote_content .progress-bar {
  background: var(--brand-grad);
  border-radius: 99px;
  transition: width .6s ease;
}
.vote_text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.vote_text span { display: flex; align-items: baseline; gap: 3px; }
.vote_text span small {
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 14px;
}
.vote_text span .vote_rank {
  font-size: 20px;
  font-style: italic;
}
.vote_btn {
  flex: 0 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
}
.vote_btn_row {
  display: inline-block;
  background: #ccc;
  color: #fff;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 99px;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.vote_btn_row:hover,
.vote_btn .vote_active {
  background: var(--brand-grad);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(223,73,148,.3);
}
@media (max-width: 575px) {
  .vote_row { flex-direction: column; align-items: flex-start; }
  .vote_img { margin: 0 auto; }
  .vote_img_row { max-width: 80px; }
  .vote_btn { width: 100%; min-height: auto; padding-top: 8px; }
  .vote_btn_row { width: 100%; }
}
.vote_btn_row.vote_done {
  background: linear-gradient(to right, rgba(223,73,148,.25) 0%, rgba(71,54,146,.25) 100%);
  color: var(--brand-pink);
  font-weight: 700;
  cursor: default;
  border: 1.5px solid var(--brand-pink);
  box-shadow: none;
}
.vote_row--ended .vote_btn_row {
  pointer-events: none;
  cursor: default;
}

/* 投票 header：主題標題 + 倒計時同行 */
.vote_header_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.vote_title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  flex: 1;
}
.vote_header_row .time_row {
  margin-bottom: 0;
  white-space: nowrap;
}
.vote_btn_row.vote_disabled {
  background: #ccc;
  color: #fff;
  cursor: default;
  pointer-events: none;
  opacity: .5;
}
