/**
 * ==========================================================================
 * ACCR Broadsheet Design System - Complete Inner Pages Architecture (Cardless)
 * Category Listings, Article Reading Experience, Digital Library, Media Theater,
 * Photo Lightbox, Institutional About, Contact Center, and Directory
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
 * 1. Category & Sub-Category Article Listings (type_articles, level_articles, search, selections)
 * -------------------------------------------------------------------------- */
.inner_category_page,
.inner_books_page,
.inner_media_page,
.inner_albums_page,
.inner_search_page,
.inner_selections_page,
.inner_archive_page,
.inner_sitemap_page {
  width: 100%;
  margin-top: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.category_page_header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.category_page_header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 70px;
  height: 2px;
  background-color: var(--accent-gold);
}

.category_title_wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category_main_title {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.category_articles_flow {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3xl);
}

/* Category Lead Hero (First Article) */
.category_lead_card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: var(--hairline);
  background: transparent;
}

.category_lead_thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.category_lead_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
}

.category_lead_card:hover .category_lead_thumb img {
  transform: scale(1.02);
}

.category_lead_content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category_lead_title {
  font-family: var(--font-editorial);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.35;
}

.category_lead_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.category_lead_title a:hover {
  color: var(--primary);
}

.category_lead_desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.btn_read_more {
  margin-top: var(--space-sm);
  align-self: flex-start;
  padding: 6px 16px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-xs);
  border: 1px solid var(--primary-border);
  transition: all var(--transition-fast);
}

.btn_read_more:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Category Article Items (Open Broadsheet Rows) */
.category_article_card {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: var(--hairline);
  padding: var(--space-lg) 0;
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  transition: background-color var(--transition-fast);
}

.category_article_card:hover {
  transform: none;
  box-shadow: none;
  background-color: rgba(248, 250, 252, 0.6);
}

.category_card_thumb {
  width: 220px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.category_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
}

.category_article_card:hover .category_card_thumb img {
  transform: scale(1.02);
}

.category_card_content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category_card_title {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.4;
}

.category_card_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.category_card_title a:hover {
  color: var(--primary);
}

.category_card_desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn_read_more_mini {
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
 * 2. Books Catalog & 3D Detail Presentation (type_books, library & book_detail)
 * -------------------------------------------------------------------------- */
.books_catalog_grid {
  margin-bottom: var(--space-2xl);
}

.book_catalog_card {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.book_catalog_card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle-hover);
  border-color: var(--brand-border);
}

.book_catalog_cover {
  width: 100px;
  flex-shrink: 0;
  box-shadow: var(--shadow-book);
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
}

.book_catalog_cover img {
  width: 100%;
  height: auto;
  border-radius: 3px 8px 8px 3px;
}

.book_catalog_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book_catalog_title {
  font-family: var(--font-editorial);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.35;
}

.book_catalog_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.book_catalog_title a:hover {
  color: var(--brand-primary);
}

.book_catalog_author,
.book_catalog_publisher {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.book_catalog_action {
  margin-top: var(--space-xs);
}

/* Book Detail Master Page */
.book_detail_master_page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.book_detail_card {
  margin-bottom: var(--space-2xl);
}

.book_detail_top_grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: flex-start;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-2xl);
}

.book_3d_cover_large {
  width: 100%;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: -8px 14px 28px rgba(0, 0, 0, 0.2);
}

.book_3d_cover_large img {
  width: 100%;
  height: auto;
  border-radius: 4px 12px 12px 4px;
}

.book_detail_main_info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.book_detail_main_title {
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  line-height: 1.3;
}

.book_meta_table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xs) 0;
}

.book_meta_table td {
  padding: 8px 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.book_meta_table td:first-child {
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  width: 120px;
}

.book_download_action_box {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.book_download_action_box a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--theme-emerald);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.book_download_action_box a:hover {
  background: var(--theme-emerald-dark);
}

.book_deep_details {
  margin-top: var(--space-lg);
}

.book_details_content {
  font-size: var(--text-md);
  line-height: 1.9;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
 * 3. Article Detail Reading Experience (article_detail)
 * -------------------------------------------------------------------------- */
.article_detail_page {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-md) 0 var(--space-4xl);
}

.article_main_card {
  margin-bottom: var(--space-3xl);
  background: transparent;
  border: none;
  box-shadow: none;
}

.article_badge_row {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.article_main_headline {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.34;
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

.article_lead_paragraph {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: var(--fw-normal);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
}

.article_author_meta_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.article_author_info {
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--primary);
}

.article_author_info a {
  color: var(--primary);
}

.article_meta_stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  color: var(--text-muted);
}

.article_hero_media {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.article_hero_media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.article_text_body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 2.15;
  color: #1e293b;
  text-align: right;
}

.article_text_body p {
  margin-bottom: 2em;
}

.article_text_body blockquote {
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--bg-surface-subtle);
  border-right: 3px solid var(--primary);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  line-height: 1.75;
}

