/* Beamer-Inspired Theme — Golden Yellow · Near-Black · White · Bold SaaS */

:root {
    --yellow:       #fcc419;
    --yellow-dark:  #f0a500;
    --yellow-pale:  #fff9e0;
    --yellow-soft:  rgba(252,196,25,0.18);
    --ink:          #1a1a1a;
    --ink-light:    #2d2d2d;
    --orange:       #f08010;
    --orange-hi:    #e07000;
    --body-bg:      #f8f8f6;
    --surface:      #ffffff;
    --card:         #ffffff;
    --border:       #e8e8e4;
    --border-dark:  #d4d4ce;
    --text-main:    #1a1a1a;
    --text-second:  #4a4a4a;
    --text-muted:   #8a8a8a;
    --shadow-xs:    0 1px 4px rgba(26,26,26,0.07);
    --shadow-sm:    0 2px 10px rgba(26,26,26,0.09);
    --shadow-md:    0 4px 20px rgba(26,26,26,0.12);
    --shadow-yellow:0 4px 16px rgba(252,196,25,0.35);
    --rad:          6px;
    --rad-sm:       4px;
    --rad-lg:       10px;
    --rad-pill:     999px;
    --ease:         all 0.20s ease;
    --maxw:         1060px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER — white bar with black bold text ===== */
.bm-header {
    background: var(--surface);
    border-bottom: 3px solid var(--yellow);
    padding: 0;
}

.bm-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.bm-logo-link {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.bm-site-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.bm-site-name em {
    color: var(--orange);
    font-style: normal;
}

.bm-domain-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border: 2px solid var(--yellow-dark);
    border-radius: var(--rad-pill);
    background: var(--yellow-pale);
}

.bm-domain-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.bm-domain-addr {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ===== LAYOUT ===== */
.bm-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.bm-row {
    padding: 7px 0;
}

/* ===== PROMO ===== */
.bm-promo {
    overflow: hidden;
    margin-bottom: 7px;
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-sm);
}

/* ===== CATEGORY NAV — yellow left labels + white links ===== */
.bm-catnav {
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    margin-bottom: 7px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.bm-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.bm-catrow:last-child { border-bottom: none; }

.bm-catlabel {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    background: var(--yellow);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    border-right: 2px solid var(--yellow-dark);
    letter-spacing: 0.2px;
}

.bm-catlinks {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: #fafaf8;
}

.bm-catlinks a {
    display: inline-block;
    color: var(--text-second);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--surface);
    border: 1.5px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.bm-catlinks a:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dark);
    font-weight: 700;
    box-shadow: var(--shadow-yellow);
}

.bm-catlinks a.active {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dark);
    font-weight: 800;
    box-shadow: var(--shadow-yellow);
}

/* ===== SEARCH ===== */
.bm-searchbox {
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    padding: 12px 14px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.bm-searchbox form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.bm-searchbox input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 9px 14px;
    border: 2px solid var(--border-dark);
    border-radius: var(--rad-sm);
    background: var(--body-bg);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-weight: 500;
}

.bm-searchbox input[type="text"]:focus {
    border-color: var(--yellow);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--yellow-soft);
}

.bm-searchbox input[type="text"]::placeholder {
    color: var(--text-muted);
}

.bm-searchbox button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--ink);
    color: var(--yellow);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.bm-searchbox button:hover {
    background: var(--ink-light);
    box-shadow: var(--shadow-md);
}

/* ===== HOT TAGS ===== */
.bm-tagpool {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.bm-tagpool a {
    display: inline-block;
    padding: 5px 13px;
    background: var(--yellow-pale);
    border-radius: var(--rad-pill);
    color: var(--text-second);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--ease);
    border: 1.5px solid var(--yellow-dark);
}

.bm-tagpool a:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dark);
    font-weight: 700;
}

/* ===== HOT HEADING ===== */
.bm-hothd { margin-bottom: 6px; }

