/* Channel Cards */
.channel-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Channel Header */
.channel-header {
    position: relative;
    margin-top: -1rem;
}

.channel-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.channel-cover-default {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.channel-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.channel-info {
    margin-top: -50px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.channel-avatar {
    border: 4px solid white;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Post Cards */
.post-card {
    transition: box-shadow 0.2s;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.pinned-posts .card {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

/* Member Items */
.member-item {
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: center;
}

.member-item:hover {
    background: #f8f9fa;
}

/* Pending Posts */
.pending-post {
    border-left: 4px solid #ffc107;
}

/* Livestream */
.livestream-player {
    background: #000;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.livestream-player video {
    max-height: 70vh;
    width: 100%;
}

.live-badge {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Chat */
.chat-messages {
    background: #f8f9fa;
    border-radius: 8px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-message .chat-author {
    font-weight: bold;
    margin-right: 10px;
    color: #0d6efd;
}

.chat-message .chat-time {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Media Preview */
.media-preview-item {
    position: relative;
}

.media-preview-item .btn-close {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 5px;
    margin: 5px;
    position: absolute;
    top: 0;
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .channel-cover, .channel-cover-default {
        height: 200px;
    }
    
    .channel-info {
        margin-top: -30px;
    }
    
    .channel-avatar img, .channel-avatar div {
        width: 70px !important;
        height: 70px !important;
    }
    
    .channel-info h1 {
        font-size: 1.5rem;
    }
    
    .livestream-player {
        min-height: 300px;
    }
}
