/* === FIX PRO ŠABLONU: OTEVŘENÍ KONTEJNERU === */
#rating {
    display: block !important;
    min-height: 40px !important;
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
    margin-bottom: 20px;
}

/* === ZÁKLADNÍ HVĚZDIČKY === */
span.dh-star {
    font-family: Arial, sans-serif !important; 
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-block !important;
    cursor: pointer;
    color: #ddd !important;
    position: relative;
    width: auto !important;
    height: auto !important;
    margin: 0 2px;
    padding: 0;
    
    text-shadow: none !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    transition: color 0.1s ease;
}

span.dh-star.active { color: #fc0 !important; }
span.dh-star.half { color: #ddd !important; }

span.dh-star.half::before {
    content: '\2605';
    font-family: Arial, sans-serif !important;
    color: #fc0 !important;
    position: absolute;
    left: 0; top: 0; width: 50%;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* === INTERAKCE (HOVER) === */
.rating-container:hover span.dh-star { color: #ddd !important; }
.rating-container:hover span.dh-star.half::before { opacity: 0 !important; }
.rating-container span.dh-star.hover { color: #fc0 !important; }

span.dh-star.no-hover { cursor: default !important; }
.dh-author-rating .rating-container:hover span.dh-star.no-hover { color: inherit !important; }
.dh-author-rating .rating-container:hover span.dh-star.half.no-hover::before { opacity: 1 !important; }

/* === KONTEJNER HODNOCENÍ === */
.dh-ratings {
    padding: 15px 0 0 0;
    border-radius: 5px;
    color: #5853de;
    display: block;
}

.dh-author-rating, .dh-visitor-rating {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rating-container, .rate {
    display: inline-flex;
    align-items: center;
    position: relative !important; 
}

h4.dh-review-title { margin-top: 0px; }
.rating-count { font-size: 12px; color: #888; margin-left: 8px; }

/* === NOTIFIKACE (Toast) === */
#dh-notification-area {
    position: fixed; bottom: 20px; right: 20px; z-index: 999999;
    display: flex; flex-direction: column; gap: 10px;
}

.dh-notification {
    background: #333; color: #fff; padding: 12px 20px; border-radius: 4px;
    font-family: sans-serif; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0; transform: translateY(20px); transition: all 0.3s ease;
    min-width: 200px; display: flex; align-items: center; justify-content: space-between;
}
.dh-notification.show { opacity: 1; transform: translateY(0); }
.dh-notification.success { background: #4caf50; }
.dh-notification.error { background: #f44336; }

/* === ANIMACE FAJFKY === */
.dh-heart-anim {
    position: absolute;
    right: -30px; 
    top: 50%;
    transform: translateY(-50%);
    color: #4caf50;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    animation: dhFlyUp 1s forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes dhFlyUp {
    0% { opacity: 1; transform: translateY(-50%); }
    100% { opacity: 0; transform: translateY(-150%); }
}

@media (max-width: 768px) {
    .dh-author-rating, .dh-visitor-rating { flex-direction: column; align-items: flex-start; }
}

/* === TOP ŽEBŘÍČKY STYLY === */
.dh-top-ratings {
    padding: 15px; border: 1px solid #eee; border-radius: 5px;
    background: #fdfdfd; margin-bottom: 30px;
}
.dh-top-ratings-title {
    color: #333; font-family: Arial, sans-serif; font-size: 18px;
    margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #5853de; padding-bottom: 5px;
}

.dh-ratings-list { 
    list-style: none !important; 
    padding: 0; 
    margin: 0; 
}

.dh-ratings-list li {
    list-style-type: none !important; 
    margin-bottom: 0; 
    padding: 10px 0;
    border-bottom: 1px dashed #eee; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    /* ZMĚNA: Zvětšeno z 20px na 35px, aby se vešlo číslo "10." */
    padding-left: 35px; 
    counter-increment: list-counter; 
    position: relative;
}

.dh-ratings-list li::before {
    content: counter(list-counter) "."; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%);
    font-weight: bold; 
    color: #5853de; 
    font-size: 14px;
}
.dh-ratings-list li:last-child { border-bottom: none; }

.dh-item-link {
    color: #333; font-family: Arial, sans-serif; font-size: 16px; text-decoration: none;
    transition: color 0.2s; font-weight: normal; 
    flex-grow: 1; 
    margin-right: 10px;
}
.dh-item-link:hover { color: #5853de; }

.dh-rating-score { 
    white-space: nowrap; 
    margin-left: auto; 
    color: #fc0 !important; 
    font-size: 15px; 
}
.dh-score-avg { 
    font-weight: bold; 
    color: #333; 
    font-size: 16px; 
    margin-right: 2px; 
}
.dh-score-count { 
    color: #aaa; 
    font-size: 12px; 
    font-weight: normal; 
}

/* --- MODAL (VYSKAKOVACÍ OKNO) --- */
.dh-modal-overlay {
    display: none; position: fixed; z-index: 999999;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
}
.dh-modal-content {
    background-color: #fff; margin: 10vh auto; padding: 30px 20px 20px 20px;
    border: 1px solid #000; width: 90%; max-width: 400px; border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); position: relative;
    font-family: Arial, sans-serif; text-align: left;
}
.dh-modal-close {
    position: absolute; top: 10px; right: 15px;
    color: #000; font-size: 28px; font-weight: bold;
    cursor: pointer; line-height: 1; opacity: 0.6; z-index: 10;
}
.dh-modal-close:hover { opacity: 1; }
.dh-modal-title {
    margin-top: 0; margin-bottom: 15px; font-size: 18px; font-weight: bold;
    color: #000; border-bottom: 2px solid #eee; padding-bottom: 10px; text-transform: uppercase;
}
.dh-critics-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.dh-critics-list li {
    display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
    border-bottom: 1px solid #f0f0f0; font-size: 14px; line-height: 1.4; color: #000;
}
.dh-critics-list li:last-child { border-bottom: none; }
.dh-critic-name { font-weight: bold; }
.dh-critic-stars { color: #000; letter-spacing: 1px; font-size: 16px; }

/* --- IKONKA ŠIPKY --- */
.dh-clickable-trigger { cursor: pointer; display: inline-flex; align-items: center; transition: color 0.2s ease; }
.dh-clickable-trigger:hover { color: #5853de; }
.dh-info-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    margin-left: 5px; margin-right: 5px; background: transparent; transform: translateY(1px);
}
.dh-info-icon svg { width: 12px; height: 12px; fill: #000; transition: fill 0.2s ease, transform 0.2s ease; }
.dh-clickable-trigger:hover .dh-info-icon svg { fill: #5853de; transform: translateY(2px); }