/* =========================================================
   KAHN MUSIC — BUILD 23.24
   HOMEPAGE / HEADER / HERO
   FINAL UNIFIED HERO DESIGN
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(8,8,9,.86);
  backdrop-filter:blur(18px);
}

.site-header__inner{
  width:min(100% - 40px,1280px);
  min-height:82px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:34px;
}

.site-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  flex:0 0 auto;
  text-decoration:none;
}

.site-brand__mark{
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  color:#d8b46a;
}

.site-brand__mark svg{
  width:100%;
  height:100%;
}

.site-brand__words{
  display:grid;
  line-height:1;
  gap:5px;
}

.site-brand__words strong{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.04em;
  color:#f5f1e8;
}

.site-brand__words span{
  font-size:9px;
  letter-spacing:.28em;
  color:#d8b46a;
  font-weight:800;
  direction:ltr;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:34px;
  margin-inline:auto;
  color:#aaa59d;
  font-size:14px;
}

.site-nav a{
  position:relative;
  padding:29px 0;
  transition:color .2s;
  text-decoration:none;
}

.site-nav a:hover,
.site-nav a.is-active{
  color:#f5f1e8;
}

.site-nav a.is-active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:16px;
  width:28px;
  height:2px;
  transform:translateX(-50%);
  border-radius:999px;
  background:#d8b46a;
}

.site-header__tools{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.site-search-link,
.site-account-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  text-decoration:none;
  transition:
    border-color .2s,
    background .2s,
    transform .2s;
}

.site-search-link{
  width:250px;
  padding:0 15px;
  color:#aaa59d;
  font-size:12px;
}

.site-account-link{
  padding:0 16px;
  color:#f5f1e8;
  font-size:13px;
}

.site-search-link:hover,
.site-account-link:hover{
  border-color:rgba(216,180,106,.7);
  background:rgba(216,180,106,.06);
  transform:translateY(-1px);
}

.site-search-link svg{
  width:20px;
  height:20px;
  color:#d8b46a;
  flex:0 0 auto;
}

.site-account-link svg{
  width:20px;
  height:20px;
  color:#d8b46a;
  flex:0 0 auto;
}

.site-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  padding:10px;
}

.site-menu-toggle span{
  display:block;
  height:2px;
  margin:5px 0;
  background:#f5f1e8;
  border-radius:2px;
}

.site-mobile-menu{
  display:none;
  width:min(100% - 24px,520px);
  margin:0 auto 12px;
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:#111113;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.site-mobile-menu[hidden]{
  display:none;
}

.site-mobile-menu a{
  display:block;
  padding:13px 14px;
  border-radius:12px;
  color:#d9d5cd;
  text-decoration:none;
}

.site-mobile-menu a:hover{
  background:rgba(216,180,106,.08);
  color:#fff;
}


/* =========================================================
   HOME
   ========================================================= */

.kahn-home{
  padding:0 0 90px;
  background:#0a0a0b;
}

.kahn-home .kahn-shell{
  width:100%;
  max-width:none;
  margin:0;
}


/* =========================================================
   HERO BASE
   ========================================================= */

.kahn-home__hero{
  position:relative;
  width:100%;
  min-height:610px;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);
  align-items:center;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#0b0b0d;
}

.kahn-home__hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(8,8,9,.97) 0%,
      rgba(8,8,9,.84) 33%,
      rgba(8,8,9,.18) 62%,
      rgba(8,8,9,.08) 100%
    );
}

.kahn-home__hero-copy{
  position:relative;
  z-index:2;
  padding:
    72px
    max(28px,calc((100vw - 1280px)/2))
    72px
    7vw;
  max-width:720px;
}

.kahn-home__eyebrow{
  color:#d8b46a;
  font-size:14px;
  font-weight:700;
  letter-spacing:.02em;
  margin-bottom:14px;
}

.kahn-home__title{
  margin:0 0 14px;
  font-size:clamp(48px,7vw,88px);
  line-height:1.02;
  letter-spacing:-.055em;
  color:#f5f1e8;
}

