:root {
  --color-primary: #0a2e28;
  --color-primary-light: #0f3d35;
  --color-accent: #c5a059;
  --color-accent-hover: #d4b06a;
  --color-bg: #f5f6f4;
  --color-card: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-muted-l: #b3b6bc;
  --color-text-on-dark: #ffffff;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --bottom-nav-height: 4.5rem;
  --app-max-width: 480px;
  --height-l: 100vh;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}



body {
  font-family: IRANSans;
  background-color: var(--color-primary);
  color: var(--color-text);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}



/*==================================*/
/* منوی کشویی (offcanvas) — باز شدن از سمت راست */
.menu-right.offcanvas {
  width: min(85vw, var(--app-max-width));
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.menu-right .offcanvas-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-right .offcanvas-title {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.menu-right .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0 1rem;
}

.menu-right .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  margin: 0.1rem 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.menu-right .nav-link svg {
  width: 1.25rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.menu-right .nav-link:hover {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.menu-right .nav-link.active {
  color: var(--color-accent);
  background: rgba(197, 160, 89, 0.15);
}

.menu-right .offcanvas-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.5rem;
}

.menu-right .offcanvas-footer__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
}

.menu-right .offcanvas-footer__link svg {
  width: 0.95rem;
  flex-shrink: 0;
}

.menu-right .offcanvas-footer__link:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
}
/*==================================*/



.app-shell {
  background: var(--color-primary) !important;
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.app-main {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  min-height: 83vh !important;
  background: var(--color-card);

}

/* Header */
.app-header {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 0.75rem 0.5rem 1rem;
  z-index: 1020;
}

.app-header--inner {
  padding-bottom: 1rem;
}

.app-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.5rem;
}

.app-header__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
}

.app-header__btn {
  background: none;
  border: none;
  color: var(--color-text-on-dark);
  font-size: 1.25rem;
  padding: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.app-header__btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.app-header__btn:hover {
  color: var(--color-accent);
}

.app-header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

/* Hero */
.hero {
  /*background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);*/
  background: var(--color-primary);
  padding: 0 1rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");*/
  opacity: 0.5;
}

.hero__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__image {
  width: 12rem;

  object-fit: cover;
  flex-shrink: 0;
 
}

.hero__text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}

.hero__text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Quick actions */
.quick-actions {
  background: var(--color-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -1.7rem;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.quick-action-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1rem 0.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--color-primary);
}

.quick-action-card:active {
  transform: scale(0.97);
}

.quick-action-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.1rem;
}

.quick-action-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Section */
.section {
  padding: 0 1rem 1rem;
  background:var(--color-card);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  padding-left: 15px;
  padding-right: 15px;
}

.section__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.section__link {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.section__link:hover {
  color: var(--color-accent-hover);
}

/* Lecture list item */
.lecture-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-card);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: 0.15s;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  background: var(--color-primary-light) !important;
    border-radius: var(--radius-lg) !important;
}

.lecture-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: inherit;
  background: var(--color-bg);
}

.archive .lecture-item{
  background: var(--color-primary);
  color: white;
  border-top: 1px solid var(--color-primary-light);
  border-radius: 0;
}

.archive .lecture-item:hover{
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}




.lecture-item__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.lecture-item__download {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.lecture-item__duration {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.lecture-item__info {
  flex: 1;
  min-width: 0;
}

.lecture-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lecture-item__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 10px 0 0 0;
}

.archive .lecture-item__duration,
.archive .lecture-item__date{
  color: var(--color-text-muted-l);
}

.lecture-item__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.lecture-item__thumb {
  width: 4.5rem;
  height: 4.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--color-primary-light);
}

.lecture-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lecture-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  color: var(--color-accent);
  font-size: 1.25rem;
}
svg.play-circle{
  box-shadow:inset 0 0 0 20px rgba(0,0,0,0.4);
  border-radius: 100px;
  padding: 8px 8.5px 8px 7.5px;
}

/* Search */
.search-bar {
  padding: 0 1rem 0.75rem;
}

.search-bar__input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  color: var(--color-text-on-dark);
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  width: 100%;
  font-size: 0.9rem;
}

.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.18);
}

.search-bar__wrap {
  position: relative;
}

.search-bar__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-chip--active,
.filter-chip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.filter-chips--light {
  padding-top: 0.75rem;
}

/*.filter-chips--light .filter-chip {*/
/*  border-color: #ddd;*/
/*  color: var(--color-text-muted);*/
/*  background: var(--color-card);*/
/*}*/