.article_interaction_bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin: var(--space-3xl) 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.article_tools_links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tool_link_btn,
.btn_action_pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.tool_link_btn:hover,
.btn_action_pill:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.tool_link_btn:hover,
.btn_action_pill:hover {
  background: var(--bg-surface);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

.btn_action_pill_pdf {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.btn_action_pill_pdf:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn_action_pill .ico_inline,
.tool_link_btn .ico_inline {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn_action_pill_pdf .ico_inline {
  stroke: #ffffff;
}

.btn_exporting {
  opacity: 0.85;
  cursor: wait !important;
  pointer-events: none;
}

@keyframes accr-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ico_spin {
  animation: accr-spin 1s linear infinite;
}

/* ACCR PDF Toast Notifications */
.accr_pdf_toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.accr_pdf_toast.accr_toast_show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.accr_toast_success {
  background: #065f46;
  border: 1px solid #059669;
}

.accr_toast_error {
  background: #991b1b;
  border: 1px solid #dc2626;
}

/* PDF Print Document Template Styling */
.accr_pdf_export_document {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', Arial, sans-serif !important;
  color: #1e293b !important;
  line-height: 1.8 !important;
  direction: rtl !important;
  text-align: right !important;
  box-sizing: border-box;
}

.pdf_page_container {
  padding: 24px 28px;
  background: #ffffff;
}

.pdf_official_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.pdf_header_brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf_logo {
  height: 52px;
  width: auto;
}

.pdf_brand_title {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0284c7;
  line-height: 1.2;
}

.pdf_brand_subtitle {
  font-size: 10px;
  color: #64748b;
  font-family: sans-serif;
  direction: ltr;
  text-align: right;
}

.pdf_doc_meta_right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pdf_meta_tag_badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pdf_export_timestamp {
  font-size: 10.5px;
  color: #64748b;
}

.pdf_header_divider {
  height: 3px;
  background: var(--primary);
  margin-bottom: 18px;
  border-radius: 2px;
}

.pdf_article_intro {
  margin-bottom: 16px;
}

.pdf_badges_bar {
  margin-bottom: 8px;
}

.pdf_badges_bar .category_tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.pdf_article_title {
  font-family: 'Cairo', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 8px 0 12px 0;
}

.pdf_meta_strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #475569;
}

.pdf_lead_box {
  background: #f0f9ff;
  border-right: 4px solid #0284c7;
  border-top: 1px solid #e0f2fe;
  border-bottom: 1px solid #e0f2fe;
  border-left: 1px solid #e0f2fe;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.8;
  color: #1e293b;
}

.pdf_hero_image_wrap {
  margin: 16px 0;
  text-align: center;
}

.pdf_hero_img {
  max-width: 100%;
  max-height: 380px;
  border-radius: 6px;
  object-fit: cover;
}

.pdf_body_text {
  font-size: 13.5px;
  line-height: 1.95;
  color: #1e293b;
  text-align: justify;
}

.pdf_body_text p {
  margin-bottom: 14px;
}

.pdf_body_text h2,
.pdf_body_text h3,
.pdf_body_text h4 {
  font-family: 'Cairo', sans-serif;
  color: #0f172a;
  margin-top: 20px;
  margin-bottom: 10px;
}

.pdf_body_text blockquote {
  padding: 10px 16px;
  margin: 16px 0;
  background: #f0f9ff;
  border-right: 3px solid #0284c7;
  font-style: italic;
  color: #334155;
}

.pdf_body_text img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.pdf_official_footer {
  margin-top: 32px;
  padding-top: 12px;
}

.pdf_footer_divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 10px;
}

.pdf_footer_content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  color: #64748b;
  text-align: center;
}

.pdf_source_url {
  color: #0284c7;
  text-decoration: underline;
  word-break: break-all;
}

/* Related Articles Section */
.related_articles_section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--text-ink);
}

.related_articles_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.related_article_card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.related_card_thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.related_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.related_article_card:hover .related_card_thumb img {
  transform: scale(1.025);
}

.related_card_title {
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.4;
}

.related_card_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.related_card_title a:hover {
  color: var(--brand-primary);
}

/* Reader Comments Section */
.reader_comments_section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.comments_list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.comment_item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comment_header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.comment_author {
  font-weight: var(--fw-bold);
  color: var(--text-ink);
}