.kahn-home__title span{
  display:block;
  color:#d8b46a;
  font-size:.72em;
  letter-spacing:.18em;
  margin-top:12px;
  direction:ltr;
}

.kahn-home__lead{
  max-width:520px;
  margin:0 0 28px;
  color:#d2cdc4;
  font-size:clamp(18px,2vw,23px);
  line-height:1.8;
}

.kahn-home__sub{
  margin:0 0 28px;
  color:#aaa59d;
  font-size:14px;
}

.kahn-home__actions{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
}

.kahn-btn{
  min-height:48px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,10,11,.55);
  color:#f5f1e8;
  text-decoration:none;
  font-weight:800;
  backdrop-filter:blur(10px);
}

.kahn-btn--primary{
  background:#d8b46a;
  border-color:#d8b46a;
  color:#111;
}

.kahn-btn:hover{
  transform:translateY(-1px);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.kahn-home__hero-media{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  max-width:none;
  aspect-ratio:auto;
  border-radius:0;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(216,180,106,.24),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #17130d,
      #0a0a0b
    );
}

.kahn-home__hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  filter:
    saturate(.98)
    contrast(1.02);
}

.kahn-home__hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(8,8,9,.92) 0%,
      rgba(8,8,9,.70) 20%,
      rgba(8,8,9,.30) 40%,
      rgba(8,8,9,.06) 65%,
      rgba(8,8,9,0) 100%
    );
}


/* =========================================================
   LATEST MUSIC
   ========================================================= */

.kahn-home__section{
  width:min(100% - 40px,1280px);
  margin:0 auto;
  padding:38px 0 0;
}

.kahn-home__section--compact{
  padding-top:34px;
}

.kahn-section__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}

.kahn-section__title{
  margin:0;
  color:#f5f1e8;
  font-size:clamp(28px,4vw,42px);
  letter-spacing:-.04em;
}

.kahn-section__more{
  color:#d8b46a;
  text-decoration:none;
  font-size:14px;
}

.kahn-section__more:hover{
  text-decoration:underline;
}

.kahn-home__music-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.kahn-home__music-card{
  position:relative;
  min-width:0;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  overflow:hidden;
  background:#121214;
  box-shadow:0 18px 50px rgba(0,0,0,.2);
  transition:
    transform .22s,
    border-color .22s;
}

.kahn-home__music-card:hover{
  transform:translateY(-3px);
  border-color:rgba(216,180,106,.55);
}

.kahn-home__music-art{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#171719;
}

.kahn-home__music-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s;
}

.kahn-home__music-card:hover
.kahn-home__music-art img{
  transform:scale(1.035);
}

.kahn-home__music-overlay{
  position:absolute;
  inset:auto 0 0;
  padding:50px 14px 13px;
  background:
    linear-gradient(
      transparent,
      rgba(0,0,0,.86)
    );
}

.kahn-home__music-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#fff;
}

.kahn-home__music-meta{
  margin:3px 0 0;
  color:#d8b46a;
  font-size:12px;
}

.kahn-home__play{
  position:absolute;
  left:13px;
  bottom:13px;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(8,8,9,.62);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:15px;
  cursor:pointer;
  backdrop-filter:blur(8px);
}

.kahn-home__empty{
  padding:30px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  color:#aaa59d;
  background:#121214;
}

.kahn-home__filters{
  display:flex;
  gap:9px;
  overflow:auto;
  padding-bottom:8px;
  scrollbar-width:none;
}

.kahn-home__filters::-webkit-scrollbar{
  display:none;
}

.kahn-home__filters .kahn-chip{
  border-color:rgba(255,255,255,.12);
}

