/* =========================================================
   DANANG2NITE — PHASE 36
   MOBILE INDEX ONLY / PREMIUM NIGHT EDITORIAL
   Loaded only at max-width: 820px.
   PC INDEX, LIST, VIEW, Places and Side Menu are untouched.
   ========================================================= */

body.page-home .site-main{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 8% 4%,rgba(121,0,53,.19),transparent 24%),
    radial-gradient(circle at 93% 15%,rgba(63,0,76,.16),transparent 28%),
    linear-gradient(180deg,#070708 0%,#080709 58%,#070708 100%);
}
body.page-home .site-main::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 auto;
  height:520px;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(230,37,114,.03),transparent 35%,transparent 68%,rgba(217,185,110,.025)),
    repeating-linear-gradient(90deg,transparent 0 79px,rgba(255,255,255,.012) 80px,transparent 81px);
  mask-image:linear-gradient(to bottom,#000,transparent 92%);
}

/* ---------- HOME HERO ---------- */
.home-hero{
  width:calc(100% - 14px);
  margin-inline:auto;
  padding-block:8px 10px;
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.home-hero__copy{
  position:relative;
  overflow:hidden;
  min-height:304px;
  padding:26px 19px 24px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:19px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(circle at 5% 0%,rgba(230,37,114,.14),transparent 38%),
    radial-gradient(circle at 100% 100%,rgba(217,185,110,.075),transparent 38%),
    linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.012)),
    #0d0c0e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 48px rgba(0,0,0,.28);
}
.home-hero__copy::before{
  content:"D2N";
  position:absolute;
  right:-9px;
  bottom:-14px;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.024);
  font-size:105px;
  line-height:1;
  font-weight:950;
  letter-spacing:-8px;
  transform:skewX(-8deg);
  pointer-events:none;
}
.home-hero__kicker{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.home-hero__kicker .eyebrow{
  color:var(--gold-soft);
}
.home-hero__issue{
  color:#6d6862;
  font-size:5px;
  font-weight:900;
  letter-spacing:1.15px;
}
.home-hero__copy h1{
  position:relative;
  z-index:1;
  max-width:100%;
  margin:12px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(47px,13.5vw,62px);
  font-weight:700;
  line-height:.91;
  letter-spacing:-2.25px;
  text-wrap:balance;
  background:
    linear-gradient(
      to bottom,
      #fbf8f3 0%,
      #fbf8f3 45%,
      #f0d89e 58%,
      #cfa95a 100%
    );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.26));
}
.home-hero__copy p{
  position:relative;
  z-index:1;
  margin:15px 0 0;
  color:#b8b0a7;
  font-size:12px;
  line-height:1.58;
}
.hero-actions{
  position:relative;
  z-index:1;
  margin-top:18px;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:7px;
}
.hero-actions .button{
  min-height:42px;
  padding-inline:12px;
  font-size:9px;
}
.hero-actions .button--gold{
  box-shadow:
    0 10px 25px rgba(174,129,38,.18),
    inset 0 1px 0 rgba(255,255,255,.32);
}
.hero-actions .button--ghost{
  background:rgba(255,255,255,.022);
}
.home-hero__signature{
  display:none;
}

/* ---------- FEATURED ---------- */
.featured-story{
  position:relative;
  min-height:0;
  aspect-ratio:1.16/1;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:19px;
  background:#0f0f10;
  text-decoration:none;
  box-shadow:
    0 20px 54px rgba(0,0,0,.34),
    inset 0 -1px 0 rgba(230,37,114,.20);
  contain:layout paint;
}
.featured-story::after{
  content:"";
  position:absolute;
  z-index:5;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:
    inset 0 -1px 0 rgba(230,37,114,.45),
    inset -1px 0 0 rgba(230,37,114,.14);
}
.featured-story__media{
  position:absolute;
  inset:0;
}
.featured-story__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.01) 0%,rgba(0,0,0,.06) 32%,rgba(0,0,0,.36) 62%,rgba(4,4,5,.97) 100%),
    linear-gradient(90deg,rgba(76,0,31,.10),transparent 62%);
}
.featured-story__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.featured-story__topline{
  position:absolute;
  z-index:6;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  align-items:center;
  gap:5px;
}
.featured-story__topline>span{
  min-width:29px;
  height:29px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:1px solid rgba(240,217,157,.24);
  border-radius:50%;
  background:rgba(6,6,7,.72);
  color:var(--gold-soft);
  font-size:6px;
  font-weight:950;
  backdrop-filter:blur(8px);
}
.featured-story__topline>strong{
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(10,9,11,.65);
  color:#f2ece4;
  font-size:6px;
  font-weight:900;
  backdrop-filter:blur(8px);
}
.featured-story__topline i{
  margin-inline-start:auto;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(230,37,114,.12);
  color:#f393ba;
  font-size:5px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.65px;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}
