.hp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: "Besley", serif;
  --brand-main: #1d3e45;
  --brand-secondary: #ffea9b;
  --text-dark: #333333;
  --card-radius: 12px;
  color: var(--text-dark);
}
.cat-card-title,
.hp-container h1,
.hp-container h2,
.hp-container h3,
.hp-container h4,
.random-title,
.search-input,
.sheet-header {
  font-family: "Noto Serif", serif !important;
}
.continue-reading-card {
  background: linear-gradient(135deg, #1d3e45 0%, #2a5a65 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(29, 62, 69, 0.15);
  position: relative;
  overflow: hidden;
}
.continue-cover {
  width: 54px;
  height: 68px;
  aspect-ratio: 792 / 1008;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.continue-details {
  flex: 1;
  min-width: 0;
}
.continue-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-main);
  background: var(--brand-secondary);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
}
.continue-title {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Noto Serif", serif;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.continue-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.continue-progress-fill {
  height: 100%;
  background: var(--brand-secondary);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.continue-btn {
  background: #fff;
  color: var(--brand-main);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.dismiss-continue {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
}
.search-wrapper {
  position: relative;
  margin-bottom: 28px;
}
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon-btn {
  position: absolute;
  left: 20px;
  font-size: 20px;
  color: var(--brand-main);
  pointer-events: none;
  z-index: 2;
}
.search-input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  border-radius: 40px;
  border: 2.5px solid var(--brand-main);
  font-size: 17px;
  font-family: "Noto Serif", serif;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(29, 62, 69, 0.08);
}
.search-input::placeholder {
  color: #64748b;
  font-style: italic;
  opacity: 0.85;
}
.search-input:focus,
.search-input:hover {
  border-color: var(--brand-main);
  box-shadow: 0 10px 28px rgba(29, 62, 69, 0.15);
  transform: translateY(-1px);
}
/* Complete Override for theme reset.css */
div.hp-container
  .search-wrapper
  div.search-input-box
  input[type="search"]#hp-search-input,
div.hp-container .search-wrapper input[type="search"].search-input {
  display: block !important;
  width: 100% !important;
  height: 56px !important; /* Explicit height forces consistency across themes */
  padding: 14px 24px 14px 54px !important; /* Extra left padding so text never touches search icon */
  border-radius: 40px !important; /* Pill rounded ends */
  border: 2.5px solid #1d3e45 !important; /* Prominent main brand border */
  background-color: #ffffff !important;
  color: #333333 !important;
  font-size: 17px !important;
  font-family: "Noto Serif", serif !important;
  line-height: 1.2 !important;
  box-shadow: 0 6px 20px rgba(29, 62, 69, 0.08) !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
/* Fix Focus Outline & Standardize Search Sheet Input */
.search-bar-inner input#sheet-search-input,
.search-bar-inner input#sheet-search-input:focus,
.search-bar-inner input#sheet-search-input:active,
.hp-container input#hp-search-input:focus,
.hp-container input#hp-search-input:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Lottie Animation Containers */
.search-state-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  min-height: 280px;
}

.search-lottie-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
}

.search-state-title {
  font-family: "Noto Serif", serif !important;
  font-size: 1rem;
  font-weight: 700;
  color: #1d3e45;
  margin-bottom: 4px;
}

.search-state-sub {
  font-family: "Besley", serif;
  font-size: 0.85rem;
  color: #64748b;
}
/* Lottie Player Render Fix */
lottie-player {
  display: block !important;
  margin: 0 auto 12px auto !important;
}

/* Placeholder Styling Override */
div.hp-container
  .search-wrapper
  input[type="search"]#hp-search-input::placeholder {
  color: #64748b !important;
  font-style: italic !important;
  opacity: 0.85 !important;
  font-family: "Noto Serif", serif !important;
  font-size: 16px !important;
}

