/* characters shortstory */ 

.avatar_character_facecard {
max-width: 187px !important;
  max-height: 132px !important;
  border-radius: 5%;
  overflow: hidden;
 /* border: 2px solid #fff; */
 /* box-shadow: 0 3px 6px rgba(0,0,0,0.12); */
 /* background: #e2e8f0; */
  flex-shrink: 0;
}

.avatar_character_facecard img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
  display: block;
}

/* characters fullstory */ 

/* Шапка с иконкой персонажа */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.char-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--lazy-pink, #ff66c4);
    object-fit: cover;
}

.sub-title-lang {
    font-size: 0.85rem;
    color: #64748b;
    margin-right: 10px;
    font-weight: bold;
}

/* Блок профиля */
.character-profile-box {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
    margin: 20px 0;
}

.profile-poster {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.char-quote {
    font-style: italic;
    color: #334155;
    background: #ffffff;
    border-left: 5px solid var(--lazy-pink, #ff66c4);
    padding: 12px 18px;
    margin-top: 0;
    margin-bottom: 15px;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
}

.char-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.char-details-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.char-details-list li strong {
    color: #475569;
}

/* Интерактивный плеер */
.character-player-widget {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.player-widget-header {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.player-widget-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.char-play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--lazy-pink, #ff66c4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.char-play-btn:hover {
    transform: scale(1.08);
}

.player-progress-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.char-seek-bar, .char-volume-bar {
    accent-color: var(--lazy-pink, #ff66c4);
    cursor: pointer;
}

.player-time-display {
    font-size: 0.75rem;
    color: #94a3b8;
}

.player-volume-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.char-volume-bar {
    width: 70px;
}

@media (max-width: 768px) {
    .character-profile-box {
        grid-template-columns: 1fr;
    }
    .player-widget-body {
        flex-wrap: wrap;
    }
}



/* Динамические темы персонажей */
.character-profile-box.theme-pink { --char-color: #ff66c4; }
.character-profile-box.theme-blue { --char-color: #0052cc; }
.character-profile-box.theme-purple { --char-color: #800080; }
.character-profile-box.theme-yellow { --char-color: #eab308; }
.character-profile-box.theme-orange { --char-color: #f97316; }
.character-profile-box.theme-cyan { --char-color: #06b6d4; }
.character-profile-box.theme-magenta { --char-color: #d946ef; }

/* Применение цвета темы к элементам карточки */
.character-profile-box[class*="theme-"] {
    border-color: var(--char-color) !important;
}

.character-profile-box[class*="theme-"] .char-quote {
    border-left-color: var(--char-color) !important;
}

.character-profile-box[class*="theme-"] .profile-poster {
    border-color: var(--char-color) !important;
}

/* Применение темы к плееру */
.character-profile-box[class*="theme-"] + .character-player-widget .char-play-btn {
    background: var(--char-color) !important;
}

.character-profile-box[class*="theme-"] + .character-player-widget .char-seek-bar,
.character-profile-box[class*="theme-"] + .character-player-widget .char-volume-bar {
    accent-color: var(--char-color) !important;
}


/* Блок оценок в стиле LazyTown */
.lazy-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 3px dashed #ffde59;
    border-radius: 18px;
    padding: 8px 16px;
    font-family: 'Sniglet', cursive, sans-serif;
}

.rating-label {
    font-weight: 800;
    color: #334155;
    font-size: 0.95rem;
}

.rate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 2px solid #fff;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.rate-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Зеленая кнопка Спортакуса */
.btn-sportacus {
    background: #22c55e !important;
}
.btn-sportacus:hover {
    background: #16a34a !important;
}

/* Фиолетовая кнопка Робби */
.btn-robbie {
    background: #a855f7 !important;
}
.btn-robbie:hover {
    background: #9333ea !important;
}

.rating-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    margin-left: 5px;
}


/* smuvi help */
.e-gridcat {
    display: grid;
    grid-template-columns: repeat(3, 0.3fr); 
    justify-content: space-around;
}