.comment_text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Comment Form */
.comment_form_wrapper {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.comment_form_title {
  font-family: var(--font-editorial);
  font-size: var(--text-lg);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  margin-bottom: var(--space-lg);
}

.comment_form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form_col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form_col_full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form_col label,
.form_col_full label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
}

.input_field,
.textarea_field {
  width: 100%;
  padding: 9px 12px;
  font-size: var(--text-sm);
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-ink);
  outline: none;
  transition: border-color var(--transition-fast);
}

.input_field:focus,
.textarea_field:focus {
  border-color: var(--brand-primary);
}

.btn_submit_comment {
  padding: 10px 24px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.btn_submit_comment:hover {
  background: var(--brand-dark);
}

/* --------------------------------------------------------------------------
 * 4. Video & Media Theater (media & media_detail)
 * -------------------------------------------------------------------------- */
.media_cards_grid {
  margin-bottom: var(--space-2xl);
}

.media_grid_card,
.media_card_item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  margin: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.media_grid_card:hover,
.media_card_item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle-hover);
  border-color: var(--brand-border);
}

.media_grid_thumb,
.media_card_thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.media_grid_thumb img,
.media_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}

.media_grid_card:hover .media_grid_thumb img,
.media_card_item:hover .media_card_thumb img {
  transform: scale(1.025);
}

.media_grid_play_overlay,
.media_card_play_badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast);
}

.media_grid_play_overlay svg,
.media_card_play_badge svg {
  width: 18px;
  height: 18px;
  fill: var(--text-ink);
  margin-left: -2px;
}

.media_grid_card:hover .media_grid_play_overlay,
.media_card_item:hover .media_card_play_badge {
  transform: translate(-50%, -50%) scale(1.1);
}

.media_grid_title,
.media_card_title {
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.4;
  margin-top: 4px;
}

.media_grid_title a,
.media_card_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.media_grid_title a:hover,
.media_card_title a:hover {
  color: var(--brand-primary);
}

/* Media Detail Video Player Experience */
.media_theater_wrapper {
  max-width: 1000px;
  margin: 0 auto var(--space-3xl);
}

.media_player_container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-xl);
  position: relative;
}

.media_embed_responsive {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.media_player_container iframe,
.media_player_container video,
.media_player_container object,
.media_player_container embed,
.media_embed_responsive iframe,
.media_embed_responsive video,
.media_embed_responsive object,
.media_embed_responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

.media_theater_title {
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  line-height: 1.35;
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
 * 5. Photo Albums Gallery (albums & album_detail)
 * -------------------------------------------------------------------------- */
.albums_catalog_grid {
  margin-bottom: var(--space-2xl);
}

.album_catalog_card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  margin: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.album_catalog_card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle-hover);
  border-color: var(--brand-border);
}

.album_catalog_thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-subtle);
}

.album_catalog_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}

.album_catalog_card:hover .album_catalog_thumb img {
  transform: scale(1.025);
}

.gallery_cam_badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.album_catalog_title {
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  line-height: 1.4;
  margin-top: 4px;
}

.album_catalog_title a {
  color: var(--text-ink);
  transition: color var(--transition-fast);
}

.album_catalog_title a:hover {
  color: var(--brand-primary);
}

.album_card_caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Album Photos Matrix Grid */
.album_photos_matrix {
  margin-bottom: var(--space-2xl);
}

.album_photo_item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
  margin: var(--space-xs);
}

.album_photo_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}

.album_photo_item:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
 * 6. Institutional Pages (about, contactus, sitemap, archiving, error)
 * -------------------------------------------------------------------------- */
.about_layout_grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.about_content_card {
  padding-inline-end: var(--space-xl);
  border-inline-end: 1px solid var(--border);
}

.about_sidebar_nav {
  display: flex;
  flex-direction: column;
}

.about_sidebar_title {
  font-family: var(--font-editorial);
  font-size: var(--text-md);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: var(--space-md);
}

.about_nav_list {
  display: flex;
  flex-direction: column;
}

.about_nav_item a {
  display: block;
  padding: 10px 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.about_nav_item a:hover,
.about_nav_item a.active_nav_item {
  color: var(--primary);
  font-weight: var(--fw-bold);
}

.about_body_text {
  font-size: var(--text-md);
  line-height: 2;
  color: var(--text-primary);
}

.about_body_text p {
  margin-bottom: 1.5em;
}

/* Contact Us Page Dedicated Architecture */
.contact_page_master {
  padding-bottom: var(--space-4xl);
}

.contact_layout_grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-top: var(--space-xl);
}