.featured-story__overlay{
  position:absolute;
  z-index:5;
  inset:auto 0 0;
  padding:21px 16px 15px;
}
.featured-story__overlay::before{
  content:"DANANG2NITE / AFTER DARK";
  display:block;
  margin-bottom:8px;
  color:var(--gold-soft);
  font-size:5px;
  font-weight:900;
  letter-spacing:1.15px;
}
.featured-story h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  color:#fffaf3;
  font-size:clamp(26px,7.8vw,34px);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.85px;
  text-wrap:balance;
  text-shadow:0 5px 18px rgba(0,0,0,.55);
}
.featured-story p{
  margin:8px 0 0;
  color:#c9c0b6;
  font-size:8px;
  line-height:1.47;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.story-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:9px;
  color:var(--gold-soft);
  font-size:7px;
  font-weight:900;
}
.story-link span{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border:1px solid rgba(217,185,110,.20);
  border-radius:50%;
}
.featured-story--empty{
  display:grid;
  place-items:center;
}

/* ---------- EXPLORE CATEGORY STRIP ---------- */
.d2n-category-deck{
  width:100%;
  margin-top:0;
  padding:15px 10px 19px;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg,rgba(255,255,255,.012),transparent);
}
.d2n-category-deck__intro{
  margin-bottom:10px;
}
.d2n-category-deck__intro .eyebrow{
  color:#cfb368;
}
.d2n-category-deck__intro>strong{
  display:none;
}
.d2n-category-deck__rail{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:2px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.d2n-category-deck__rail::-webkit-scrollbar{
  display:none;
}
.d2n-category-chip{
  position:relative;
  flex:0 0 148px;
  min-height:63px;
  padding:10px 10px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:7px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:12px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.028),rgba(255,255,255,.006)),
    #0c0b0d;
  text-decoration:none;
  scroll-snap-align:start;
}
.d2n-category-chip::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:2px;
  background:linear-gradient(to bottom,transparent,var(--pink),transparent);
  opacity:.45;
}
.d2n-category-chip>span{
  color:var(--pink-soft);
  font-size:7px;
  font-weight:950;
  letter-spacing:.6px;
}
.d2n-category-chip>strong{
  min-width:0;
  color:#e9e3dc;
  font-size:9px;
  line-height:1.22;
}
.d2n-category-chip>i{
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.07);
  border-radius:50%;
  color:#6f6864;
  font-size:7px;
  font-style:normal;
}
.d2n-category-chip.has-stories{
  border-color:rgba(230,37,114,.22);
  background:
    radial-gradient(circle at 0 50%,rgba(230,37,114,.10),transparent 46%),
    #0c0b0d;
}
.d2n-category-chip.is-empty{
  opacity:.50;
}

