/* --- Story Viewer Modal CSS --- */
.tc-story-viewer-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tc-story-viewer-modal.is-open {
    display: flex;
    opacity: 1;
}
.tc-story-viewer-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 90vh;
    max-height: 820px;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
.tc-story-viewer-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}
.tc-story-viewer-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.tc-story-viewer-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.05s linear;
}
.tc-story-viewer-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.tc-story-viewer-author-left img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ea580c;
}
.tc-story-viewer-close,
.tc-story-viewer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.tc-story-viewer-close:hover,
.tc-story-viewer-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.tc-story-viewer-media {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050505;
}
.tc-story-viewer-media img,
.tc-story-viewer-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tc-story-viewer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 30;
}
.tc-story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 1000000;
    transition: background 0.2s ease, transform 0.2s ease;
}
.tc-story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}
.tc-story-nav-prev {
    left: 24px;
}
.tc-story-nav-next {
    right: 24px;
}
@media (max-width: 600px) {
    .tc-story-viewer-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .tc-story-nav-prev {
        left: 8px;
        background: rgba(0, 0, 0, 0.4);
    }
    .tc-story-nav-next {
        right: 8px;
        background: rgba(0, 0, 0, 0.4);
    }
}