@media (max-width: 900px) {
  .contact_layout_grid {
    grid-template-columns: 1fr;
  }
}

.contact_form_card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.contact_form_fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.form_row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form_row label {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: var(--fw-bold);
  color: var(--text-ink);
}

.input_field,
.textarea_field {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: var(--text-ink);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.input_field:focus,
.textarea_field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12);
}

.input_field::placeholder,
.textarea_field::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

.textarea_field {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.field_error {
  display: block;
  color: var(--destructive) !important;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  margin-top: 4px;
}

.form_actions {
  margin-top: var(--space-sm);
}

input[type="submit"].btn_submit_contact,
button.btn_submit_contact,
.btn_submit_contact {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 36px !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-family: var(--font-editorial) !important;
  font-size: 15px !important;
  font-weight: var(--fw-bold) !important;
  border: none !important;
  border-radius: var(--radius-xs) !important;
  cursor: pointer !important;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast) !important;
  box-shadow: var(--shadow-sm) !important;
  line-height: 1.5 !important;
}

input[type="submit"].btn_submit_contact:hover,
button.btn_submit_contact:hover,
.btn_submit_contact:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.form_message_alert {
  display: block;
  padding: 12px 16px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-xs);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

.form_message_alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form_message_alert.error {
  background-color: var(--destructive-subtle);
  color: var(--destructive);
  border: 1px solid #fecaca;
}

/* Contact Info Sidebar Card */
.contact_info_card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.contact_info_body {
  margin-top: var(--space-md);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact_detail_item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact_detail_item:last-child {
  border-bottom: none;
}

.contact_icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.contact_detail_item strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  margin-bottom: 2px;
}

.contact_detail_item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Sitemap Sections */
.sitemap_cards_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.sitemap_group_col {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
  padding-left: var(--space-lg);
}

.sitemap_group_col:last-child {
  border-left: none;
  padding-left: 0;
}

.sitemap_group_title {
  font-family: var(--font-editorial);
  font-size: var(--text-base);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text-ink);
  margin-bottom: var(--space-md);
}

.sitemap_links_list {
  display: flex;
  flex-direction: column;
}

