/* =========================================================
   استایل قالب پروفایل استاد - نسخه هماهنگ با پالت رنگی برند
   (زغالی تیره / کرال روشن / سفید و خاکستری روشن)
   تمام کلاس‌ها با پیشوند "tp-" نام‌گذاری شده‌اند تا با
   استایل‌های قالب المنتور تداخل ایجاد نکنند.
   نکته: هیچ تغییری در چیدمان/نسبت/ساختار داده نشده؛
   فقط پالت رنگی و بافت پس‌زمینه بنر ارتقاء یافته است.
========================================================= */

.tp-teacher-profile {
  /* ---------- متغیرهای رنگ و طراحی (Design Tokens) ---------- */
  /* پالت اصلی برگرفته از UI ارجاعی: زغالی تیره + کرال + سفید/خاکستری روشن */
  --tp-coral: #ef8a63;
  --tp-coral-dark: #e17548;
  --tp-coral-deep: #c25f39;
  --tp-coral-deeper: #9c4b2d;
  --tp-coral-soft: rgba(239, 138, 99, 0.18);
  --tp-coral-light: #f4a986;
  --tp-coral-light-soft: rgba(244, 169, 134, 0.4);

  --tp-charcoal: #2c313a;
  --tp-charcoal-soft: #3a4048;
  --tp-charcoal-deep: #23262c;
  --tp-ink: #232323;
  --tp-ink-soft: rgba(35, 35, 35, 0.65);

  --tp-white: #ffffff;
  --tp-off-white: #f7f7f5;
  --tp-gray-light: #eceef0;
  --tp-text-dark: #262a30;
  --tp-text-muted: #7c828a;
  --tp-icon-gray: #a3a3a3;

  /* نگاشت نام‌های قدیمی متغیرها به پالت جدید (برای سازگاری با بقیه قوانین) */
  --tp-orange: var(--tp-coral);
  --tp-orange-dark: var(--tp-coral-dark);
  --tp-orange-deep: var(--tp-coral-deep);
  --tp-orange-deeper: var(--tp-coral-deeper);
  --tp-orange-soft: var(--tp-coral-soft);
  --tp-gold: var(--tp-coral-light);
  --tp-gold-strong: var(--tp-coral);
  --tp-gold-soft: var(--tp-coral-light-soft);

  --tp-radius-xl: 28px;
  --tp-radius-lg: 20px;
  --tp-radius-md: 14px;
  --tp-radius-pill: 999px;
  --tp-gap: 22px;
  --tp-shadow-soft: 0 10px 30px rgba(35, 38, 44, 0.14);
  --tp-shadow-hover: 0 18px 38px rgba(35, 38, 44, 0.22);
  --tp-font: 'Vazirmatn', Tahoma, Arial, sans-serif;

  direction: rtl;
  font-family: var(--tp-font);
  color: var(--tp-text-dark);
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: var(--tp-off-white);
}

.tp-teacher-profile *,
.tp-teacher-profile *::before,
.tp-teacher-profile *::after {
  box-sizing: inherit;
  font-family: inherit;
}

.tp-teacher-profile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tp-coral);
  box-shadow: 0 0 0 3px rgba(239, 138, 99, 0.22);
  margin-inline-start: 6px;
  vertical-align: middle;
}

/* =========================================================
   بخش ۱: بنر پروفایل استاد
   پس‌زمینه: گرادیان زغالی تیره + بافت انتزاعی محو مرتبط با
   موسیقی (نوار مساوی‌ساز/ویو صدا) به‌جای عکس واقعی، تا هم
   حس موسیقی منتقل شود و هم متن‌ها کاملاً خوانا بمانند.
========================================================= */
.tp-banner {
  direction: rtl;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 56px);
  background:
    radial-gradient(90% 120% at 92% 0%, rgba(239, 138, 99, 0.35) 0%, rgba(239, 138, 99, 0) 45%),
    radial-gradient(70% 90% at 4% 100%, rgba(239, 138, 99, 0.16) 0%, rgba(239, 138, 99, 0) 50%),
    linear-gradient(155deg, var(--tp-charcoal-soft) 0%, var(--tp-charcoal) 45%, var(--tp-charcoal-deep) 100%);
  border-radius: var(--tp-radius-xl);
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 3vw, 48px);
  box-shadow: var(--tp-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--tp-white);
}