.filter-chips--light .filter-chip--active,
.filter-chips--light .filter-chip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

/* Content area on inner pages */
.page-content {
  background: var(--color-primary);
  margin-top: -0.5rem;
  min-height: 50vh;
  padding-top: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.page-content > .text-secondary,
.page-content > .player-desc .text-secondary {
  color: rgba(255, 255, 255, 0.62) !important;
}

/* داخل کارت مطلب رنگ‌های page-content نباید اعمال شوند */
.page-content .post-card .text-secondary {
  color: var(--color-text-muted) !important;
}

.page-content .player-desc__text {
  color: rgba(255, 255, 255, 0.82);
}

/* متن روشن فقط برای المان‌های مستقیم صفحه، نه داخل کارت مطلب */
.page-content > .text-dark,
.page-content > a.text-dark,
.page-content > .player-desc .text-dark,
.page-content > .player-desc a.text-dark {
  color: #fff !important;
}

.page-content > a.text-dark:hover,
.page-content > .player-desc a.text-dark:hover {
  color: var(--color-accent) !important;
}

.page-content--posts,
.page-content--post-show {
  padding-bottom: 1.25rem;
}

/* کارت مطلب رنگ‌های page-content را بازنویسی می‌کند */
.page-content .post-card,
.page-content .post-card .post-card__meta,
.page-content .post-card .post-card__excerpt,
.page-content .post-card .cms-post-body {
  color: var(--color-text);
}

.page-content .post-card a.text-dark,
.page-content .post-card .text-dark {
  color: var(--color-text) !important;
}

.page-content .post-card a.text-dark:hover {
  color: var(--color-primary) !important;
}

/* کارت مطلب (لیست و نمایش تکی) */
.post-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  color: var(--color-text);
}

.post-card + .post-card {
  margin-top: 0.75rem;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.post-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.post-card__title a:hover {
  color: var(--color-accent);
}

.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  border-right: 3px solid var(--color-accent);
  padding-right: 0.75rem;
  margin-bottom: 1rem;
}

.post-card__featured {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 0.65rem;
  margin-bottom: 1rem;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

/* بدنهٔ محتوای CMS */
.cms-post-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
}

.cms-post-body h1,
.cms-post-body h2,
.cms-post-body h3,
.cms-post-body h4 {
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.35rem 0 0.65rem;
  line-height: 1.45;
}

.cms-post-body h1 { font-size: 1.35rem; }
.cms-post-body h2 { font-size: 1.2rem; }
.cms-post-body h3 { font-size: 1.05rem; }

.cms-post-body p,
.cms-post-body li,
.cms-post-body td,
.cms-post-body th {
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.cms-post-body ul,
.cms-post-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.cms-post-body a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-post-body a:hover {
  color: var(--color-accent);
}

.cms-post-body blockquote {
  border-right: 3px solid var(--color-accent);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--color-bg);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--color-text-muted);
}

.cms-post-body img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cms-post-body table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.cms-post-body th,
.cms-post-body td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}

/* بازنویسی رنگ‌های inline ویرایشگر */
.post-card .cms-post-body *:not(a):not(img):not(svg) {
  color: var(--color-text) !important;
}

.post-card .cms-post-body .text-white,
.post-card .cms-post-body [style*="color: rgb(255"] {
  color: var(--color-text) !important;
}

.post-card .cms-post-body h1,
.post-card .cms-post-body h2,
.post-card .cms-post-body h3,
.post-card .cms-post-body h4 {
  color: var(--color-primary) !important;
}
.cms-post-body audio, .cms-post-body video{
  width: 100%;

}
/* نمایش تکی مطلب */
.post-card--single {
  padding: 1.35rem 1.15rem 1.5rem;
  border: 1px solid rgba(10, 46, 40, 0.06);
}

.post-card__header {
  margin-bottom: 1rem;
}

.post-card__title-page {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.post-card__featured--hero {
  max-height: 320px;
  border-radius: 0.75rem;
  box-shadow: 0 6px 24px rgba(10, 46, 40, 0.12);
}

.post-card__excerpt--lead {
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--color-bg);
  border-right-color: var(--color-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 0.85rem 0.75rem 0;
  margin-bottom: 1rem;
}

.post-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.post-card__tag--category {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid rgba(10, 46, 40, 0.12);
}

.post-card__tag--category:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.post-card__tag--tag {
  background: var(--color-primary-light);
  color: var(--color-text-on-dark);
}

.post-card__tag--tag:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.post-card__divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(10, 46, 40, 0.12), transparent);
  margin: 0 0 1.25rem;
}

