* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f8f8f8; color: #333; }

header {
  background: #fff;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.logo {
  font-weight: bold;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(to right, orange, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-bar {
  flex: 1;
  position: relative;
}

.search-bar svg {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #888;
  fill: none;
}

.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: none;
  border-radius: 30px;
  background: #f1f1f1;
  font-size: 0.95rem;
}

.search-bar input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px red;
}
.news-list {
  padding: 1rem;
}

.news-item {
  display: flex;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
}

.news-thumb-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bookmark-icon {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-icon svg {
  width: 18px;
  height: 18px;
  stroke: #555;
  fill: none;
  cursor: pointer;
}

.news-content {
  padding: 0.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
}

nav.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.3rem;
  border-top: 1px solid #eee;
}

nav.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #666;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

nav.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.breaking-wrapper {
  margin: 0 0 0 1rem;
  overflow: hidden;
  position: relative;
}

.breaking-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  margin: 1rem 0;
  color: #222;
}

.icon-toa {
  width: 24px;
  height: 24px;
  stroke: black;
  fill: none;
  flex-shrink: 0;
}


.breaking-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1rem; /* Jarak antar slide */
  padding: 0 1rem; /* Padding samping */
}

.slide {
  flex: 0 0 90%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
  z-index: 1;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.8rem 0.6rem;
  color: #fff;
  z-index: 2; /* supaya berada di atas overlay */
}

.slide-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #ddd;
}

.slide-date {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.slide-comments {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-comment {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  flex-shrink: 0;
}

.count {
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}




.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
}



.dots {
  text-align: center;
  margin-top: 0.5rem;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}

.dots span.active {
  background: red;
}

.news-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

.news-comments {
  display: flex;
  align-items: center;
  gap: 4px;
}
    
.tab-bar {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #eee;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.tab-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  padding: 6px 10px;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  position: relative;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  background: linear-gradient(to right, orange, red);
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

.news-detail-page {
  font-family: sans-serif;
}

.comment-input-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-left: 3rem; /* beri ruang untuk ikon */
  z-index: 999;
  background: #fff;
  border-top: 1px solid #eee;
}

.comment-count-float {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  background: orange;
  color: #fff;
  padding: 6px 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.icon-comment {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.comment-input-bar {
  display: flex;
  padding: 0.5rem 1rem 0.7rem;
  gap: 0.5rem;
}

.comment-input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 1rem;
}

.comment-send {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(to right, orange, red);
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  border-radius: 999px; 
  cursor: pointer;
  transition: background 0.3s ease;
}


.iframe-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.iframe-container iframe {
  width: 100%;
  border: none;
  display: block;
}

.comment-badge-wrapper {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 24px;
  height: 24px;
}

.icon-comment {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.comment-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 999px;
  font-weight: bold;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

.popup-komentar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  height: 60vh;
  z-index: 9999;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  transition: bottom 0.3s ease;
  display: flex;
  flex-direction: column;
}

.popup-komentar.active {
  bottom: 0;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.popup-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.comment-item {
  background: #f8f8f8;
  padding: 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: #f8f8f8;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #555;
}

.comment-meta strong {
  color: #000;
}

.comment-time {
  font-size: 0.75rem;
  color: #888;
}
.close-popup {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.icon-close {
  width: 24px;
  height: 24px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.profile-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem 2rem; /* space for fixed bottom nav */
  text-align: center;
  font-family: sans-serif;
  background: #fff;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid red;
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.profile-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  background: #ddd;
  color: #333;
}

.profile-status.premium {
  background: red;
  color: #fff;
}
.tab-bar {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #fff;
  z-index: 999;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #eee;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.tab-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  padding: 6px 10px;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  position: relative;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  background: linear-gradient(to right, orange, red);
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}
.toast{position:fixed;left:50%;bottom:-80px;transform:translateX(-50%);background:#2187e7;color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,0.18);opacity:0;transition:all .4s ease;z-index:1200;font-size:0.95rem;} .toast.show{bottom:30px;opacity:1;}

