body {
  font-family: "Outfit", sans-serif;
}
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.video-modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.2);
}

/* Recipe buttons container with new order */
.recipe-buttons-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(5px);
  border-top: 1px solid #e5e7eb;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 -2px 10px rgb(0 0 0 / 0.1);
}

/* Recipe toggle button (FIRST) */
.recipe-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E6D41C; /* Original yellow color */
  color: black;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(230, 212, 28, 0.3);
  position: static; /* Override original absolute positioning */
  border-top: none;
}

.recipe-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 212, 28, 0.4);
}

.recipe-toggle span {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.recipe-toggle.open i {
  transform: rotate(0);
}

.recipe-toggle.open {
  position: static;
  z-index: 6;
}

/* View Full Page button (MIDDLE) */
.view-full-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4F46E5; /* Indigo color */
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.view-full-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.view-full-page span {
  display: flex;
  align-items: center;
}

/* Animation for the view-full-page button */
.view-full-page {
  position: relative;
  overflow: hidden;
}

.view-full-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.view-full-page:active::after {
  transform: translateX(0);
}

/* Close modal button (LAST) - simplified design */
.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EF4444; /* Red color */
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.modal-close-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn i {
  font-size: 1.1rem;
}

/* Hide the old modal-close button */
.modal-close {
  display: none;
}

.tiktok-embed-container {
  position: relative;
  padding-bottom: 177.77%;
  height: 0;
  overflow: hidden;
  flex: 1;
  transition: all 0.3s ease;
  margin: 0 auto;
  width: 100%;
  border-radius: 12px;
}
@media (min-width: 1024px) {
  .video-modal .modal-content {
    max-width: 450px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  .tiktok-embed-container {
    padding-bottom: 150%;
    max-width: 380px;
    height: auto;
    flex: 1;
  }
  .video-modal {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-content {
    min-height: 500px;
  }
  .tiktok-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .local-video-container {
    max-width: 380px;
    margin: 0 auto;
  }
  .local-video {
    width: 100%;
    height: auto;
    max-height: 65vh;
  }
  
  /* Recipe buttons container - desktop layout */
  .recipe-buttons-container {
    justify-content: flex-end;
    padding-right: 24px;
  }
  
  /* Hide recipe toggle on desktop */
  .recipe-toggle {
    display: none !important; /* Using !important to match existing CSS */
  }
}
.recipe-details {
  position: absolute;
  bottom: 60px; /* Updated to account for buttons container */
  left: 0;
  right: 0;
  top: auto;
  max-height: 70vh;
  height: auto;
  background: #fff;
  z-index: 4;
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  display: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.recipe-details::-webkit-scrollbar {
  display: none;
}
.recipe-details.visible {
  transform: translateY(0);
  opacity: 1;
  display: block;
  top: 0;
  bottom: 60px; /* Updated to account for buttons container */
  max-height: none;
  height: auto;
}
@media (max-width: 1024px) {
  .video-modal.active {
    align-items: flex-start;
    padding: 20px 10px 100px 10px;
  }
  .modal-content {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .video-modal .modal-content {
    margin-top: 0;
    max-height: 100vh;
    position: relative;
    top: 0;
  }
  .video-modal::before {
    content: "";
    display: block;
    height: 0;
  }
  .tiktok-embed-container {
    margin-bottom: 70px; /* Updated to account for buttons container */
    height: auto;
    flex: 1;
    overflow: hidden;
  }
  
  /* Responsive adjustments for buttons */
  .recipe-buttons-container {
    gap: 10px;
    /*padding: 10px;*/
  }
  
  .recipe-toggle, 
  .view-full-page {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  /* Make the buttons more noticeable with animation on mobile */
  .view-full-page {
    animation: pulse-button 2s infinite;
  }
  
  .recipe-details {
    bottom: 70px;
    max-height: 50vh;
    border-radius: 12px 12px 0 0;
  }
  .recipe-details.visible {
    top: 0;
    z-index: 5;
  }
}
body.dark-theme .modal-content {
  background: #fff;
}
body.dark-theme .tiktok-embed-container {
  background-color: #fff;
  box-sizing: border-box;
}
body.dark-theme .recipe-buttons-container {
  background: rgb(255 255 255 / 0.9);
  border-top: 1px solid #e5e7eb;
}
body.dark-theme .recipe-toggle {
  background: #E6D41C;
  color: black;
}
body.dark-theme .view-full-page {
  background: #4F46E5;
  color: white;
}
body.dark-theme .modal-close-btn {
  background: #EF4444;
  color: white;
}
body.dark-theme .recipe-details {
  background: #374151;
  color: #f3f4f6;
}
body.dark-theme .recipe-details h3 {
  color: #f3f4f6;
}
body.dark-theme .recipe-section h4 {
  color: #d1d5db;
}
.recipe-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}
.recipe-section {
  margin-bottom: 16px;
}
.recipe-section h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  color: #4b5563;
}
.recipe-section h4 i {
  margin-right: 6px;
  color: #e6d41c;
}
.ingredients-list,
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredients-list li {
  padding: 4px 0;
  display: flex;
  align-items: center;
}
.ingredients-list li:before {
  content: "•";
  color: #e6d41c;
  font-weight: 700;
  margin-right: 8px;
}
.steps-list li {
  padding: 6px 0;
  margin-bottom: 6px;
  counter-increment: step-counter;
  display: flex;
}
.steps-list li:before {
  content: counter(step-counter);
  background-color: #e6d41c;
  color: #111827;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.nutrition-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.nutrition-item {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  flex-grow: 1;
}
.nutrition-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111827;
}
.nutrition-label {
  font-size: 0.8rem;
  color: #6b7280;
}
.dark-theme .nutrition-item {
  background: #4b5563;
}
.dark-theme .nutrition-value {
  color: #f3f4f6;
}
.dark-theme .nutrition-label {
  color: #d1d5db;
}
.recipe-not-available {
  padding: 16px;
  text-align: center;
  color: #6b7280;
}
.dark-theme .recipe-not-available {
  color: #9ca3af;
}
.custom-select-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 16px;
  padding-right: 36px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.custom-select:focus {
  outline: none;
  border-color: #e6d41c;
  box-shadow: 0 0 0 3px rgb(230 212 28 / 0.2);
}
.custom-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  transform-origin: center center;
}
body.dark-theme .custom-select {
  background-color: #2a3441;
  border-color: #4b5563;
  color: #e5e7eb;
}
body.dark-theme .custom-select:focus {
  border-color: #e6d41c;
  box-shadow: 0 0 0 3px rgb(230 212 28 / 0.3);
}
body.dark-theme .custom-select-icon {
  color: #9ca3af;
}
.author-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}
.author-dropdown-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.author-dropdown-item img,
.author-dropdown-selected img,
.recipe-thumbnail .absolute img {
  border: none !important;
  box-shadow: none;
}
.author-dropdown-item img,
.recipe-thumbnail .absolute img {
  border: 2px solid #e6d41c !important;
}
.author-dropdown-selected img {
  border: 2px solid #e6d41c !important;
}
.author-dropdown-selected:hover {
  border-color: #d1d5db;
}
.author-dropdown-selected:focus {
  outline: none;
  border-color: #e6d41c;
  box-shadow: 0 0 0 3px rgb(230 212 28 / 0.2);
}
.author-dropdown-selected img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6d41c;
}
.author-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  display: none;
}
.author-dropdown-list.show {
  display: block;
  animation: fadeIn 0.2s ease-out;
}
.author-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.author-dropdown-item:hover {
  background-color: #f3f4f6;
}
.author-dropdown-item.selected {
  background-color: rgb(230 212 28 / 0.1);
}
.author-dropdown-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e6d41c;
}
.author-dropdown-icon {
  margin-left: auto;
  color: #6b7280;
}
@keyframes author-select {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(230 212 28 / 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 10px 3px rgb(230 212 28 / 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 #fff0;
  }
}
.author-photo-selected {
  animation: author-select 0.6s ease-out;
}
.author-dropdown-item:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
  border: 2px solid #e6d41c;
}
.author-dropdown-selected img {
  transition: all 0.3s ease;
}
.recipe-thumbnail .absolute.top-3.left-3 img {
  border: 2px solid #e6d41c;
  box-shadow: 0 0 6px rgb(230 212 28 / 0.5);
}
body.dark-theme .author-dropdown-item img,
body.dark-theme .author-dropdown-selected img,
body.dark-theme .recipe-thumbnail .absolute.top-3.left-3 img {
  border-color: #e6d41c;
}
body.dark-theme .author-dropdown-selected {
  background-color: #2a3441;
  border-color: #4b5563;
  color: #e5e7eb;
}
body.dark-theme .author-dropdown-list {
  background-color: #2a3441;
  border-color: #4b5563;
}
body.dark-theme .author-dropdown-item:hover {
  background-color: #374151;
}
body.dark-theme .author-dropdown-item.selected {
  background-color: rgb(230 212 28 / 0.15);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .author-dropdown-selected {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .author-dropdown-item {
    padding: 12px 16px;
  }
}
@media (max-width: 640px) {
  .custom-select {
    font-size: 0.9rem;
    padding: 12px 14px;
    padding-right: 34px;
  }
}
.sticky-search {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
  z-index: 1000;
  width: 90%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(229 231 235 / 0.8);
  transition: opacity 0.3s, visibility 0.3s;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.recipe-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.05);
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgb(0 0 0 / 0.1);
}
.recipe-thumbnail {
  position: relative;
  padding-top: 56.25%;
  background-color: #e6d41c;
  overflow: hidden;
}
.recipe-thumbnail-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-thumbnail-inner {
  transform: scale(1.05);
}
.recipe-info {
  padding: 16px;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(230 212 28 / 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.recipe-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
.recipe-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgb(230 212 28 / 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 50px;
  font-weight: 500;
}
@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes icon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
.recipe-tag .ph-sun {
  display: inline-block;
  animation: icon-spin 8s linear infinite;
}
.recipe-tag .ph-moon-stars {
  display: inline-block;
  animation: icon-pulse 2s ease-in-out infinite;
}
.recipe-tag .ph-ice-cream {
  display: inline-block;
  animation: icon-bounce 1.5s ease infinite;
}
.recipe-tag .ph-coffee {
  display: inline-block;
  animation: icon-pulse 3s ease-in-out infinite;
}
.recipe-tag .ph-star {
  display: inline-block;
  animation: icon-pulse 2s ease infinite;
}
.recipe-tag .ph-fork-knife {
  display: inline-block;
  animation: icon-bounce 2s ease infinite;
}
.recipe-tag i.ph {
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .recipe-tag .ph {
    animation: none !important;
  }
}
mark {
  background-color: #faf5af;
  color: #64560c;
  padding: 0 3px;
  border-radius: 3px;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.search-highlight {
  animation: highlight 2s ease-in-out;
}
@keyframes highlight {
  0%,
  100% {
    background-color: #fff0;
  }
  50% {
    background-color: rgb(250 245 175 / 0.4);
  }
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.install-banner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}
@keyframes pulse-play {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgb(230 212 28 / 0.7);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 #fff0;
  }
}
.play-btn {
  animation: pulse-play 2s infinite;
}
.recipe-card:hover .play-btn {
  animation: none;
  transform: translate(-50%, -50%) scale(1.15);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px 5px rgb(230 212 28 / 0.4);
}
.play-btn i.ph-play {
  transition: transform 0.3s ease;
}
.recipe-card:hover .play-btn i.ph-play {
  transform: scale(1.2);
}
.local-video-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.2);
}
.local-video {
  width: 100%;
  height: auto;
  display: block;
}
.local-video-info {
  padding: 15px;
  background: #fff;
  color: #333;
}
.dark-theme .local-video-info {
  background: #262626;
  color: #eee;
}
.video-author {
  font-weight: 500;
  margin-bottom: 8px;
}
.video-desc {
  font-size: 14px;
  line-height: 1.4;
}
.video-loading {
  text-align: center;
  padding: 40px;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgb(0 0 0 / 0.1);
  border-top-color: #e6d41c;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}
.dark-theme .spinner {
  border: 4px solid rgb(255 255 255 / 0.1);
  border-top-color: #e6d41c;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.video-error-message {
  text-align: center;
  padding: 30px;
}
body.dark-theme .play-btn {
  box-shadow: 0 0 10px 0 rgb(230 212 28 / 0.3);
}
body.dark-theme .recipe-card:hover .play-btn {
  box-shadow: 0 0 20px 5px rgb(230 212 28 / 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .play-btn {
    animation: none !important;
  }
}
body.dark-theme {
  background-color: #1f2937;
  color: #f3f4f6;
}
body.dark-theme .recipe-card {
  background: #374151;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
}
body.dark-theme .recipe-info {
  color: #f3f4f6;
}
body.dark-theme .text-gray-500,
body.dark-theme .text-gray-600,
body.dark-theme .text-gray-700,
body.dark-theme .text-gray-800 {
  color: #d1d5db;
}
body.dark-theme .bg-white,
body.dark-theme .bg-gray-50,
body.dark-theme .bg-gray-100,
body.dark-theme .bg-gray-200 {
  background-color: #374151;
}
body.dark-theme .border-gray-200,
body.dark-theme .border-gray-300 {
  border-color: #4b5563;
}
body.dark-theme .sticky-search {
  background: rgb(31 41 55 / 0.8);
  backdrop-filter: blur(10px);
  border-color: rgb(55 65 81 / 0.8);
}
body.dark-theme #searchInput {
  background-color: #2a3441;
  color: #f3f4f6;
}
body.dark-theme #searchInput::placeholder {
  color: #9ca3af;
}
body.dark-theme .filter-chip {
  background: #374151;
  color: #d1d5db;
}
body.dark-theme .filter-chip:hover {
  background: #4b5563;
}
body.dark-theme .filter-chip.active {
  background: #e6d41c;
  color: #111827;
}
body.dark-theme #scrollToTop {
  background-color: #374151;
  color: #e6d41c;
}
body.dark-theme mark {
  background-color: #64560c;
  color: #fafbc2;
}
body.dark-theme .ad-card {
  background-color: #333f51;
}
body.dark-theme .recipe-details h3 {
  color: #f3f4f6;
}
body.dark-theme .recipe-section h4 {
  color: #d1d5db;
}
body.dark-theme .install-banner {
  background-color: #374151;
  color: #f3f4f6;
}
body.dark-theme .tiktok-embed-container {
  background-color: #fff;
  border-radius: 16px;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  background: #e5e7eb;
}
.filter-chip.active {
  background: #e6d41c;
  color: #111827;
}
#loader {
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.loader-circle {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #e6d41c;
  border-radius: 50%;
}
@keyframes simmer {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(-2px) rotate(-3deg);
  }
  75% {
    transform: translateY(-1px) rotate(3deg);
  }
}
.cooking-animation {
  display: inline-block;
  animation: simmer 2s ease-in-out infinite;
  position: relative;
}
.cooking-animation::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgb(255 255 255 / 0.7);
  border-radius: 50%;
  animation: steam 2.5s ease-out infinite;
}
@keyframes steam {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  20% {
    opacity: 0.8;
    transform: translate(-60%, -8px);
  }
  40% {
    opacity: 0.6;
    transform: translate(-40%, -16px);
  }
  60% {
    opacity: 0.4;
    transform: translate(-55%, -24px);
  }
  80% {
    opacity: 0.2;
    transform: translate(-45%, -32px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px);
  }
}
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 3px rgb(255 255 255 / 0.7);
  }
  50% {
    text-shadow: 0 0 10px rgb(255 255 255 / 0.9), 0 0 15px rgb(230 212 28 / 0.8);
  }
}
.title-animation {
  animation: glow 3s ease-in-out infinite;
}
@keyframes pulse-shine {
  0% {
    box-shadow: 0 0 0 0 rgb(230 212 28 / 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
  }
}
.theme-spin {
  display: inline-block;
  animation: spin 0.7s ease-out;
}
#themeToggle:active {
  animation: pulse-shine 0.4s;
}
@media (max-width: 640px) {
  .filter-chip {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .custom-select-container {
    width: 100%;
    margin-bottom: 4px;
  }
  .sticky-search {
    bottom: 10px;
    width: 95%;
    padding: 8px 12px;
  }
}
@keyframes select-change {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(230 212 28 / 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 8px 2px rgb(230 212 28 / 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 #fff0;
  }
}
.select-animated {
  animation: select-change 0.5s ease-out;
}
#tiktok-container {
  transition: opacity 0.3s ease;
  min-height: 200px;
}
.content-transitioning {
  opacity: 0.3;
}
.content-container {
  position: relative;
  min-height: 300px;
}
.container-refreshing {
  opacity: 0.6;
}
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff0;
  z-index: 1000;
  pointer-events: none;
  transition: background-color 0.4s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
body.dark-theme .page-transition-overlay {
  background-color: #fff0;
}
.page-transition-overlay.active {
  background-color: rgb(255 255 255 / 0.92);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
body.dark-theme .page-transition-overlay.active {
  background-color: rgb(31 41 55 / 0.92);
}
.page-transition-overlay.fade-out {
  animation: overlay-fade-out 0.5s ease-out forwards;
}
@keyframes overlay-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
.transition-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-transition-overlay.active .transition-content {
  opacity: 1;
  transform: translateY(0);
}
#tiktok-container-a,
#tiktok-container-b {
  transition: opacity 0.3s ease-out;
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
}
.container-active {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
}
.container-fade-out {
  animation: fade-out 0.3s ease-out forwards;
}
.container-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#container-wrapper {
  position: relative;
  min-height: 200px;
  transition: height 0.3s ease-out;
}
@keyframes sort-change {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0;
  }
  51% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.sort-change-animation {
  animation: sort-change 0.6s ease-out;
}
@keyframes author-change {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.author-change-animation {
  animation: author-change 0.8s ease-out;
}
.loader-circle {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #e6d41c;
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(230 212 28 / 0.3);
}
body.dark-theme .loader-circle {
  border: 4px solid #374151;
  border-top: 4px solid #e6d41c;
}
@keyframes pulse-loading {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}
.loading-pulse {
  animation: pulse-loading 1.5s ease-in-out infinite;
}
.recipe-card {
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card.filtering-out {
  opacity: 0;
  transform: scale(0.95);
}
.recipe-card.filtering-in {
  animation: card-filter-in 0.4s ease-out forwards;
}
@keyframes card-filter-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.dropdown-change {
  animation: dropdown-pulse 0.5s ease-out;
}
@keyframes dropdown-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(230 212 28 / 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
  }
}
@keyframes icon-pop {
  0% {
    transform: translateY(-50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-50%) scale(1.2) rotate(180deg);
  }
  100% {
    transform: translateY(-50%) scale(1) rotate(360deg);
  }
}
.icon-animated {
  animation: icon-pop 0.5s ease-out;
}
@keyframes chip-highlight {
  0% {
    background-color: #e6d41c;
    color: #111827;
    transform: scale(1);
  }
  50% {
    background-color: #f5f78a;
    color: #111827;
    transform: scale(1.1);
  }
  100% {
    background-color: #e6d41c;
    color: #111827;
    transform: scale(1);
  }
}
.chip-animated {
  animation: chip-highlight 0.7s ease-out;
}
body.dark-theme .chip-animated {
  box-shadow: 0 0 12px 4px rgb(230 212 28 / 0.4);
}
.no-results-message {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.05);
  animation: fadeIn 0.5s ease-out;
}
body.dark-theme .no-results-message {
  background-color: #374151;
}
@media (min-width: 1024px) {
  .video-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .video-modal .modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .tiktok-embed-container {
    padding-bottom: 130%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    position: relative;
    overflow: visible;
  }
  .tiktok-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
  .modal-content {
    padding-bottom: 0;
  }
  .local-video-container {
    max-width: 450px;
    margin: 0 auto;
  }
  .local-video {
    width: 100%;
    height: auto;
    max-height: 75vh;
  }
}
@media (min-width: 1024px) {
  .video-modal .modal-content {
    max-width: 90%;
    width: 1000px;
    display: flex;
    flex-direction: row;
    max-height: 85vh;
    position: relative;
    overflow: hidden;
  }
  .video-modal .tiktok-embed-container {
    flex: 0 0 50%;
    padding-bottom: 0;
    height: 85vh;
    max-height: 85vh;
    position: relative;
    overflow: visible;
    z-index: 5;
  }
  .video-modal .recipe-details {
    position: relative;
    width: 50%;
    flex: 0 0 50%;
    height: 85vh;
    max-height: 85vh;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    opacity: 1;
    transition: width 0.3s ease;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    display: block;
  }
  .video-modal .recipe-details.hidden-panel {
    width: 0;
    flex: 0 0 0%;
    padding: 0;
    overflow: hidden;
    border-left: none;
  }
  .video-modal .recipe-details.hidden-panel + .tiktok-embed-container,
  .video-modal .tiktok-embed-container.expanded {
    width: 100%;
    flex: 0 0 100%;
  }
  .video-modal .tiktok-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    z-index: 1;
  }
  .video-modal .recipe-details {
    display: block !important;
  }
  .video-modal .local-video-container {
    max-width: 100%;
    width: 100%;
    height: 100%;
  }
  .video-modal .local-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }
  body.dark-theme .video-modal .recipe-toggle {
    background: rgb(55 65 81 / 0.95);
    border-left: 1px solid #4b5563;
  }
}
.recipe-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  box-shadow: 0 0 4px rgb(0 0 0 / 0.1);
}
.recipe-content {
  padding-top: 8px;
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 0 12px;
}
.share-buttons .share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}
.share-buttons .share-btn:hover {
  transform: translateY(-2px);
}
.whatsapp-btn {
  background-color: #25d366;
}
.facebook-btn {
  background-color: #1877f2;
}
.twitter-btn {
  background-color: #1da1f2;
}
.telegram-btn {
  background-color: #08c;
}
.copy-btn {
  background-color: #6b7280;
}
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(0 0 0 / 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}
.toast-notification.fade-out {
  opacity: 0;
}
.end-of-content {
  opacity: 0.7;
  margin: 30px 0;
}
.loading-indicator {
  padding: 20px 0;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  grid-column: 1 / -1;
}
.loading-indicator .loader-circle {
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #e6d41c;
  border-radius: 50%;
}
.search-suggestions {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  z-index: 1000;
  background: #fff;
}
.suggestion-item {
  transition: background-color 0.2s;
  padding: 8px 12px;
  cursor: pointer;
}
.suggestion-item.focused {
  background-color: #f3f4f6;
}
.clear-search {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.clear-search:hover {
  background-color: rgb(0 0 0 / 0.05);
}
.match {
  background-color: rgb(230 212 28 / 0.3);
  padding: 0 2px;
  border-radius: 2px;
  transition: background-color 0.3s;
}
.match.search-highlight {
  background-color: rgb(230 212 28 / 0.8);
  box-shadow: 0 0 5px rgb(230 212 28 / 0.5);
}
.no-search-results {
  animation: fadeIn 0.5s ease-out;
  grid-column: 1 / -1;
}
.recipe-scale-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 16px;
  animation: fadeIn 0.3s;
}
.scale-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 4px;
}
.scale-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.scale-value {
  transition: all 0.2s;
  border-radius: 4px;
  text-align: center;
}
.scale-value.scale-changed {
  animation: pulse-scale 0.5s;
}
@keyframes pulse-scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgb(230 212 28 / 0.5);
  }
  100% {
    transform: scale(1);
  }
}
.print-button {
  transition: all 0.2s;
  background: #fff0;
}
.print-button:hover {
  transform: translateY(-1px);
  background-color: rgb(0 0 0 / 0.05);
}
body.dark-theme .search-suggestions {
  background-color: #2a3441;
  border-color: #4b5563;
}
body.dark-theme .suggestion-item.focused {
  background-color: #374151;
}
body.dark-theme .clear-search:hover {
  background-color: rgb(255 255 255 / 0.1);
}
body.dark-theme .match {
  background-color: rgb(230 212 28 / 0.2);
  color: #f3f4f6;
}
body.dark-theme .match.search-highlight {
  background-color: rgb(230 212 28 / 0.7);
  color: #111827;
}
body.dark-theme .scale-btn {
  background-color: #4b5563;
}
body.dark-theme .scale-btn:hover:not(:disabled) {
  background-color: #6b7280;
}
body.dark-theme .scale-value {
  background-color: #e6d41c;
  color: #1f2937;
}
body.dark-theme .print-button:hover {
  background-color: rgb(255 255 255 / 0.1);
}
body.dark-theme .share-buttons span {
  color: #d1d5db;
}
body.dark-theme .loading-indicator .loader-circle {
  border: 3px solid #374151;
  border-top: 3px solid #e6d41c;
}
.view-recipe-btnx {
  box-shadow: 0 4px 10px rgba(230, 212, 28, 0.4);
  animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
  }
}

body.dark-theme .view-recipe-btn {
  box-shadow: 0 4px 15px rgba(230, 212, 28, 0.3);
}