.btn-custom {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f5f5f5;
    transition: all 0.5s;
    font-weight: 700;
}

.card-thumb {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.card-thumb:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumb-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb:hover .card-thumb-info {
    opacity: 1;
    transform: translateY(0);
}

.card-thumb-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.input_search:focus {
    outline: none !important;
    border-color: inherit !important;
    box-shadow: none !important;
}

#search_txt:focus {
    outline: none !important;
    border-color: inherit !important;
    box-shadow: none !important;
}

.slide-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slide-card:hover {
    transform: translateY(-6px);
}

.slide-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.35s ease;
}

.slide-card:hover .slide-card-img img {
    filter: brightness(0.75);
}

.slide-card-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.35s ease;
}

.slide-card:hover .slide-card-info {
    opacity: 1;
    transform: translateY(0);
}

.slide-card-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.category-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark .category-card {
    background: #1f2937;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.category-card-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.category-card-img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

.category-card-content {
    margin-left: 16px;
    flex: 1;
}

.category-card-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .category-card-title {
    color: #d1d5db;
}

.category-card:hover .category-card-title {
    color: #0eb3bf;
}

.dark .category-card:hover .category-card-title {
    color: #0071a6;
}

.category-card-underline {
    margin-top: 4px;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #007b43, #009152);
    transition: width 0.5s ease;
}

.dark .category-card-underline {
    background: linear-gradient(to right, #0082a6, #00a6c0);
}

.category-card:hover .category-card-underline {
    width: 100%;
}

.how-to-play-box {
    background: #026597;
    border: 2px solid rgb(161, 161, 161);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.how-to-play-box h3 {
    text-align: center;
}

.how-to-play-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary-red);
}

.how-to-play-box h3 {
    color: var(--purple-light);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
}

.how-to-play-box ul li {
    color: var(--text-muted);
    margin: 8px 0;
}

.how-to-play-box ul li strong {
    color: #e8ecf2;
}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.input_search {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    color: rgb(19, 19, 19);
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 20px auto;
    background: linear-gradient(135deg, #007b43, #009152);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 67, 0.2);
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #009152, #00a65c);
    box-shadow: 0 4px 12px rgba(0, 123, 67, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 67, 0.2);
}

.load-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 67, 0.3);
}

.dark .load-more-btn {
    background: linear-gradient(135deg, #00a65c, #00c06b);
    box-shadow: 0 2px 8px rgba(0, 166, 92, 0.2);
}

.dark .load-more-btn:hover {
    background: linear-gradient(135deg, #00c06b, #00d97a);
    box-shadow: 0 4px 12px rgba(0, 166, 92, 0.3);
}


.hide-initially {
    display: none;
}

.search__result_container {
    background: rgba(3, 25, 104, 0.45);
    backdrop-filter: blur(10px);
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: none !important;
    animation: none !important;
}

.search-results .game-item:hover,
.search-results a:hover {
    background: rgba(48, 213, 255, 0.85);
    color: #ffffff;
}