/* ===== BASE ===== */

html, body {
    height: 100%;
    margin: 0;
    background: #0b0b0b;
    font-family: 'Oswald', sans-serif;
}

#page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== VIDEO AREA ===== */

.video-wrap {
    flex: 1 1 auto;
    background: #000;
    position: relative;
}

#postFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* ===== TAGS ===== */

#tagsBlock {
    padding: 14px 24px;
    border-top: 1px solid #1c1c1c;
    text-align: right;
}

#tagsBlock a {
    display: inline-block;
    margin: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ddd;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s ease;
}

#tagsBlock a:hover {
    color: #ff3c00;
}

/* ===== NAVIGATION ARROWS ===== */

#NEXT_POST,
#PREV_POST {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    opacity: .7;
    z-index: 100000;
    text-decoration: none;
    color: #ff0000;
    text-shadow: 2px 2px 4px #000;
    font-weight: 700;
    transition: all .2s ease;
}

#NEXT_POST { right: 15px; }
#PREV_POST { left: 15px; }

#NEXT_POST:hover,
#PREV_POST:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    #NEXT_POST,
    #PREV_POST {
        display: none;
    }

}
/* ===== COMMENTS ===== */

#commentsBlock {
    padding: 20px 24px;
    border-top: 1px solid #1c1c1c;
    max-width: 900px;
    margin: 0 auto;
}

.comments-header {
    font-size: 16px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1c1c1c;
}

.comment {
    padding: 10px 0;
    border-bottom: 1px solid #111;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #888;
}

.comment-dot {
    width: 8px;
    height: 8px;
    background: #ff2a2a;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.comment-score {
    color: #aaa;
    font-size: 13px;
}

.comment-body {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    word-break: break-word;
}

.comment-body a {
    color: #6ab0f5;
    text-decoration: none;
}

.comment-body a:hover {
    text-decoration: underline;
}

/* ===== COMMENTS IFRAME BAR ===== */

#commentsBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #101010;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    font-size: 14px;
    color: #aaa;
}

#commentsBackBtn {
    background: none;
    border: 1px solid #333;
    color: #ccc;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    transition: all .15s;
}

#commentsBackBtn:hover {
    background: #1f1f1f;
    border-color: #555;
    color: #fff;
}

/* ===== REPORT DROPDOWN ===== */
.dropdown:hover .dropdown-menu { display:none; }
.dropdown-menu.show { display:block !important; background:#1a1a1a !important; border-color:#333 !important; }
.dropdown-menu .dropdown-item { color:#ccc !important; background:transparent !important; }
.dropdown-menu .dropdown-item:hover { background:#2a2a2a !important; color:#fff !important; }
.dropdown-header { color:#888 !important; }
/* ========================================================
   MOBILE — match nsfwmonster's clean 3-row meta bar layout
   ======================================================== */
@media (max-width: 768px) {

    /* Hide desktop nav arrows */
    #NEXT_POST, #PREV_POST { display: none !important; }

    /* Meta bar container */
    #postMeta {
        padding: 12px 14px !important;
        display: block !important;
        background: #111 !important;
        border-bottom: 1px solid #1c1c1c !important;
    }

    /* ROW 1: Title — italic, own line, wraps */
    #postMetaTitle {
        display: block !important;
        font-size: 18px !important;
        font-style: italic !important;
        font-weight: 700 !important;
        color: #f1f1f1 !important;
        line-height: 1.25 !important;
        margin: 0 0 12px 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-family: 'Oswald', sans-serif !important;
    }

    /* ROW 2: subreddit + likes + comments — inline */
    .postMetaBtns {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    /* Subreddit link */
    .nav-link-sub {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #f1f1f1 !important;
        text-decoration: underline !important;
        margin-right: 4px !important;
    }
    .nav-link-sub:hover, .nav-link-sub:active {
        color: #ff2a2a !important;
    }

    /* Likes/comments — pill buttons */
    #postMeta .btn,
    .postMetaBtns .btn {
        font-size: 13px !important;
        font-weight: 700 !important;
        padding: 6px 12px !important;
        height: 32px !important;
        line-height: 1 !important;
        gap: 5px !important;
        background: #000 !important;
        border: 1px solid #444 !important;
        color: #f1f1f1 !important;
    }

    /* Hide secondary buttons on mobile to keep it clean like nsfwmonster */
    /* Copy URL, MORE, SOURCE buttons — hidden on mobile, focus on essentials */
    #postMeta a[title*="Copy"],
    #postMeta button[title*="Copy"],
    #postMeta .copy-btn,
    #copyBtn {
        display: none !important;
    }

    /* ROW 3: Tags as text links — wraps naturally for many tags */
    #tagsBlock {
        padding: 10px 14px 14px !important;
        text-align: center !important;
        background: #111 !important;
        border-top: none !important;
    }
    #tagsBlock a {
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 4px 8px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        color: #f1f1f1 !important;
        text-decoration: underline !important;
        display: inline-block !important;
    }
    #tagsBlock a:hover, #tagsBlock a:active {
        color: #ff2a2a !important;
        background: transparent !important;
        border: none !important;
    }

    /* Comments smaller on mobile */
    #commentsBlock {
        padding: 14px !important;
    }
    .comments-header {
        font-size: 15px !important;
    }
    .comment-body {
        font-size: 13px !important;
    }
    .comment-meta {
        font-size: 12px !important;
    }
}
/* Tags are shown on both desktop and mobile inside the iframe popup.
   The pill styling at the top (#tagsBlock a) applies on desktop;
   the mobile media query above flattens them to text links. */