.isc-story-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.isc-story-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.isc-story-item input[type="text"],
.isc-story-item input[type="number"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.isc-story-item input[type="number"] {
    max-width: 100px;
}

.isc-story-item button {
    margin: 5px 0;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.isc-upload-media {
    background: #0073aa;
    color: #fff;
}

.isc-upload-media:hover {
    background: #005177;
}

.isc-remove-story {
    background: #d63638;
    color: #fff;
}

.isc-remove-story:hover {
    background: #b32d2e;
}

#isc-add-story {
    background: #46b450;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#isc-add-story:hover {
    background: #3d9b44;
}

#isc-stories-container {
    max-width: 600px;
    margin: 20px auto;
}

#isc-stories-container p {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.isc-story-bar {
    position: relative;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.isc-story-bar-container {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    background: #fff;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}

.isc-story-bar-container::-webkit-scrollbar {
    display: none;
}

.isc-story-wrapper {
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.isc-story-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin-bottom: 5px;
    position: relative;
    padding: 3px;
}

.isc-story-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.isc-story-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isc-story-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.isc-story-title {
    font-size: 13px;
    color: #333;
    white-space: normal;
    text-align: center;
    max-width: 80px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.isc-view-count {
    position: absolute;
    top: 10px;
    left: 115px;
    color: #fff !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1200;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    line-height: 40px !important;
    height: 40px;
    cursor: default;
}

.isc-view-icon {
    font-size: 20px !important;
}

.isc-story-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.isc-popup-content {
    position: relative;
    width: 100%;
    max-width: 576px;
    height: 100%;
    max-height: 1024px;
    background: #000;
    overflow: hidden;
}

@media (max-width: 767px) {
    .isc-popup-content {
        max-width: 100%;
        max-height: 100%;
    }
}

.isc-swiper {
    width: 100%;
    height: 100%;
}

.isc-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.isc-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    z-index: 100;
}

.isc-story-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 200;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    font-family: 'IRANSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.isc-story-link:hover {
    background: #fff;
    transform: translateX(-50%) scale(1.05);
}

.isc-story-link::before {
    content: none;
}

.isc-progress-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1100;
}

.isc-progress {
    width: 0;
    height: 100%;
    background: #fff;
}

.isc-story-popup .isc-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: #fff !important;
    font-size: 30px !important;
    cursor: pointer;
    z-index: 1200;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.isc-story-popup .isc-play-pause {
    position: absolute;
    top: 10px;
    left: 55px;
    background: none;
    border: none;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer;
    z-index: 1200;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.isc-story-popup .isc-mute {
    position: absolute;
    top: 10px;
    left: 100px;
    background: none;
    border: none;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer;
    z-index: 1200;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.isc-story-popup .isc-close:hover,
.isc-story-popup .isc-play-pause:hover,
.isc-story-popup .isc-mute:hover {
    opacity: 0.8;
}