* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #afbcf5 0%, #8000ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.post-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.channel-username {
    font-size: 14px;
    color: #888;
}

.post-date {
    font-size: 14px;
    color: #888;
}

.post-content {
    padding: 24px;
}

.post-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.media-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
}

.subscribe-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
	gap: 10px;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.btn-icon {
    font-size: 20px;
}

.post-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.post-stats span {
    font-size: 14px;
    color: #888;
}

@media (max-width: 480px) {
    .container {
        border-radius: 16px;
    }

    .post-header {
        padding: 16px;
    }

    .channel-name {
        font-size: 16px;
    }

    .post-content {
        padding: 16px;
    }

    .subscribe-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Markdown content styles */
.post-text {
    line-height: 1.0;
}

.post-text p {
    margin-bottom: 4px;
}

/*.post-text br {
    margin-bottom: 4px;
    margin: 1px;
}*/

.post-text h1,
.post-text h2,
.post-text h3 {
    margin: 16px 0 8px 0;
    color: #333;
    font-weight: 700;
}

.post-text strong {
    color: #333;
    font-weight: 600;
}

.post-text em {
    font-style: italic;
    color: #555;
}

.post-text code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.post-text pre.code-block {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.post-text blockquote,
.post-text .quote,
.post-text .quote-block {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 0px 0;
    color: #555;
    font-style: italic;
}

.post-text .quote-block {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 12px 16px;
}

.post-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.post-text a:hover {
    text-decoration: underline;
}

.qr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s;
}

.qr-btn:hover {
    background: #e5e5e5;
}

.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.qr-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

#qr-image {
    width: 220px;
    height: 220px;
}

#qr-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
}
