/* =========================================
   HOSSEIN MEDIA
   MAIN STYLESHEET
   Theme: Black / Charcoal / Dark Red / Gold
========================================= */

:root {
  --bg: #09090b;
  --panel: #111114;
  --panel2: #17171b;
  --red: #a51f32;
  --red-dark: #671522;
  --gold: #b99a68;
  --white: #f5f1ed;
  --text: #d1ccca;
  --muted: #888386;
  --border: rgba(255,255,255,.09);
  --gold-border: rgba(185,154,104,.3);
  --transition: .35s ease;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--red);
  color: white;
}

/* BACKGROUND GRAIN */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* HEADER */

.site-header {
  width: 100%;
  min-height: 90px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(9,9,11,.88);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-size: 21px;
  font-weight: 900;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name strong {
  font-size: 15px;
  letter-spacing: 2px;
}

.brand-name small {
  color: var(--gold);
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.main-nav a {
  color: #aaa5a5;
  font-size: 13px;
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 19px;
}

.header-link > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  letter-spacing: 1px;
}

.header-link small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

/* COMMON SECTION TITLES */

.section-overline {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
  display: inline-block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(27px, 4vw, 42px);
  margin-top: 10px;
}

.section-heading h2 span {
  color: var(--red);
}

.more-link {
  color: var(--gold);
  font-size: 12px;
}

.more-link span {
  margin-right: 8px;
}

/* BUTTONS */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 22px;
  transition: var(--transition);
  font-size: 12px;
}

.primary-button {
  background: var(--red);
  color: white;
}

.primary-button:hover {
  background: var(--gold);
  color: #09090b;
  transform: translateY(-3px);
}

.button-arrow {
  font-size: 19px;
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--white);
}

.secondary-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* HERO */

.hero {
  min-height: calc(100vh - 90px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 8% 110px;
  overflow: hidden;
}

.hero-light {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(165,31,50,.16), transparent 70%);
  top: 10%;
  left: 30%;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(185,154,104,.08);
  border-radius: 50%;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: auto;
  gap: 20px;
}

.english-side,
.persian-side {
  position: relative;
  z-index: 3;
}

.side-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
}

.english-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 85px);
  line-height: .95;
  letter-spacing: -4px;
  margin: 25px 0;
}

.english-title span {
  display: block;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.65);
}

.red-dot {
  color: var(--red);
  -webkit-text-stroke: 0;
}

.english-subtitle {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 4px;
}

.portrait-side {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imam-portrait {
  width: 130%;
  max-width: none;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,.3));
}

.persian-side {
  text-align: right;
}

.persian-label {
  font-size: 12px;
}

.persian-title {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.1;
  margin: 20px 0;
}

.persian-title span {
  display: block;
}

.persian-subtitle {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 15px;
}

.hero-description {
  color: #aaa5a5;
  font-size: 12px;
  line-height: 2.3;
}