/* ---------- CATEGORY FEED ---------- */
.d2n-category-feed{
  position:relative;
  padding-top:4px;
}
.d2n-category-section{
  width:calc(100% - 16px);
  margin-inline:auto;
  padding-block:31px 34px;
  border-bottom:1px solid rgba(255,255,255,.06);
  scroll-margin-top:112px;
}
.d2n-category-section__head{
  margin-bottom:12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:9px;
}
.d2n-category-section__identity{
  min-width:0;
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.d2n-category-section__number{
  flex:0 0 auto;
  color:transparent;
  -webkit-text-stroke:1px rgba(230,37,114,.68);
  font-family:Georgia,"Times New Roman",serif;
  font-size:29px;
  font-weight:700;
  line-height:.84;
  letter-spacing:-1.3px;
  font-style:italic;
}
.d2n-category-section__identity .eyebrow{
  color:#b49a5d;
  font-size:6px;
  letter-spacing:1px;
}
.d2n-category-section__head h2{
  margin:4px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  color:#f5f0e9;
  font-size:24px;
  font-weight:700;
  line-height:1;
  letter-spacing:-.6px;
  text-wrap:balance;
}
.d2n-category-section__more{
  flex:0 0 auto;
  min-height:28px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.012);
  color:#aaa39c;
  text-decoration:none;
  font-size:5px;
  font-weight:900;
  letter-spacing:.55px;
  text-transform:uppercase;
}
.d2n-category-section__more span{
  color:var(--pink-soft);
}

/* One story = cinematic. 2+ stories = stacked magazine rail. */
.d2n-category-stories,
.d2n-category-stories.count-1,
.d2n-category-stories.count-2,
.d2n-category-stories.count-3{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.d2n-category-story{
  min-height:0;
  display:grid;
  grid-template-columns:40% minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:15px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.018),transparent),
    #0d0c0e;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}