/* لایه محو مرتبط با موسیقی: نوار مساوی‌ساز صوتی (Equalizer) با بلور ملایم */
.tp-banner::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(3px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='320'%3E%3Cg fill='%23ffffff' fill-opacity='0.10'%3E%3Crect x='10' y='210' width='16' height='90'/%3E%3Crect x='36' y='150' width='16' height='150'/%3E%3Crect x='62' y='190' width='16' height='110'/%3E%3Crect x='88' y='110' width='16' height='190'/%3E%3Crect x='114' y='170' width='16' height='130'/%3E%3Crect x='140' y='90' width='16' height='210'/%3E%3Crect x='166' y='160' width='16' height='140'/%3E%3Crect x='192' y='130' width='16' height='170'/%3E%3C/g%3E%3Cg fill='%23ef8a63' fill-opacity='0.16'%3E%3Crect x='330' y='180' width='16' height='120'/%3E%3Crect x='356' y='120' width='16' height='180'/%3E%3Crect x='382' y='150' width='16' height='150'/%3E%3Crect x='408' y='70' width='16' height='230'/%3E%3Crect x='434' y='140' width='16' height='160'/%3E%3Crect x='460' y='100' width='16' height='200'/%3E%3Crect x='486' y='165' width='16' height='135'/%3E%3Crect x='512' y='185' width='16' height='115'/%3E%3C/g%3E%3Cpath d='M0 250 Q40 200 80 250 T160 250 T240 250 T320 250 T400 250 T480 250 T560 250' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 100% 30%;
  background-size: 620px 360px;
}

/* ویگنت ظریف برای عمق و اطمینان از خوانایی متن روی بافت */
.tp-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(35, 38, 44, 0.94) 0%, rgba(35, 38, 44, 0.55) 42%, rgba(35, 38, 44, 0.15) 75%),
    radial-gradient(140% 100% at 10% 110%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 55%);
}

.tp-banner > * {
  position: relative;
  z-index: 1;
}

/* --- تصویر پروفایل (سمت راست بنر) با قاب کرال --- */
.tp-banner__photo {
  order: 1;
  flex: 0 0 auto;
  width: clamp(120px, 12vw, 190px);
  height: clamp(120px, 12vw, 190px);
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 7px var(--tp-coral-light-soft),
    0 14px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.tp-banner__photo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 8px var(--tp-coral),
    0 18px 34px rgba(0, 0, 0, 0.36);
}

.tp-banner__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-banner__photo-placeholder {
  width: 60%;
  height: 60%;
  fill: var(--tp-icon-gray);
}

/* --- پیل‌های نام و ساز تخصصی (وسط بنر) --- */
.tp-banner__pills {
  order: 2;
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 249, 0.94));
  color: var(--tp-text-dark);
  border-radius: var(--tp-radius-pill);
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid var(--tp-coral);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.tp-pill:hover,
.tp-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tp-pill__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--tp-coral-dark);
}

