#recommendations-desktop,
#recommendations-mobile {
    font-family: Pompadur, 'site', cursive;
    box-sizing: border-box;
}

.recommendation-error {
    color: #ff4757;
    padding: 10px;
    text-align: center;
}

.recommendation-skeleton,
.recommendation-skeleton-mobile {
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-image,
.skeleton-image-mobile {
    background: #e0e0e0;
    border-radius: 6px;
}

.skeleton-line,
.skeleton-line-mobile,
.skeleton-line-short,
.skeleton-line-short-mobile {
    background: #e0e0e0;
    border-radius: 3px;
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-line-short,
.skeleton-line-short-mobile {
    width: 60%;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* ===== СВЕТЛАЯ ТЕМА ===== */
/* Десктоп версия */
#recommendations-desktop {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 350px;
    height: calc(100vh - 120px);
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
}

.recommendations-header-desktop {
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.recommendation-item {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.recommendation-link {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.recommendation-image-container {
    position: relative;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.recommendation-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.recommendation-link:hover .recommendation-image-container img {
    transform: scale(1.05);
}

.recommendation-duration {
    position: absolute;
    right: 15px;
    bottom: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.recommendation-link:hover .recommendation-duration {
    background: rgba(205,11,12,0.9);
}

.recommendation-info {
    padding: 10px;
    flex: 1;
    text-align: left;
}

.recommendation-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recommendation-link:hover .recommendation-title {
    color: #cd0b0c;
}
.recommendation-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recommendation-link:hover .recommendation-meta {
    color: #888;
}

.recommendation-views {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.recommendation-link:hover .recommendation-views {
    color: #888;
}

.views-icon {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.recommendation-link:hover .views-icon {
    transform: scale(1.2);
}

/* Мобильная версия */
#recommendations-mobile {
    display: none;
    width: 100%;
    padding: 15px 0;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.recommendations-header-mobile {
    font-size: 16px;
    margin: 0 15px 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.recommendations-scroll-mobile {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 12px;
    scrollbar-width: none;
}

.recommendations-scroll-mobile::-webkit-scrollbar {
    display: none;
}

.recommendation-item-mobile {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommendation-item-mobile:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.recommendation-link-mobile {
    display: block;
    text-decoration: none;
    color: #333;
}

.recommendation-image-container-mobile {
    position: relative;
    width: 220px;
    height: 120px;
    overflow: hidden;
}

.recommendation-image-container-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.recommendation-item-mobile:active .recommendation-image-container-mobile img {
    transform: scale(1.05);
}

.recommendation-duration-mobile {
    position: absolute;
    right: 15px;
    bottom: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.recommendation-item-mobile:active .recommendation-duration-mobile {
    background: rgba(205,11,12,0.9);
}

.recommendation-info-mobile {
    padding: 10px;
    text-align: center;
}

.recommendation-title-mobile {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recommendation-item-mobile:active .recommendation-title-mobile {
    color: #cd0b0c;
}

.recommendation-meta-mobile {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recommendation-item-mobile:active .recommendation-meta-mobile {
    color: #888;
}

.recommendation-views-mobile {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.recommendation-item-mobile:active .recommendation-views-mobile {
    color: #888;
}

.views-icon-mobile {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.recommendation-item-mobile:active .views-icon-mobile {
    transform: scale(1.2);
}

/* Актуальные видео */
.featured-item,
.featured-item-mobile {
    position: relative;
    border: 2px solid #ff4757;
    animation: pulseFeatured 2s infinite;
}

@keyframes pulseFeatured {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.featured-corner,
.featured-corner-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 30px 0 0;
    border-color: #ff4757 transparent transparent transparent;
}

.featured-corner::after,
.featured-corner-mobile::after {
    content: '★';
    position: absolute;
    top: -26px;
    left: 3px;
    color: white;
    font-size: 10px;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.night-theme #recommendations-desktop,
body.night-theme #recommendations-mobile {
    background-color: #2a2a2a;
    border-color: #444;
}

body.night-theme .recommendations-header-desktop,
body.night-theme .recommendations-header-mobile {
    color: #f0f0f0;
    border-bottom-color: #444;
}

body.night-theme .recommendation-item,
body.night-theme .recommendation-item-mobile {
    background-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.night-theme .recommendation-title,
body.night-theme .recommendation-title-mobile {
    color: #f0f0f0;
}

body.night-theme .recommendation-meta,
body.night-theme .recommendation-meta-mobile,
body.night-theme .recommendation-views,
body.night-theme .recommendation-views-mobile {
    color: #aaa;
}

body.night-theme .recommendation-link:hover .recommendation-title,
body.night-theme .recommendation-item-mobile:active .recommendation-title-mobile {
  color: rgb(22, 202, 7);
}

body.night-theme .recommendation-link:hover .recommendation-duration,
body.night-theme .recommendation-item-mobile:active .recommendation-duration-mobile {
    background:  rgb(22, 202, 7);
}

body.night-theme .skeleton-image,
body.night-theme .skeleton-image-mobile,
body.night-theme .skeleton-line,
body.night-theme .skeleton-line-mobile,
body.night-theme .skeleton-line-short,
body.night-theme .skeleton-line-short-mobile {
    background-color: #444;
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 1580px) {
    #recommendations-desktop {
        display: block !important;
    }
    #recommendations-mobile {
        display: none !important;
    }
}

@media (max-width: 1579px) {
    #recommendations-desktop {
        display: none !important;
    }
    #recommendations-mobile {
        display: block !important;
    }
}
.box {
    overflow-x: hidden;
}