/* =========================================================
   PAGE 2 — FOUR-COUPLET
   ========================================================= */

.fc-page {
  min-height: 80vh;
  padding:
    clamp(4rem, 8vw, 7rem)
    5%
    clamp(5rem, 9vw, 8rem);

  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(219,235,241,.48),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #f8f8f6 0%,
      #f1f3f2 100%
    );
}


.fc-intro {
  width: min(90%, 62rem);
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}


.fc-eyebrow {
  margin-bottom: .65rem;
  font-size: clamp(.78rem, 1.2vw, .95rem);
  letter-spacing: .06em;
  opacity: .58;
}


.fc-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  text-transform: none;
}


.fc-title-line {
  width: clamp(3rem, 7vw, 5rem);
  height: .08rem;
  margin: 1.2rem auto 0;
  background: rgba(35,61,72,.32);
}


.fc-reader {
  width: min(92%, 58rem);
  margin: 0 auto;
}


.fc-card {
  position: relative;
  overflow: hidden;

  padding:
    clamp(2.2rem, 5vw, 4.5rem)
    clamp(1.5rem, 7vw, 5.5rem)
    clamp(2rem, 4vw, 3.5rem);

  background: rgba(255,255,255,.78);

  border:
    .06rem solid rgba(29,49,58,.12);

  box-shadow:
    0 1.8rem 5rem rgba(32,52,60,.08);

  backdrop-filter: blur(.5rem);
}


.fc-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .16rem;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(68,129,153,.48),
      rgba(177,127,79,.32),
      transparent
    );
}


html[dir="rtl"] .fc-card::before {
  left: auto;
  right: 0;
}


.fc-card-header {
  text-align: center;
}


.fc-number {
  min-height: 1em;
  margin-bottom: .45rem;

  font-size: clamp(.7rem, 1vw, .82rem);
  letter-spacing: .12em;
  opacity: .42;
}


.fc-card-header h2 {
  margin: 0;

  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}


.fc-verses {
  display: grid;
  gap: clamp(.7rem, 1.5vw, 1.05rem);

  margin:
    clamp(2rem, 4vw, 3.2rem)
    auto;

  text-align: center;
}


.fc-verse {
  margin: 0;

  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
}


html[lang="fa"] .fc-verse {
  font-family: "Estedad", sans-serif;
  line-height: 2;
}


.fc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: .35rem 1.2rem;

  padding-top: clamp(1.2rem, 2vw, 1.7rem);

  border-top:
    .06rem solid rgba(29,49,58,.11);

  font-size: clamp(.72rem, 1.1vw, .88rem);
  line-height: 1.7;

  opacity: .56;
}


.fc-audio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  gap: clamp(.7rem, 2vw, 1.2rem);

  margin-top: clamp(1.5rem, 3vw, 2.3rem);
}


.fc-play {
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  border: 0;
  padding: 0;

  background: transparent;
  color: inherit;

  font: inherit;
  font-size: clamp(.76rem, 1.1vw, .9rem);

  cursor: pointer;
}


.fc-play-icon {
  display: inline-grid;
  place-items: center;

  width: 2rem;
  aspect-ratio: 1;

  border:
    .06rem solid rgba(29,49,58,.28);

  border-radius: 50%;

  font-size: .68rem;
}


.fc-progress {
  overflow: hidden;

  height: .16rem;

  background:
    rgba(29,49,58,.12);
}


.fc-progress-bar {
  width: 0%;
  height: 100%;

  background:
    rgba(48,102,124,.68);
}


.fc-time {
  min-width: 2.5rem;

  font-size: .72rem;
  opacity: .5;
  text-align: end;
}


.fc-navigation {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 2fr) 1fr;
  align-items: end;

  gap: clamp(.8rem, 2vw, 1.5rem);

  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}


.fc-nav-button,
.fc-selector select {
  min-height: 2.8rem;

  border:
    .06rem solid rgba(29,49,58,.16);

  background:
    rgba(255,255,255,.58);

  color: inherit;

  font: inherit;

  cursor: pointer;
}


.fc-nav-button {
  padding-inline: 1rem;
}


.fc-selector {
  display: grid;
  gap: .45rem;
}


.fc-selector label {
  text-align: center;
  font-size: .74rem;
  opacity: .52;
}


