/* Base Layout */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

/* Header */
#top {
  position: relative;
  height: 80px;
  line-height: 80px;
  box-shadow: 0px 0px 1px #777;
}

#cozo_div {
  position: absolute;
  width: 200px;
  text-align: center;
}

#cozo_div img {
  margin: 30px 0 0 0;
  width: 80px;
}

#nav_right {
  position: absolute;
  right: 60px;
  top: 5px;
  font-weight: bold;
  font-size: 20px;
}

#nav_right a {
  color: #970cf1;
  text-decoration: none;
  font-size: 22px;
}

#nav_right a:hover {
  text-decoration: underline;
}

/* Main Content Container */
.container {
  max-width: 960px; 
  margin: 120px auto 40px auto;
  background: white;
  padding: 24px 28px; 
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}


h2 {
  margin-bottom: 30px;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background-color: #eee;
}

footer a {
  color: #3E2C41;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Delete Button */
#deleteUserBtn {
  padding: 8px 16px;
  background: #ffdddd;
  border: 1px solid #d00;
  color: #a00;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 40px;
}

/* Media Overlay Container Only (inner layout is JS-styled) */
#mediaOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

#mediaOverlayBackdrop {
  height: 95vh;
  display: flex;
  background: transparent;
  align-items: center;
  justify-content: center;
}

/* Profile Overlay */
#profileOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 20px;
}

#profileOverlayContent {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 960px;
  width: 100%;
  margin-top: 80px;
}


.storyCard {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  aspect-ratio: 9 / 16;
}

.storyCard img,
.storyCard video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storyQuery {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overlay Title (optional) */
#overlayTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: white;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}



.storyGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}


.counter-tab {
  cursor: pointer;
  font-weight: 500;
  padding: 2px 0;
  line-height: 1.4;
}

.counter-tab.active-tab {
  font-weight: 700;
  color: #000;
}



/* Follow List Overlay */
#followListOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2100;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 20px;
}

#followListOverlayContent {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  margin-top: 80px;
}

#followListDataContainer ul li {
  border-bottom: 1px solid #eee;
}
