/* General styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Channel header */
.channel-header {
    padding: 15px;
    background-color: #5288c1;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.channel-info {
    display: flex;
    align-items: center;
}

.channel-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #e6ebee;
}

.channel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-details h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.subscribers {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Messages */
.messages {
    padding: 10px 15px;
}

.message {
    margin-bottom: 25px;
    position: relative;
}

.message-date {
    color: #8e8e8e;
    font-size: 0.75rem;
    margin-bottom: 5px;
    text-align: center;
}

.message-content {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.message-text {
    padding: 10px 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.message-text a {
    color: #2678b6;
    text-decoration: none;
}

.message-text a:hover {
    text-decoration: underline;
}

.message-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 5px;
    cursor: pointer;
}

.message-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bold text */
.bold {
    font-weight: bold;
}

/* Service messages */
.service-message {
    background-color: #f1f1f1;
    padding: 8px 15px;
    border-radius: 18px;
    font-size: 0.85rem;
    color: #6d6d6d;
    margin: 10px auto;
    max-width: 80%;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination button {
    background-color: #f0f2f5;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 2px;
    cursor: pointer;
    color: #2678b6;
    font-weight: 500;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination button:hover {
    background-color: #e4e8ed;
}

.pagination button.active {
    background-color: #5288c1;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #8e8e8e;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #8e8e8e;
    font-size: 0.9rem;
    border-top: 1px solid #e6ebee;
}

footer a {
    color: #2678b6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media queries */
@media (max-width: 600px) {
    .channel-photo {
        width: 50px;
        height: 50px;
    }
    
    .channel-details h1 {
        font-size: 1.2rem;
    }
    
    .message-image img {
        border-radius: 8px;
    }
}