.secondary-description {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-footer {
  position: absolute;
  bottom: 30px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 11px;
}

.hero-counter i {
  width: 55px;
  height: 1px;
  background: var(--red);
}

.scroll-guide {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 2px;
}

.scroll-guide small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

/* ABOUT */

.about-section {
  min-height: 420px;
  padding: 100px 10%;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 700px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.about-content h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.5;
  margin-bottom: 25px;
}

.about-content h2 span {
  color: var(--red);
}

.about-content p {
  color: var(--muted);
  line-height: 2.5;
  font-size: 13px;
}

.about-symbol {
  position: absolute;
  left: 5%;
  bottom: -100px;
  font-size: 350px;
  font-weight: 900;
  color: rgba(255,255,255,.018);
}

/* LATEST CONTENT */

.content-section,
.visual-section {
  padding: 110px 8%;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}

.feature-card {
  min-width: 0;
}

.feature-art {
  height: 300px;
  padding: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover .feature-art {
  transform: translateY(-7px);
}

.art-red {
  background: linear-gradient(140deg, #781726, #210c12);
}

.art-dark {
  background: linear-gradient(140deg, #25252a, #0d0d10);
}

.art-gold {
  background: linear-gradient(140deg, #695438, #17130f);
}

.art-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  color: rgba(255,255,255,.15);
}

.art-category {
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: 2px;
}

.art-bottom {
  font-size: 17px;
  color: white;
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 10px;
  margin-top: 18px;
}

.feature-card h3 {
  font-size: 16px;
  margin-top: 10px;
}

/* AUDIO SECTION */

.audio-section {
  padding: 100px 8%;
  background: var(--panel);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.audio-intro h2 {
  font-size: 48px;
  margin: 20px 0;
}

.audio-intro h2 span {
  color: var(--red);
}

.audio-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2.4;
}

.audio-list {
  display: flex;
  flex-direction: column;
}

.audio-item {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.audio-item:hover {
  background: rgba(185,154,104,.06);
}

.audio-play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  transition: var(--transition);
}

.audio-item:hover .audio-play {
  background: var(--gold);
  color: var(--bg);
}

.audio-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.audio-info strong {
  font-size: 13px;
}

.audio-info small {
  color: var(--muted);
  font-size: 10px;
}

.audio-duration {
  color: var(--muted);
  font-size: 11px;
}

.audio-arrow {
  color: var(--gold);
}

/* VISUAL ARCHIVE */

.visual-note {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
}

.visual-note small {
  color: var(--muted);
  letter-spacing: 0;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.visual-tile {
  height: 280px;
  background: var(--panel2);
  display: flex;
  align-items: end;
  padding: 25px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.visual-tile:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.visual-tile span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
}

.tile-one {
  background: linear-gradient(145deg, #5c1523, #171114);
}

.tile-two {
  background: linear-gradient(145deg, #27272c, #111114);
}

.tile-three {
  background: linear-gradient(145deg, #55442e, #15120e);
}

/* FOOTER */

.site-footer {
  min-height: 130px;
  padding: 35px 8%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-brand > span {
  color: var(--red);
}

.footer-brand small {
  display: block;
  color: var(--gold);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

.site-footer p {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
}

.site-footer p small {
  display: block;
  color: var(--muted);
  letter-spacing: 0;
}

.site-footer > a:last-child {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
}

.site-footer > a:last-child small {
  display: block;
  color: var(--muted);
  letter-spacing: 0;
}

/* MADAHAN DIRECTORY */

.madahan-page {
  min-height: 80vh;
}

.madahan-hero {
  padding: 100px 8% 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(165,31,50,.15), transparent 65%),
    var(--bg);
}

.madahan-hero h1 {
  font-size: clamp(38px, 6vw, 65px);
  margin: 20px 0 10px;
}

.madahan-hero h1 span {
  color: var(--red);
}

.madahan-hero > p {
  color: var(--muted);
  font-size: 13px;
}

.madahan-count {
  margin: 35px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.madahan-count strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.madahan-count span {
  color: var(--muted);
  font-size: 12px;
}

.madahan-directory {
  padding: 50px 8% 110px;
  max-width: 1600px;
  margin: auto;
}

.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.directory-heading h2 {
  font-size: 32px;
  margin-top: 8px;
}

.directory-heading h2 span {
  color: var(--red);
}

.madah-search {
  width: 300px;
  max-width: 100%;
  height: 48px;
  background: var(--panel);
  border: 1px solid var(--border);
  outline: none;
  padding: 0 18px;
  color: white;
  font-size: 12px;
  transition: var(--transition);
}

.madah-search:focus {
  border-color: var(--gold);
}

.madah-search::placeholder {
  color: #777;
}

.madahan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 35px 22px;
}

.madah-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  min-width: 0;
}

.madah-avatar {
  width: 100%;
  max-width: 175px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle, #292329, #111114);
  border: 1px solid rgba(185,154,104,.2);
  transition: var(--transition);
}

.madah-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition);
  pointer-events: none;
}

.madah-card:hover .madah-avatar {
  transform: translateY(-7px);
  box-shadow: 0 15px 40px rgba(165,31,50,.18);
}

.madah-card:hover .madah-avatar::after {
  border-color: var(--gold);
}

.madah-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 50px;
  font-weight: 800;
}

.madah-name {
  font-size: 13px;
  color: var(--text);
  transition: var(--transition);
}

.madah-card:hover .madah-name {
  color: var(--gold);
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 14px;
}

/* MADAH PERSONAL PROFILE */

.madah-profile {
  min-height: 80vh;
  padding: 100px 8% 80px;
}

.profile-hero {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 90px;
  max-width: 1250px;
  margin: 0 auto;
  min-height: 480px;
}

.profile-image-box {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(185,154,104,.35);
  background: #151518;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
  margin: auto;
}

.profile-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  text-align: right;
}

.profile-info h1 {
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 800;
  color: var(--white);
  margin: 25px 0 12px;
}

.profile-subtitle {
  color: var(--gold);
  font-size: 15px;
}

.profile-line {
  width: 75px;
  height: 2px;
  background: var(--red);
  margin: 28px 0;
}

.profile-description {
  color: #aaa5a2;
  line-height: 2.2;
  max-width: 550px;
  margin-bottom: 30px;
  font-size: 13px;
}

.profile-content {
  max-width: 1250px;
  margin: 90px auto 0;
}

.profile-empty {
  margin-top: 35px;
  min-height: 260px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
}

.empty-symbol {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  font-weight: 900;
  color: rgba(185,154,104,.35);
}

.profile-empty h3 {
  color: var(--white);
  margin: 15px 0;
  font-size: 18px;
}

.profile-empty p {
  color: var(--muted);
  line-height: 2;
  max-width: 500px;
  font-size: 13px;
}

.profile-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.profile-work-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--transition);
}

.profile-work-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .site-header {
    padding: 0 4%;
  }

  .main-nav {
    gap: 18px;
  }

  .madahan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    gap: 10px;
  }

  .english-title {
    letter-spacing: -2px;
  }

  .audio-section {
    gap: 35px;
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: auto;
    padding: 18px 5%;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 0 5px;
    gap: 24px;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 12px;
  }

  .header-link {
    margin-right: auto;
  }

  .hero {
    min-height: auto;
    padding: 70px 6% 100px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .english-side {
    order: 1;
  }

  .portrait-side {
    order: 2;
  }

  .persian-side {
    order: 3;
    text-align: center;
  }

  .imam-portrait {
    width: 100%;
    max-width: 450px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-footer {
    bottom: 25px;
  }

  .about-section,
  .content-section,
  .visual-section {
    padding: 75px 6%;
  }

  .feature-grid,
  .visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-large {
    grid-column: span 2;
  }

  .audio-section {
    grid-template-columns: 1fr;
    padding: 75px 6%;
  }

  .madahan-hero {
    padding: 75px 6% 50px;
  }

  .madahan-directory {
    padding: 40px 6% 80px;
  }

  .madahan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 15px;
  }

  .madah-avatar {
    max-width: 150px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .profile-image-box {
    max-width: 270px;
  }

  .profile-info {
    text-align: center;
  }

  .profile-line {
    margin: 25px auto;
  }

  .profile-description {
    margin-right: auto;
    margin-left: auto;
  }

  .profile-content {
    margin-top: 60px;
  }
}

@media (max-width: 520px) {
  .brand-name strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-link {
    font-size: 15px;
  }

  .hero {
    padding-top: 55px;
  }

  .english-title {
    font-size: 53px;
  }

  .persian-title {
    font-size: 48px;
  }

  .hero-footer {
    left: 6%;
    right: 6%;
  }

  .scroll-guide {
    font-size: 8px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: auto;
  }

  .feature-art {
    height: 240px;
  }

  .visual-tile {
    height: 220px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 35px 5%;
  }

  .directory-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .madah-search {
    width: 100%;
  }

  .madahan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .madah-avatar {
    max-width: 145px;
  }

  .madah-name {
    font-size: 12px;
  }

  .madah-profile {
    padding: 60px 6%;
  }

  .profile-image-box {
    max-width: 230px;
  }

  .profile-info h1 {
    font-size: 35px;
  }

  .profile-works-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   TYPOGRAPHY UPDATE
   System fonts only — no installation needed
========================================= */

body,
button,
input,
textarea,
select,
.main-nav,
.persian-title,
.persian-label,
.section-heading,
.section-heading h2,
.madahan-hero,
.madahan-hero h1,
.directory-heading,
.directory-heading h2,
.madah-name,
.profile-info,
.profile-info h1,
.profile-description,
.audio-info,
.audio-intro,
.site-footer p {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* English identity and display typography */
.brand-name strong,
.english-title,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
}



/* =========================================
   LATEST AUDIO ARCHIVE
   HOSSEIN MEDIA — Black / Red / Gold
========================================= */

.latest-page {
  position: relative;
  isolation: isolate;
  min-height: 75vh;
  padding: 58px 8% 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 4%, rgba(165,31,50,.14), transparent 34%),
    radial-gradient(ellipse at 8% 45%, rgba(185,154,104,.055), transparent 32%),
    var(--bg);
}

.latest-page::before {
  content: "H.";
  position: absolute;
  z-index: -1;
  top: 150px;
  left: 3%;
  color: rgba(255,255,255,.018);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(180px, 27vw, 390px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.latest-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px 0 42px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.latest-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 105px;
  height: 2px;
  background: var(--red);
}

.latest-hero .section-overline {
  font-size: 10px;
  letter-spacing: 2.5px;
}

.latest-hero h1 {
  margin: 17px 0 12px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.35;
  font-weight: 850;
}

.latest-hero h1 span {
  color: var(--red);
}

.latest-hero > p {
  color: #aaa5a5;
  font-size: 14px;
  line-height: 2.2;
}

.latest-stats {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
}

.latest-stats span:first-child {
  color: var(--gold);
  font-weight: 700;
}

.latest-stats i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

/* Search and category filters */

.latest-tools {
  max-width: 1500px;
  margin: 32px auto 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.latest-search {
  width: min(430px, 100%);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  background: rgba(17,17,20,.9);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.latest-search:focus-within {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(185,154,104,.06);
}

.latest-search > span {
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

.latest-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

.latest-search input::placeholder {
  color: #777276;
}

.latest-search input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: grayscale(1);
}

.latest-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--border);
  background: rgba(17,17,20,.8);
  color: #aaa5a5;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  transform: translateY(-2px);
}

.filter-btn.active {
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 7px 22px rgba(165,31,50,.18);
}

/* Results heading */

.latest-results {
  max-width: 1500px;
  margin: 0 auto;
}

.latest-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.latest-results-heading h2 {
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 35px);
}

.latest-results-heading h2 span {
  color: var(--red);
}

.latest-sort {
  color: var(--muted);
  font-size: 11px;
  padding-bottom: 7px;
}

/* Audio cards */

.latest-audio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.latest-audio-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, #17171b, #101013 75%);
  border: 1px solid rgba(255,255,255,.075);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  animation: latestCardIn .55s ease both;
}

.latest-audio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(185,154,104,.48);
  box-shadow: 0 18px 42px rgba(0,0,0,.3), 0 7px 25px rgba(165,31,50,.1);
}