.fc-selector select {
  width: 100%;
  padding-inline: .8rem;
  text-align: center;
}


@media (max-width: 700px) {

  .fc-page {
    padding-inline: 4%;
  }

  .fc-reader {
    width: 100%;
  }

  .fc-card {
    padding-inline: 7%;
  }

  .fc-audio {
    grid-template-columns: 1fr auto;
  }

  .fc-play {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .fc-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .fc-selector {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .fc-nav-button {
    grid-row: 2;
  }

}


/* =========================================================
   FOUR-COUPLET — FINAL TEXT VISIBILITY
   Isolate Page 2 from old Home color overrides.
   ========================================================= */

.fc-page {
  color: #20272b !important;
}


/* PAGE INTRO */

.fc-page .fc-eyebrow {
  color: rgba(32,39,43,.62) !important;
}

.fc-page .fc-intro h1 {
  color: #20272b !important;
  opacity: 1 !important;
}


/* POEM CARD */

.fc-page .fc-card,
.fc-page .fc-card-header,
.fc-page .fc-card-header h2,
.fc-page .fc-number,
.fc-page .fc-verses,
.fc-page .fc-verse {
  color: #20272b !important;
}

.fc-page .fc-card-header h2,
.fc-page .fc-verse {
  opacity: 1 !important;
}


/* NUMBER */

.fc-page .fc-number {
  color: rgba(32,39,43,.48) !important;
  opacity: 1 !important;
}


/* META */

.fc-page .fc-meta,
.fc-page .fc-meta div {
  color: rgba(32,39,43,.62) !important;
  opacity: 1 !important;
}


/* PLAYER */

.fc-page .fc-play,
.fc-page .fc-play-icon,
.fc-page .fc-time {
  color: #283238 !important;
}

.fc-page .fc-time {
  opacity: .62 !important;
}


/* NAVIGATION */

.fc-page .fc-nav-button,
.fc-page .fc-selector,
.fc-page .fc-selector label,
.fc-page .fc-selector select,
.fc-page .fc-selector option {
  color: #20272b !important;
}

.fc-page .fc-selector label {
  opacity: .62 !important;
}


/* ===== END FOUR-COUPLET TEXT VISIBILITY ===== */



/* =========================================================
   PAGE 2 — COMPACT READER
   Keep poem, player and navigation visually together.
   ========================================================= */

.fc-page {
  min-height: 0 !important;

  padding:
    clamp(1.4rem, 2.5vw, 2.2rem)
    5%
    clamp(2rem, 3vw, 3rem) !important;
}


/* TITLE */

.fc-intro {
  width: min(90%, 58rem) !important;

  margin:
    0 auto
    clamp(1rem, 2vw, 1.5rem) !important;
}

.fc-intro h1 {
  font-size:
    clamp(1.8rem, 3.5vw, 2.8rem) !important;
}

.fc-title-line {
  margin-top: .6rem !important;
}


/* READER */

.fc-reader {
  width: min(94%, 58rem) !important;
}


/* CARD */

.fc-card {
  padding:
    clamp(1.2rem, 2vw, 1.7rem)
    clamp(1.5rem, 5vw, 4rem)
    clamp(1.1rem, 2vw, 1.5rem) !important;

  box-shadow:
    0 .8rem 2.5rem rgba(32,52,60,.07) !important;
}


/* POEM HEADER */

.fc-number {
  margin-bottom: .15rem !important;
}

.fc-card-header h2 {
  font-size:
    clamp(1.2rem, 2vw, 1.6rem) !important;
}


/* EIGHT LINES */

.fc-verses {
  gap: clamp(.25rem, .7vw, .55rem) !important;

  margin:
    clamp(.8rem, 1.5vw, 1.2rem)
    auto !important;
}

.fc-verse {
  font-size:
    clamp(.92rem, 1.45vw, 1.12rem) !important;

  line-height: 1.55 !important;
}

html[lang="fa"] .fc-verse {
  line-height: 1.7 !important;
}


/* DATE / AUTHOR / PLACE */

.fc-meta {
  padding-top:
    clamp(.55rem, 1vw, .8rem) !important;

  gap: .2rem 1rem !important;

  font-size:
    clamp(.68rem, .9vw, .8rem) !important;
}


/* PLAYER */

.fc-audio {
  margin-top:
    clamp(.7rem, 1.3vw, 1rem) !important;

  gap:
    clamp(.5rem, 1vw, .8rem) !important;
}

.fc-play {
  font-size:
    clamp(.7rem, .9vw, .82rem) !important;
}

.fc-play-icon {
  width: 1.8rem !important;
}


/* NAVIGATION DIRECTLY BELOW CARD */

.fc-navigation {
  margin-top:
    clamp(.65rem, 1.2vw, 1rem) !important;

  gap:
    clamp(.5rem, 1vw, .8rem) !important;
}

.fc-nav-button,
.fc-selector select {
  min-height: 2.4rem !important;
}

.fc-selector {
  gap: .2rem !important;
}

.fc-selector label {
  font-size: .68rem !important;
}


/* MOBILE */

@media (max-width: 700px) {

  .fc-page {
    padding:
      1rem
      3.5%
      1.8rem !important;
  }

  .fc-intro {
    margin-bottom: .8rem !important;
  }

  .fc-card {
    padding:
      1rem
      5%
      1rem !important;
  }

  .fc-verses {
    gap: .35rem !important;
    margin: .8rem auto !important;
  }

  .fc-verse {
    font-size: .94rem !important;
  }

}


/* ===== END PAGE 2 COMPACT READER ===== */


/* =========================================================
   FOUR-COUPLET — CLEAN POET'S ROOM B
   ========================================================= */


/* INTERNAL ARCHIVE NUMBER */

.fc-number {
  display: none !important;
}


/* MAIN POETRY CARD */

.fc-page .fc-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;

  background:
    radial-gradient(
      ellipse at 50% 38%,
      rgba(255,255,255,.99) 0%,
      rgba(255,252,246,.98) 55%,
      rgba(250,245,235,.97) 100%
    ) !important;

  border:
    .09rem solid rgba(190,143,67,.58) !important;

  outline:
    .055rem solid rgba(47,124,154,.24) !important;

  outline-offset: -.42rem !important;

  border-radius: .75rem !important;

  box-shadow:
    0 1.3rem 3rem rgba(37,52,58,.15),
    0 .25rem .8rem rgba(37,52,58,.07),
    inset 0 0 3.5rem rgba(194,149,76,.045) !important;
}


/* NO LOGO WATERMARK */

.fc-page .fc-card::after {
  content: none !important;
}


/* TOP-RIGHT ORNAMENT */

.fc-page .fc-card::before {
  content: "" !important;

  position: absolute !important;
  z-index: 1 !important;

  top: .55rem !important;
  right: .55rem !important;

  width: clamp(3.6rem, 7vw, 5.5rem) !important;
  height: clamp(3.6rem, 7vw, 5.5rem) !important;

  border-top:
    .16rem solid rgba(49,128,158,.70) !important;

  border-right:
    .16rem solid rgba(190,143,67,.72) !important;

  border-radius:
    0 .65rem 0 0 !important;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(190,143,67,.78) 0 .16rem,
      transparent .18rem
    ),
    radial-gradient(
      circle at 65% 35%,
      rgba(48,127,158,.70) 0 .12rem,
      transparent .14rem
    ),
    linear-gradient(
      135deg,
      transparent 47%,
      rgba(190,143,67,.42) 48%,
      rgba(190,143,67,.42) 50%,
      transparent 51%
    ) !important;

  pointer-events: none !important;
}