/* Focus and Hover State Overrides */
div.hp-container .search-wrapper input[type="search"]#hp-search-input:focus,
div.hp-container .search-wrapper input[type="search"]#hp-search-input:hover {
  border-color: #1d3e45 !important;
  box-shadow: 0 10px 28px rgba(29, 62, 69, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* Position Search Icon Above Reset Layer */
div.hp-container .search-wrapper .search-icon-btn {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 20px !important;
  color: #1d3e45 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}
.chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.chips-scroll::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 20px;
  background: #edf2f7;
  border: none;
  font-size: 14px;
  font-family: "Besley", serif;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background 0.2s,
    color 0.2s;
}
.chip-btn.active {
  background: var(--brand-main);
  color: #fff;
}
.chip-btn.btn-random {
  background: var(--brand-secondary);
  color: var(--brand-main);
  font-weight: 700;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
  transition: opacity 0.2s ease;
}
@media (min-width: 640px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
  }
}
@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
  }
}
.story-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.story-card a {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.story-card-img-wrapper {
  width: 100%;
  aspect-ratio: 792 / 1008;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: #f1f5f9;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.story-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.story-card:hover .story-card-img-wrapper img {
  transform: scale(1.03);
}
.story-card-title {
  font-size: 0.95rem;
  margin: 0 0 4px;
  line-height: 1.35;
  font-family: "Noto Serif", serif;
  font-weight: 600;
}
.story-card-time {
  font-size: 0.75rem;
  color: #64748b;
  font-family: "Besley", serif;
  margin-top: auto;
  font-weight: 500;
}
/* Google AdSense Grid Slot Sizing */
.ad-card-slot {
  grid-column: 1 / -1 !important; /* Spans full width of the grid */
  width: 100% !important;
  min-height: 120px !important;
  max-height: 280px !important;
  margin: 16px 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #fafafa !important;
}

.ad-card-slot ins.adsbygoogle {
  width: 100% !important;
  min-height: 100px !important;
}
.cat-explore-section {
  margin-top: 48px;
  margin-bottom: 32px;
}
.cat-explore-heading {
  font-size: 1.35rem;
  color: var(--brand-main);
  text-align: center;
  margin-bottom: 24px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}
.cat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 12px;
  text-decoration: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-main);
  box-shadow: 0 6px 16px rgba(29, 62, 69, 0.08);
  background: #fff;
}
.cat-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}
.cat-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-main);
  font-family: "Noto Serif", serif;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.cat-card-count {
  font-size: 0.75rem;
  color: #64748b;
  font-family: "Besley", serif;
}
.hp-seo-content {
  margin-top: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.hp-seo-content h2 {
  font-size: 1.1rem;
  color: var(--brand-main);
  margin: 0 0 8px 0;
}
.hp-seo-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}
/* Ensure Search Drawer Sits Above Google Auto Ads & Sticky Anchors */
.search-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important; /* Maximum CSS z-index value to beat Google AdSense overlays */
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(6px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  font-family: "Besley", serif;
}

.search-sheet.active {
  opacity: 1;
  visibility: visible;
}
.sheet-content {
  width: 100%;
  height: 92vh;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}
.search-sheet.active .sheet-content {
  transform: translateY(0);
}
.sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.search-bar-inner {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 30px;
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
}
.search-bar-inner input {
  border: none;
  background: transparent;
  width: 100%;
  padding-left: 8px;
  font-size: 16px;
  font-family: "Besley", serif;
  outline: none;
}
.close-btn {
  background: none;
  border: none;
  color: var(--brand-main);
  font-weight: 700;
  font-size: 15px;
  font-family: "Besley", serif;
  cursor: pointer;
}
.recent-container {
  padding: 12px 20px 8px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}
.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}
.clear-recent-text {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
  font-family: "Besley", serif;
  cursor: pointer;
  padding: 0;
}
.recent-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.recent-chips-scroll::-webkit-scrollbar {
  display: none;
}
.recent-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.recent-chip .remove-chip {
  font-size: 14px;
  color: #94a3b8;
}
/* Search Sheet Grid & Card Overhaul */
.sheet-body {
  padding: 24px 20px 40px !important;
}

.search-status-text {
  font-family: "Besley", serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-bottom: 20px !important;
}

/* Larger, Responsive Search Results Grid */
.search-results-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px 16px !important;
}

@media (min-width: 640px) {
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 18px !important;
  }
}

@media (min-width: 1024px) {
  .search-results-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 28px 20px !important;
  }
}

/* Card Container & Link Reset */
.search-card-item {
  text-decoration: none !important;
  color: #333333 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}

.search-card-item * {
  text-decoration: none !important; /* Removes all nested link underlines */
}

.search-card-item:hover {
  transform: translateY(-4px) !important;
}

/* Strict 792x1008 Aspect Ratio Cover */
.search-card-img-wrapper {
  width: 100% !important;
  aspect-ratio: 792 / 1008 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-color: #f1f5f9 !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.search-card-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Card Meta & Badges */
.search-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 6px !important;
}

.search-card-badge {
  font-family: "Besley", serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #1d3e45 !important;
  background: #ffea9b !important;
  padding: 3px 8px !important;
  border-radius: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
}

.search-card-time {
  font-family: "Besley", serif !important;
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

/* Clean Serif Title */
.search-card-title {
  font-family: "Noto Serif", serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1d3e45 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}
.random-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  font-family: "Besley", serif;
}
.random-modal.active {
  opacity: 1;
  visibility: visible;
}
.random-modal-card {
  background: #fff;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.random-modal.active .random-modal-card {
  transform: scale(1);
}
.close-modal-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
}
.random-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-main);
  background: var(--brand-secondary);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.random-cover-img {
  width: 120px;
  height: 152px;
  aspect-ratio: 792/1008;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  margin: 0 auto 12px;
}
.random-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-main);
  margin-bottom: 6px;
}
.random-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}
.btn-read-now {
  display: block;
  background: var(--brand-main);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 30px;
  margin-top: 10px;
}