.sitemap_links_list a {
  display: block;
  padding: 8px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.sitemap_links_list a:hover {
  color: var(--brand-primary);
}

/* Error & Thank You Cards */
.error_page_wrapper,
.thanks_page_wrapper {
  padding: var(--space-2xl) var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.error_card,
.thanks_card {
  text-align: center;
  max-width: 720px;
  width: 100%;
  margin: var(--space-xl) auto;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.error_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-primary), #b91c1c, #dc2626);
}

.thanks_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.error_code,
.error_code_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-size: 4.5rem;
  font-weight: var(--fw-heavy);
  line-height: 1;
  letter-spacing: -2px;
  padding: 10px 36px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.badge_404 {
  color: var(--brand-primary);
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge_403 {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.badge_500,
.badge_503 {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.thanks_icon_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-size: 2.2rem;
  font-weight: var(--fw-heavy);
  color: #059669;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: 50%;
  margin-bottom: var(--space-lg);
}

.error_title,
.thanks_title {
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  font-weight: var(--fw-heavy);
  color: var(--text-ink);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.error_desc,
.thanks_desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
}

/* Action Buttons */
.error_actions,
.thanks_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.btn_error_primary,
.btn_error_secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn_error_primary {
  background: var(--brand-primary);
  color: #ffffff !important;
  border: 1px solid var(--brand-primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn_error_primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn_error_secondary {
  background: var(--bg-surface-subtle);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-medium);
}

.btn_error_secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  color: var(--text-ink) !important;
}

/* Helpful Discovery Section */
.error_helpful_section {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-xl);
  margin-top: var(--space-lg);
}

.error_helpful_title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.error_chips_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error_chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-secondary) !important;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.error_chip:hover {
  background: var(--brand-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .error_card,
  .thanks_card {
    padding: var(--space-xl) var(--space-md);
  }
  .error_code_badge {
    font-size: 3.5rem;
    padding: 8px 24px;
  }
  .btn_error_primary,
  .btn_error_secondary {
    width: 100%;
  }
  .error_chips_list {
    flex-direction: column;
  }
  .error_chip {
    width: 100%;
    justify-content: center;
  }
}

/* Modal Panels */
.modal_share_panel {
  width: 90%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.modal_header {
  background: var(--bg-surface-subtle);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.modal_header h3 {
  font-family: var(--font-editorial);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
}

.modal_body_form {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form_row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form_row label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
}

.form_actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  justify-content: flex-end;
}

.btn_modal_submit {
  padding: 8px 20px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn_modal_cancel {
  padding: 8px 18px;
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Pagination */
.pagination_wrapper {
  margin: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.pagination a:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}

.pagination span {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.pagination_info {
  font-size: var(--text-2xs);
  color: var(--text-muted);
}

/* ==========================================================================
   ACCR Modern Audio Article Player (.audio_article_player)
   ========================================================================== */
.audio_article_player {
  margin: var(--space-lg) 0 var(--space-xl) 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 55%, #fff5f5 100%);
  border: 1px solid rgba(126, 0, 0, 0.16);
  border-top: 3.5px solid var(--brand-primary);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 24px -4px rgba(126, 0, 0, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.audio_article_player:hover {
  box-shadow: 0 12px 28px -4px rgba(126, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

.audio_player_inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header bar inside player */
.audio_header_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.audio_brand_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light, #f0f9ff);
  color: var(--brand-primary, #0284c7);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill, 999px);
  font-size: var(--text-xs);
  font-weight: var(--fw-heavy, 800);
  letter-spacing: 0.02em;
}

.audio_badge_icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.audio_article_title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Animated Equalizer Waves */
.audio_equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.audio_equalizer span {
  display: block;
  width: 3px;
  height: 5px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio_article_player.is-playing .audio_equalizer span:nth-child(1) {
  animation: accrEqWave 0.8s ease-in-out infinite alternate;
}
.audio_article_player.is-playing .audio_equalizer span:nth-child(2) {
  animation: accrEqWave 1.1s ease-in-out infinite alternate 0.2s;
}
.audio_article_player.is-playing .audio_equalizer span:nth-child(3) {
  animation: accrEqWave 0.7s ease-in-out infinite alternate 0.4s;
}
.audio_article_player.is-playing .audio_equalizer span:nth-child(4) {
  animation: accrEqWave 1.2s ease-in-out infinite alternate 0.1s;
}
.audio_article_player.is-playing .audio_equalizer span:nth-child(5) {
  animation: accrEqWave 0.9s ease-in-out infinite alternate 0.3s;
}

@keyframes accrEqWave {
  0% { height: 4px; }
  50% { height: 16px; }
  100% { height: 7px; }
}

/* Controls Flow Row */
.audio_controls_row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Play/Pause Button */
.btn_audio_play {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn_audio_play:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn_audio_play:active {
  transform: scale(0.96);
}

.btn_audio_play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Secondary Skip Buttons */
.btn_audio_skip {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn_audio_skip:hover {
  background: #e2e8f0;
  color: var(--text-ink);
  transform: scale(1.05);
}

.btn_audio_skip svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Timeline & Progress Bar */
.audio_timeline_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  min-width: 180px;
}

.audio_time_stamp {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 40px;
  user-select: none;
}

.audio_progress_bar {
  flex: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-pill, 999px);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.15s ease;
}

.audio_progress_bar:hover {
  height: 9px;
}

.audio_progress_filled {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-pill, 999px);
  position: relative;
  transition: width 0.1s linear;
}

/* Action Tools: Speed, Volume, Download */
.audio_tools_wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Speed Button */
.btn_audio_speed {
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #475569;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 42px;
  text-align: center;
}

.btn_audio_speed:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Volume Slider Wrap */
.audio_volume_wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--radius-pill, 999px);
}

.btn_audio_mute {
  background: none;
  border: none;
  padding: 0;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.btn_audio_mute:hover {
  color: var(--brand-primary);
}

.btn_audio_mute svg {
  width: 16px;
  height: 16px;
}

.audio_volume_range {
  width: 56px;
  height: 4px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* Download MP3 Button */
.btn_audio_download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: #ffffff;
  border: 1px solid rgba(126, 0, 0, 0.25);
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn_audio_download:hover {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(126, 0, 0, 0.2);
}

.btn_audio_download svg {
  width: 14px;
  height: 14px;
}

/* Small Audio Badge for Article Cards */
.badge_audio_listen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.badge_audio_listen svg {
  width: 13px;
  height: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .audio_article_player {
    padding: 14px 16px;
  }
  
  .audio_controls_row {
    gap: 10px;
  }

  .audio_timeline_wrap {
    order: 3;
    flex: 1 1 100%;
    margin-top: 4px;
  }

  .audio_volume_wrap {
    display: none; /* Hide volume slider on mobile, phone has physical buttons */
  }

  .btn_audio_download span {
    display: none; /* Icon only on mobile */
  }

  .btn_audio_download {
    padding: 6px 10px;
  }
}