/* CONTENT ABOVE DECORATION */

.fc-page .fc-card > * {
  position: relative !important;
  z-index: 3 !important;
}


/* SECOND ORNAMENT — BOTTOM LEFT */

.fc-page .fc-audio::after {
  content: "" !important;

  position: absolute !important;
  z-index: 1 !important;

  left: -2.15rem !important;
  bottom: -1.1rem !important;

  width: 4.8rem !important;
  height: 4.8rem !important;

  border-left:
    .14rem solid rgba(49,128,158,.62) !important;

  border-bottom:
    .14rem solid rgba(190,143,67,.65) !important;

  border-radius:
    0 0 0 .65rem !important;

  background:
    radial-gradient(
      circle at 22% 78%,
      rgba(190,143,67,.72) 0 .15rem,
      transparent .17rem
    ),
    radial-gradient(
      circle at 39% 61%,
      rgba(48,127,158,.66) 0 .11rem,
      transparent .13rem
    ) !important;

  pointer-events: none !important;
}


/* POEM TITLE */

.fc-page .fc-card-header h2 {
  color: #263b44 !important;
}


/* GOLD / BLUE TITLE ORNAMENT */

.fc-page .fc-card-header h2::after {
  content: "◆" !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: clamp(5.5rem, 11vw, 8rem) !important;
  height: .9rem !important;

  margin: .42rem auto 0 !important;

  font-size: .52rem !important;

  color: rgba(190,142,63,.88) !important;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(49,128,158,.55) 18%,
      rgba(190,143,67,.72) 43%,
      transparent 43%,
      transparent 57%,
      rgba(190,143,67,.72) 57%,
      rgba(49,128,158,.55) 82%,
      transparent 100%
    )
    center / 100% .07rem
    no-repeat !important;
}


