.ccm-storie{
  --ccm-dark:#1e3c3c;
  --ccm-light:#d1ffbb;
  --ccm-accent:#ff6e83;
  --ccm-white:#ffffff;
  --ccm-black:#000000;

  color: var(--ccm-black);
}

/* HERO (bigger + responsive) */
.ccm-storie__hero{
  min-height: 560px;
  min-height: clamp(480px, 70vh, 760px);
  background-color: #c9f6b5; /* fallback */
  background-size: cover;
  background-position: center;
  position: relative;
}

.ccm-storie__heroOverlay{
  min-height: inherit;
  display:flex;
  align-items:flex-end;
  padding: 64px 20px;
  background: linear-gradient( 180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.30) 55%, rgba(255,255,255,0.30) 100% )
}

.ccm-storie__title{
  margin:0;
  max-width: 980px;
  font-weight: 1000;
  line-height: 1.03;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--ccm-dark);
  padding-bottom: 10px; /* “good margin” at bottom */
}

/* LAYOUT */
.ccm-storie__wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.ccm-storie__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

/* PROSE */
.ccm-storie__prose{
  font-size: 14px;
  line-height: 1.75;
}

.ccm-storie__prose p{
  margin: 0 0 16px;
}

/* Sidebar */
.ccm-storie__sidebarBox{
  background: var(--ccm-dark);
  border-radius: 18px;
  padding: 16px;
  color: var(--ccm-white);
}

.ccm-storie__sidebarTitle{
  font-weight: 1000;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ccm-light);
  margin: 6px 0 14px;
}

.ccm-storie__sidebarList{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.ccm-storie__sidebarItem{
  display:grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration:none;
  color: var(--ccm-white);
}

.ccm-storie__sidebarItem:hover{
  background: rgba(255,255,255,0.10);
}

.ccm-storie__sidebarThumb{
  width:44px;
  height:44px;
  border-radius:10px;
  background: rgba(255,255,255,0.12);
  overflow:hidden;
}

.ccm-storie__sidebarThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ccm-storie__sidebarItemTitle{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.ccm-storie__sidebarEmpty{
  opacity: .85;
  font-weight: 800;
  font-size: 13px;
}

/* Share (grey background) */
.ccm-storie__share{
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f0f0; /* CHANGED: grey bg */
  border: 1px solid rgba(0,0,0,0.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ccm-storie__shareLabel{
  font-weight: 900;
  color: var(--ccm-dark);
}

/* Icon buttons */
.ccm-storie__shareBtns{
  display:flex;
  gap: 10px;
}

.ccm-storie__shareIcon{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: var(--ccm-dark);
  color: var(--ccm-white);
  text-decoration:none;
}

.ccm-storie__shareIcon:hover{
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 900px){
  .ccm-storie__grid{
    grid-template-columns: 1fr;
  }
}

/* Add/merge these loader styles into your existing storie-template.css */
.ccm-storie__loader{
  display:none;             /* JS toggles */
  align-items:center;
  justify-content:center;
  padding: 18px 0 4px;
}

.ccm-storie__spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.55);
  animation: ccmSpin .9s linear infinite;
}

@keyframes ccmSpin{
  to { transform: rotate(360deg); }
}