.kahn-home__filters .kahn-chip:hover{
  border-color:#d8b46a;
  color:#fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1120px){

  .site-nav{
    gap:20px;
  }

  .site-search-link{
    width:190px;
  }

  .site-account-link span{
    display:none;
  }

  .site-account-link{
    padding:0 13px;
  }

  .kahn-home__music-grid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:820px){

  .site-header__inner{
    width:min(100% - 24px,680px);
    min-height:70px;
    gap:12px;
  }

  .site-nav,
  .site-search-link{
    display:none;
  }

  .site-header__tools{
    margin-inline-start:auto;
  }

  .site-account-link{
    display:inline-flex;
    min-height:42px;
  }

  .site-menu-toggle{
    display:block;
  }

  .site-mobile-menu{
    display:block;
  }

  .kahn-home__hero{
    min-height:690px;
    display:block;
  }

  .kahn-home__hero-copy{
    padding:330px 24px 58px;
    max-width:700px;
  }

  .kahn-home__hero::after{
    background:
      linear-gradient(
        180deg,
        rgba(8,8,9,.08) 0%,
        rgba(8,8,9,.18) 25%,
        rgba(8,8,9,.9) 63%,
        #0a0a0b 100%
      );
  }

  .kahn-home__hero-media::after{
    background:
      linear-gradient(
        180deg,
        rgba(8,8,9,.02),
        rgba(8,8,9,.16) 35%,
        rgba(8,8,9,.88) 82%,
        #0a0a0b 100%
      );
  }

  .kahn-home__music-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:13px;
  }

  .kahn-home__section{
    width:min(100% - 24px,680px);
    padding-top:38px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px){

  .site-brand__words strong{
    font-size:19px;
  }

  .site-brand__mark{
    width:39px;
    height:39px;
  }

  .kahn-home__hero{
    min-height:660px;
  }

  .kahn-home__hero-copy{
    padding:300px 18px 48px;
  }

  .kahn-home__title{
    font-size:46px;
  }

  .kahn-home__lead{
    font-size:17px;
  }

  .kahn-home__music-title{
    font-size:15px;
  }
}


/* =========================================================
   DESKTOP — UNIFIED HERO
   ========================================================= */

