/* --- CORE & RESET --- */
body { background: #14181c; color: #99aabb; font-family: 'Inter', sans-serif; margin: 0; padding: 0; line-height: 1.5; }
a { color: #fff; text-decoration: none; transition: 0.2s; }
a:hover { color: #44eeff; }

/* --- GLOBAL LAYOUT --- */
#container { width: 100%; overflow: visible !important; }
.wrapper, #content { 
    max-width: 1100px; 
    margin: 0 auto !important; 
    padding: 0 20px; 
    box-sizing: border-box; 
}
#content { padding-top: 40px; padding-bottom: 60px; }

/* --- HEADER & NAVIGATION --- */
#header { 
    background: #14181c; 
    border-bottom: 1px solid #2c3440; 
    padding: 25px 0; 
    width: 100%;
}
#header .wrapper { display: flex; justify-content: space-between; align-items: center; }
#header .logo a { font-size: 28px; font-weight: 900; letter-spacing: -1.5px; color: #fff; text-transform: uppercase; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; align-items: center; }
.menu li a { color: #99aabb; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* --- ADMIN QUICK BAR --- */
.admin-quick-bar {
    background: #0f131a;
    border-bottom: 1px solid #2c3440;
    padding: 12px 0;
    width: 100%;
}

.aqb-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
}

.aqb-label { 
    font-size: 11px; 
    font-weight: 800; 
    color: #99aabb; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.aqb-item { 
    font-size: 10px; 
    font-weight: 900; 
    color: #44eeff; 
    text-transform: uppercase; 
    background: #1c232e;
    padding: 5px 12px;
    border: 1px solid #44eeff33;
    border-radius: 3px;
    transition: 0.2s;
}

.aqb-item:hover { 
    background: #44eeff; 
    color: #000; 
}

/* --- ACCOUNT DROPDOWN --- */
.nav-account-item { position: relative; display: inline-block; z-index: 9999; margin-left: 20px; }
.nav-account-trigger { color: #fff; cursor: pointer; padding: 15px 0; display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.nav-account-dropdown {
    position: absolute; top: 100%; right: 0; background: #1c232e; border: 1px solid #2c3440; 
    border-radius: 4px; min-width: 180px; display: none; box-shadow: 0 15px 40px rgba(0,0,0,0.8); padding: 5px 0; margin-top: -5px; 
}
.nav-account-item:hover .nav-account-dropdown { display: block !important; }
.nav-account-dropdown a { display: block; padding: 10px 15px; font-size: 11px; color: #99aabb !important; text-align: center; }
.nav-account-dropdown a:hover { background: #242d39; color: #fff !important; }

/* --- REGISTRATION STYLING --- */
.reg-container { max-width: 650px; margin: 40px auto; background: #1c232e; border: 1px solid #2c3440; border-radius: 8px; padding: 40px; }
.tborder { width: 100%; border-collapse: collapse; background: transparent; margin-bottom: 20px; }
.thead { background: #242d39; color: #fff; padding: 15px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 900; }
.trow1, .trow2 { background: transparent; padding: 20px 15px; border-bottom: 1px solid #2c3440; color: #99aabb; }
.reg-input { width: 100%; background: #14181c; border: 1px solid #2c3440; padding: 12px; border-radius: 4px; color: #fff; box-sizing: border-box; }
.reg-submit { width: 100%; background: #242d39; border: 1px solid #3d495b; padding: 16px; border-radius: 4px; color: #fff; font-weight: 800; text-transform: uppercase; cursor: pointer; }

/* --- REDDIT-STYLE POST LAYOUT --- */
.rs-post { background:#0f1113; border:1px solid #222831; border-radius:12px; padding:16px; margin:12px 0; display:flex; gap:12px; }
.rs-left { width:64px; flex-shrink:0; }
.rs-avatar { width:48px; height:48px; border:1px solid #222831; border-radius:50%; background:#151a20; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.rs-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.rs-user { font-weight:800; font-size:14px; color:#ffffff; }
.rs-body { color:#c7d0db; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }

/* Library Search Bar */
.library-search-container {
    background: #1c232e;
    padding: 20px;
    border: 1px solid #2c3440;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.library-search-input {
    background: #0f131a;
    border: 1px solid #2c3440;
    color: #fff;
    padding: 10px 15px;
    width: 60%;
    border-radius: 4px;
    margin-right: 10px;
}

/* Album Grid System */
.library-section { margin-bottom: 40px; }

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(28, 35, 46, 0.5);
    border-radius: 0 0 8px 8px;
}

.library-item {
    text-align: center;
    transition: transform 0.2s;
}

.library-item:hover {
    transform: translateY(-5px);
}

.library-item img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #2c3440;
}

.library-item span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #44eeff; /* Matches your accent color */
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-item em {
    font-size: 11px;
    color: #99aabb;
    font-style: normal;
}