* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.header-titles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-logo {
    width: 80px;
    height: auto;
}

.text-group h1, 
.text-group h4 {
    margin: 0;
}


.header-titles h1 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: bold;
}

.header-titles h4 {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: 220px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    outline: none;
    border-radius: 0;
}

.search-box:focus {
    border-color: #3498db;
}

.credits-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
}

.credits-btn:hover {
    background-color: #2980b9;
}

.results-info {
    font-size: 13px;
    color: #7f8c8d;
    text-align: right;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.card-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
}

.card-item:hover {
    border-color: #3498db;
}

.card-img-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.fav-btn:hover {
    transform: scale(1.15);
    background: #ffffff;
}

.card-img {
    width: 130px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 0;
}

.card-info {
    width: 100%;
    text-align: center;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-series {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.card-badges {
    margin-bottom: 8px;
}

.badge-yes {
    background-color: #2ecc71;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 0;
}

.badge-no {
    background-color: #95a5a6;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 0;
}

.card-price-main {
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
    background: #e8f8f5;
    padding: 6px;
    width: 100%;
    border-radius: 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
    display: none;
}

.load-more-container {
    text-align: center;
    margin: 25px 0 10px 0;
}

.load-more-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.load-more-btn:hover {
    background-color: #2980b9;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    margin-bottom: 25px;
}

.home-grid .card-item {
    width: 100%;
    box-sizing: border-box;
}

.home-description {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollContinuous 25s linear infinite;
  will-change: transform;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-track .card-item {
  flex: 0 0 190px;
  margin-right: 15px;
  box-sizing: border-box;
}

@keyframes scrollContinuous {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.suggestions-list li {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.suggestions-list li:hover {
  background-color: #f1f3f4;
}

.suggestions-list li strong {
  color: #007bff;
}