/* POEM TEXT */

.fc-page .fc-verses {
  color: #25363d !important;
}


/* META DIVIDER */

.fc-page .fc-meta {
  position: relative !important;

  border-top:
    .07rem solid rgba(190,143,67,.40) !important;
}

.fc-page .fc-meta::before {
  content: "◆" !important;

  position: absolute !important;

  left: 50% !important;
  top: 0 !important;

  transform:
    translate(-50%, -55%) !important;

  padding:
    0 .6rem !important;

  background:
    rgb(253,250,244) !important;

  color:
    rgba(190,142,63,.88) !important;

  font-size:
    .52rem !important;
}


/* AUDIO */

.fc-page .fc-audio {
  position: relative !important;

  border-top:
    .06rem solid rgba(49,128,158,.13) !important;
}

.fc-page .fc-play-icon {
  border:
    .09rem solid rgba(190,143,67,.62) !important;

  background:
    rgba(255,253,248,.96) !important;

  box-shadow:
    0 .25rem .8rem rgba(38,55,62,.12) !important;
}

.fc-page .fc-progress {
  background:
    rgba(44,78,91,.13) !important;
}

.fc-page .fc-progress-bar {
  background:
    linear-gradient(
      90deg,
      rgba(47,126,157,.92),
      rgba(193,145,68,.88)
    ) !important;
}


/* SELECT / NAVIGATION — MATCH ROOM */

.fc-page .fc-navigation button,
.fc-page .fc-navigation select {
  background:
    rgba(255,253,249,.90) !important;

  border-color:
    rgba(63,104,119,.20) !important;
}


/* MOBILE */

@media (max-width: 700px) {

  .fc-page .fc-card {
    border-radius: .55rem !important;
  }

  .fc-page .fc-card::before {
    width: 3.4rem !important;
    height: 3.4rem !important;
  }

}


/* ===== END CLEAN POET'S ROOM B ===== */



/* FOUR-COUPLET — HIDE INTERNAL NUMBER */
.fc-number,
#fc-number {
  display: none !important;
}



/* FOUR-COUPLET — HIDE SELECT LABEL */
.fc-select-label,
.fc-navigation label,
.fc-selector label {
  display: none !important;
}


/* Bring controls directly beneath poetry card */
.fc-page .fc-navigation,
.fc-page .fc-selector {
  margin-top: .45rem !important;
  padding-top: 0 !important;
}



/* FOUR-COUPLET — CLEAR SELECT ARROW */

.fc-page select,
.fc-page #fc-select {
  -webkit-appearance: none !important;
  appearance: none !important;

  cursor: pointer !important;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath d='M5 8l7 7 7-7' fill='none' stroke='%232b596b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

  background-repeat: no-repeat !important;
  background-size: 1.55rem 1.55rem !important;
}


/* Persian */
html[dir="rtl"] .fc-page select,
html[dir="rtl"] .fc-page #fc-select {
  background-position: left .75rem center !important;
  padding-left: 3rem !important;
}


/* English + Turkish */
html[dir="ltr"] .fc-page select,
html[dir="ltr"] .fc-page #fc-select {
  background-position: right .75rem center !important;
  padding-right: 3rem !important;
}