/* --- لیست سوابق (سمت چپ بنر) --- */
.tp-banner__list {
  order: 3;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-banner__list-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tp-banner__list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tp-banner__list-label {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tp-banner__list-value {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

/* =========================================================
   بخش ۲: امتیازدهی ستاره‌ای هنرجویان + ثبت نظر
   جایگاه، عرض کلی و ارتفاع پایه‌ی این بخش دقیقاً مطابق نسخه‌ی
   قبلی (نوار پیشرفت) نگه داشته شده تا نسبت آن با باکس‌های
   اطراف و ساختار کلی صفحه تغییر نکند. باکس نظر فقط هنگام باز
   شدن (با انیمیشن نرم) به ارتفاع صفحه اضافه می‌شود.
========================================================= */
.tp-rating {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 22px 4px;
}

.tp-rating-card {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(150deg, var(--tp-white) 0%, var(--tp-off-white) 100%);
  border-radius: var(--tp-radius-lg);
  padding: 12px 20px;
  box-shadow: 0 6px 16px rgba(35, 38, 44, 0.08), inset 0 0 0 1px rgba(35, 38, 44, 0.06);
}

.tp-rating-card__main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- ستاره‌های تعاملی --- */
.tp-rating-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tp-star {
  border: none;
  background: transparent;
  padding: 3px;
  line-height: 0;
  cursor: pointer;
  color: var(--tp-icon-gray);
  transition: color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-star svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.tp-star:hover {
  transform: translateY(-2px) scale(1.08);
}

.tp-star.is-hover,
.tp-star.is-active {
  color: var(--tp-coral);
}

.tp-star.is-active svg {
  filter: drop-shadow(0 2px 4px rgba(194, 95, 57, 0.35));
}

.tp-star:focus-visible {
  outline: 2px solid var(--tp-coral-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- نمایش درصد و نوار پیشرفت ظریف --- */
.tp-rating-card__score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.tp-rating-card__score-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tp-rating-card__percent {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tp-coral-dark);
  transition: color 0.2s ease;
}

.tp-rating-card__score-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  white-space: nowrap;
}

.tp-rating-card__progress {
  width: 100%;
  max-width: 140px;
  height: 6px;
  background: var(--tp-gray-light);
  border-radius: var(--tp-radius-pill);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(35, 38, 44, 0.1);
}

.tp-rating-card__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--tp-radius-pill);
  background: linear-gradient(90deg, var(--tp-charcoal), var(--tp-coral) 65%, var(--tp-coral-light) 100%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- دکمه بازکردن باکس نظر --- */
.tp-rating-card__toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--tp-coral);
  background: transparent;
  color: var(--tp-coral-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--tp-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.tp-rating-card__toggle:hover {
  background: var(--tp-coral);
  color: var(--tp-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(194, 95, 57, 0.28);
}

.tp-rating-card__toggle svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s ease;
}

.tp-rating-card__toggle.is-open svg {
  transform: rotate(180deg);
}

/* --- باکس بازشونده نظر (انیمیشن نرم با تکنیک grid-template-rows) --- */
.tp-rating-card__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-rating-card__panel.is-open {
  grid-template-rows: 1fr;
}

.tp-rating-card__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.tp-rating-card__panel-content {
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px dashed rgba(35, 38, 44, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-rating-card__textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1.5px solid var(--tp-gray-light);
  border-radius: var(--tp-radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--tp-text-dark);
  background: var(--tp-off-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tp-rating-card__textarea::placeholder {
  color: var(--tp-text-muted);
}

.tp-rating-card__textarea:focus {
  outline: none;
  border-color: var(--tp-coral);
  box-shadow: 0 0 0 3px var(--tp-coral-soft);
  background: var(--tp-white);
}

.tp-rating-card__panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-rating-card__msg {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tp-coral-dark);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tp-rating-card__msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-rating-card__submit {
  border: none;
  font-family: inherit;
  background: linear-gradient(150deg, var(--tp-coral-light) 0%, var(--tp-coral) 55%, var(--tp-coral-deep) 100%);
  color: var(--tp-white);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: var(--tp-radius-pill);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(194, 95, 57, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-rating-card__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(194, 95, 57, 0.4);
}

.tp-rating-card__submit:active {
  transform: translateY(0);
}

/* =========================================================
   بخش ۳: گرید سه‌ستونه پایین صفحه
   ترتیب ستون‌ها (راست به چپ): اطلاعات تخصصی / ویدئو / تندیس‌ها
========================================================= */
.tp-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.82fr;
  gap: var(--tp-gap);
  align-items: stretch;
}

/* =========================================================
   باکس اطلاعات تخصصی (زغالی تیره برای کنتراست، هم‌راستا با
   پنل تیره طرح مرجع)
========================================================= */
.tp-info-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(239, 138, 99, 0.22) 0%, rgba(239, 138, 99, 0) 45%),
    linear-gradient(165deg, var(--tp-charcoal-soft) 0%, var(--tp-charcoal) 55%, var(--tp-charcoal-deep) 100%);
  border-radius: var(--tp-radius-xl);
  padding: 30px 30px 26px;
  color: var(--tp-white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  box-shadow: var(--tp-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tp-info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.tp-info-box::after {
  content: "\201D";
  position: absolute;
  top: -18px;
  left: 8px;
  font-size: 8rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(239, 138, 99, 0.14);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.tp-info-box > * {
  position: relative;
  z-index: 1;
}

.tp-info-box__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tp-info-box__title-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tp-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tp-info-box__title-icon svg {
  width: 17px;
  height: 17px;
  color: var(--tp-white);
}

.tp-info-box__content {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  overflow-y: auto;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.tp-info-box__content::-webkit-scrollbar { width: 6px; }
.tp-info-box__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--tp-radius-pill);
}

.tp-info-box__content p {
  margin: 0 0 10px;
}

/* =========================================================
   باکس ویدئو دمو + پلیر سفارشی (قاب کرال روشن)
========================================================= */
.tp-video-box {
  position: relative;
  background: linear-gradient(165deg, var(--tp-coral-light) 0%, var(--tp-coral) 45%, var(--tp-coral-deep) 100%);
  border-radius: var(--tp-radius-xl);
  padding: 14px;
  min-height: 340px;
  display: flex;
  box-shadow: var(--tp-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tp-video-box::before {
  content: "دمو ویدئویی";
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-white);
  background: var(--tp-charcoal);
  padding: 6px 14px;
  border-radius: var(--tp-radius-pill);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.2px;
  pointer-events: none;
}

.tp-video-player {
  position: relative;
  width: 100%;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  background: var(--tp-charcoal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 22px 40px rgba(0, 0, 0, 0.35);
}

.tp-video-player__video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 560px;
  object-fit: contain;
  background: radial-gradient(120% 120% at 50% 20%, var(--tp-charcoal-soft) 0%, var(--tp-charcoal-deep) 100%);
  display: block;
}

.tp-video-player__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  cursor: pointer;
  background: radial-gradient(circle at 50% 38%, var(--tp-charcoal-soft) 0%, var(--tp-charcoal-deep) 100%);
}

.tp-video-player__empty-icon {
  width: 34px;
  height: 34px;
  color: var(--tp-coral);
  opacity: 0.9;
}

.tp-video-player:not(.tp-video-player--empty) .tp-video-player__empty {
  display: none;
}

/* دکمه پلی مرکزی با افکت پرتو نبض‌دار */
.tp-video-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--tp-coral-light) 0%, var(--tp-coral) 55%, var(--tp-coral-deep) 100%);
  color: var(--tp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 3;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.tp-video-player__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  animation: tp-pulse-ring 2.4s ease-out infinite;
}

@keyframes tp-pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.9; }
  80%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.tp-video-player__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.tp-video-player--playing .tp-video-player__play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

/* نوار کنترل پایین پلیر */
.tp-video-player__controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(35, 38, 44, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tp-radius-pill);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.tp-video-player:hover .tp-video-player__controls,
.tp-video-player--playing .tp-video-player__controls {
  opacity: 1;
  transform: translateY(0);
}

.tp-video-player__toggle,
.tp-video-player__mute {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--tp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tp-video-player__toggle:hover,
.tp-video-player__mute:hover {
  background: var(--tp-coral);
  color: var(--tp-white);
}

.tp-icon-pause { display: none; }
.tp-video-player--playing .tp-icon-play { display: none; }
.tp-video-player--playing .tp-icon-pause { display: block; }

.tp-icon-mute { display: none; }
.tp-video-player--muted .tp-icon-vol { display: none; }
.tp-video-player--muted .tp-icon-mute { display: block; }

.tp-video-player__time {
  color: var(--tp-white);
  font-size: 0.72rem;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 84px;
  text-align: center;
}

.tp-video-player__seek {
  flex: 1 1 auto;
  accent-color: var(--tp-coral);
  cursor: pointer;
}

.tp-video-player__volume {
  width: 64px;
  accent-color: var(--tp-coral);
  cursor: pointer;
}

.tp-video-player__seek,
.tp-video-player__volume {
  height: 4px;
}

/* =========================================================
   تندیس‌ها و افتخارات (گرید ۲x۲) - کارت‌های روشن هم‌راستا با
   کارت‌های محصول روشن طرح مرجع
========================================================= */
.tp-awards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.tp-awards__box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, var(--tp-white) 0%, var(--tp-gray-light) 100%);
  border-radius: var(--tp-radius-lg);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 6px 16px rgba(35, 38, 44, 0.08), inset 0 0 0 1px rgba(35, 38, 44, 0.06);
}

.tp-awards__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45 8c-14 6-22 16-22 30 0 14 10 24 22 30 12-6 22-16 22-30 0-14-8-24-22-30z' fill='none' stroke='%23ef8a63' stroke-opacity='0.15' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78%;
  opacity: 0.8;
  pointer-events: none;
}

.tp-awards__box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(239, 138, 99, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.tp-awards__box:hover,
.tp-awards__box:focus-visible {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--tp-shadow-hover), inset 0 0 0 1px rgba(239, 138, 99, 0.3);
  background: linear-gradient(150deg, var(--tp-white) 0%, var(--tp-coral-light-soft) 100%);
}

.tp-awards__box:hover::after {
  left: 130%;
}

.tp-awards__icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  color: var(--tp-charcoal);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
  transition: color 0.3s ease;
}

.tp-awards__box:hover .tp-awards__icon {
  color: var(--tp-coral-dark);
}

.tp-awards__placeholder {
  position: relative;
  z-index: 1;
  color: var(--tp-text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
  letter-spacing: 0.2px;
}

/* =========================================================
   انیمیشن ورود (Entrance Animation) هنگام اسکرول
========================================================= */
.tp-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-anim--visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-grid .tp-anim:nth-of-type(1) { transition-delay: 0.05s; }
.tp-grid .tp-anim:nth-of-type(2) { transition-delay: 0.15s; }
.tp-awards .tp-anim:nth-child(1) { transition-delay: 0.15s; }
.tp-awards .tp-anim:nth-child(2) { transition-delay: 0.22s; }
.tp-awards .tp-anim:nth-child(3) { transition-delay: 0.29s; }
.tp-awards .tp-anim:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .tp-anim,
  .tp-rating-card__progress-fill,
  .tp-rating-card__panel,
  .tp-star,
  .tp-pill,
  .tp-awards__box,
  .tp-awards__box::after,
  .tp-video-player__play,
  .tp-video-player__play::before,
  .tp-video-player__controls {
    transition: none !important;
    animation: none !important;
  }
  .tp-anim { opacity: 1; transform: none; }
}

/* =========================================================
   واکنش‌گرایی (Responsive) - تبلت
========================================================= */
@media (max-width: 1024px) {
  .tp-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "info video"
      "awards awards";
  }
  .tp-info-box   { grid-area: info; }
  .tp-video-box  { grid-area: video; }
  .tp-awards     { grid-area: awards; grid-template-columns: repeat(4, 1fr); }

  .tp-banner {
    flex-wrap: wrap;
  }
  .tp-banner__list,
  .tp-banner__pills {
    flex: 1 1 260px;
  }
}

/* =========================================================
   واکنش‌گرایی (Responsive) - موبایل
========================================================= */
@media (max-width: 640px) {
  .tp-teacher-profile { padding: 14px; }

  .tp-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 18px;
  }
  .tp-banner__photo { order: 1; align-self: center; }
  .tp-banner__pills { order: 2; }
  .tp-banner__list  { order: 3; align-items: center; }
  .tp-banner__list-item { justify-content: center; }

  .tp-rating {
    justify-content: center;
  }
  .tp-rating-card { max-width: 100%; }
  .tp-rating-card__main {
    justify-content: center;
    text-align: center;
  }
  .tp-rating-card__score { align-items: center; }
  .tp-rating-card__toggle { margin-inline-start: 0; width: 100%; justify-content: center; }
  .tp-rating-card__panel-footer { justify-content: center; }

  .tp-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "video"
      "awards";
  }
  .tp-awards { grid-template-columns: repeat(2, 1fr); }
  .tp-video-player__video,
  .tp-video-player__empty { min-height: 220px; }

  .tp-video-player__volume { display: none; }
  .tp-video-box::before { top: 16px; inset-inline-end: 16px; }
}