.latest-card-cover {
  height: 225px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(165,31,50,.36), transparent 48%),
    linear-gradient(135deg, #32131b, #171317 58%, #0d0d10);
}

.latest-card-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(185,154,104,.17);
  pointer-events: none;
}

.latest-card-cover::after {
  content: "H.";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.09);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
}

.latest-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

.latest-audio-card:hover .latest-card-cover img {
  transform: scale(1.07);
  filter: brightness(.72);
}

.latest-card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  padding: 5px 11px;
  color: var(--gold);
  background: rgba(9,9,11,.78);
  border: 1px solid rgba(185,154,104,.3);
  backdrop-filter: blur(8px);
  font-size: 10px;
}

.latest-card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-right: 2px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(165,31,50,.88);
  color: white;
  font-size: 15px;
  opacity: 0;
  transform: translate(-50%, -42%) scale(.8);
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0,0,0,.28);
}

.latest-audio-card:hover .latest-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.latest-card-info {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  padding: 19px 18px 16px;
}

.latest-card-info h3 {
  overflow: hidden;
  color: var(--white);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.9;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.latest-audio-card:hover .latest-card-info h3 {
  color: var(--gold);
}

.latest-card-info > p {
  margin-top: 3px;
  color: #aaa5a5;
  font-size: 11px;
}

.latest-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 10px;
}