.d2n-category-story::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 -1px 0 rgba(230,37,114,.10);
}
.d2n-category-story__media{
  position:relative;
  min-height:148px;
  overflow:hidden;
}
.d2n-category-story__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,transparent 62%,rgba(13,12,14,.25)),
    linear-gradient(180deg,transparent 72%,rgba(0,0,0,.23));
}
.d2n-category-story__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.d2n-category-story__index{
  position:absolute;
  z-index:3;
  top:7px;
  inset-inline-end:7px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  background:rgba(7,7,8,.48);
  color:#e4ddd6;
  font-size:6px;
  font-weight:950;
  backdrop-filter:blur(7px);
}
.d2n-category-story__body{
  position:relative;
  min-height:148px;
  padding:12px 11px 10px;
  display:flex;
  flex-direction:column;
}
.d2n-category-story__category{
  color:var(--pink-soft);
  font-size:6px;
  font-weight:950;
  letter-spacing:.65px;
  text-transform:uppercase;
}
.d2n-category-story h3,
.d2n-category-story.is-lead h3{
  margin:6px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  color:#fffaf4;
  font-size:16px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.25px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.d2n-category-story p{
  margin:6px 0 0;
  color:#a7a09a;
  font-size:7px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.d2n-category-story__foot{
  margin-top:auto;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#7f7974;
  font-size:5px;
  font-weight:900;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.d2n-category-story__foot b{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border:1px solid rgba(217,185,110,.14);
  border-radius:50%;
  color:var(--gold-soft);
  font-size:7px;
}

/* Single-item category gets a full-width visual card. */
.d2n-category-stories.count-1 .d2n-category-story{
  min-height:245px;
  display:block;
  position:relative;
}
.d2n-category-stories.count-1 .d2n-category-story__media{
  position:absolute;
  inset:0;
  min-height:0;
}
.d2n-category-stories.count-1 .d2n-category-story__media::after{
  background:
    linear-gradient(180deg,rgba(0,0,0,.03) 22%,rgba(0,0,0,.24) 55%,rgba(5,5,6,.96) 100%),
    linear-gradient(90deg,rgba(73,0,30,.09),transparent 62%);
}
.d2n-category-stories.count-1 .d2n-category-story__body{
  position:absolute;
  z-index:3;
  inset:auto 0 0;
  min-height:0;
  padding:20px 15px 14px;
}
.d2n-category-stories.count-1 .d2n-category-story h3{
  max-width:94%;
  font-size:25px;
  line-height:1.04;
  letter-spacing:-.65px;
}
.d2n-category-stories.count-1 .d2n-category-story p{
  max-width:94%;
  font-size:8px;
}
.d2n-category-stories.count-1 .d2n-category-story__foot{
  margin-top:10px;
}

/* ---------- PLACES BLOCK ---------- */
.home-section--places{
  width:calc(100% - 16px);
  margin-inline:auto;
  padding-block:34px 55px;
}
.section-head{
  margin-bottom:14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.section-head h2{
  margin:6px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  color:#f4efe8;
  font-size:28px;
  font-weight:700;
  line-height:1;
  letter-spacing:-.65px;
}
.section-head p{
  max-width:92%;
  margin:6px 0 0;
  color:#918b84;
  font-size:10px;
  line-height:1.45;
}
.section-head__aside{
  display:flex;
  align-items:center;
  gap:7px;
}
.section-count{
  color:#5e5853;
  font-size:7px;
  font-weight:950;
}
.section-link{
  color:#d1c5ad;
  text-decoration:none;
  font-size:7px;
  font-weight:900;
}
.section-link span{
  margin-inline-start:4px;
  color:var(--pink-soft);
}
.home-places-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.home-place-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:14px;
  background:#0d0d0e;
  text-decoration:none;
}
.home-place-card .place-card__media{
  position:relative;
  aspect-ratio:1.1/1;
  overflow:hidden;
}
.home-place-card .place-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 62%,rgba(0,0,0,.35));
}
.home-place-card .place-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.home-place-card .place-card__body{
  padding:10px;
}
.place-category{
  display:block;
  color:var(--pink-soft);
  font-size:6px;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.home-place-card h3{
  margin:6px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.home-place-card p{
  margin:5px 0 0;
  color:#918b85;
  font-size:7px;
  line-height:1.38;
}
.home-place-card__foot{
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:space-between;
}
.place-price{
  color:#d8c9aa;
  font-size:7px;
}
.home-place-card__foot b{
  color:var(--gold-soft);
}

/* ---------- script compensation ---------- */
html[lang^="zh"] .home-hero__copy h1,
html[lang="ja"] .home-hero__copy h1,
html[lang="ko"] .home-hero__copy h1{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic","Noto Sans",sans-serif;
  font-size:43px;
  line-height:1.03;
  letter-spacing:-1.5px;
}
html[lang="th"] .home-hero__copy h1,
html[lang="hi"] .home-hero__copy h1,
html[lang="ar"] .home-hero__copy h1{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",sans-serif;
  font-size:41px;
  line-height:1.06;
  letter-spacing:-1.2px;
}
html[lang^="zh"] .featured-story h2,
html[lang="ja"] .featured-story h2,
html[lang="ko"] .featured-story h2,
html[lang="th"] .featured-story h2,
html[lang="hi"] .featured-story h2,
html[lang="ar"] .featured-story h2,
html[lang^="zh"] .d2n-category-section__head h2,
html[lang="ja"] .d2n-category-section__head h2,
html[lang="ko"] .d2n-category-section__head h2,
html[lang="th"] .d2n-category-section__head h2,
html[lang="hi"] .d2n-category-section__head h2,
html[lang="ar"] .d2n-category-section__head h2,
html[lang^="zh"] .d2n-category-story h3,
html[lang="ja"] .d2n-category-story h3,
html[lang="ko"] .d2n-category-story h3,
html[lang="th"] .d2n-category-story h3,
html[lang="hi"] .d2n-category-story h3,
html[lang="ar"] .d2n-category-story h3{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",sans-serif;
}

/* ---------- narrow phones ---------- */
@media(max-width:430px){
  .home-hero{
    width:calc(100% - 10px);
  }
  .home-hero__copy{
    padding-inline:16px;
  }
  .home-hero__copy h1{
    font-size:46px;
  }
  .featured-story h2{
    font-size:26px;
  }
  .d2n-category-chip{
    flex-basis:137px;
  }
  .d2n-category-section{
    width:calc(100% - 10px);
  }
  .d2n-category-section__head h2{
    font-size:22px;
  }
  .d2n-category-story{
    grid-template-columns:39% minmax(0,1fr);
  }
  .d2n-category-story h3{
    font-size:15px;
  }
  .home-section--places{
    width:calc(100% - 10px);
  }
}