/* Hero Welcoming Banner */
.hp-hero-header {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 0 12px;
}

.hp-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-main);
  background: var(--brand-secondary);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-family: "Besley", serif;
}

.hp-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-main);
  font-family: "Noto Serif", serif !important;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hp-hero-title {
    font-size: 2.5rem;
  }
}

.hp-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 680px;
  margin: 0 auto;
  font-family: "Besley", serif;
}

.hp-hero-desc a {
  color: var(--brand-main);
  text-decoration: underline;
  font-weight: 600;
}

.hp-hero-desc strong {
  color: var(--text-dark);
  font-weight: 700;
}
/* Fix Body Lock Without Killing Drawer Scrolling */
body.search-sheet-open {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Enable Full Internal Scrolling inside Drawer */
.search-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(6px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.sheet-content {
  width: 100% !important;
  max-height: 90vh !important; /* Prevents overflow past top viewport */
  height: 90vh !important;
  background: #ffffff !important;
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* Keeps header fixed, body scrollable */
}

/* Explicit Scroll Container */
.sheet-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important; /* Smooth momentum scroll on iOS */
  padding: 20px 20px 60px !important;
  touch-action: pan-y !important; /* Crucial: Allows vertical touch gestures */
  overscroll-behavior: contain !important;
}

/* Lightweight, Hardware-Accelerated Search Drawer */
.search-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(
    0,
    0,
    0,
    0.65
  ) !important; /* Replaces GPU-heavy backdrop-filter blur */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  will-change: opacity, transform;
}

.sheet-content {
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: translateZ(0); /* Forces GPU hardware acceleration layer */
}
/* Generous Top Bar Header */
.sheet-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 18px 20px 14px !important; /* Extra vertical space at the top */
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
  min-height: 56px !important; /* Matches height of bottom search input bar */
}

/* Central Sheet Drag Indicator */
.sheet-drag-handle {
  width: 42px !important;
  height: 5px !important;
  background: #cbd5e1 !important;
  border-radius: 3px !important;
}

/* Prominent Close Button (Matches "Cari" button dimensions) */
.sheet-close-x {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  width: 38px !important; /* Matches height of search action button */
  height: 38px !important; /* Crisp 38x38px circular touch target */
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1d3e45 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition:
    background 0.2s ease,
    transform 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}
.sheet-close-x:active {
  background: #e2e8f0 !important;
  transform: translateY(-50%) scale(0.95) !important;
}

/* Filled Action Button ("Cari") */
.search-action-btn {
  background: #1d3e45 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 10px 18px !important;
  font-family: "Besley", serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: opacity 0.2s ease !important;
}

.search-action-btn:active {
  opacity: 0.85 !important;
}

/* Fixed Mobile Bottom Sheet Layout */
@media (max-width: 639px) {
  .search-sheet {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .sheet-content {
    width: 100% !important;
    max-height: 100dvh !important;
    background: #ffffff !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Top Drag & Close Bar - Fixed Top */
  .sheet-top-bar {
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  /* Results / Lottie Container - Flexible Middle Area */
  .sheet-body {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important; /* Prevents overflow pushing elements offscreen */
    overflow-y: auto !important;
    padding: 12px 16px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Recent Chips Bar */
  .recent-container {
    order: 3 !important;
    flex-shrink: 0 !important;
  }

  /* Input Bar - Fixed Bottom */
  .sheet-header {
    order: 4 !important;
    flex-shrink: 0 !important;
  }

  /* Compact Lottie Layout When Keyboard Reduces Height */
  .search-state-wrapper {
    padding: 10px 12px !important;
    min-height: auto !important;
  }

  lottie-player {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 6px auto !important;
  }

  .search-state-title {
    font-size: 0.88rem !important;
  }

  .search-state-sub {
    font-size: 0.75rem !important;
  }
}
