.ai-beat-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ai-search-box {
    position: relative;
}

.search-input-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

.beat-categories {
    font-size: 14px;       /* adjust font size */
    line-height: 1.6;      /* adjust spacing between lines */
    color: #f2f2f2;        /* change text color */
    margin: 4px 0 0 0;     /* optional spacing */
}
.beat-plays {
    font-size: 13px;
    color: #777;
    margin-top: 6px;
    margin-left: 17px; /* shift element to the right */
    display: flex;
    align-items: center;
    gap: 6px;
}

#beat-search-input {
    width: 100%;
    padding: 20px;
    padding-right: 70px;
    font-size: 16px;
    border: 1px solid #afb3b4;
    border-radius: 16px;
    resize: none;
    outline: none;
    background-color: #fff;
    min-height: 120px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

#beat-search-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: none; /* Remove background fill */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Make SVG icon black and larger */
#beat-search-btn svg {
    width: 26px; /* Increased size (originally 20px) */
    height: 26px;
    fill: black; /* Changed from white to black */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); /* Subtle boldness */
}

/* Optional: Add hover effect */
#beat-search-btn:hover {
    transform: scale(1.1); /* Slight grow on hover */
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.ai-suggestions {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-suggestions {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ai-suggestions::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.ai-suggestions .suggestion {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background-color: #0d1f1f;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-suggestions .suggestion:hover {
    background-color: #e60a00;
}


/* BEAT RESULT ITEM */
.beat-item {
    background-color: #fff8f2; /* light pink background */
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    color: #fff;
}

/* === Floating Player Waveform (Half-height bars) === */
.fp-waveform {
  position: relative;
  width: 100%;
  height: 26px;                /* total container height */
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;         /* center bars vertically */
}

/* Unplayed bars */
.fp-waveform::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      #ff3b30 0,
      #ff3b30 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.7;
}

/* Played bars (progress) */
.fp-waveform-played {
  position: absolute;
  left: 0;
  top: 50%;
  height: 50%;                 /* HALF HEIGHT */
  width: 0%;
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(
      to right,
      #f1f1f1 0,
      #f1f1f1 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}

.fp-waveform-played {
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.fp-waveform::before {
  opacity: 0.45;
}


/* Thumbnail with play icon */
.beat-thumbnail {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;          /* Fixed width for perfect circle */
    height: 60px;         /* Must match width */
    display: flex;        /* Ensures icon centers perfectly */
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;   /* Perfect circle */
    border: 2px solid white; /* Thicker border for visibility */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4); /* Deeper shadow */
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1); /* Stronger grow effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); /* Enhanced shadow on hover */
}

.play-icon {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.beat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.mini-player {
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #e63946; /* red highlight */
    transition: width 0.2s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
}
/* Floating Player Container */
#floating-player {
  position: fixed;
  bottom: 20px;        /* distance from bottom */
  left: 50%;           /* center horizontally */
  transform: translateX(-50%);  /* actually center it */
  max-width: 500px;
  width: 90%;
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none; /* hidden by default */
  font-family: sans-serif;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Player content layout */
#floating-player .fp-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Track title */
#floating-player .fp-title {
  font-weight: bold;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Close button with red background */
#floating-player #fp-close {
  background: #ff4757;       /* red background */
  border: none;
  color: #fff;               /* white X */
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;          /* small padding */
  border-radius: 6px;        /* rounded corners */
  line-height: 1;
  transition: background 0.2s ease;
}

/* Progress bar container */
#floating-player .fp-progress-container {
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

/* Progress bar fill */
#floating-player .fp-progress-bar {
  height: 50%;
  width: 0%;
  background: #ff4757;
  transition: width 0.1s linear;
}

/* Time display */
#floating-player .fp-time span {
  font-family: monospace;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  #floating-player {
    bottom: 15px;
    padding: 12px;
  }
}

/* Download button */
.download-link,
.prompt-subscribe {
    background-color: #e53935; /* Red background */
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* Load More Button - Red Gradient */
#load-more-beats {
  display: block;
  margin: 20px auto;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff4e50, #b31217); /* red gradient */
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#load-more-beats:hover {
  background: linear-gradient(135deg, #b31217, #6a040f); /* darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

#load-more-beats:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}


.download-link:hover,
.prompt-subscribe:hover {
    background-color: #c62828; /* Darker red on hover */
}
/* Beat info (title & category) */
.beat-info {
    flex: 1;
    padding-left: 15px; /* adds space from the thumbnail */
}

.beat-info h4 {
    font-weight: bold;
    font-size: 16px;
    color: #2a3235; /* dark title */
    margin: 0 0 5px;
}
.action-row {
    margin-top: 10px;
}



.beat-info p {
    margin: 0;
    color: #565656; /* white categories */
    padding-left: 2px;
}
.beat-info p a {
    color: #565656;            /* Make each category link black */
    text-decoration: none;
    margin-right: 5px;
}

.beat-info p a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .ai-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    #beat-search-input {
        font-size: 16px;
        padding: 8px 10px;
    }

  .search-wrapper {
  position: relative;
  width: 100%;
}

 #beat-search-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: black;
    border: none;
    border-radius: 20px 20px 20px 20px; /* Rounded using px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
 }
    .suggestion {
        font-size: 13px;
        padding: 5px 12px;
    }

    .ai-beat-search-wrapper {
        padding: 10px;
    }
}
@media screen and (max-width: 600px) {
  .beat-item {
        flex-direction: row;
        align-items: center;
    }

    .beat-thumbnail {
         width: 100px;
        height: 100px;
    }

    .download-link {
        margin: 10px 0 0;
    }
    
    .beat-info {
        width: 100%;
    }
    
    .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;          /* Fixed width for perfect circle */
    height: 60px;         /* Must match width */
    display: flex;        /* Ensures icon centers perfectly */
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;   /* Perfect circle */
    border: 2px solid white; /* Thicker border for visibility */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4); /* Deeper shadow */
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1); /* Stronger grow effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); /* Enhanced shadow on hover */
}

.play-icon {
    animation: pulse 2s infinite;
}
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

    
    
    .beat-info h4 {
         font-weight: bold;
    font-size: 16px;
    color: #2a3235; /* white title */
    margin: 0 0 5px;
    }

.search-summary {
    font-size: 16px;
    font-weight: 500;
    color: #334954;
    margin-bottom: 15px;
    white-space: pre-wrap;
    min-height: 24px;
}
.action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.share-icons {
    display: flex;
    gap: 10px;
    margin-left: 0px;
    padding-left: 10px; /* adds space from the thumbnail */
}

.share-icon i {
    font-size: 15px;
    color: #444444;
    transition: color 0.3s ease;
    padding-left: 10px; /* adds space from the thumbnail */
}

.share-icon.fb:hover i {
    color: #1877f2; /* Facebook blue */
}

.share-icon.tw:hover i {
    color: #000000; /* Twitter X is black */
}
