@font-face {
    font-family: vazir;
    src: url("../font/Vazir-Medium.ttf");
    /* src: url("./assets/font/Vazir-Medium.ttf"); */
}

body {
    background: linear-gradient(180deg, #f8f9fb, #f1f3f8);
    font-family: vazir;
    color: #333;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    border-radius: 30px;
    height: 45px;
    transition: .3s;
}

.search-box input:focus {
    border: 2px solid #f5c542;
    box-shadow: 0 0 0 4px rgba(245, 197, 66, .25);
    outline: none;
}

.search-box button {
    border-radius: 30px;
    background: linear-gradient(135deg, #f5c542, #f0b400);
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 45px;
}

/* ===== Categories ===== */
.categories {
    margin: 50px 0;
}

.category-item {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    transition: .4s;
    height: 100%;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(245, 197, 66, .35);
}

.category-item.active {
    background: linear-gradient(135deg, #fdf3d0, #fff);
    box-shadow:
        inset 0 0 0 -2px #f5c542;
    border: 1px solid #9999995b;
    transform: scale(0.97);
}

.category-item i {
    font-size: 40px;
    color: #f5c542;
    margin-bottom: 10px;
    transition: .3s;
}

.category-item.active i {
    text-shadow: 0 0 15px rgba(245, 197, 66, .8);
}

.category-item[data-category="all"] {
    background: linear-gradient(135deg, #f5c542, #f0b400);
    color: #fff;
}

.category-item[data-category="all"] i {
    color: #fff;
}

.category-item[data-category="all"].active {
    box-shadow: 0 20px 60px rgba(245, 197, 66, .6);
}

/* ===== Video Cards ===== */
.video-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
    transition: .4s !important;
    height: 100%;
}

.video-card * {
    transition: .4s !important;
}

.video-card:hover {
    /* transform: scale(0.91); */
    border: 3px dashed rgba(255, 187, 0, 0.4);
    /* box-shadow: 0 35px 80px ; */
}

.video-thumb {
    position: relative;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: .5s;
}

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

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.play-btn span {
    background: linear-gradient(135deg, #f5c542, #f0b400);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 15px 40px rgba(245, 197, 66, .6);
}

.video-content {
    padding: 20px;
    padding-bottom: 50px;
}

.video-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-caption {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.watchbtn-children {
    position: absolute;
    bottom: 10px;
    left: 25px;
    right: 25px;
}

.watch-btn {
    display: block;
    width: 100%;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #f5c542, #f0b400);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    transition: .3s;
}

.watch-btn:hover {
    box-shadow: 0 15px 40px rgba(245, 197, 66, .6);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-scroll {
    margin: 25px 0 35px;
}

.categories-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.category-item-mini {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: .3s;
    white-space: nowrap;
    font-size: 13px;
}

.category-item-mini i {
    font-size: 16px;
    color: #f0b400;
}

.category-item-mini:hover {
    box-shadow: 0 10px 25px rgba(245, 197, 66, .35);
}

.category-item-mini.active {
    background: linear-gradient(135deg, #f5c542, #f0b400);
    color: #fff;
}

.category-item-mini.active i {
    color: #fff;
}

/* scrollbar categories */
.categories-row {
    scrollbar-width: thin;
    scrollbar-color: #f0b400 #f1f3f8;
}

.categories-row::-webkit-scrollbar {
    height: 6px;
}

.categories-row::-webkit-scrollbar-track {
    background: #f1f3f8;
    border-radius: 10px;
}

.categories-row::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(90deg,
            rgba(245, 197, 66, 0) 0%,
            rgba(245, 197, 66, .6) 50%,
            rgba(245, 197, 66, 0) 100%);
    opacity: .7;
}