:root {
  --ink: #17231f;
  --muted: #68756f;
  --green: #123b32;
  --green2: #1b5144;
  --gold: #c6a15b;
  --cream: #f8f6f0;
  --white: #fff;
  --line: #e3e8e4;
  --shadow: 0 18px 55px #11382f16;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.utility {
  background: #0b2b24;
  color: #bfd0cb;
  font-size: 11px;
  padding: 5px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f8f6f0f5;
  border-bottom: 1px solid #123b3218;
  backdrop-filter: blur(12px);
}
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 45px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.brand img {
  width: 46px;
  height: 46px;
}
.brand span {
  display: grid;
  line-height: 1.4;
}
.brand b {
  font-family: "Noto Kufi Arabic";
  font-size: 14px;
}
.brand small {
  font-size: 10px;
  color: var(--muted);
}
.links {
  display: flex;
  gap: 30px;
  font-weight: 600;
  font-size: 13px;
}
.links a {
  padding: 27px 0;
  position: relative;
}
.links a:after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.2s;
}
.links a:hover:after,
.links a.active:after {
  width: 100%;
}
.search-link {
  font-weight: 700;
}
.search-link:first-letter {
  font-size: 25px;
}
.hero {
  min-height: 610px;
  background: linear-gradient(118deg, #0c2f27, #174d40);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      transparent 0 70px,
      #fff 71px 72px,
      transparent 73px
    ),
    radial-gradient(
      circle at 78% 65%,
      transparent 0 120px,
      #fff 121px 122px,
      transparent 123px
    );
  background-size: 430px 430px;
}
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  position: relative;
}
.hero-copy {
  padding: 65px 0;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a97c2c;
  font-family: "Noto Kufi Arabic";
  font-weight: 700;
  font-size: 11px;
}
.kicker:before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}
.kicker.light {
  color: #e2c687;
}
.hero h1 {
  font-family: "Noto Kufi Arabic";
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.4;
  margin: 16px 0 10px;
}
.hero h1 strong {
  color: #ead8ad;
  font-weight: 800;
}
.hero-copy > p {
  color: #d5e1dd;
  font-size: 19px;
  max-width: 560px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.gold {
  background: var(--gold);
  color: #16231f;
}
.outline {
  border: 1px solid #ffffff48;
}
.benefits {
  display: flex;
  gap: 25px;
  color: #b7cac4;
  font-size: 12px;
  margin-top: 28px;
}
.portrait {
  height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-top: 50px;
}
.portrait > div {
  width: min(390px, 90%);
  height: 520px;
  border-radius: 210px 210px 0 0;
  border: 1px solid #e0c48859;
  background: #ffffff08;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
}
.portrait img {
  width: 135px;
  margin: auto;
  filter: drop-shadow(0 18px 25px #0006);
}
.portrait small {
  color: #aac0ba;
}
.quick {
  position: relative;
  z-index: 5;
  margin-top: -35px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quick-grid > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 23px 18px;
  border-left: 1px solid var(--line);
}
.quick-grid > a:last-child {
  border: 0;
}
.quick-grid i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e9f0ed;
  color: var(--green);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 21px;
}
.quick-grid span {
  display: grid;
  flex: 1;
}
.quick-grid b {
  font-family: "Noto Kufi Arabic";
  font-size: 12px;
}
.quick-grid small {
  font-size: 10px;
  color: var(--muted);
}
.quick-grid em {
  font-style: normal;
  color: var(--gold);
}
.search-section {
  padding: 90px 0 55px;
}
.search-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 65px;
  align-items: end;
}
.search-layout h2,
.section-head h2 {
  font-family: "Noto Kufi Arabic";
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.5;
  margin: 7px 0;
}
.search-layout p,
.section-head p {
  color: var(--muted);
  margin: 0;
}
.searchbox {
  height: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  padding: 6px 7px 6px 16px;
  box-shadow: 0 10px 35px #173a3210;
}
.searchbox > span {
  font-size: 25px;
  color: var(--muted);
  margin: 0 10px;
}
.searchbox input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}
.searchbox button {
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.section {
  padding: 70px 0;
}
.latest {
  background: #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}
.section-head > a {
  font-weight: 700;
  color: var(--green);
  font-size: 13px;
  border-bottom: 1px solid #bac8c4;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 25px;
}
.lecture-list {
  display: grid;
  gap: 11px;
}
.lecture {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  background: #fff;
  transition: 0.2s;
}
.lecture:hover {
  border-color: #b4c9c1;
  box-shadow: 0 12px 30px #173e3510;
  transform: translateY(-1px);
}
.play {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.lecture-info {
  flex: 1;
  min-width: 0;
}
.type {
  font-size: 10px;
  font-weight: 700;
  color: #9a712e;
}
.lecture h3 {
  font-family: "Noto Kufi Arabic";
  font-size: 14px;
  margin: 1px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
.actions {
  display: flex;
  gap: 6px;
}
.actions button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 10px;
  color: var(--green);
  font-size: 19px;
  cursor: pointer;
}
.progress {
  height: 3px;
  background: #e5eae8;
  margin-top: 8px;
}
.progress i {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--gold);
}
.featured {
  background: var(--green);
  color: #fff;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.featured > span {
  color: #e2c687;
  font-size: 11px;
  font-weight: 700;
}
.featured > b {
  font-size: 55px;
  color: var(--gold);
  line-height: 1;
  margin-top: 20px;
}
.featured h3 {
  font-family: "Noto Kufi Arabic";
  font-size: 20px;
  line-height: 1.8;
  margin: 5px 0;
}
.featured p {
  color: #c5d5d1;
  font-size: 12px;
}
.featured a {
  color: #e2c687;
  font-weight: 700;
  font-size: 12px;
  margin-top: 18px;
}
.series {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.series-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.series-card > strong {
  position: absolute;
  left: 14px;
  top: 0;
  font: 800 50px "Noto Kufi Arabic";
  color: #edf1ef;
}
.series-card > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
}
.series-card h3 {
  font-family: "Noto Kufi Arabic";
  font-size: 14px;
  line-height: 1.8;
  margin: 22px 0;
  position: relative;
}
.series-card > div {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
}
.series-card a {
  color: var(--green);
  font-weight: 700;
}
.about {
  padding: 25px 0 80px;
}
.about-card {
  background: linear-gradient(110deg, #153f35, #0d2f28);
  border-radius: 22px;
  padding: 42px 55px;
  color: #fff;
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 35px;
  align-items: center;
}
.about-logo {
  width: 120px;
  height: 120px;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.about-logo img {
  width: 65px;
}
.about h2 {
  font: 700 27px "Noto Kufi Arabic";
  margin: 5px 0;
}
.about p {
  color: #c8d6d2;
}
.about a {
  color: #e2c687;
  font-size: 12px;
  font-weight: 700;
}
footer {
  background: #08231d;
  color: #d3dfdc;
  padding: 55px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 38px;
}
.footer-brand {
  display: flex;
  gap: 14px;
}
.footer-brand img {
  width: 52px;
  height: 52px;
}
.footer-brand b {
  font-family: "Noto Kufi Arabic";
}
.footer-grid p {
  color: #91a8a2;
  font-size: 12px;
}
.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer-grid > div > b {
  color: #fff;
  margin-bottom: 7px;
}
.footer-grid a {
  color: #a9bbb7;
  font-size: 12px;
}
.app-note {
  background: #ffffff08;
  border: 1px solid #ffffff0c;
  padding: 16px;
  border-radius: 13px;
}
.copyright {
  border-top: 1px solid #ffffff12;
  margin-top: 38px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #78908a;
  font-size: 10px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #102f28;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  display: none;
  z-index: 80;
}
.offline {
  display: none;
  background: #8c5b14;
  color: #fff;
  text-align: center;
  padding: 5px;
}
.offline.show {
  display: block;
}
/* لوحة الإدارة */
.admin-shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 25px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-link {
  display: block;
  padding: 12px;
  border-radius: 10px;
  margin: 5px 0;
  color: #d4e3df;
}
.side-link.active,
.side-link:hover {
  background: #ffffff17;
}
.admin-main {
  padding: 30px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.metric b {
  font-size: 29px;
  color: var(--green);
  display: block;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: right;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.primary,
.secondary {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 17px;
  cursor: pointer;
}
.primary {
  background: var(--green);
  color: #fff;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
}
.modal {
  position: fixed;
  inset: 0;
  background: #0008;
  display: none;
  place-items: center;
  z-index: 50;
}
.modal.open {
  display: grid;
}
.dialog {
  background: white;
  border-radius: 22px;
  padding: 25px;
  width: min(620px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: white;
}
@media (max-width: 900px) {
  .links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    display: none;
  }
  .hero,
  .hero-grid {
    min-height: 540px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .series {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 26px);
  }
  .utility {
    display: none;
  }
  .nav {
    height: 70px;
  }
  .brand img {
    width: 40px;
  }
  .brand small {
    display: none;
  }
  .search-link span {
    display: none;
  }
  .hero-copy {
    padding: 55px 0 75px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .benefits {
    display: grid;
    gap: 3px;
  }
  .quick {
    margin-top: -30px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-grid > a {
    padding: 16px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .search-section {
    padding: 68px 0 34px;
  }
  .searchbox button {
    padding: 0 16px;
  }
  .section {
    padding: 50px 0;
  }
  .section-head > a {
    display: none;
  }
  .lecture {
    gap: 10px;
    padding: 12px 10px;
  }
  .play {
    width: 44px;
    height: 44px;
  }
  .actions button:first-child {
    display: none;
  }
  .lecture h3 {
    font-size: 12px;
  }
  .series {
    grid-template-columns: 1fr;
  }
  .about-card {
    grid-template-columns: 1fr;
    padding: 29px;
  }
  .about-logo {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright {
    display: grid;
    gap: 5px;
  }
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 18px;
  }
}

/* استجابة محسّنة للجوال والتابلت والآيباد والشاشات العريضة */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.nav,
.hero-grid,
.quick-grid,
.search-layout,
.content-grid,
.series,
.footer-grid,
.about-card {
  min-width: 0;
}
img {
  max-width: 100%;
  height: auto;
}
.lecture-info,
.brand span {
  min-width: 0;
}
@media (min-width: 1440px) {
  .container {
    width: min(1280px, calc(100% - 80px));
  }
  .hero,
  .hero-grid {
    min-height: 660px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .portrait > div {
    width: 430px;
    height: 565px;
  }
  .lecture {
    padding: 18px 21px;
  }
  .series-card {
    min-height: 225px;
  }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav {
    gap: 25px;
  }
  .links {
    gap: 19px;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
  }
  .portrait > div {
    width: 330px;
    height: 465px;
  }
  .quick-grid > a {
    padding: 20px 13px;
  }
  .quick-grid small {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1.45fr 0.7fr;
  }
  .footer-grid {
    gap: 24px;
  }
}
@media (min-width: 681px) and (max-width: 900px) {
  .site-header {
    position: relative;
  }
  .nav {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding-top: 12px;
  }
  .brand {
    margin-left: auto;
  }
  .links {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 28px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .links::-webkit-scrollbar {
    display: none;
  }
  .links a {
    white-space: nowrap;
    padding: 14px 0;
  }
  .links a:after {
    bottom: 7px;
  }
  .hero,
  .hero-grid {
    min-height: 500px;
  }
  .hero-copy {
    padding: 60px 0 80px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    min-height: 280px;
  }
  .series {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .admin-shell {
    display: block;
  }
  .sidebar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 18px;
  }
  .sidebar .brand {
    min-width: max-content;
    margin-left: 18px;
  }
  .side-link {
    min-width: max-content;
    margin: 0;
  }
  .admin-main {
    padding: 24px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .table {
    min-width: 680px;
  }
}
@media (max-width: 680px) {
  .site-header {
    position: relative;
  }
  .nav {
    height: auto;
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto;
    padding-top: 9px;
  }
  .brand {
    margin: 0;
  }
  .search-link {
    justify-self: end;
  }
  .links {
    display: flex;
    grid-column: 1/-1;
    width: calc(100% + 26px);
    margin-right: -13px;
    padding: 0 13px;
    overflow-x: auto;
    gap: 24px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .links::-webkit-scrollbar {
    display: none;
  }
  .links a {
    white-space: nowrap;
    padding: 11px 0;
    font-size: 12px;
  }
  .links a:after {
    bottom: 5px;
  }
  .hero,
  .hero-grid {
    min-height: auto;
  }
  .hero-copy {
    padding: 48px 0 72px;
  }
  .hero h1 {
    font-size: clamp(34px, 11vw, 45px);
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .search-layout {
    gap: 24px;
  }
  .searchbox {
    height: 58px;
  }
  .searchbox > span {
    display: none;
  }
  .searchbox input {
    padding-right: 10px;
  }
  .section-head {
    align-items: flex-start;
  }
  .lecture {
    align-items: flex-start;
  }
  .lecture-info h3 {
    white-space: normal;
    line-height: 1.7;
  }
  .meta span:nth-child(4),
  .meta span:nth-child(5) {
    display: none;
  }
  .featured {
    min-height: 300px;
  }
  .about h2 {
    font-size: 22px;
  }
  .admin-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
    gap: 4px;
  }
  .sidebar .brand {
    min-width: max-content;
    margin-left: 12px;
  }
  .sidebar hr {
    display: none;
  }
  .side-link {
    min-width: max-content;
    margin: 0;
    padding: 9px 11px;
    font-size: 12px;
  }
  .admin-head {
    align-items: flex-start;
    gap: 12px;
  }
  .admin-head h1 {
    font-size: 23px;
  }
  .admin-head .primary {
    white-space: nowrap;
  }
  .card {
    padding: 14px;
  }
  .table {
    min-width: 620px;
  }
  .dialog {
    width: calc(100% - 20px);
    padding: 18px;
    border-radius: 16px;
  }
  .toast {
    left: 13px;
    right: 13px;
    bottom: max(13px, env(safe-area-inset-bottom));
    text-align: center;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 20px);
  }
  .brand b {
    font-size: 12px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .quick-grid i {
    width: 40px;
    height: 40px;
  }
  .searchbox button {
    padding: 0 12px;
  }
  .lecture {
    gap: 8px;
  }
  .play {
    width: 40px;
    height: 40px;
  }
  .actions button {
    width: 35px;
    height: 35px;
  }
  .about-card {
    padding: 23px;
  }
  .admin-main {
    padding: 12px;
  }
  .metric-grid {
    gap: 9px;
  }
}
@media (orientation: landscape) and (max-height: 560px) and (min-width: 600px) {
  .hero,
  .hero-grid {
    min-height: 430px;
  }
  .hero-copy {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .portrait {
    display: none;
  }
}

/* صفحات التقييم الداخلية */
.page-hero {
  background: linear-gradient(115deg, #0c3028, var(--green));
  color: #fff;
  padding: 70px 0;
}
.page-hero h1 {
  font: 700 clamp(30px, 5vw, 50px) "Noto Kufi Arabic";
  margin: 10px 0;
}
.page-hero p {
  color: #c5d6d1;
  max-width: 700px;
}
.filterbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.filterbar input,
.filterbar select {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 0 15px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.catalog-cover {
  height: 145px;
  background: linear-gradient(135deg, #e7eeeb, #f8f6f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.catalog-cover > span {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.catalog-cover button {
  width: 55px;
  height: 55px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.catalog-body {
  padding: 19px;
}
.catalog-body > small {
  color: #9a712e;
}
.catalog-body h3 {
  font: 700 15px "Noto Kufi Arabic";
  line-height: 1.8;
  margin: 5px 0;
}
.catalog-body p {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-meta {
  display: flex;
  gap: 11px;
  color: var(--muted);
  font-size: 10px;
}
.catalog-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 15px;
}
.catalog-actions a {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.catalog-actions button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
}
.empty-state {
  padding: 55px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #c6ceca;
  border-radius: 16px;
  grid-column: 1/-1;
}
.breadcrumb {
  font-size: 11px;
  color: #b9ccc6;
  margin-bottom: 24px;
}
.detail-hero p {
  font-size: 17px;
}
.detail-meta {
  display: flex;
  gap: 24px;
  margin-top: 23px;
  color: #e0e9e6;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}
.audio-card {
  grid-column: 1/-1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: center;
}
.audio-card > button {
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 22px;
}
.audio-card > div {
  flex: 1;
}
.audio-card p {
  color: var(--muted);
  margin: 2px 0 13px;
}
.audio-track {
  height: 6px;
  background: #e3e8e6;
  border-radius: 5px;
  overflow: hidden;
}
.audio-track i {
  display: block;
  width: 32%;
  height: 100%;
  background: var(--gold);
}
.detail-actions {
  display: grid;
  gap: 10px;
}
.detail-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 13px;
  text-align: right;
}
.description {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
}
.description h2 {
  font-family: "Noto Kufi Arabic";
}
.description p {
  color: var(--muted);
}
.description dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 13px;
}
.description dt,
.description dd {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.description dt {
  color: var(--muted);
}
.sticky-player {
  position: fixed;
  z-index: 40;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, calc(100% - 24px));
  background: #0c3028;
  color: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 48px 1fr 70px;
  gap: 14px;
  align-items: center;
  box-shadow: 0 15px 50px #0005;
}
.sticky-player > button {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.sticky-player b,
.sticky-player small {
  display: block;
  font-size: 11px;
}
.sticky-player select {
  background: #ffffff12;
  color: #fff;
  border: 1px solid #ffffff2c;
  border-radius: 8px;
  padding: 7px;
}
.series-page {
  display: grid;
  gap: 15px;
}
.series-page article {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}
.series-page article > strong {
  display: grid;
  place-items: center;
  background: #e8efec;
  color: var(--green);
  font: 800 45px "Noto Kufi Arabic";
}
.series-page article > div {
  padding: 24px;
}
.series-page h2 {
  font-family: "Noto Kufi Arabic";
  margin: 4px 0;
}
.series-page p {
  color: var(--muted);
}
.series-page a {
  color: var(--green);
  font-weight: 700;
}
.bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.bio-photo {
  height: 430px;
  border-radius: 180px 180px 25px 25px;
  background: var(--green);
  display: grid;
  place-content: center;
  text-align: center;
  color: #c0d1cc;
}
.bio-photo img {
  width: 110px;
  margin: auto;
}
.bio-grid h2 {
  font: 700 32px "Noto Kufi Arabic";
}
.bio-grid article > p {
  font-size: 17px;
  color: var(--muted);
  line-height: 2.2;
}
.social-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.social-buttons a {
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 9px;
  background: #fff;
}
.app-download {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #f8f6f0, #e8f0ed);
}
.app-download-grid {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 80px;
  align-items: center;
  padding-block: 70px;
}
.app-download h1 {
  font: 800 clamp(34px, 5vw, 56px) "Noto Kufi Arabic";
  line-height: 1.55;
}
.app-download p,
.app-download li {
  color: var(--muted);
}
.app-download button {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 25px;
}
.phone-mock {
  width: 290px;
  min-height: 530px;
  background: #fff;
  border: 10px solid #15211e;
  border-radius: 42px;
  padding: 45px 18px 20px;
  margin: auto;
  box-shadow: var(--shadow);
  text-align: center;
}
.phone-mock img {
  width: 70px;
}
.phone-mock div {
  text-align: right;
  margin: 12px 0;
  padding: 14px;
  border-radius: 11px;
  background: #edf2f0;
}
/* لوحة الإدارة الشاملة */
.admin-body {
  background: #f2f4f3;
}
.admin-body .admin-shell {
  grid-template-columns: 275px 1fr;
}
.admin-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 22px;
}
.admin-brand img {
  width: 43px;
}
.admin-brand span {
  display: grid;
}
.admin-brand small {
  font-size: 9px;
  color: #b8cbc5;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  color: #d1dfdb;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: right;
  cursor: pointer;
}
.sidebar nav button:hover,
.sidebar nav button.active {
  background: #ffffff13;
  color: #fff;
}
.view-site {
  display: block;
  margin-top: 18px;
  border-top: 1px solid #ffffff18;
  padding: 17px 12px;
  color: #e2c687;
}
.admin-main {
  min-width: 0;
}
.admin-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
}
.admin-top > div:nth-child(2) {
  margin-left: auto;
}
.admin-top h1 {
  font: 700 25px "Noto Kufi Arabic";
  margin: 0;
}
.admin-top p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.admin-top > #menuToggle {
  display: none;
}
.admin-user {
  display: flex;
  gap: 9px;
  align-items: center;
}
.admin-user > span,
.user-row > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
}
.admin-user > div {
  display: grid;
  font-size: 11px;
}
.admin-user small {
  color: var(--muted);
}
.admin-section {
  display: none;
}
.admin-section.active {
  display: block;
}
.notice {
  background: #fff8df;
  border: 1px solid #ead79a;
  color: #755817;
  border-radius: 11px;
  padding: 12px 15px;
}
.metric small {
  color: var(--muted);
}
.admin-columns {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
}
.card h2,
.toolbar h2 {
  font: 700 18px "Noto Kufi Arabic";
  margin: 0 0 13px;
}
.mini-row {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mini-row > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8efec;
  color: var(--green);
}
.mini-row div {
  display: grid;
}
.mini-row small {
  color: var(--muted);
}
.quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.quick-buttons button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 17px 8px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
.table td small {
  display: block;
  color: var(--muted);
}
.table td button,
.list-manager button,
.folder button,
.admin-card-grid button,
.user-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 5px 8px;
}
.status {
  background: #def2e9;
  color: #176347;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
}
.folder-breadcrumb {
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}
.folder-grid,
.admin-card-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.folder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  position: relative;
}
.folder > span {
  font-size: 37px;
  color: var(--gold);
}
.folder small {
  color: var(--muted);
}
.folder button {
  position: absolute;
  left: 10px;
  top: 10px;
}
.admin-card-grid .card p {
  color: var(--muted);
  font-size: 12px;
}
.list-manager > div,
.section-sort > div,
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.list-manager > div > b,
.section-sort > div > b,
.user-row > div {
  flex: 1;
}
.list-manager small,
.user-row small {
  color: var(--muted);
}
.upload-zone {
  min-height: 190px;
  border: 2px dashed #afc1bb;
  border-radius: 17px;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
}
.upload-zone span,
.upload-zone small {
  color: var(--muted);
}
.media-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  display: grid;
}
.media-grid article > div {
  height: 100px;
  border-radius: 9px;
  background: #e8efec;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--green);
  margin-bottom: 10px;
}
.media-grid small {
  color: var(--muted);
}
.section-sort > div input:not([type="checkbox"]) {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
}
.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-form.one {
  grid-template-columns: 1fr;
}
.settings-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
}
.settings-form input,
.settings-form select,
.settings-form textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  background: #fff;
}
.settings-form .wide,
.requires-build {
  grid-column: 1/-1;
}
.requires-build {
  background: #fff4d8;
  color: #745513;
  border-radius: 9px;
  padding: 12px;
}
.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.rank-row > strong {
  color: var(--gold);
}
.activity-list p {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.activity-list small {
  margin-right: auto;
  color: var(--muted);
}
.user-row em {
  font-style: normal;
  color: #176347;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 25px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
@media (max-width: 1000px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bio-grid {
    grid-template-columns: 260px 1fr;
  }
  .admin-body .admin-shell {
    grid-template-columns: 230px 1fr;
  }
  .folder-grid,
  .admin-card-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .filterbar,
  .catalog-grid,
  .detail-grid,
  .bio-grid,
  .app-download-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 45px 0;
  }
  .catalog-grid {
    gap: 12px;
  }
  .audio-card {
    padding: 17px;
  }
  .detail-actions {
    grid-row: 2;
  }
  .description dl {
    grid-template-columns: 95px 1fr;
  }
  .series-page article {
    grid-template-columns: 70px 1fr;
  }
  .bio-photo {
    height: 300px;
  }
  .sticky-player {
    bottom: 8px;
  }
  .admin-body .admin-shell {
    display: block;
  }
  .admin-body .sidebar {
    position: fixed;
    right: -290px;
    top: 0;
    bottom: 0;
    width: 275px;
    height: 100vh;
    z-index: 100;
    display: block;
    transition: 0.25s;
  }
  .admin-body.nav-open .sidebar {
    right: 0;
  }
  .admin-top > #menuToggle {
    display: block;
    border: 0;
    background: #fff;
    border-radius: 8px;
    padding: 9px;
  }
  .admin-user > div {
    display: none;
  }
  .metric-grid,
  .folder-grid,
  .admin-card-grid,
  .media-grid,
  .settings-form {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: flex-start;
    gap: 10px;
  }
  .toolbar .primary {
    white-space: nowrap;
  }
  .table {
    min-width: 780px;
  }
  .quick-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .section-sort > div {
    flex-wrap: wrap;
  }
  .section-sort > div > b {
    min-width: 60%;
  }
  .section-sort > div input:not([type="checkbox"]) {
    width: 100%;
    order: 5;
  }
  .app-download-grid {
    gap: 30px;
  }
  .phone-mock {
    width: min(290px, 100%);
  }
}
.storage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 18px;
}
.storage-card > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.storage-card span {
  color: var(--muted);
}
.download-list,
.history-list {
  display: grid;
  gap: 10px;
}
.download-list article,
.history-list article {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
}
.download-list article > span,
.history-list article > button {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  background: #e7efec;
  color: var(--green);
}
.download-list article > div,
.history-list article > div {
  display: grid;
  flex: 1;
}
.download-list small,
.history-list small {
  color: var(--muted);
}
.download-list button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
}
.history-list a {
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.contact-grid form {
  display: grid;
  gap: 13px;
}
.contact-grid label {
  display: grid;
  gap: 5px;
}
.contact-grid input,
.contact-grid textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
.legal {
  max-width: 850px;
}
.legal h2 {
  font-family: "Noto Kufi Arabic";
}
.legal p {
  color: var(--muted);
  line-height: 2;
}
@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .history-list article {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .history-list a {
    width: 100%;
    margin-right: 57px;
  }
  .storage-card > div:first-child {
    display: grid;
  }
}
