/* ===========================================================
   עוצמה ורכות — ספריית וידאו (Production)
   =========================================================== */

/* === Fonts (if not loaded globally) === */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700&family=Noto+Sans+TC:wght@400;500&display=swap');

/* === Root & base colors === */
:root {
  --brand-bg: #F7F3ED;
  --brand-accent: #D35400;     /* warm orange */
  --brand-accent-dark: #b74400;
  --brand-text: #222;
  --brand-gray: #555;
  --brand-shadow: rgba(0, 0, 0, 0.1);
}

/* === Page wrapper === */
body.ovrwushu-library-page,
body.ovrwushu-series-page {
  background: var(--brand-bg);
  direction: rtl;
  font-family: "Assistant", "Noto Sans Hebrew", sans-serif;
  color: var(--brand-text);
  margin: 0;
  padding: 0;
}

/* === Header (logo already from theme) === */
.header {
  text-align: center;
  margin: 30px 0 20px 0;
}
.header img.site-logo {
  width: clamp(140px, 18vw, 220px);
  max-width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 4px var(--brand-shadow));
}

/* === Page container === */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* === Titles === */
h1, h2, h3, h4 {
  font-family: "Assistant", "Noto Sans Hebrew", sans-serif;
  font-weight: 600;
  text-align: center;
  color: var(--brand-text);
  margin: 0 0 0.4em 0;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }

h4.chinese {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--brand-gray);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* === Paragraphs === */
.page-container p,
.series-desc {
  text-align: center;
  font-size: 1rem;
  color: var(--brand-gray);
  line-height: 1.6;
}

/* ===========================================================
   Library overview page
   =========================================================== */

.library-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.library-card {
  display: block;
  width: 260px;
  background-color: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 10px var(--brand-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.library-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Title hierarchy inside cards */
.library-card h2 {
  color: var(--brand-accent);
  font-size: 1.3rem;
}
.library-card h3 {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--brand-text);
}
.library-card h4 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--brand-gray);
  letter-spacing: 1px;
}
.library-card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 700px) {
  .library-card {
    width: 90%;
  }
}

/* Member-only notice */
.footer-link {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--brand-gray);
}

/* ===========================================================
   Video-series page
   =========================================================== */

.video-series h1 {
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.video-series .chinese {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  margin-inline-start: 6px;
}
.series-desc {
  text-align: center;
  margin-top: 0.5em;
}

.video-layout {
  display: flex;
  flex-direction: row-reverse; /* RTL */
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Player */
/* .video-player iframe {
  width: 720px;
  height: 405px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  background: #000;
  border: none;
} */
 .video-player iframe {
  width: 405px;
  height: 720px;             /* ← portrait ratio */
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  background: #000;
  border: none;
  display: block;
  margin: 0 auto;
}


/* Playlist */
.playlist {
  /* width: 320px;
  max-height: 405px; */
  width: 240px;
  max-height: 720px;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  font-size: 0.95rem;
  direction: rtl;
}

.playlist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.playlist li {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.playlist li:hover {
  background: #f0f0f0;
}
.playlist li.active {
  background: var(--brand-accent);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .video-layout {
    flex-direction: column;
    align-items: center;
  }
  .video-player iframe {
    width: 100%;
    height: auto;
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 9 / 16;
  }
  .playlist {
    width: 100%;
    max-height: none;
  }
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  color: var(--brand-text);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* Back link top-right (RTL-aware) */
.back-link-top {
  display: flex;
  justify-content: flex-start; /* in RTL, flex-start = right side */
  direction: rtl;
  margin-bottom: 10px;
}

.back-link-top .back-link::before {
  content: "→ "; /* arrow points visually right */
}

.back-link-top .back-link:hover {
  color: var(--brand-accent);
}

/* === Plugin header & footer === */
/* === Header & Footer: fixed responsive sizing (v3) === */
.ovrwushu-header {
  text-align: center;
  padding: 20px 0 10px 0;
  background: var(--brand-bg, #F7F3ED);
}

/* Force our sizing — isolate from WP block img rules */
.ovrwushu-header img.site-logo {
  display: inline-block !important;
  width: auto !important;
  max-width: 160px !important;      /* ← hard upper limit */
  height: auto !important;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.2s ease;
}

@media (max-width: 480px) {
  .ovrwushu-header img.site-logo {
    max-width: 120px !important;    /* phones */
  }
}

.ovrwushu-header img.site-logo:hover {
  transform: scale(1.03);
}

/* Footer */
.ovrwushu-footer {
  background: var(--brand-bg, #F7F3ED);
  color: #555;
  text-align: center;
  font-size: 0.9rem;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid #e0ddd8;
}


/* ===========================================================
   Animation
   =========================================================== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* ===========================================================
   Login page
   =========================================================== */
.auth-wrapper {
  direction: rtl;
  text-align: center;
  background-color: #F7F3ED;
}

form.pms-form {
  direction: rtl;
  text-align: right;
  font-family: 'Assistant', 'Noto Sans Hebrew', sans-serif;
}

form.pms-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size:16px;
}

form.pms-form input[type="text"],
form.pms-form input[type="email"],
form.pms-form input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 1rem;
}

form.pms-form input[type="submit"] {
  background: #D35400;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}
form.pms-form input[type="submit"]:hover {
  background: #b74400;
}

form.pms-form p.login-extra a {
  font-size:16px;
}

form.pms-login .pms-register-link {
  display: none !important;
}