
.brands-section {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.brands-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-item {
    display: grid;
    grid-template-columns: 40px 1fr 2fr 1fr 1fr;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    gap: 1rem;
}

@media (max-width: 768px) {
    .brand-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .brand-number {
        grid-row: 1 / 5;
    }
    
    .brand-image {
        grid-column: 2;
        grid-row: 1;
    }
    
    .brand-content {
        grid-column: 2;
        grid-row: 2;
    }
    
    .brand-rating {
        grid-column: 2;
        grid-row: 3;
    }
    
    .brand-action {
        grid-column: 2;
        grid-row: 4;
    }
}

.brand-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
}

.brand-image {
    display: flex;
    align-items: center;
    max-height: 160px;
    overflow: hidden;
}

.brand-image img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
}

.brand-content {
    display: flex;
    flex-direction: column;
}

.block-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
    color: #333;
}

.brand-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.brand-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.brand-action {
    text-align: center;
}

.play-now-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.play-now-btn:hover {
    background-color: #45a049;
    color: white;
    text-decoration: none;
}

/* Show More/Less Button Styles */
.brand-hidden {
    display: none;
}

.brands-show-more-container,
.brands-show-less-container {
    text-align: center;
    margin: 20px 0;
}

.brands-show-more,
.brands-show-less {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #8BC34A;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.brands-show-less {
    background-color: #FFB74D; /* Different color for "Show less" button */
}

.brands-show-more:hover,
.brands-show-less:hover {
    background-color: #7CB342;
    color: white;
    text-decoration: none;
}

.brands-show-less:hover {
    background-color: #FFA726; /* Different hover color for "Show less" button */
}

.brands-show-more svg,
.brands-show-less svg {
    margin-left: 8px;
}

/* Animation for showing brands */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for hiding brands */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.brand-item.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.brand-item.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

/* Select All button styles */
.select-all-container {
    margin-bottom: 15px;
}

#select-all-brands {
    background-color: #2271b1;
    color: white;
    border-color: #2271b1;
}

#select-all-brands:hover {
    background-color: #135e96;
}

#selection-status {
    margin-left: 10px;
    font-style: italic;
}
