/* أنماط أساسية */
.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

.story-card {
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.story-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.audio-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.audio-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.story-content {
    padding: 20px;
}

.story-title {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.story-excerpt {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    background: linear-gradient(to right, #ff0000, #800000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(to right, #ff3333, #990000);
    transform: translateX(5px);
}

.read-more-btn i {
    margin-right: 5px;
}

.story-full-content {
    display: none;
    padding: 20px;
    background-color: #222;
    border-top: 2px solid #ff0000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* أنماط مشغل الصوت */
.audio-player {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border-left: 3px solid #ff0000;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-play-btn {
    background: #ff0000;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-progress {
    flex-grow: 1;
    height: 5px;
    background: #444;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
}

.audio-time {
    font-size: 0.8rem;
    color: #aaa;
    min-width: 50px;
    text-align: center;
}

/* أنماط التقييم */
.rating {
    display: flex;
    direction: rtl;
}

.star {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star:hover ~ .star {
    color: #ffcc00;
}

.star.active {
    color: #ffcc00;
}

/* أنماط التعليقات */
.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.comments-section h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.comment {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 2px solid #ff0000;
}

.comment-author {
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-text {
    color: #ddd;
    line-height: 1.5;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
    margin-bottom: 10px;
    min-height: 80px;
    resize: vertical;
}

.comment-form button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form button:hover {
    background: #cc0000;
}

/* تأثيرات خاصة */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.highlight {
    animation: pulse 1.5s infinite;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(-20px); }
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.social-share button {
    background: transparent;
    color: white;
    border: 1px solid #444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.social-share button:hover {
    transform: scale(1.2);
    border-color: #ff0000;
    color: #ff0000;
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-actions button {
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 0.8em;
    cursor: pointer;
}

.comment-actions button:hover {
    color: #ff0000;
}

.edit-comment {
    width: 100%;
    min-height: 80px;
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
}