@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body {
    background: #0d0c1d;
    color: #fff;
}

.custom-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-tabs .nav-link {
    background: var(--extra-color-7);
    border: none;
    color: var(--extra-color-8);
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s;
    font-size: 12px;
    cursor: pointer;
}

.custom-tabs .nav-link:hover {
    background: #2a253f;
    color: var(--secondary-color);
}

.custom-tabs .nav-link.active {
    background: var(--secondary-color);
    color: #fff;
}

.search-bar {
    background: #262131;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    max-width: 600px;
}

.search-bar i {
    color: var(--extra-color-8);
    font-size: 13px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--extra-color-8);
    width: 100%;
    outline: none;
    font-size: 13px;
    font-family: var(--font-inter);
}

.search-bar input::placeholder {
    color: var(--extra-color-8);
}

.karaoke-card {
    background: linear-gradient(135deg, rgba(42, 123, 155, 1) 0%, rgba(33, 27, 45, 1) 0%, rgba(23, 19, 32, 1) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #302B3A;
    height: 100%;
}

.karaoke-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.media-box {
    position: relative;
}

.media-img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    border-radius: 10px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.play-icon-circle {
    background: var(--secondary-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s;
}

.karaoke-card:hover .play-icon-circle {
    background: #302B3A;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.badge-tag {
    background: var(--secondary-color);
    color: #fff;
    font-size: 10px;
    padding: 5px 11px;
    border-radius: 30px;
}

.no-results {
    text-align: center;
    padding: 60px;
    color: #aaa;
    width: 100%;
    margin-top: 60px;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: all 0.3s;
    display: none;
    margin: 32px auto 0;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.load-more-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.grid-spinner {
    display: none;
    text-align: center;
    padding: 30px;
    color: #ca9043;
    width: 100%;
    margin-top: 60px;
}

.grid-spinner i {
    font-size: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Modal */
.modal-content {
    background: #1a1830;
    border: 1px solid #f4a742;
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid #2d2845;
    padding: 15px 20px;
}

#ctModal .modal-header .btn-close {
    opacity: 1;
    filter: invert(1);
}

.modal-title {
    color: #f4a742;
    font-weight: bold;
}

#ctModal .modal-body {
    padding: 0;
}

.modal-footer {
    border-top: 1px solid #2d2845;
    padding: 15px 20px;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.video-container audio {
    width: 100%;
    margin: 0;
}

/* Modal media loading state */
#ctMediaLoader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    background: #000;
}

#ctMediaLoader i {
    font-size: 32px;
    color: #f4a742;
    animation: spin 0.8s linear infinite;
}

/* Like btn active */
.ct-modal-like-btn.liked {
    color: #f4a742 !important;
}

.community-like-btn {
    transition: color 0.2s;
}

.right-icons svg {
    fill: #fff;
    width: 24px;
    height: 24px;
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d8d6e8;
    font-size: 14px;
}

.right-icons i {
    color: #fff;
}
