/* ----------------------------------------------------------------
   StripCams.me — clean minimal theme
---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #1c221d;   /* much darker shade of --surface — same green-gray hue family */
    --surface:      #a9baab;
    --border:       #869b8b;
    --accent:       #6c2d57;
    --accent-dk:    #352254;
    --accent-warm:  #e8985e;
    --text:         #362119;
    --muted:        #6c5d57;
    --radius:       6px;
    --shadow:       0 1px 4px rgba(0,0,0,.10);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 75% 18% at 28% 86%, rgba(134,155,139,0.16) 0%, transparent 70%),
        radial-gradient(ellipse 85% 20% at 72% 94%, rgba(108, 45, 87,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 110% 24% at 50% 100%, rgba( 53, 34, 84,0.08) 0%, transparent 70%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

/* ---- Header ---- */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

header .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

header .logo a { color: inherit; }

/* ---- Search bar ---- */
.search-wrap {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-wrap input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.search-wrap input:focus { border-color: var(--accent); }

.suggest-box {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
    max-height: 360px;
    overflow-y: auto;
}

.suggest-box .item {
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggest-box .item:hover { background: var(--bg); }

.suggest-box .item .meta {
    font-size: 11px;
    color: var(--muted);
}

/* ---- Main layout ---- */
main { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
/* Recording detail page — give the player + image room to breathe.
   cga_images are natively 2132×1274 so 2150px lets them display close
   to native on wide monitors. Mirrors the fastimages image-page pattern. */
main:has(.video-wrap) { max-width: 2150px; padding: 12px; }

/* h1/h2 default to body-bg context (dark) — lighten so they stand out.
   In-card overrides below restore --text on card surfaces. */
h1 { font-size: 20px; margin-bottom: 16px; color: #e8e2d2; }
h2 { font-size: 16px; margin-bottom: 12px; color: #9da89e; font-weight: 500; }
.performer-header h1, .video-details h1 { color: var(--text); }

/* ---- Performer grid (homepage) ---- */
.performer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.performer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transition: box-shadow .2s;
}

.performer-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.performer-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
}

.performer-card .platform {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.performer-thumb {
    width: calc(100% + 28px);
    aspect-ratio: 350/277;
    overflow: hidden;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    margin: -14px -14px 10px -14px;
    background: #d2c7b8;
}

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

.performer-card:hover .performer-thumb img { transform: scale(1.05); }

.performer-card .stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.performer-card .stats span strong { color: var(--text); }

/* ---- Performer page ---- */

/* Live-CB banner — appears above .performer-header when sc:cb:{user}.is_online=1.
   Bright green call-to-action so it's the first thing the eye catches when a
   performer happens to be broadcasting right now. Pulsing dot + chevron arrow
   reinforce the "click through to the room" intent. */
.live-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1eaa55;       /* sat green — distinct from --accent palette */
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-decoration: none;
    transition: background-color .15s;
}
.live-banner:hover { background: #168a44; color: #fff; text-decoration: none; }
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.performer-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.performer-header h1 { margin-bottom: 6px; }

.performer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.performer-meta span strong { color: var(--text); }

/* ---- Image gallery ---- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.image-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #d2c7b8;
    aspect-ratio: 350/277;
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    display: block;
}

.image-tile:hover img { transform: scale(1.05); }

[data-slideshow] video {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.image-tile .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transition: opacity .2s;
}

.image-tile:hover .overlay { opacity: 1; }

/* ---- Video page ---- */
.video-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.video-wrap img,
.video-wrap video,
.video-wrap .player img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #1d1d1d;
    display: block;
    margin: 0 auto;
}

.video-details {
    padding: 20px 24px;
}

.video-details h1 { font-size: 18px; margin-bottom: 12px; }

.video-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.video-meta .field label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.video-meta .field span { font-weight: 500; }

.btn-download {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}

.btn-download:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: var(--surface);
    color: var(--text);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { border: none; background: none; color: var(--muted); }
.pagination .page-jump { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--muted); border:none; background:none; padding:0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 13px;
    color: #9da89e;          /* light muted sage — readable on dark body bg */
    margin-bottom: 16px;
}

.breadcrumb a { color: #c5cec7; }
.breadcrumb a:hover { color: var(--accent-warm); }
.breadcrumb span { margin: 0 6px; }

/* ---- Misc ---- */
.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.badge-platform { background: #e3ece5; color: #4a5a4f; }
.badge-gender   { background: #f2ebd8; color: #6a4a36; }

footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ---- Category nav (platform buttons below the header; gender sub-links on hover) ---- */
.cat-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.cat-nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px;
}
.cat-item { position: relative; }
.cat-btn {
    display: inline-block; padding: 8px 14px; border-radius: var(--radius);
    color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
    white-space: nowrap;
}
.cat-item:hover > .cat-btn, .cat-btn:hover, .cat-btn.active { background: var(--accent); color: #fff; }
.cat-caret { font-size: 10px; opacity: .8; }
.cat-drop {
    display: none; position: absolute; top: 100%; left: 0; min-width: 170px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
.cat-item:hover .cat-drop { display: block; }
.cat-drop a {
    display: block; padding: 7px 12px; border-radius: 4px; color: var(--text);
    text-decoration: none; font-size: 13px; white-space: nowrap;
}
.cat-drop a:hover, .cat-drop a.active { background: var(--accent); color: #fff; }

/* ---- Breadcrumb (category pages) ---- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