.latest-card-meta span:first-child {
  color: var(--gold);
}

.latest-empty {
  min-height: 280px;
  margin-top: 20px;
  padding: 45px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(17,17,20,.75);
  border: 1px solid var(--border);
}

.latest-empty[hidden] {
  display: none;
}

.latest-empty > span {
  color: rgba(185,154,104,.35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  font-weight: 900;
}

.latest-empty h3 {
  margin: 10px 0 5px;
  color: var(--white);
  font-size: 18px;
}

.latest-empty p {
  color: var(--muted);
  font-size: 12px;
}

@keyframes latestCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Latest page responsive layout */

@media (max-width: 1100px) {
  .latest-page {
    padding-right: 5%;
    padding-left: 5%;
  }

  .latest-audio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .latest-card-cover {
    height: 205px;
  }
}

@media (max-width: 800px) {
  .latest-page {
    padding: 35px 6% 80px;
  }

  .latest-hero {
    padding-top: 30px;
  }

  .latest-tools {
    align-items: stretch;
    flex-direction: column;
    margin: 25px auto 50px;
  }

  .latest-search {
    width: 100%;
  }

  .latest-filters {
    justify-content: flex-start;
  }

  .latest-audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .latest-card-cover {
    height: 210px;
  }
}

@media (max-width: 520px) {
  .latest-page {
    padding: 25px 5% 65px;
  }

  .latest-hero h1 {
    font-size: 39px;
  }

  .latest-hero > p {
    font-size: 12px;
  }

  .latest-stats {
    flex-wrap: wrap;
  }

  .latest-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .filter-btn {
    min-height: 39px;
    padding: 0 8px;
    font-size: 10px;
  }

  .latest-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .latest-sort {
    padding: 0;
  }

  .latest-audio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .latest-audio-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 125px;
  }

  .latest-card-cover {
    height: 100%;
    min-height: 125px;
  }

  .latest-card-cover::before {
    inset: 7px;
  }

  .latest-card-cover::after {
    font-size: 55px;
  }

  .latest-card-category {
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .latest-card-play {
    width: 38px;
    height: 38px;
    font-size: 11px;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .latest-card-info {
    min-height: 125px;
    padding: 13px 12px 10px;
  }

  .latest-card-info h3 {
    font-size: 13px;
  }

  .latest-card-info > p {
    font-size: 10px;
  }

  .latest-card-meta {
    padding-top: 9px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-audio-card,
  .latest-audio-card *,
  .latest-search,
  .filter-btn {
    animation: none !important;
    transition: none !important;
  }
}