.cms-post-body--article {
  font-size: 1rem;
  line-height: 1.9;
}

.cms-post-body--article > *:first-child {
  margin-top: 0;
}

.page-content--full {
  margin-top: 0;
  border-radius: 0;
  padding-top: 0;
}

/* Archive list (larger thumb) */
.archive-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin: 0 1rem 0.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.archive-item:hover {
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.archive-item__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.archive-item__thumb {
  width: 5.5rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--color-primary-light);
}

/* Clip grid */
.clip-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.clips .clip-card .clip-card__title{background: var(--color-card);
color: var(--color-text);}

.clip-card:hover {
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clip-card__thumb-wrap {
  position: relative;
}

.clip-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 13;
  object-fit: cover;
  background: var(--color-primary-light);
  display: block;
}

.clip-card__duration {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 20px;
  font-weight: 600;
}

.clip-card__play {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  /*background: var(--color-accent);*/
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.clip-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  margin: 0;
  line-height: 1.4;
}

/* Quote grid */
.quote-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 1;
  position: relative;
  display: block;
  text-decoration: none;
}

.quote-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* Player page */
.player-hero {
  background: var(--color-primary);
  /*padding: 0 1rem 2rem;*/
  text-align: center;
  color: var(--color-text-on-dark);
}

.player-hero__art {
  width: 100%;
  max-height: 16rem;
  aspect-ratio: 4 / 3;
  /*margin: 0 auto 1rem;*/
  /*border-radius: var(--radius-xl);*/
  object-fit: cover;

  background: var(--color-card);
}

.player-card {
  background: var(--color-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -1.5rem;
  padding: 1.5rem 1.25rem 2rem;
  position: relative;
  z-index: 1;
}

.player-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-primary);
}

.player-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.player-progress {
  margin-bottom: 1.25rem;
  direction: ltr;
}

.player-progress__bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  position: relative;
  margin-bottom: 0.5rem;
}

.player-progress__fill {
  height: 100%;
  width: 30%;
  background: var(--color-primary);
  border-radius: 2px;
  position: relative;
  direction: rtl;
}

.player-progress__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.player-progress__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  direction: ltr;
}

.player-controls__btn {
  background: none;
  border: none;
  color: #a9a9a9;
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: 0.2s;
}

.player-controls__btn--main {
  width: 3.5rem;
  height: 3.5rem;
  color: #a9a9a9;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.player-controls__btn:hover,
.player-controls__btn--main:hover{
  color: var(--color-primary);
}

.player-controls__speed {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #555;
  border-radius: 0.25rem;
  padding: 0.15rem 0.35rem;
  width: 25px;
  /*position: absolute;*/
  /*left: 20px;*/
}

.player-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.player-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.player-actions__btn--primary {
  background: var(--color-primary);
  color: #fff;
  border:none;
  border-radius: 15px !important;
}

.player-desc__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.player-desc__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.player-desc__more {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* More page menu */
.more-m{
  position: relative;
  /*top: -1.75rem;*/
  padding-top: 1px;
  margin-top: 1px;

}

.more-menu {
  background: var(--color-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  top: -1.76rem;
  overflow: hidden;
  position: relative;
}

.app-header .top-m{margin-bottom: 1.76rem;}


.more-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.more-menu__item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.more-menu__item:last-child {
  border-bottom: none;
}

.more-menu__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-bg);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.more-menu__label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.more-menu__arrow {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--color-primary);
  display: flex;
  align-items: stretch;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  transition: color 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.bottom-nav__item svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

.bottom-nav__item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav__item--active {
  color: var(--color-accent);
}

.bottom-nav__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0 0 2px 2px;
}

.bottom-nav__item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.bottom-nav__item--active:hover {
  color: var(--color-accent);
}

.bottom-nav__item:active {
  opacity: 0.75;
}

/* Placeholder gradients for images */
.img-placeholder-1 { background: linear-gradient(135deg, #1a4a3f, #0a2e28); }
.img-placeholder-2 { background: linear-gradient(135deg, #2d5a4f, #1a3d35); }
.img-placeholder-3 { background: linear-gradient(135deg, #3d6b5c, #0f3d35); }
.img-placeholder-4 { background: linear-gradient(135deg, #4a7c6a, #1a4a3f); }
.img-placeholder-5 { background: linear-gradient(135deg, #5c4a2a, #3d3520); }
.img-placeholder-6 { background: linear-gradient(135deg, #2a4a5c, #1a3545); }
