
.reels-container {
    max-width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 100%;
}

.reel-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.reel-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 177.78%;
    /* 9:16 aspect ratio */
    background-color: #000;
    overflow: hidden;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}

.reel-video-container.playing .play-button {
    opacity: 0;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.username {
    font-weight: bold;
    margin-bottom: 0;
}

.reel-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid #f1f1f1;
}

.action-buttons {
    display: flex;
}

.action-button {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
}

.action-button:hover {
    color: #007bff;
}

.action-button.liked {
    color: #e74c3c;
}

.reel-description {
    padding: 0 15px 15px;
}

.view-comments {
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.timestamp {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 5px;
}

.upload-btn {
    position: fixed;
    bottom: 20px;
    right: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
}

.volume-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comments section styles */
.comments-section {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid #f1f1f1;
}

.comments-section.show {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.comment {
    display: flex;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-username {
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9rem;
}

.comment-text {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.comment-actions {
    display: flex;
    font-size: 0.8rem;
    color: #6c757d;
}

.comment-action {
    margin-right: 15px;
    cursor: pointer;
}

.add-comment {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #f1f1f1;
}

.add-comment input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 0.9rem;
}

.post-comment {
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.post-comment:hover {
    color: #0056b3;
}

.view-comments i {
    transition: transform 0.3s;
}

.view-comments.active i {
    transform: rotate(180deg);
}

.post-img-outer img {
    height: 400px;
    width: 100%;
    object-fit: contain;
}
.post-video-section {
    height: 400px;
    width: 100%;
}
.post-section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: block;
    background-color: #264E4E;
    padding: 15px;
    color: #ffffff;
}

@media (max-width: 576px) {
    .reels-container {
        max-width: 100%;
        max-height: 100%;
    }

    .reel-card {
        border-radius: 0;
        margin-bottom: 15px;
    }
}