.bm-hothd strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-second);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SECTION HEADING ===== */
.bm-filmblk { margin-bottom: 10px; }

.bm-blkhead {
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.bm-blkhead::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}

.bm-blktitle {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.3px;
    text-transform: uppercase;
    margin: 0;
}

.bm-blktitle a { color: inherit; text-decoration: none; transition: var(--ease); }
.bm-blktitle a:hover { color: var(--orange); }

/* ===== MEDIA GRID ===== */
.bm-thumbgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.bm-thumbgrid li { animation: bmRise 0.42s ease backwards; }

.bm-thumbgrid li:nth-child(1) { animation-delay: 0.04s; }
.bm-thumbgrid li:nth-child(2) { animation-delay: 0.08s; }
.bm-thumbgrid li:nth-child(3) { animation-delay: 0.12s; }
.bm-thumbgrid li:nth-child(4) { animation-delay: 0.16s; }
.bm-thumbgrid li:nth-child(5) { animation-delay: 0.20s; }
.bm-thumbgrid li:nth-child(6) { animation-delay: 0.24s; }
.bm-thumbgrid li:nth-child(7) { animation-delay: 0.28s; }
.bm-thumbgrid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes bmRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bm-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad-lg);
    aspect-ratio: 600 / 350;
    background: var(--border);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.bm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
    display: block;
}

.bm-thumb:hover {
    border-color: var(--yellow-dark);
    box-shadow: var(--shadow-yellow);
    transform: translateY(-2px);
}

.bm-thumb:hover img { transform: scale(1.07); }

.bm-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.bm-thumb:hover::after { opacity: 1; }

.bm-thumbcap { padding: 7px 0 3px; }

.bm-thumbcap h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.bm-thumbcap h5 a {
    color: var(--text-second);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-thumbcap h5 a:hover { color: var(--orange); }

/* ===== DETAIL TITLE ===== */
.bm-dtlbar {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--yellow-pale);
    border-radius: var(--rad-lg);
    border: 2px solid var(--yellow-dark);
    box-shadow: var(--shadow-xs);
}

.bm-dtlbar a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

.bm-dtlbar b { color: var(--ink); font-weight: 700; }

/* ===== INFO PANEL ===== */
.bm-infopanel {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    margin: 7px 0;
    color: var(--text-second);
    box-shadow: var(--shadow-xs);
}

/* ===== CAPTURE ===== */
.bm-capframe { margin-top: 12px; }

.bm-capframe picture,
.bm-capframe img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--rad);
    border: 1.5px solid var(--border);
}

/* ===== ACTION BUTTONS ===== */
.bm-btnrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    margin: 7px 0;
    box-shadow: var(--shadow-xs);
}

