body { font-family: verdana, arial, sans-serif; background-color: #ffffff; color: #000; font-size: 12px; margin: 0; padding: 0; }
.container { padding: 10px; max-width: 800px; margin: 0 auto; }
.header { border-bottom: 1px solid #5f99cf; background-color: #cee3f8; padding: 5px 0; margin-bottom: 10px; }
.logo { font-size: 18px; font-weight: bold; margin-left: 10px; color: #555; text-decoration: none; }

.submit-area { margin: 10px 0; padding: 10px; border: 1px solid #ddd; background: #f9f9f9; max-width: 500px; }
.submit-area input, .submit-area textarea { display: block; width: 95%; margin-bottom: 5px; border: 1px solid #ccc; font-family: inherit; padding: 5px; }

.post { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.title { font-size: 16px; color: #0000ff; text-decoration: none; margin: 0; font-weight: normal; }
.title:hover { text-decoration: underline; }
.tagline { color: #888; font-size: 10px; margin: 0; }
.expando { margin: 10px 0; line-height: 1.4; color: #444; }

.comment-area { margin-top: 10px; }
.comment { margin-top: 10px; padding-left: 10px; border-left: 1px dotted #ccc; }
.comment.thread-color-0 { border-left: 3px solid #f28b82; background: rgba(242, 139, 130, 0.06); }
.comment.thread-color-1 { border-left: 3px solid #aecbfa; background: rgba(174, 203, 250, 0.08); }
.comment.thread-color-2 { border-left: 3px solid #ccff90; background: rgba(204, 255, 144, 0.08); }
.comment.thread-color-3 { border-left: 3px solid #ffd54f; background: rgba(255, 213, 79, 0.08); }
.comment.thread-color-4 { border-left: 3px solid #d7aefb; background: rgba(215, 174, 251, 0.08); }
.md { margin: 5px 0; font-size: 12px; }
.flat-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.flat-list a { color: #888; font-weight: bold; text-decoration: none; font-size: 10px; }
.child { margin-left: 15px; }

.toggle-btn { color: #336699; font-weight: bold; cursor: pointer; text-decoration: none; font-size: 11px; }
.hidden { display: none; }
.reply-input { margin-top: 5px; }

/* --- Media Gallery Grid --- */
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.media-item {
    max-width: 250px;
    border: 1px solid #ddd;
    background-color: #000;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
}

/* --- Thumbnail Sizing --- */
.compressed-media {
    width: 100%;
    height: auto;
    opacity: 0.3;
    max-height: 250px;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.compressed-media:hover {
    opacity: 0.9;
}

/* YouTube Iframe Fix */
.yt-item iframe {
    width: 250px;
    height: 150px;
    display: block;
}

/* --- Lightbox / Overlay --- */
#media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

#overlay-content {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-content img,
#overlay-content video {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

/* --- Utilities --- */
.post-link {
    color: #336699;
    text-decoration: none;
    word-break: break-all;
}

.post-link:hover {
    text-decoration: underline;
}

.view-more-btn {
    display: block;
    margin: 5px 0 10px 15px;
    color: #888;
    font-size: 11px;
}

.expando.large img,
.expando.large video {
    max-width: 100%;
}

/* --- Trending Page --- */
.trend-bar { background: #f5f8fa; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e1e8ed; }
.trend-item { display: inline-block; background: #fff; padding: 6px 14px; border-radius: 20px; border: 1px solid #1da1f2; color: #1da1f2; text-decoration: none; margin: 8px; font-weight: bold; font-size: 11px; transition: all 0.2s; }
.trend-item:hover { background: #1da1f2; color: #fff; }
.trend-active { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.trend-hot { font-size: 12px; font-weight: bold; }
.stat { font-size: 9px; opacity: 0.8; margin-left: 4px; }
.back-nav { margin-bottom: 15px; display: block; color: #336699; text-decoration: none; font-size: 11px; font-weight: bold; }
.post-preview { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.post-thumb { flex-shrink: 0; }
.post-content { flex-grow: 1; }
.post-content .title { font-size: 14px; margin:0; }
.post-content .snippet { font-size: 11px; color:#666; margin:3px 0 0 0; }

/* --- Search Page --- */
.highlight { background-color: #d0e7ff; padding: 0 2px; border-radius: 2px; border-bottom: 1px solid #99c9ff; }
.search-box { background: #f6f8fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.search-box input { width: 70%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.search-box button { padding: 8px 14px; cursor: pointer; font-family: inherit; }
.grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.column { display: flex; flex-direction: column; gap: 10px; }
.section-title { border-bottom: 2px solid #cee3f8; padding-bottom: 5px; margin-bottom: 15px; color: #555; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
@media (max-width: 600px) { .grid-container { grid-template-columns: 1fr; } }

/* --- Age Verification Popup --- */
#agePopup {
    font-family: Arial, sans-serif;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    width: 100%;
    height: 100%;
}
.popup-content {
    background: #fff;
    padding: 30px;
    width: 350px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.popup-content button { margin: 10px; padding: 10px 15px; background: gold; border: none; cursor: pointer; font-size: 16px; }
#captchaArea { margin-top: 20px; }