@media(min-width:821px){

  .kahn-home__hero{

    position:relative !important;

    display:block !important;

    width:100% !important;
    max-width:1280px !important;

    height:620px !important;
    min-height:620px !important;

    margin:0 auto !important;

    overflow:hidden !important;

    background:#11100d !important;

    border:0 !important;
    border-radius:0 0 24px 24px !important;

    direction:ltr !important;
  }


  /* =======================================================
     تصویر تمام سطح Hero
     ======================================================= */

  .kahn-home__hero-media{

    position:absolute !important;

    inset:0 !important;

    width:100% !important;
    max-width:none !important;

    height:100% !important;
    min-height:100% !important;

    display:block !important;

    z-index:1 !important;

    overflow:hidden !important;

    background:#17130d !important;

    border-radius:0 !important;
  }


  .kahn-home__hero-media img{

    position:absolute !important;

    inset:0 !important;

    width:100% !important;
    height:100% !important;

    max-width:none !important;
    max-height:none !important;

    display:block !important;

    object-fit:cover !important;

    object-position:68% center !important;

    filter:
      saturate(1)
      contrast(1.02) !important;
  }


  /* =======================================================
     گرادیان گرم و نرم روی تصویر
     ======================================================= */

  .kahn-home__hero-media::after{

    content:"" !important;

    position:absolute !important;

    inset:0 !important;

    display:block !important;

    pointer-events:none !important;

    background:

      radial-gradient(
        ellipse at 23% 48%,
        rgba(216,180,106,.13) 0%,
        rgba(216,180,106,.055) 28%,
        rgba(216,180,106,0) 52%
      ),

      linear-gradient(
        90deg,
        rgba(15,14,12,.78) 0%,
        rgba(15,14,12,.58) 18%,
        rgba(15,14,12,.30) 34%,
        rgba(15,14,12,.10) 49%,
        rgba(15,14,12,0) 67%
      ) !important;
  }


  /* =======================================================
     حذف Overlay قدیمی Hero
     ======================================================= */

  .kahn-home__hero::after{

    display:none !important;

    content:none !important;
  }


  /* =======================================================
     TEXT LAYER
     ======================================================= */

  .kahn-home__hero-copy{

    position:absolute !important;

    z-index:5 !important;

    left:0 !important;
    top:0 !important;
    bottom:0 !important;

    width:48% !important;
    max-width:600px !important;

    box-sizing:border-box !important;

    margin:0 !important;

    padding:
      70px
      70px
      70px
      70px !important;

    display:flex !important;

    flex-direction:column !important;

    justify-content:center !important;

    align-items:flex-start !important;

    background:transparent !important;

    direction:rtl !important;

    text-align:right !important;
  }


  /* =======================================================
     BRAND LABEL — KAHN MUSIC / کهن موزیک
     ======================================================= */

  .kahn-home__hero-copy
  .kahn-home__eyebrow{

    display:block !important;

    width:auto !important;

    margin:
      0
      0
      12px !important;

    color:#e2bd70 !important;

    font-size:15px !important;

    line-height:1.7 !important;

    font-weight:800 !important;

    letter-spacing:.02em !important;

    text-shadow:
      0 2px 12px rgba(0,0,0,.22) !important;

    white-space:nowrap !important;
  }


  /* =======================================================
     عنوان اصلی
     ======================================================= */

  .kahn-home__hero-copy
  .kahn-home__title{

    display:block !important;

    width:auto !important;

    max-width:460px !important;

    margin:
      0
      0
      15px !important;

    padding:0 !important;

    font-size:40px !important;

    line-height:1.42 !important;

    letter-spacing:-.035em !important;

    color:#fff8ed !important;

    text-shadow:
      0 2px 18px rgba(0,0,0,.22) !important;

    white-space:normal !important;

    word-break:normal !important;

    overflow-wrap:normal !important;

    writing-mode:horizontal-tb !important;

    transform:none !important;
  }


  /* =======================================================
     توضیح
     ======================================================= */

  .kahn-home__hero-copy
  .kahn-home__lead{

    display:block !important;

    width:auto !important;

    max-width:410px !important;

    margin:
      0
      0
      23px !important;

    color:#f0e8dc !important;

    font-size:15px !important;

    line-height:1.9 !important;

    text-shadow:
      0 2px 14px rgba(0,0,0,.24) !important;

    white-space:normal !important;

    word-break:normal !important;

    overflow-wrap:normal !important;

    writing-mode:horizontal-tb !important;
  }


  /* =======================================================
     دکمه‌ها
     ======================================================= */

  .kahn-home__hero-copy
  .kahn-home__actions{

    display:flex !important;

    width:auto !important;

    max-width:100% !important;

    flex-wrap:wrap !important;

    gap:10px !important;

    direction:rtl !important;

    align-items:center !important;
  }


  .kahn-home__hero-copy
  .kahn-btn{

    min-height:44px !important;

    padding:
      0
      18px !important;

    font-size:12px !important;

    white-space:nowrap !important;

    box-shadow:
      0 8px 25px rgba(0,0,0,.14) !important;
  }


  /* =======================================================
     فاصله با آثار جدید
     ======================================================= */

  .kahn-home__section{

    padding-top:28px !important;
  }


  /* =======================================================
     جلوگیری از عمودی شدن متن
     ======================================================= */

  .kahn-home__hero,
  .kahn-home__hero *,
  .kahn-home__hero h1,
  .kahn-home__hero p{

    writing-mode:horizontal-tb !important;
  }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media(min-width:1200px){

  .kahn-home__hero{

    max-width:1280px !important;

    height:620px !important;
    min-height:620px !important;
  }


  .kahn-home__hero-copy{

    width:47% !important;

    max-width:600px !important;

    padding:
      70px
      55px
      70px
      72px !important;
  }


  .kahn-home__hero-copy
  .kahn-home__eyebrow{

    font-size:15px !important;

    margin-bottom:11px !important;
  }


  .kahn-home__hero-copy
  .kahn-home__title{

    font-size:40px !important;
  }


  .kahn-home__hero-copy
  .kahn-home__lead{

    font-size:15px !important;
  }
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media(min-width:821px) and (max-width:1199px){

  .kahn-home__hero{

    height:570px !important;
    min-height:570px !important;
  }


  .kahn-home__hero-copy{

    width:50% !important;

    max-width:560px !important;

    padding:
      50px
      42px
      50px
      48px !important;
  }


  .kahn-home__hero-copy
  .kahn-home__eyebrow{

    font-size:13px !important;
  }


  .kahn-home__hero-copy
  .kahn-home__title{

    font-size:37px !important;

    line-height:1.38 !important;
  }


  .kahn-home__hero-copy
  .kahn-home__lead{

    font-size:14px !important;

    line-height:1.85 !important;
  }
}

/* =========================================================
   BUILD 23.24 — DISCOVER CATEGORY CARDS
   Visual-only update: preserve category labels and destinations.
   ========================================================= */
.kahn-home__filters{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px !important;
  overflow:visible !important;
  padding:0 0 12px !important;
  margin-top:8px;
  direction:rtl;
}

.kahn-home__filters .kahn-chip{
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  display:flex !important;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  min-height:220px;
  padding:26px 22px 20px !important;
  overflow:hidden;
  border:1px solid rgba(205,168,94,.58) !important;
  border-radius:22px !important;
  background-color:#14100b !important;
  background-repeat:no-repeat !important;
  background-position:center left !important;
  background-size:cover !important;
  color:#f7f1e6 !important;
  text-align:right;
  text-decoration:none !important;
  white-space:normal !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 10px 26px rgba(0,0,0,.18);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.kahn-home__filters .kahn-chip::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:linear-gradient(270deg,rgba(8,8,9,.97) 0%,rgba(8,8,9,.82) 35%,rgba(8,8,9,.22) 78%,rgba(8,8,9,.12) 100%),linear-gradient(0deg,rgba(0,0,0,.28),transparent 65%);
}

.kahn-home__filters .kahn-chip::after{
  content:"مشاهده آثار  ←";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:5px;
  padding:8px 14px;
  border:1px solid rgba(218,177,93,.88);
  border-radius:999px;
  color:#e8bd68;
  background:rgba(8,8,9,.48);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  white-space:normal;
}

/* Existing link text remains the category title. */
.kahn-home__filters .kahn-chip{
  font-size:clamp(18px,2vw,25px) !important;
  font-weight:850 !important;
  line-height:1.5 !important;
}

.kahn-home__filters .kahn-chip:nth-child(1){
  background-image:url('/assets/categories/music.jpg') !important;
}
.kahn-home__filters .kahn-chip:nth-child(2){
  background-image:url('/assets/categories/podcast.jpg') !important;
}
.kahn-home__filters .kahn-chip:nth-child(3){
  background-image:url('/assets/categories/interview.jpg') !important;
}
.kahn-home__filters .kahn-chip:nth-child(4){
  background-image:url('/assets/categories/audiobook.jpg') !important;
}
.kahn-home__filters .kahn-chip:nth-child(5){
  background-image:url('/assets/categories/poetry-reading.jpg') !important;
}
.kahn-home__filters .kahn-chip:nth-child(6){
  background-image:url('/assets/categories/video-clip.jpg') !important;
}

.kahn-home__filters .kahn-chip:hover,
.kahn-home__filters .kahn-chip:focus-visible{
  transform:translateY(-3px);
  border-color:#e4bd6c !important;
  box-shadow:0 14px 32px rgba(0,0,0,.3),0 0 0 1px rgba(205,168,94,.18);
  outline:none;
}

@media(max-width:820px){
  .kahn-home__filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px !important;
  }
  .kahn-home__filters .kahn-chip{
    min-height:190px;
    padding:20px 14px 16px !important;
    border-radius:18px !important;
    font-size:19px !important;
  }
  .kahn-home__filters .kahn-chip::after{
    padding:7px 11px;
    font-size:12px;
  }
}

@media(max-width:420px){
  .kahn-home__filters{gap:9px !important;}
  .kahn-home__filters .kahn-chip{
    min-height:165px;
    padding:17px 11px 13px !important;
    font-size:16px !important;
    border-radius:16px !important;
  }
  .kahn-home__filters .kahn-chip::after{
    padding:6px 9px;
    font-size:11px;
  }
}

@media(prefers-reduced-motion:reduce){
  .kahn-home__filters .kahn-chip{transition:none;}
}