.bm-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--ink);
    color: var(--yellow);
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: 800;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bm-btn:hover {
    background: var(--ink-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===== SHARE PANEL ===== */
.bm-sharebox {
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    padding: 13px 18px;
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.bm-shareurl-row {
    background: var(--body-bg);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--rad-sm);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 11px;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.share-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--ink);
    color: var(--yellow);
    border: none;
    border-radius: var(--rad-sm);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.share-copy-btn:hover {
    background: var(--ink-light);
    box-shadow: var(--shadow-md);
}

.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

/* ===== PAGINATION ===== */
.bm-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.bm-pgbtn,
.bm-pgcur {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.bm-pgbtn {
    background: var(--surface);
    color: var(--text-second);
    border: 1.5px solid var(--border-dark);
}

.bm-pgbtn:hover {
    background: var(--yellow);
    border-color: var(--yellow-dark);
    color: var(--ink);
    font-weight: 800;
}

.bm-pgcur {
    background: var(--ink);
    color: var(--yellow);
    border: 1.5px solid var(--ink);
    cursor: default;
}

/* ===== FOOTER ===== */
.bm-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--yellow);
    margin-top: 14px;
    background: var(--ink);
}

.bm-footer p {
    margin: 5px 0;
    color: #888;
    font-size: 12px;
}

.bm-footer a { color: #888; text-decoration: none; transition: var(--ease); }
.bm-footer a:hover { color: var(--yellow); }

/* ===== FRIENDLY LINKS ===== */
.bm-flinks {
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--rad-lg);
    border: 1.5px solid var(--border);
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.bm-flinks dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bm-flinks dd { display: inline-block; margin: 0; }

.bm-flinks a {
    color: var(--text-second);
    text-decoration: none;
    font-size: 13px;
    padding: 3px 10px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--rad-pill);
    display: inline-block;
    transition: var(--ease);
}

.bm-flinks a:hover {
    background: var(--yellow-pale);
    border-color: var(--yellow-dark);
    color: var(--ink);
    font-weight: 600;
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    margin-bottom: 7px;
    overflow: hidden;
    border-radius: var(--rad-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ===== UTILS ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.bm-showpc  { display: block; }
.bm-showmob { display: block; }
img[data-original] { background: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .bm-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .bm-wrap { padding: 0 9px; }
    .bm-header-inner { padding: 9px 0; gap: 10px; }
    .bm-site-name { font-size: 22px; }
    .bm-domain-badge { padding: 4px 12px; gap: 8px; }
    .bm-domain-label { font-size: 9px; }
    .bm-domain-addr { font-size: 15px; }
    .bm-row { padding: 5px 0; }

    /* mobile nav 15/85 */
    .bm-catlabel {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        letter-spacing: 0;
    }
    .bm-catlinks {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .bm-catlinks a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .bm-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .bm-blktitle { font-size: 15px; }

    .bm-searchbox { padding: 9px 10px; }
    .bm-searchbox form { gap: 6px; }
    .bm-searchbox input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .bm-searchbox button { padding: 8px 12px; font-size: 12px; }

    .bm-thumbcap { padding: 5px 0 2px; }
    .bm-thumbcap h5 { font-size: 12px; }

    .bm-btnrow { padding: 11px 8px; gap: 8px; flex-wrap: nowrap; }
    .bm-btn { padding: 9px 16px; font-size: 13px; }

    .bm-sharebox { padding: 10px 11px; gap: 8px; flex-wrap: nowrap; margin: 5px 0; }
    .bm-shareurl-row { padding: 8px 10px; gap: 6px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 12px; font-size: 12px; }
    .share-icon { font-size: 13px; }

    .bm-pager { padding: 12px 0; gap: 4px; }
    .bm-pgbtn, .bm-pgcur { padding: 6px 10px; font-size: 12px; min-width: 30px; }

    .bm-tagpool { padding: 9px 10px; gap: 5px; }
    .bm-tagpool a { font-size: 12px; padding: 4px 10px; }

    .bm-dtlbar { font-size: 14px; padding: 12px 14px; }
    .bm-infopanel { font-size: 14px; padding: 13px 14px; }
    .bm-footer { padding: 14px 0; margin-top: 10px; }
}

@media (max-width: 480px) {
    .bm-site-name { font-size: 18px; }
    .bm-domain-addr { font-size: 13px; }

    .bm-catlabel { width: 15%; font-size: 10px; padding: 5px 1px; }
    .bm-catlinks { width: 85%; gap: 3px; padding: 5px 3px; }
    .bm-catlinks a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .bm-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bm-thumbcap h5 { font-size: 12px; }
    .bm-blktitle { font-size: 14px; }

    .bm-searchbox input[type="text"] { min-width: 70px; font-size: 12px; }
    .bm-searchbox button { padding: 8px 10px; font-size: 11px; }

    .bm-btnrow { padding: 10px 6px; gap: 6px; }
    .bm-btn { padding: 8px 12px; font-size: 12px; }

    .bm-sharebox { padding: 8px 7px; gap: 5px; }
    .bm-shareurl-row { padding: 7px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}

@media (min-width: 769px) { .bm-showmob { display: none !important; } }
@media (max-width: 768px) { .bm-showpc  { display: none !important; } }
