.yi-single-page {
    background-color: #0d0d0d;
    padding: 120px 0 80px 0;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
}

.yi-single-page .yi-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.yi-single-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.yi-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.yi-single-date {
    color: #cccccc;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
}

.yi-single-category {
    font-size: 10px;
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Badge Colors (Match news.css) */
.cat-program {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}
.cat-event {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}
.cat-media {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}
.cat-info {
    background-color: rgba(255, 107, 26, 0.1);
    color: #FF6B1A;
}

.yi-single-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.yi-single-thumbnail {
    margin-bottom: 40px;
}

.yi-single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.yi-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #dddddd;
}

.yi-single-content h1, 
.yi-single-content h2, 
.yi-single-content h3, 
.yi-single-content h4, 
.yi-single-content h5, 
.yi-single-content h6 {
    color: #ffffff;
    margin: 1.5em 0 0.5em 0;
    font-weight: 700;
}

.yi-single-content h2 {
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.yi-single-content h3 {
    font-size: 20px;
}

.yi-single-content p {
    margin: 0 0 1.5em 0;
}

.yi-single-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.yi-single-content ul, 
.yi-single-content ol {
    margin: 0 0 1.5em 0;
    padding-left: 20px;
}

.yi-single-content li {
    margin-bottom: 10px;
}

.yi-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.yi-single-content blockquote {
    margin: 1.5em 0;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.03);
    font-style: italic;
}

.yi-single-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yi-single-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yi-single-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.yi-single-nav a:hover {
    color: var(--primary-color);
}

.yi-nav-back {
    font-weight: 700;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 4px;
    transition: all 0.3s ease !important;
}

.yi-nav-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background-color: rgba(255, 107, 26, 0.05);
}

.yi-nav-placeholder {
    width: 80px; /* To keep the flex layout balanced when there is no next/prev post */
}

@media (max-width: 768px) {
    .yi-single-title {
        font-size: 24px;
    }
    
    .yi-single-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .yi-nav-placeholder {
        display: none;
    }
}
