:root { --bg: #fff; --txt: #111; --acc: #0000ff; --brd: #ccc; --font: verdana, arial, sans-serif; }
[data-theme="modern-dark"] { --bg: #1a1a1b; --txt: #d7dadc; --acc: #4fbcff; --brd: #343536; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--txt); font-family: var(--font); margin: 0; padding: 0; font-size: 13px; line-height: 1.4; }

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 10px; }
header { padding: 10px 0; border-bottom: 1px solid var(--brd); margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.logo-main { height: 48px; width: 48px; object-fit: cover; border: 1px solid var(--brd); border-radius: 4px; flex-shrink: 0; }

/* Reddit-Style Feed */
.post-entry { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--brd); align-items: flex-start; }
.thumb { width: 70px; height: 50px; background: #eee; border: 1px solid var(--brd); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-info { flex-grow: 1; min-width: 0; }
.post-title { font-size: 16px; font-weight: normal; margin: 0; color: var(--acc); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { font-size: 11px; color: #777; margin: 3px 0; }
.post-summary { color: #444; font-size: 12px; margin-bottom: 4px; }

/* Media Players */
.embed-wrap { margin: 15px 0; border: 1px solid var(--brd); border-radius: 4px; overflow: hidden; max-width: 600px; }
.vid-frame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.vid-frame iframe, .vid-frame video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.share-bar { display: flex; gap: 12px; margin-top: 20px; padding: 8px; background: #f0f0f0; border: 1px solid #ccc; font-size: 11px; font-weight: bold; }

/* Admin Area - Desktop & Mobile Friendly */
.admin-card { background: #f8f8f8; border: 1px solid #aaa; padding: 15px; margin-bottom: 15px; border-radius: 5px; }
#toolbar { display: flex; gap: 6px; background: #eee; padding: 6px; border: 1px solid #ccc; margin-bottom: 8px; flex-wrap: wrap; }
.tb-btn { padding: 6px 12px; font-size: 12px; cursor: pointer; background: #fff; border: 1px solid #999; border-radius: 3px; }
input, textarea, select { font-size: 14px; padding: 10px; border: 1px solid #ccc; width: 100%; margin-bottom: 12px; border-radius: 4px; }
.btn-save { background: #0000ff; color: #fff; padding: 15px; border: none; width: 100%; cursor: pointer; font-weight: bold; border-radius: 5px; font-size: 16px; }

/* Passcode UI */
#login-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); z-index: 10000; flex-direction: column; align-items: center; justify-content: center; }
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 20px; width: 100%; max-width: 350px; }
.emoji-btn { font-size: 32px; background: #333; border: 1px solid #555; padding: 15px; border-radius: 12px; cursor: pointer; color: #fff; display: flex; justify-content: center; align-items: center; }

footer { margin-top: 50px; padding: 20px; border-top: 1px solid var(--brd); text-align: center; font-size: 11px; }